aws-sdk-core 2.9.44 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -0
- data/lib/aws-sdk-core/client_stubs.rb +1 -2
- data/lib/aws-sdk-core/credential_provider.rb +2 -0
- data/lib/aws-sdk-core/credential_provider_chain.rb +2 -1
- data/lib/aws-sdk-core/errors.rb +19 -8
- data/lib/aws-sdk-core/ini_parser.rb +1 -0
- data/lib/aws-sdk-core/json/handler.rb +3 -2
- data/lib/aws-sdk-core/json/parser.rb +1 -1
- data/lib/aws-sdk-core/json.rb +4 -5
- data/lib/aws-sdk-core/log/param_filter.rb +4 -3
- data/lib/aws-sdk-core/pageable_response.rb +1 -0
- data/lib/aws-sdk-core/pager.rb +30 -25
- data/lib/aws-sdk-core/param_converter.rb +3 -3
- data/lib/aws-sdk-core/param_validator.rb +10 -4
- data/lib/aws-sdk-core/plugins/credentials_configuration.rb +62 -0
- data/lib/aws-sdk-core/plugins/global_configuration.rb +19 -10
- data/lib/aws-sdk-core/plugins/idempotency_token.rb +1 -2
- data/lib/aws-sdk-core/plugins/logging.rb +18 -18
- data/lib/aws-sdk-core/plugins/param_converter.rb +9 -5
- data/lib/aws-sdk-core/plugins/param_validator.rb +8 -5
- data/lib/aws-sdk-core/plugins/protocols/ec2.rb +2 -1
- data/lib/aws-sdk-core/plugins/protocols/json_rpc.rb +13 -12
- data/lib/aws-sdk-core/plugins/protocols/query.rb +2 -2
- data/lib/aws-sdk-core/plugins/regional_endpoint.rb +23 -15
- data/lib/aws-sdk-core/plugins/response_paging.rb +5 -18
- data/lib/aws-sdk-core/plugins/retry_errors.rb +11 -8
- data/lib/aws-sdk-core/plugins/signature_v2.rb +51 -0
- data/lib/aws-sdk-core/plugins/signature_v4.rb +139 -0
- data/lib/aws-sdk-core/plugins/stub_responses.rb +13 -11
- data/lib/aws-sdk-core/plugins/user_agent.rb +17 -6
- data/lib/aws-sdk-core/query/handler.rb +15 -16
- data/lib/aws-sdk-core/query/param_builder.rb +1 -1
- data/lib/aws-sdk-core/query.rb +5 -0
- data/lib/aws-sdk-core/resources/collection.rb +121 -0
- data/lib/aws-sdk-core/rest/handler.rb +1 -0
- data/lib/aws-sdk-core/rest/response/parser.rb +14 -14
- data/lib/aws-sdk-core/rest.rb +10 -0
- data/lib/aws-sdk-core/shared_config.rb +1 -1
- data/lib/aws-sdk-core/shared_credentials.rb +2 -0
- data/lib/aws-sdk-core/structure.rb +17 -12
- data/lib/aws-sdk-core/stubbing/data_applicator.rb +1 -1
- data/lib/aws-sdk-core/stubbing/empty_stub.rb +6 -2
- data/lib/aws-sdk-core/stubbing/protocols/ec2.rb +1 -1
- data/lib/aws-sdk-core/stubbing/stub_data.rb +4 -0
- data/lib/aws-sdk-core/util.rb +39 -0
- data/lib/aws-sdk-core/version.rb +1 -1
- data/lib/aws-sdk-core/waiters/poller.rb +5 -9
- data/lib/aws-sdk-core/waiters/waiter.rb +1 -0
- data/lib/aws-sdk-core/waiters.rb +3 -0
- data/lib/aws-sdk-core/xml/builder.rb +2 -2
- data/lib/aws-sdk-core/xml/error_handler.rb +1 -2
- data/lib/aws-sdk-core/xml/parser/frame.rb +4 -4
- data/lib/aws-sdk-core/xml/parser.rb +1 -11
- data/lib/aws-sdk-core/xml.rb +9 -0
- data/lib/aws-sdk-core.rb +66 -454
- data/lib/aws-sdk-sts/client.rb +1439 -0
- data/lib/aws-sdk-sts/client_api.rb +264 -0
- data/lib/aws-sdk-sts/customizations.rb +0 -0
- data/lib/aws-sdk-sts/errors.rb +14 -0
- data/lib/aws-sdk-sts/resource.rb +23 -0
- data/lib/aws-sdk-sts/types.rb +919 -0
- data/lib/aws-sdk-sts.rb +45 -0
- data/lib/seahorse/client/base.rb +1 -7
- data/lib/seahorse/client/logging/formatter.rb +2 -0
- data/lib/seahorse/client/logging/handler.rb +2 -0
- data/lib/seahorse/client/net_http/connection_pool.rb +3 -0
- data/lib/seahorse/client/net_http/handler.rb +2 -0
- data/lib/seahorse/client/net_http/patches.rb +1 -0
- data/lib/seahorse/client/plugin.rb +66 -6
- data/lib/seahorse/client/plugins/endpoint.rb +14 -10
- data/lib/seahorse/client/plugins/logging.rb +17 -19
- data/lib/seahorse/client/plugins/net_http.rb +23 -15
- data/lib/seahorse/client/plugins/raise_response_errors.rb +4 -4
- data/lib/seahorse/client/plugins/response_target.rb +2 -0
- data/lib/seahorse/model/api.rb +4 -0
- data/lib/seahorse/model/shapes.rb +18 -2
- data/lib/seahorse/util.rb +0 -20
- data/lib/seahorse.rb +50 -60
- metadata +36 -557
- data/apis/acm/2015-12-08/api-2.json +0 -595
- data/apis/acm/2015-12-08/examples-1.json +0 -5
- data/apis/acm/2015-12-08/paginators-1.json +0 -10
- data/apis/apigateway/2015-07-09/api-2.json +0 -4733
- data/apis/apigateway/2015-07-09/examples-1.json +0 -5
- data/apis/apigateway/2015-07-09/paginators-1.json +0 -70
- data/apis/application-autoscaling/2016-02-06/api-2.json +0 -601
- data/apis/application-autoscaling/2016-02-06/examples-1.json +0 -257
- data/apis/application-autoscaling/2016-02-06/paginators-1.json +0 -22
- data/apis/appstream/2016-12-01/api-2.json +0 -944
- data/apis/appstream/2016-12-01/examples-1.json +0 -5
- data/apis/appstream/2016-12-01/paginators-1.json +0 -4
- data/apis/appstream/2016-12-01/waiters-2.json +0 -55
- data/apis/athena/2017-05-18/api-2.json +0 -615
- data/apis/athena/2017-05-18/examples-1.json +0 -5
- data/apis/athena/2017-05-18/paginators-1.json +0 -19
- data/apis/autoscaling/2011-01-01/api-2.json +0 -2172
- data/apis/autoscaling/2011-01-01/examples-1.json +0 -1396
- data/apis/autoscaling/2011-01-01/paginators-1.json +0 -52
- data/apis/autoscaling/2011-01-01/resources-1.json +0 -1624
- data/apis/autoscaling/2011-01-01/waiters-2.json +0 -62
- data/apis/batch/2016-08-10/api-2.json +0 -920
- data/apis/batch/2016-08-10/examples-1.json +0 -589
- data/apis/batch/2016-08-10/paginators-1.json +0 -4
- data/apis/budgets/2016-10-20/api-2.json +0 -697
- data/apis/budgets/2016-10-20/examples-1.json +0 -5
- data/apis/budgets/2016-10-20/paginators-1.json +0 -4
- data/apis/clouddirectory/2016-05-10/api-2.json +0 -3595
- data/apis/clouddirectory/2016-05-10/examples-1.json +0 -5
- data/apis/clouddirectory/2016-05-10/paginators-1.json +0 -94
- data/apis/cloudformation/2010-05-15/api-2.json +0 -1464
- data/apis/cloudformation/2010-05-15/examples-1.json +0 -5
- data/apis/cloudformation/2010-05-15/paginators-1.json +0 -37
- data/apis/cloudformation/2010-05-15/resources-1.json +0 -211
- data/apis/cloudformation/2010-05-15/waiters-2.json +0 -182
- data/apis/cloudfront/2016-01-28/api-2.json +0 -2219
- data/apis/cloudfront/2016-01-28/examples-1.json +0 -5
- data/apis/cloudfront/2016-01-28/paginators-1.json +0 -32
- data/apis/cloudfront/2016-01-28/waiters-2.json +0 -47
- data/apis/cloudfront/2016-08-01/api-2.json +0 -2548
- data/apis/cloudfront/2016-08-01/examples-1.json +0 -5
- data/apis/cloudfront/2016-08-01/paginators-1.json +0 -32
- data/apis/cloudfront/2016-08-01/waiters-2.json +0 -47
- data/apis/cloudfront/2016-08-20/api-2.json +0 -2586
- data/apis/cloudfront/2016-08-20/paginators-1.json +0 -32
- data/apis/cloudfront/2016-08-20/waiters-2.json +0 -47
- data/apis/cloudfront/2016-09-07/api-2.json +0 -2596
- data/apis/cloudfront/2016-09-07/examples-1.json +0 -5
- data/apis/cloudfront/2016-09-07/paginators-1.json +0 -32
- data/apis/cloudfront/2016-09-07/waiters-2.json +0 -47
- data/apis/cloudfront/2016-09-29/api-2.json +0 -2599
- data/apis/cloudfront/2016-09-29/examples-1.json +0 -5
- data/apis/cloudfront/2016-09-29/paginators-1.json +0 -32
- data/apis/cloudfront/2016-09-29/waiters-2.json +0 -47
- data/apis/cloudfront/2016-11-25/api-2.json +0 -2665
- data/apis/cloudfront/2016-11-25/examples-1.json +0 -5
- data/apis/cloudfront/2016-11-25/paginators-1.json +0 -32
- data/apis/cloudfront/2016-11-25/waiters-2.json +0 -47
- data/apis/cloudfront/2017-03-25/api-2.json +0 -2689
- data/apis/cloudfront/2017-03-25/examples-1.json +0 -83
- data/apis/cloudfront/2017-03-25/paginators-1.json +0 -32
- data/apis/cloudfront/2017-03-25/waiters-2.json +0 -47
- data/apis/cloudhsm/2014-05-30/api-2.json +0 -878
- data/apis/cloudhsm/2014-05-30/examples-1.json +0 -5
- data/apis/cloudsearch/2013-01-01/api-2.json +0 -2002
- data/apis/cloudsearch/2013-01-01/paginators-1.json +0 -20
- data/apis/cloudsearchdomain/2013-01-01/api-2.json +0 -374
- data/apis/cloudsearchdomain/2013-01-01/examples-1.json +0 -5
- data/apis/cloudtrail/2013-11-01/api-2.json +0 -912
- data/apis/cloudtrail/2013-11-01/examples-1.json +0 -5
- data/apis/cloudtrail/2013-11-01/paginators-1.json +0 -13
- data/apis/codebuild/2016-10-06/api-2.json +0 -704
- data/apis/codebuild/2016-10-06/examples-1.json +0 -5
- data/apis/codebuild/2016-10-06/paginators-1.json +0 -4
- data/apis/codecommit/2015-04-13/api-2.json +0 -1112
- data/apis/codecommit/2015-04-13/examples-1.json +0 -5
- data/apis/codecommit/2015-04-13/paginators-1.json +0 -19
- data/apis/codedeploy/2014-10-06/api-2.json +0 -2380
- data/apis/codedeploy/2014-10-06/examples-1.json +0 -5
- data/apis/codedeploy/2014-10-06/paginators-1.json +0 -34
- data/apis/codedeploy/2014-10-06/waiters-2.json +0 -30
- data/apis/codepipeline/2015-07-09/api-2.json +0 -1714
- data/apis/codepipeline/2015-07-09/examples-1.json +0 -5
- data/apis/codestar/2017-04-19/api-2.json +0 -755
- data/apis/codestar/2017-04-19/examples-1.json +0 -5
- data/apis/codestar/2017-04-19/paginators-1.json +0 -4
- data/apis/cognito-identity/2014-06-30/api-2.json +0 -943
- data/apis/cognito-identity/2014-06-30/examples-1.json +0 -5
- data/apis/cognito-identity/2014-06-30/paginators-1.json +0 -4
- data/apis/cognito-idp/2016-04-18/api-2.json +0 -3847
- data/apis/cognito-idp/2016-04-18/examples-1.json +0 -5
- data/apis/cognito-idp/2016-04-18/paginators-1.json +0 -4
- data/apis/cognito-sync/2014-06-30/api-2.json +0 -1875
- data/apis/config/2014-11-12/api-2.json +0 -1418
- data/apis/config/2014-11-12/examples-1.json +0 -5
- data/apis/config/2014-11-12/paginators-1.json +0 -10
- data/apis/cur/2017-01-06/api-2.json +0 -226
- data/apis/cur/2017-01-06/examples-1.json +0 -5
- data/apis/cur/2017-01-06/paginators-1.json +0 -9
- data/apis/datapipeline/2012-10-29/api-2.json +0 -1168
- data/apis/datapipeline/2012-10-29/paginators-1.json +0 -26
- data/apis/devicefarm/2015-06-23/api-2.json +0 -2312
- data/apis/devicefarm/2015-06-23/examples-1.json +0 -1242
- data/apis/devicefarm/2015-06-23/paginators-1.json +0 -77
- data/apis/directconnect/2012-10-25/api-2.json +0 -1351
- data/apis/directconnect/2012-10-25/examples-1.json +0 -5
- data/apis/directconnect/2012-10-25/paginators-1.json +0 -22
- data/apis/discovery/2015-11-01/api-2.json +0 -938
- data/apis/discovery/2015-11-01/examples-1.json +0 -5
- data/apis/discovery/2015-11-01/paginators-1.json +0 -4
- data/apis/dms/2016-01-01/api-2.json +0 -1881
- data/apis/dms/2016-01-01/examples-1.json +0 -1053
- data/apis/dms/2016-01-01/paginators-1.json +0 -64
- data/apis/ds/2015-04-16/api-2.json +0 -1972
- data/apis/ds/2015-04-16/examples-1.json +0 -5
- data/apis/dynamodb/2011-12-05/api-2.json +0 -802
- data/apis/dynamodb/2011-12-05/examples-1.json +0 -5
- data/apis/dynamodb/2011-12-05/paginators-1.json +0 -26
- data/apis/dynamodb/2011-12-05/waiters-2.json +0 -35
- data/apis/dynamodb/2012-08-10/api-2.json +0 -1405
- data/apis/dynamodb/2012-08-10/examples-1.json +0 -628
- data/apis/dynamodb/2012-08-10/paginators-1.json +0 -26
- data/apis/dynamodb/2012-08-10/resources-1.json +0 -136
- data/apis/dynamodb/2012-08-10/waiters-2.json +0 -35
- data/apis/ec2/2015-10-01/api-2.json +0 -13760
- data/apis/ec2/2015-10-01/examples-1.json +0 -5
- data/apis/ec2/2015-10-01/paginators-1.json +0 -138
- data/apis/ec2/2015-10-01/resources-1.json +0 -2582
- data/apis/ec2/2015-10-01/waiters-2.json +0 -593
- data/apis/ec2/2016-04-01/api-2.json +0 -14191
- data/apis/ec2/2016-04-01/examples-1.json +0 -3729
- data/apis/ec2/2016-04-01/paginators-1.json +0 -138
- data/apis/ec2/2016-04-01/resources-1.json +0 -2582
- data/apis/ec2/2016-04-01/waiters-2.json +0 -593
- data/apis/ec2/2016-09-15/api-2.json +0 -14415
- data/apis/ec2/2016-09-15/examples-1.json +0 -3740
- data/apis/ec2/2016-09-15/paginators-1.json +0 -138
- data/apis/ec2/2016-09-15/resources-1.json +0 -2582
- data/apis/ec2/2016-09-15/waiters-2.json +0 -593
- data/apis/ec2/2016-11-15/api-2.json +0 -15590
- data/apis/ec2/2016-11-15/examples-1.json +0 -3740
- data/apis/ec2/2016-11-15/paginators-1.json +0 -144
- data/apis/ec2/2016-11-15/resources-1.json +0 -2582
- data/apis/ec2/2016-11-15/waiters-2.json +0 -611
- data/apis/ecr/2015-09-21/api-2.json +0 -947
- data/apis/ecr/2015-09-21/examples-1.json +0 -215
- data/apis/ecr/2015-09-21/paginators-1.json +0 -22
- data/apis/ecs/2014-11-13/api-2.json +0 -1629
- data/apis/ecs/2014-11-13/examples-1.json +0 -883
- data/apis/ecs/2014-11-13/paginators-1.json +0 -40
- data/apis/ecs/2014-11-13/waiters-2.json +0 -93
- data/apis/elasticache/2015-02-02/api-2.json +0 -2550
- data/apis/elasticache/2015-02-02/examples-1.json +0 -3145
- data/apis/elasticache/2015-02-02/paginators-1.json +0 -76
- data/apis/elasticache/2015-02-02/waiters-2.json +0 -143
- data/apis/elasticbeanstalk/2010-12-01/api-2.json +0 -2332
- data/apis/elasticbeanstalk/2010-12-01/examples-1.json +0 -1109
- data/apis/elasticbeanstalk/2010-12-01/paginators-1.json +0 -25
- data/apis/elasticfilesystem/2015-02-01/api-2.json +0 -714
- data/apis/elasticfilesystem/2015-02-01/examples-1.json +0 -222
- data/apis/elasticloadbalancing/2012-06-01/api-2.json +0 -1629
- data/apis/elasticloadbalancing/2012-06-01/examples-1.json +0 -1036
- data/apis/elasticloadbalancing/2012-06-01/paginators-1.json +0 -18
- data/apis/elasticloadbalancing/2012-06-01/waiters-2.json +0 -49
- data/apis/elasticloadbalancingv2/2015-12-01/api-2.json +0 -1867
- data/apis/elasticloadbalancingv2/2015-12-01/examples-1.json +0 -1384
- data/apis/elasticloadbalancingv2/2015-12-01/paginators-1.json +0 -19
- data/apis/elasticloadbalancingv2/2015-12-01/waiters-2.json +0 -64
- data/apis/elasticmapreduce/2009-03-31/api-2.json +0 -2056
- data/apis/elasticmapreduce/2009-03-31/examples-1.json +0 -5
- data/apis/elasticmapreduce/2009-03-31/paginators-1.json +0 -37
- data/apis/elasticmapreduce/2009-03-31/waiters-2.json +0 -86
- data/apis/elastictranscoder/2012-09-25/api-2.json +0 -1483
- data/apis/elastictranscoder/2012-09-25/examples-1.json +0 -5
- data/apis/elastictranscoder/2012-09-25/paginators-1.json +0 -24
- data/apis/elastictranscoder/2012-09-25/waiters-2.json +0 -30
- data/apis/email/2010-12-01/api-2.json +0 -2212
- data/apis/email/2010-12-01/examples-1.json +0 -953
- data/apis/email/2010-12-01/paginators-1.json +0 -13
- data/apis/email/2010-12-01/waiters-2.json +0 -18
- data/apis/entitlement.marketplace/2017-01-11/api-2.json +0 -128
- data/apis/entitlement.marketplace/2017-01-11/examples-1.json +0 -5
- data/apis/entitlement.marketplace/2017-01-11/paginators-1.json +0 -4
- data/apis/es/2015-01-01/api-2.json +0 -862
- data/apis/es/2015-01-01/examples-1.json +0 -5
- data/apis/es/2015-01-01/paginators-1.json +0 -14
- data/apis/events/2015-10-07/api-2.json +0 -649
- data/apis/events/2015-10-07/examples-1.json +0 -5
- data/apis/events/2015-10-07/paginators-1.json +0 -4
- data/apis/firehose/2015-08-04/api-2.json +0 -866
- data/apis/firehose/2015-08-04/examples-1.json +0 -5
- data/apis/gamelift/2015-10-01/api-2.json +0 -2316
- data/apis/gamelift/2015-10-01/examples-1.json +0 -5
- data/apis/gamelift/2015-10-01/paginators-1.json +0 -4
- data/apis/glacier/2012-06-01/api-2.json +0 -1734
- data/apis/glacier/2012-06-01/examples-1.json +0 -806
- data/apis/glacier/2012-06-01/paginators-1.json +0 -28
- data/apis/glacier/2012-06-01/resources-1.json +0 -563
- data/apis/glacier/2012-06-01/waiters-2.json +0 -39
- data/apis/greengrass/2017-06-07/api-2.json +0 -3451
- data/apis/health/2016-08-04/api-2.json +0 -547
- data/apis/health/2016-08-04/examples-1.json +0 -5
- data/apis/health/2016-08-04/paginators-1.json +0 -31
- data/apis/iam/2010-05-08/api-2.json +0 -4832
- data/apis/iam/2010-05-08/examples-1.json +0 -1191
- data/apis/iam/2010-05-08/paginators-1.json +0 -198
- data/apis/iam/2010-05-08/resources-1.json +0 -1740
- data/apis/iam/2010-05-08/waiters-2.json +0 -39
- data/apis/importexport/2010-06-01/api-2.json +0 -667
- data/apis/importexport/2010-06-01/paginators-1.json +0 -11
- data/apis/inspector/2016-02-16/api-2.json +0 -2051
- data/apis/inspector/2016-02-16/examples-1.json +0 -1147
- data/apis/inspector/2016-02-16/paginators-1.json +0 -4
- data/apis/iot/2015-05-28/api-2.json +0 -2928
- data/apis/iot/2015-05-28/examples-1.json +0 -5
- data/apis/iot/2015-05-28/paginators-1.json +0 -4
- data/apis/iot-data/2015-05-28/api-2.json +0 -264
- data/apis/kinesis/2013-12-02/api-2.json +0 -890
- data/apis/kinesis/2013-12-02/examples-1.json +0 -5
- data/apis/kinesis/2013-12-02/paginators-1.json +0 -18
- data/apis/kinesis/2013-12-02/waiters-2.json +0 -30
- data/apis/kinesisanalytics/2015-08-14/api-2.json +0 -1175
- data/apis/kinesisanalytics/2015-08-14/examples-1.json +0 -5
- data/apis/kinesisanalytics/2015-08-14/paginators-1.json +0 -4
- data/apis/kms/2014-11-01/api-2.json +0 -1492
- data/apis/kms/2014-11-01/examples-1.json +0 -904
- data/apis/kms/2014-11-01/paginators-1.json +0 -32
- data/apis/lambda/2014-11-11/api-2.json +0 -668
- data/apis/lambda/2014-11-11/paginators-1.json +0 -16
- data/apis/lambda/2015-03-31/api-2.json +0 -1647
- data/apis/lambda/2015-03-31/examples-1.json +0 -614
- data/apis/lambda/2015-03-31/paginators-1.json +0 -16
- data/apis/lex-models/2017-04-19/api-2.json +0 -2033
- data/apis/lex-models/2017-04-19/examples-1.json +0 -758
- data/apis/lex-models/2017-04-19/paginators-1.json +0 -54
- data/apis/lightsail/2016-11-28/api-2.json +0 -2187
- data/apis/lightsail/2016-11-28/examples-1.json +0 -5
- data/apis/lightsail/2016-11-28/paginators-1.json +0 -4
- data/apis/logs/2014-03-28/api-2.json +0 -1246
- data/apis/logs/2014-03-28/examples-1.json +0 -5
- data/apis/logs/2014-03-28/paginators-1.json +0 -49
- data/apis/machinelearning/2014-12-12/api-2.json +0 -1978
- data/apis/machinelearning/2014-12-12/examples-1.json +0 -5
- data/apis/machinelearning/2014-12-12/paginators-1.json +0 -28
- data/apis/machinelearning/2014-12-12/waiters-2.json +0 -81
- data/apis/marketplacecommerceanalytics/2015-07-01/api-2.json +0 -171
- data/apis/marketplacecommerceanalytics/2015-07-01/examples-1.json +0 -5
- data/apis/marketplacecommerceanalytics/2015-07-01/paginators-1.json +0 -4
- data/apis/meteringmarketplace/2016-01-14/api-2.json +0 -263
- data/apis/meteringmarketplace/2016-01-14/examples-1.json +0 -5
- data/apis/monitoring/2010-08-01/api-2.json +0 -827
- data/apis/monitoring/2010-08-01/examples-1.json +0 -5
- data/apis/monitoring/2010-08-01/paginators-1.json +0 -24
- data/apis/monitoring/2010-08-01/resources-1.json +0 -346
- data/apis/monitoring/2010-08-01/waiters-2.json +0 -18
- data/apis/mturk-requester/2017-01-17/api-2.json +0 -1665
- data/apis/mturk-requester/2017-01-17/examples-1.json +0 -5
- data/apis/mturk-requester/2017-01-17/paginators-1.json +0 -54
- data/apis/opsworks/2013-02-18/api-2.json +0 -2839
- data/apis/opsworks/2013-02-18/examples-1.json +0 -5
- data/apis/opsworks/2013-02-18/paginators-1.json +0 -55
- data/apis/opsworks/2013-02-18/resources-1.json +0 -173
- data/apis/opsworks/2013-02-18/waiters-2.json +0 -295
- data/apis/opsworkscm/2016-11-01/api-2.json +0 -730
- data/apis/opsworkscm/2016-11-01/examples-1.json +0 -5
- data/apis/opsworkscm/2016-11-01/paginators-1.json +0 -4
- data/apis/organizations/2016-11-28/api-2.json +0 -2006
- data/apis/organizations/2016-11-28/examples-1.json +0 -1409
- data/apis/organizations/2016-11-28/paginators-1.json +0 -64
- data/apis/pinpoint/2016-12-01/api-2.json +0 -3949
- data/apis/pinpoint/2016-12-01/examples-1.json +0 -5
- data/apis/polly/2016-06-10/api-2.json +0 -539
- data/apis/polly/2016-06-10/examples-1.json +0 -171
- data/apis/polly/2016-06-10/paginators-1.json +0 -4
- data/apis/rds/2013-01-10/api-2.json +0 -2902
- data/apis/rds/2013-01-10/examples-1.json +0 -5
- data/apis/rds/2013-01-10/paginators-1.json +0 -97
- data/apis/rds/2013-02-12/api-2.json +0 -3058
- data/apis/rds/2013-02-12/examples-1.json +0 -5
- data/apis/rds/2013-02-12/paginators-1.json +0 -110
- data/apis/rds/2013-09-09/api-2.json +0 -3159
- data/apis/rds/2013-09-09/examples-1.json +0 -5
- data/apis/rds/2013-09-09/paginators-1.json +0 -110
- data/apis/rds/2013-09-09/waiters-2.json +0 -97
- data/apis/rds/2014-09-01/api-2.json +0 -3272
- data/apis/rds/2014-09-01/examples-1.json +0 -5
- data/apis/rds/2014-09-01/paginators-1.json +0 -4
- data/apis/rds/2014-10-31/api-2.json +0 -5187
- data/apis/rds/2014-10-31/examples-1.json +0 -1951
- data/apis/rds/2014-10-31/paginators-1.json +0 -110
- data/apis/rds/2014-10-31/resources-1.json +0 -3272
- data/apis/rds/2014-10-31/waiters-2.json +0 -90
- data/apis/redshift/2012-12-01/api-2.json +0 -3840
- data/apis/redshift/2012-12-01/examples-1.json +0 -5
- data/apis/redshift/2012-12-01/paginators-1.json +0 -94
- data/apis/redshift/2012-12-01/waiters-2.json +0 -97
- data/apis/rekognition/2016-06-27/api-2.json +0 -992
- data/apis/rekognition/2016-06-27/examples-1.json +0 -651
- data/apis/rekognition/2016-06-27/paginators-1.json +0 -16
- data/apis/resourcegroupstaggingapi/2017-01-26/api-2.json +0 -328
- data/apis/resourcegroupstaggingapi/2017-01-26/examples-1.json +0 -5
- data/apis/resourcegroupstaggingapi/2017-01-26/paginators-1.json +0 -20
- data/apis/route53/2013-04-01/api-2.json +0 -3312
- data/apis/route53/2013-04-01/examples-1.json +0 -762
- data/apis/route53/2013-04-01/paginators-1.json +0 -33
- data/apis/route53/2013-04-01/waiters-2.json +0 -18
- data/apis/route53domains/2014-05-15/api-2.json +0 -1323
- data/apis/route53domains/2014-05-15/examples-1.json +0 -5
- data/apis/route53domains/2014-05-15/paginators-1.json +0 -16
- data/apis/runtime.lex/2016-11-28/api-2.json +0 -390
- data/apis/runtime.lex/2016-11-28/examples-1.json +0 -5
- data/apis/runtime.lex/2016-11-28/paginators-1.json +0 -4
- data/apis/s3/2006-03-01/api-2.json +0 -5368
- data/apis/s3/2006-03-01/examples-1.json +0 -1876
- data/apis/s3/2006-03-01/paginators-1.json +0 -66
- data/apis/s3/2006-03-01/resources-1.json +0 -1176
- data/apis/s3/2006-03-01/waiters-2.json +0 -73
- data/apis/sdb/2009-04-15/api-2.json +0 -955
- data/apis/sdb/2009-04-15/paginators-1.json +0 -15
- data/apis/servicecatalog/2015-12-10/api-2.json +0 -2022
- data/apis/servicecatalog/2015-12-10/examples-1.json +0 -5
- data/apis/servicecatalog/2015-12-10/paginators-1.json +0 -4
- data/apis/shield/2016-06-02/api-2.json +0 -494
- data/apis/shield/2016-06-02/examples-1.json +0 -5
- data/apis/sms/2016-10-24/api-2.json +0 -612
- data/apis/sms/2016-10-24/examples-1.json +0 -5
- data/apis/sms/2016-10-24/paginators-1.json +0 -28
- data/apis/snowball/2016-06-30/api-2.json +0 -855
- data/apis/snowball/2016-06-30/examples-1.json +0 -442
- data/apis/snowball/2016-06-30/paginators-1.json +0 -16
- data/apis/sns/2010-03-31/api-2.json +0 -1145
- data/apis/sns/2010-03-31/examples-1.json +0 -5
- data/apis/sns/2010-03-31/paginators-1.json +0 -29
- data/apis/sns/2010-03-31/resources-1.json +0 -327
- data/apis/sqs/2012-11-05/api-2.json +0 -988
- data/apis/sqs/2012-11-05/examples-1.json +0 -5
- data/apis/sqs/2012-11-05/paginators-1.json +0 -7
- data/apis/sqs/2012-11-05/resources-1.json +0 -232
- data/apis/ssm/2014-11-06/api-2.json +0 -5317
- data/apis/ssm/2014-11-06/examples-1.json +0 -5
- data/apis/ssm/2014-11-06/paginators-1.json +0 -40
- data/apis/states/2016-11-23/api-2.json +0 -1021
- data/apis/states/2016-11-23/examples-1.json +0 -5
- data/apis/states/2016-11-23/paginators-1.json +0 -28
- data/apis/storagegateway/2013-06-30/api-2.json +0 -2591
- data/apis/storagegateway/2013-06-30/examples-1.json +0 -1381
- data/apis/storagegateway/2013-06-30/paginators-1.json +0 -52
- data/apis/streams.dynamodb/2012-08-10/api-2.json +0 -406
- data/apis/streams.dynamodb/2012-08-10/examples-1.json +0 -212
- data/apis/streams.dynamodb/2012-08-10/paginators-1.json +0 -4
- data/apis/sts/2011-06-15/api-2.json +0 -522
- data/apis/sts/2011-06-15/examples-1.json +0 -206
- data/apis/sts/2011-06-15/paginators-1.json +0 -4
- data/apis/support/2013-04-15/api-2.json +0 -772
- data/apis/support/2013-04-15/examples-1.json +0 -5
- data/apis/support/2013-04-15/paginators-1.json +0 -25
- data/apis/swf/2012-01-25/api-2.json +0 -2839
- data/apis/swf/2012-01-25/paginators-1.json +0 -46
- data/apis/waf/2015-08-24/api-2.json +0 -1959
- data/apis/waf/2015-08-24/examples-1.json +0 -1017
- data/apis/waf/2015-08-24/paginators-1.json +0 -4
- data/apis/waf-regional/2016-11-28/api-2.json +0 -2090
- data/apis/waf-regional/2016-11-28/examples-1.json +0 -1017
- data/apis/waf-regional/2016-11-28/paginators-1.json +0 -4
- data/apis/workdocs/2016-05-01/api-2.json +0 -2684
- data/apis/workdocs/2016-05-01/examples-1.json +0 -5
- data/apis/workdocs/2016-05-01/paginators-1.json +0 -25
- data/apis/workspaces/2015-04-08/api-2.json +0 -840
- data/apis/workspaces/2015-04-08/examples-1.json +0 -5
- data/apis/workspaces/2015-04-08/paginators-1.json +0 -20
- data/apis/xray/2016-04-12/api-2.json +0 -492
- data/apis/xray/2016-04-12/examples-1.json +0 -5
- data/apis/xray/2016-04-12/paginators-1.json +0 -4
- data/bin/aws.rb +0 -180
- data/endpoints.json +0 -1935
- data/lib/aws-sdk-core/acm.rb +0 -6
- data/lib/aws-sdk-core/api/builder.rb +0 -106
- data/lib/aws-sdk-core/api/customizations.rb +0 -262
- data/lib/aws-sdk-core/api/docs/builder.rb +0 -223
- data/lib/aws-sdk-core/api/docs/client_type_documenter.rb +0 -118
- data/lib/aws-sdk-core/api/docs/crosslink.rb +0 -43
- data/lib/aws-sdk-core/api/docs/docstring_provider.rb +0 -75
- data/lib/aws-sdk-core/api/docs/operation_documenter.rb +0 -151
- data/lib/aws-sdk-core/api/docs/param_formatter.rb +0 -163
- data/lib/aws-sdk-core/api/docs/request_syntax_example.rb +0 -22
- data/lib/aws-sdk-core/api/docs/response_structure_example.rb +0 -91
- data/lib/aws-sdk-core/api/docs/shared_example.rb +0 -100
- data/lib/aws-sdk-core/api/docs/utils.rb +0 -133
- data/lib/aws-sdk-core/api/shape_map.rb +0 -142
- data/lib/aws-sdk-core/apigateway.rb +0 -6
- data/lib/aws-sdk-core/applicationautoscaling.rb +0 -6
- data/lib/aws-sdk-core/applicationdiscoveryservice.rb +0 -6
- data/lib/aws-sdk-core/appstream.rb +0 -7
- data/lib/aws-sdk-core/athena.rb +0 -6
- data/lib/aws-sdk-core/autoscaling.rb +0 -8
- data/lib/aws-sdk-core/batch.rb +0 -6
- data/lib/aws-sdk-core/budgets.rb +0 -6
- data/lib/aws-sdk-core/checksums.rb +0 -51
- data/lib/aws-sdk-core/client.rb +0 -60
- data/lib/aws-sdk-core/client_waiters.rb +0 -120
- data/lib/aws-sdk-core/clouddirectory.rb +0 -6
- data/lib/aws-sdk-core/cloudformation.rb +0 -8
- data/lib/aws-sdk-core/cloudfront/cookie_signer.rb +0 -44
- data/lib/aws-sdk-core/cloudfront/signer.rb +0 -141
- data/lib/aws-sdk-core/cloudfront/url_signer.rb +0 -48
- data/lib/aws-sdk-core/cloudfront.rb +0 -17
- data/lib/aws-sdk-core/cloudhsm.rb +0 -5
- data/lib/aws-sdk-core/cloudsearch.rb +0 -5
- data/lib/aws-sdk-core/cloudsearchdomain.rb +0 -5
- data/lib/aws-sdk-core/cloudtrail.rb +0 -6
- data/lib/aws-sdk-core/cloudwatch.rb +0 -8
- data/lib/aws-sdk-core/cloudwatchevents.rb +0 -6
- data/lib/aws-sdk-core/cloudwatchlogs.rb +0 -6
- data/lib/aws-sdk-core/codebuild.rb +0 -6
- data/lib/aws-sdk-core/codecommit.rb +0 -6
- data/lib/aws-sdk-core/codedeploy.rb +0 -7
- data/lib/aws-sdk-core/codepipeline.rb +0 -5
- data/lib/aws-sdk-core/codestar.rb +0 -6
- data/lib/aws-sdk-core/cognitoidentity.rb +0 -6
- data/lib/aws-sdk-core/cognitoidentityprovider.rb +0 -6
- data/lib/aws-sdk-core/cognitosync.rb +0 -4
- data/lib/aws-sdk-core/configservice.rb +0 -6
- data/lib/aws-sdk-core/costandusagereportservice.rb +0 -6
- data/lib/aws-sdk-core/databasemigrationservice.rb +0 -6
- data/lib/aws-sdk-core/datapipeline.rb +0 -5
- data/lib/aws-sdk-core/devicefarm.rb +0 -6
- data/lib/aws-sdk-core/directconnect.rb +0 -6
- data/lib/aws-sdk-core/directoryservice.rb +0 -5
- data/lib/aws-sdk-core/dynamodb/attribute_value.rb +0 -110
- data/lib/aws-sdk-core/dynamodb.rb +0 -40
- data/lib/aws-sdk-core/dynamodbstreams.rb +0 -6
- data/lib/aws-sdk-core/ec2.rb +0 -8
- data/lib/aws-sdk-core/ecr.rb +0 -6
- data/lib/aws-sdk-core/ecs.rb +0 -7
- data/lib/aws-sdk-core/efs.rb +0 -5
- data/lib/aws-sdk-core/elasticache.rb +0 -7
- data/lib/aws-sdk-core/elasticbeanstalk.rb +0 -6
- data/lib/aws-sdk-core/elasticloadbalancing.rb +0 -7
- data/lib/aws-sdk-core/elasticloadbalancingv2.rb +0 -7
- data/lib/aws-sdk-core/elasticsearchservice.rb +0 -6
- data/lib/aws-sdk-core/elastictranscoder.rb +0 -7
- data/lib/aws-sdk-core/empty_structure.rb +0 -3
- data/lib/aws-sdk-core/emr.rb +0 -7
- data/lib/aws-sdk-core/endpoint_provider.rb +0 -104
- data/lib/aws-sdk-core/firehose.rb +0 -5
- data/lib/aws-sdk-core/gamelift.rb +0 -6
- data/lib/aws-sdk-core/glacier.rb +0 -8
- data/lib/aws-sdk-core/greengrass.rb +0 -4
- data/lib/aws-sdk-core/health.rb +0 -6
- data/lib/aws-sdk-core/iam.rb +0 -8
- data/lib/aws-sdk-core/importexport.rb +0 -5
- data/lib/aws-sdk-core/inspector.rb +0 -6
- data/lib/aws-sdk-core/iot.rb +0 -6
- data/lib/aws-sdk-core/iotdataplane.rb +0 -4
- data/lib/aws-sdk-core/kinesis.rb +0 -7
- data/lib/aws-sdk-core/kinesisanalytics.rb +0 -6
- data/lib/aws-sdk-core/kms.rb +0 -6
- data/lib/aws-sdk-core/lambda.rb +0 -6
- data/lib/aws-sdk-core/lambdapreview.rb +0 -5
- data/lib/aws-sdk-core/lex.rb +0 -6
- data/lib/aws-sdk-core/lexmodelbuildingservice.rb +0 -6
- data/lib/aws-sdk-core/lightsail.rb +0 -6
- data/lib/aws-sdk-core/machinelearning.rb +0 -7
- data/lib/aws-sdk-core/marketplacecommerceanalytics.rb +0 -6
- data/lib/aws-sdk-core/marketplaceentitlementservice.rb +0 -6
- data/lib/aws-sdk-core/marketplacemetering.rb +0 -5
- data/lib/aws-sdk-core/mturk.rb +0 -6
- data/lib/aws-sdk-core/opsworks.rb +0 -8
- data/lib/aws-sdk-core/opsworkscm.rb +0 -6
- data/lib/aws-sdk-core/organizations.rb +0 -6
- data/lib/aws-sdk-core/partitions/partition.rb +0 -95
- data/lib/aws-sdk-core/partitions/partition_list.rb +0 -60
- data/lib/aws-sdk-core/partitions/region.rb +0 -66
- data/lib/aws-sdk-core/partitions/service.rb +0 -74
- data/lib/aws-sdk-core/partitions.rb +0 -174
- data/lib/aws-sdk-core/pinpoint.rb +0 -5
- data/lib/aws-sdk-core/plugins/api_gateway_header.rb +0 -19
- data/lib/aws-sdk-core/plugins/csd_conditional_signing.rb +0 -30
- data/lib/aws-sdk-core/plugins/csd_switch_to_post.rb +0 -36
- data/lib/aws-sdk-core/plugins/dynamodb_crc32_validation.rb +0 -52
- data/lib/aws-sdk-core/plugins/dynamodb_extended_retries.rb +0 -22
- data/lib/aws-sdk-core/plugins/dynamodb_simple_attributes.rb +0 -208
- data/lib/aws-sdk-core/plugins/ec2_copy_encrypted_snapshot.rb +0 -56
- data/lib/aws-sdk-core/plugins/ec2_region_validation.rb +0 -17
- data/lib/aws-sdk-core/plugins/glacier_account_id.rb +0 -19
- data/lib/aws-sdk-core/plugins/glacier_api_version.rb +0 -19
- data/lib/aws-sdk-core/plugins/glacier_checksums.rb +0 -87
- data/lib/aws-sdk-core/plugins/machine_learning_predict_endpoint.rb +0 -20
- data/lib/aws-sdk-core/plugins/rds_cross_region_copying.rb +0 -69
- data/lib/aws-sdk-core/plugins/request_signer.rb +0 -150
- data/lib/aws-sdk-core/plugins/route_53_id_fix.rb +0 -55
- data/lib/aws-sdk-core/plugins/s3_accelerate.rb +0 -90
- data/lib/aws-sdk-core/plugins/s3_bucket_dns.rb +0 -86
- data/lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb +0 -21
- data/lib/aws-sdk-core/plugins/s3_dualstack.rb +0 -67
- data/lib/aws-sdk-core/plugins/s3_expect_100_continue.rb +0 -27
- data/lib/aws-sdk-core/plugins/s3_get_bucket_location_fix.rb +0 -21
- data/lib/aws-sdk-core/plugins/s3_host_id.rb +0 -26
- data/lib/aws-sdk-core/plugins/s3_http_200_errors.rb +0 -45
- data/lib/aws-sdk-core/plugins/s3_location_constraint.rb +0 -31
- data/lib/aws-sdk-core/plugins/s3_md5s.rb +0 -50
- data/lib/aws-sdk-core/plugins/s3_redirects.rb +0 -37
- data/lib/aws-sdk-core/plugins/s3_request_signer.rb +0 -166
- data/lib/aws-sdk-core/plugins/s3_sse_cpk.rb +0 -64
- data/lib/aws-sdk-core/plugins/s3_url_encoded_keys.rb +0 -93
- data/lib/aws-sdk-core/plugins/sqs_md5s.rb +0 -162
- data/lib/aws-sdk-core/plugins/sqs_queue_urls.rb +0 -34
- data/lib/aws-sdk-core/plugins/swf_read_timeouts.rb +0 -23
- data/lib/aws-sdk-core/polly/presigner.rb +0 -70
- data/lib/aws-sdk-core/polly.rb +0 -14
- data/lib/aws-sdk-core/rds/auth_token_generator.rb +0 -63
- data/lib/aws-sdk-core/rds.rb +0 -16
- data/lib/aws-sdk-core/redshift.rb +0 -7
- data/lib/aws-sdk-core/rekognition.rb +0 -6
- data/lib/aws-sdk-core/resourcegroupstaggingapi.rb +0 -6
- data/lib/aws-sdk-core/route53.rb +0 -7
- data/lib/aws-sdk-core/route53domains.rb +0 -6
- data/lib/aws-sdk-core/s3/bucket_region_cache.rb +0 -75
- data/lib/aws-sdk-core/s3/presigner.rb +0 -116
- data/lib/aws-sdk-core/s3.rb +0 -26
- data/lib/aws-sdk-core/service.rb +0 -4
- data/lib/aws-sdk-core/servicecatalog.rb +0 -6
- data/lib/aws-sdk-core/ses.rb +0 -7
- data/lib/aws-sdk-core/shield.rb +0 -5
- data/lib/aws-sdk-core/signers/base.rb +0 -31
- data/lib/aws-sdk-core/signers/s3.rb +0 -185
- data/lib/aws-sdk-core/signers/v2.rb +0 -51
- data/lib/aws-sdk-core/signers/v3.rb +0 -34
- data/lib/aws-sdk-core/signers/v4.rb +0 -234
- data/lib/aws-sdk-core/simpledb.rb +0 -5
- data/lib/aws-sdk-core/sms.rb +0 -6
- data/lib/aws-sdk-core/snowball.rb +0 -6
- data/lib/aws-sdk-core/sns.rb +0 -7
- data/lib/aws-sdk-core/sqs.rb +0 -7
- data/lib/aws-sdk-core/ssm.rb +0 -6
- data/lib/aws-sdk-core/states.rb +0 -6
- data/lib/aws-sdk-core/storagegateway.rb +0 -6
- data/lib/aws-sdk-core/sts.rb +0 -6
- data/lib/aws-sdk-core/support.rb +0 -6
- data/lib/aws-sdk-core/swf.rb +0 -5
- data/lib/aws-sdk-core/tree_hash.rb +0 -69
- data/lib/aws-sdk-core/waf.rb +0 -6
- data/lib/aws-sdk-core/wafregional.rb +0 -6
- data/lib/aws-sdk-core/waiters/null_provider.rb +0 -12
- data/lib/aws-sdk-core/waiters/provider.rb +0 -35
- data/lib/aws-sdk-core/workdocs.rb +0 -6
- data/lib/aws-sdk-core/workspaces.rb +0 -6
- data/lib/aws-sdk-core/xray.rb +0 -6
- data/lib/seahorse/client/plugins/restful_bindings.rb +0 -125
- data/service-models.json +0 -405
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f55f302102507d66ac7cb1672d67203bbe137a5
|
4
|
+
data.tar.gz: b46426f548e4dc984795742b6dd372dd272ab835
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a590861591be9e0d1bc4dfbe189343efff48587f0c6c92b6d47892e30eafbc96edb9153fc76341a4dc4a272c7773d3f0f8c4fbd0f3c6301419d82d26acd23bf5
|
7
|
+
data.tar.gz: 8f497d018657e2d7ac594fcebdf7fc773277a97ce2541a254e36b465c477a9a4694575b49f497026f7fbb2077ac7917c4eb72c49bbea42e9fd64e7b5f1902f44
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.1.0
|
@@ -16,7 +16,6 @@ module Aws
|
|
16
16
|
@config.stub_responses.each do |operation_name, stubs|
|
17
17
|
apply_stubs(operation_name, Array === stubs ? stubs : [stubs])
|
18
18
|
end
|
19
|
-
@config.stub_responses = true
|
20
19
|
end
|
21
20
|
end
|
22
21
|
|
@@ -186,7 +185,7 @@ module Aws
|
|
186
185
|
# @return [Structure] Returns a stubbed response data structure. The
|
187
186
|
# actual class returned will depend on the given `operation_name`.
|
188
187
|
def stub_data(operation_name, data = {})
|
189
|
-
Stubbing::StubData.new(operation(operation_name)).stub(data)
|
188
|
+
Stubbing::StubData.new(config.api.operation(operation_name)).stub(data)
|
190
189
|
end
|
191
190
|
|
192
191
|
# @api private
|
@@ -62,7 +62,8 @@ module Aws
|
|
62
62
|
if options[:config]
|
63
63
|
SharedCredentials.new(profile_name: options[:config].profile)
|
64
64
|
else
|
65
|
-
SharedCredentials.new(
|
65
|
+
SharedCredentials.new(
|
66
|
+
profile_name: ENV['AWS_PROFILE'].nil? ? 'default' : ENV['AWS_PROFILE'])
|
66
67
|
end
|
67
68
|
rescue Errors::NoSuchProfileError
|
68
69
|
nil
|
data/lib/aws-sdk-core/errors.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
require 'thread'
|
2
2
|
|
3
3
|
module Aws
|
4
|
-
|
5
|
-
# Each Service module has its own Errors module, e.g. {S3::Errors}.
|
6
4
|
module Errors
|
7
5
|
|
6
|
+
class NonSupportedRubyVersionError < RuntimeError; end
|
7
|
+
|
8
8
|
# The base class for all errors returned by an Amazon Web Service.
|
9
9
|
# All ~400 level client errors and ~500 level server errors are raised
|
10
10
|
# as service errors. This indicates it was an error returned from the
|
@@ -38,20 +38,31 @@ module Aws
|
|
38
38
|
# This error indicates a checksum failed.
|
39
39
|
class ChecksumError < RuntimeError; end
|
40
40
|
|
41
|
-
# Raised when a
|
41
|
+
# Raised when a client is constructed and the specified shared
|
42
42
|
# credentials profile does not exist.
|
43
43
|
class NoSuchProfileError < RuntimeError; end
|
44
44
|
|
45
|
-
# Raised when a
|
45
|
+
# Raised when a client is constructed, where Assume Role credentials are
|
46
46
|
# expected, and there is no source profile specified.
|
47
47
|
class NoSourceProfileError < RuntimeError; end
|
48
48
|
|
49
|
-
# Raised when a
|
49
|
+
# Raised when a client is constructed and credentials are not
|
50
50
|
# set, or the set credentials are empty.
|
51
|
-
class MissingCredentialsError < RuntimeError
|
51
|
+
class MissingCredentialsError < RuntimeError
|
52
|
+
def initialize(*args)
|
53
|
+
msg = 'unable to sign request without credentials set'
|
54
|
+
super(msg)
|
55
|
+
end
|
56
|
+
end
|
52
57
|
|
53
|
-
# Raised when a
|
54
|
-
class MissingRegionError < ArgumentError
|
58
|
+
# Raised when a client is constructed and region is not specified.
|
59
|
+
class MissingRegionError < ArgumentError
|
60
|
+
def initialize(*args)
|
61
|
+
msg = "missing region; use :region option or "
|
62
|
+
msg << "export region name to ENV['AWS_REGION']"
|
63
|
+
super(msg)
|
64
|
+
end
|
65
|
+
end
|
55
66
|
|
56
67
|
# Raised when attempting to connect to an endpoint and a `SocketError`
|
57
68
|
# is received from the HTTP client. This error is typically the result
|
@@ -38,10 +38,11 @@ module Aws
|
|
38
38
|
def parse_body(context)
|
39
39
|
if simple_json?(context)
|
40
40
|
Json.load(context.http_response.body_contents)
|
41
|
-
|
42
|
-
rules = context.operation.output
|
41
|
+
elsif rules = context.operation.output
|
43
42
|
json = context.http_response.body_contents
|
44
43
|
Parser.new(rules).parse(json == '' ? '{}' : json)
|
44
|
+
else
|
45
|
+
EmptyStructure.new
|
45
46
|
end
|
46
47
|
end
|
47
48
|
|
@@ -21,7 +21,7 @@ module Aws
|
|
21
21
|
|
22
22
|
def structure(ref, values, target = nil)
|
23
23
|
shape = ref.shape
|
24
|
-
target = ref
|
24
|
+
target = ref.shape.struct_class.new if target.nil?
|
25
25
|
values.each do |key, value|
|
26
26
|
member_name, member_ref = shape.member_by_location_name(key)
|
27
27
|
if member_ref
|
data/lib/aws-sdk-core/json.rb
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
require 'json'
|
2
|
+
require_relative 'json/builder'
|
3
|
+
require_relative 'json/error_handler'
|
4
|
+
require_relative 'json/handler'
|
5
|
+
require_relative 'json/parser'
|
2
6
|
|
3
7
|
module Aws
|
4
8
|
# @api private
|
5
9
|
module Json
|
6
10
|
|
7
|
-
autoload :Builder, 'aws-sdk-core/json/builder'
|
8
|
-
autoload :ErrorHandler, 'aws-sdk-core/json/error_handler'
|
9
|
-
autoload :Handler, 'aws-sdk-core/json/handler'
|
10
|
-
autoload :Parser, 'aws-sdk-core/json/parser'
|
11
|
-
|
12
11
|
class ParseError < StandardError
|
13
12
|
|
14
13
|
def initialize(error)
|
@@ -9,9 +9,10 @@ module Aws
|
|
9
9
|
# logs. This is updated automatically as part of each release. See the
|
10
10
|
# `tasks/sensitive.rake` for more information.
|
11
11
|
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
SENSITIVE = [:access_token, :admin_contact, :artifact_credentials, :auth_code, :base_32_string_seed, :client_id, :client_secret, :copy_source_sse_customer_key, :id_token, :local_console_password, :new_password, :old_password, :password, :plaintext, :previous_password, :private_key, :proposed_password, :public_key, :qr_code_png, :refresh_token, :registrant_contact, :secret_access_key, :secret_hash, :shared_secret, :sse_customer_key, :ssekms_key_id, :tech_contact, :trust_password, :upload_credentials, :username, :value]
|
12
|
+
# @api private
|
13
|
+
# begin
|
14
|
+
SENSITIVE = [:access_token, :account_name, :account_password, :admin_contact, :artifact_credentials, :auth_code, :authentication_token, :base_32_string_seed, :client_id, :client_secret, :copy_source_sse_customer_key, :credentials, :db_password, :description, :email, :email_address, :id, :id_token, :input, :local_console_password, :master_account_email, :message, :name, :new_password, :notes, :old_password, :owner_information, :parameters, :password, :payload, :plaintext, :previous_password, :private_key, :proposed_password, :public_key, :qr_code_png, :query, :refresh_token, :registrant_contact, :secret_access_key, :secret_hash, :service_password, :shared_secret, :sse_customer_key, :ssekms_key_id, :status_message, :task_parameters, :tech_contact, :temporary_password, :text, :trust_password, :upload_credentials, :upload_url, :username, :value, :values, :variables, :zip_file]
|
15
|
+
# end
|
15
16
|
|
16
17
|
def initialize(options = {})
|
17
18
|
@filters = Set.new(SENSITIVE + Array(options[:filter]))
|
@@ -120,6 +120,7 @@ module Aws
|
|
120
120
|
# to call on a pageable response, as this would trigger n api calls
|
121
121
|
# simply to count the number of response pages, when likely what is
|
122
122
|
# wanted is to access count on the data. Same for #to_h.
|
123
|
+
# @api private
|
123
124
|
module UnsafeEnumerableMethods
|
124
125
|
|
125
126
|
def count
|
data/lib/aws-sdk-core/pager.rb
CHANGED
@@ -1,14 +1,16 @@
|
|
1
|
+
require 'jmespath'
|
2
|
+
|
1
3
|
module Aws
|
2
4
|
# @api private
|
3
5
|
class Pager
|
4
6
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
# @option options [required, Hash<JMESPath,JMESPath>] :tokens
|
8
|
+
# @option options [String<JMESPath>] :limit_key
|
9
|
+
# @option options [String<JMESPath>] :more_results
|
10
|
+
def initialize(options)
|
11
|
+
@tokens = options.fetch(:tokens)
|
12
|
+
@limit_key = options.fetch(:limit_key, nil)
|
13
|
+
@more_results = options.fetch(:more_results, nil)
|
12
14
|
end
|
13
15
|
|
14
16
|
# @return [Symbol, nil]
|
@@ -37,32 +39,35 @@ module Aws
|
|
37
39
|
if @more_results
|
38
40
|
JMESPath.search(@more_results, response.data)
|
39
41
|
else
|
40
|
-
|
41
|
-
|
42
|
-
!(
|
42
|
+
next_t = next_tokens(response)
|
43
|
+
prev_t = prev_tokens(response)
|
44
|
+
!(next_t.empty? || next_t == prev_t)
|
43
45
|
end
|
44
46
|
end
|
45
47
|
|
46
48
|
private
|
47
49
|
|
48
|
-
def map_tokens(rules)
|
49
|
-
input = Array(rules['input_token'])
|
50
|
-
output = Array(rules['output_token'])
|
51
|
-
@tokens = {}
|
52
|
-
input.each.with_index do |key, n|
|
53
|
-
@tokens[underscore(output[n])] = underscore(key)
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
def underscore(str)
|
58
|
-
str.
|
59
|
-
gsub(' or ', '||').
|
60
|
-
gsub(/\w+/) { |part| Seahorse::Util.underscore(part) }
|
61
|
-
end
|
62
|
-
|
63
50
|
def empty_value?(value)
|
64
51
|
value.nil? || value == '' || value == [] || value == {}
|
65
52
|
end
|
66
53
|
|
54
|
+
class NullPager
|
55
|
+
|
56
|
+
# @return [nil]
|
57
|
+
attr_reader :limit_key
|
58
|
+
|
59
|
+
def next_tokens
|
60
|
+
{}
|
61
|
+
end
|
62
|
+
|
63
|
+
def prev_tokens
|
64
|
+
{}
|
65
|
+
end
|
66
|
+
|
67
|
+
def truncated?(response)
|
68
|
+
false
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
67
72
|
end
|
68
73
|
end
|
@@ -40,7 +40,7 @@ module Aws
|
|
40
40
|
|
41
41
|
def structure(ref, values)
|
42
42
|
values = c(ref, values)
|
43
|
-
if Struct === values || Hash === values
|
43
|
+
if ::Struct === values || Hash === values
|
44
44
|
values.each_pair do |k, v|
|
45
45
|
unless v.nil?
|
46
46
|
if ref.shape.member?(k)
|
@@ -165,10 +165,10 @@ module Aws
|
|
165
165
|
end
|
166
166
|
|
167
167
|
add(StructureShape, Hash) { |h| h.dup }
|
168
|
-
add(StructureShape, Struct)
|
168
|
+
add(StructureShape, ::Struct)
|
169
169
|
|
170
170
|
add(MapShape, Hash) { |h| h.dup }
|
171
|
-
add(MapShape, Struct) do |s|
|
171
|
+
add(MapShape, ::Struct) do |s|
|
172
172
|
s.members.each.with_object({}) {|k,h| h[k] = s[k] }
|
173
173
|
end
|
174
174
|
|
@@ -16,7 +16,11 @@ module Aws
|
|
16
16
|
# @param [Seahorse::Model::Shapes::ShapeRef] rules
|
17
17
|
# @option options [Boolean] :validate_required (true)
|
18
18
|
def initialize(rules, options = {})
|
19
|
-
@rules = rules
|
19
|
+
@rules = rules || begin
|
20
|
+
shape = StructureShape.new
|
21
|
+
shape.struct_class = EmptyStructure
|
22
|
+
ShapeRef.new(shape: shape)
|
23
|
+
end
|
20
24
|
@validate_required = options[:validate_required] != false
|
21
25
|
end
|
22
26
|
|
@@ -74,8 +78,10 @@ module Aws
|
|
74
78
|
end
|
75
79
|
|
76
80
|
def map(ref, values, errors, context)
|
77
|
-
|
78
|
-
|
81
|
+
unless Hash === values
|
82
|
+
errors << expected_got(context, "a hash", values)
|
83
|
+
return
|
84
|
+
end
|
79
85
|
|
80
86
|
key_ref = ref.shape.key
|
81
87
|
value_ref = ref.shape.value
|
@@ -123,7 +129,7 @@ module Aws
|
|
123
129
|
def correct_type?(ref, value, errors, context)
|
124
130
|
case value
|
125
131
|
when Hash then true
|
126
|
-
when ref
|
132
|
+
when ref.shape.struct_class then true
|
127
133
|
else
|
128
134
|
errors << expected_got(context, "a hash", value)
|
129
135
|
false
|
@@ -0,0 +1,62 @@
|
|
1
|
+
module Aws
|
2
|
+
# @api private
|
3
|
+
module Plugins
|
4
|
+
# @api private
|
5
|
+
class CredentialsConfiguration < Seahorse::Client::Plugin
|
6
|
+
|
7
|
+
option(:access_key_id, doc_type: String, docstring: '')
|
8
|
+
|
9
|
+
option(:secret_access_key, doc_type: String, docstring: '')
|
10
|
+
|
11
|
+
option(:session_token, doc_type: String, docstring: '')
|
12
|
+
|
13
|
+
option(:profile,
|
14
|
+
doc_default: 'default',
|
15
|
+
doc_type: String,
|
16
|
+
docstring: <<-DOCS)
|
17
|
+
Used when loading credentials from the shared credentials file
|
18
|
+
at HOME/.aws/credentials. When not specified, 'default' is used.
|
19
|
+
DOCS
|
20
|
+
|
21
|
+
option(:credentials,
|
22
|
+
required: true,
|
23
|
+
doc_type: 'Aws::CredentialProvider',
|
24
|
+
docstring: <<-DOCS
|
25
|
+
Your AWS credentials. This can be an instance of any one of the
|
26
|
+
following classes:
|
27
|
+
|
28
|
+
* `Aws::Credentials` - Used for configuring static, non-refreshing
|
29
|
+
credentials.
|
30
|
+
|
31
|
+
* `Aws::InstanceProfileCredentials` - Used for loading credentials
|
32
|
+
from an EC2 IMDS on an EC2 instance.
|
33
|
+
|
34
|
+
* `Aws::SharedCredentials` - Used for loading credentials from a
|
35
|
+
shared file, such as `~/.aws/config`.
|
36
|
+
|
37
|
+
* `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
38
|
+
|
39
|
+
When `:credentials` are not configured directly, the following
|
40
|
+
locations will be searched for credentials:
|
41
|
+
|
42
|
+
* `Aws.config[:credentials]`
|
43
|
+
* The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
|
44
|
+
* ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
45
|
+
* `~/.aws/credentials`
|
46
|
+
* `~/.aws/config`
|
47
|
+
* EC2 IMDS instance profile - When used by default, the timeouts are
|
48
|
+
very aggressive. Construct and pass an instance of
|
49
|
+
`Aws::InstanceProfileCredentails` to enable retries and extended
|
50
|
+
timeouts.
|
51
|
+
DOCS
|
52
|
+
) do |config|
|
53
|
+
CredentialProviderChain.new(config).resolve
|
54
|
+
end
|
55
|
+
|
56
|
+
option(:instance_profile_credentials_retries, 0)
|
57
|
+
|
58
|
+
option(:instance_profile_credentials_timeout, 1)
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -31,17 +31,17 @@ module Aws
|
|
31
31
|
# Aws::EC2.new
|
32
32
|
# #=> raises ArgumentError: invalid configuration option `:force_path_style'
|
33
33
|
#
|
34
|
-
# To avoid this issue, you can nest service specific options
|
34
|
+
# To avoid this issue, you can nest service specific options
|
35
35
|
#
|
36
36
|
# Aws.config[:s3] = { force_path_style: true }
|
37
37
|
#
|
38
38
|
# Aws::EC2.new # no error this time
|
39
39
|
# Aws::S3.new.config.force_path_style #=> true
|
40
40
|
#
|
41
|
+
# @api private
|
41
42
|
class GlobalConfiguration < Seahorse::Client::Plugin
|
42
43
|
|
43
|
-
|
44
|
-
IDENTIFIERS = Set.new(SERVICE_MODULE_NAMES.map(&:downcase).map(&:to_sym))
|
44
|
+
@identifiers = Set.new()
|
45
45
|
|
46
46
|
# @api private
|
47
47
|
def before_initialize(client_class, options)
|
@@ -62,18 +62,27 @@ module Aws
|
|
62
62
|
|
63
63
|
def apply_aws_defaults(client_class, options)
|
64
64
|
Aws.config.each do |option_name, default|
|
65
|
-
next if
|
65
|
+
next if self.class.identifiers.include?(option_name)
|
66
66
|
next if options.key?(option_name)
|
67
67
|
options[option_name] = default
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
|
72
|
-
end
|
71
|
+
class << self
|
73
72
|
|
74
|
-
|
75
|
-
|
76
|
-
|
73
|
+
# Registers an additional service identifier.
|
74
|
+
# @api private
|
75
|
+
def add_identifier(identifier)
|
76
|
+
@identifiers << identifier
|
77
|
+
end
|
77
78
|
|
78
|
-
|
79
|
+
# @return [Set<String>]
|
80
|
+
# @api private
|
81
|
+
def identifiers
|
82
|
+
@identifiers
|
83
|
+
end
|
79
84
|
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -6,13 +6,12 @@ module Aws
|
|
6
6
|
# Provides support for auto filling operation parameters
|
7
7
|
# that enabled with `idempotencyToken` trait with random UUID v4
|
8
8
|
# when no value is provided
|
9
|
+
# @api private
|
9
10
|
class IdempotencyToken < Seahorse::Client::Plugin
|
10
11
|
|
11
12
|
# @api private
|
12
13
|
class Handler < Seahorse::Client::Handler
|
13
14
|
|
14
|
-
# @param [RequestContext] context
|
15
|
-
# @param [Response]
|
16
15
|
def call(context)
|
17
16
|
auto_fill(context.params, context.operation.input)
|
18
17
|
@handler.call(context)
|
@@ -1,28 +1,28 @@
|
|
1
1
|
module Aws
|
2
2
|
module Plugins
|
3
|
-
|
4
|
-
# Enables logging for all requests. This plugin allows you to configure
|
5
|
-
# your logging device, the log format and the level to log messages at.
|
6
|
-
#
|
7
3
|
# @see Log::Formatter
|
8
|
-
#
|
9
|
-
# @seahorse.client.option [Logger] :logger (nil) The Logger instance
|
10
|
-
# to send log messages to. If this option is not set, logging
|
11
|
-
# will be disabled.
|
12
|
-
#
|
13
|
-
# @seahorse.client.option [Symbol] :log_level (:info) The log level
|
14
|
-
# to send messages to the logger at.
|
15
|
-
#
|
16
|
-
# @seahorse.client.option [Logging::LogFormatter] :log_formatter The log
|
17
|
-
# formatter. Defaults to {Seahorse::Client::Logging::Formatter.default}.
|
18
|
-
#
|
4
|
+
# @api private
|
19
5
|
class Logging < Seahorse::Client::Plugin
|
20
6
|
|
21
|
-
option(:logger
|
7
|
+
option(:logger,
|
8
|
+
doc_type: 'Logger',
|
9
|
+
docstring: <<-DOCS
|
10
|
+
The Logger instance to send log messages to. If this option
|
11
|
+
is not set, logging will be disabled.
|
12
|
+
DOCS
|
13
|
+
)
|
22
14
|
|
23
|
-
option(:log_level,
|
15
|
+
option(:log_level,
|
16
|
+
default: :info,
|
17
|
+
doc_type: Symbol,
|
18
|
+
docstring: 'The log level to send messages to the `:logger` at.'
|
19
|
+
)
|
24
20
|
|
25
|
-
option(:log_formatter
|
21
|
+
option(:log_formatter,
|
22
|
+
doc_type: 'Aws::Log::Formatter',
|
23
|
+
doc_default: literal('Aws::Log::Formatter.default'),
|
24
|
+
docstring: 'The log formatter.'
|
25
|
+
) do |config|
|
26
26
|
Log::Formatter.default if config.logger
|
27
27
|
end
|
28
28
|
|
@@ -1,12 +1,16 @@
|
|
1
1
|
module Aws
|
2
2
|
module Plugins
|
3
|
-
|
4
|
-
# @seahorse.client.option [Boolean] :convert_params (true)
|
5
|
-
# When `true`, an attempt is made to coerce request parameters
|
6
|
-
# into the required types.
|
3
|
+
# @api private
|
7
4
|
class ParamConverter < Seahorse::Client::Plugin
|
8
5
|
|
9
|
-
option(:convert_params,
|
6
|
+
option(:convert_params,
|
7
|
+
default: true,
|
8
|
+
doc_type: 'Boolean',
|
9
|
+
docstring: <<-DOCS
|
10
|
+
When `true`, an attempt is made to coerce request parameters into
|
11
|
+
the required types.
|
12
|
+
DOCS
|
13
|
+
)
|
10
14
|
|
11
15
|
def add_handlers(handlers, config)
|
12
16
|
handlers.add(Handler, step: :initialize) if config.convert_params
|
@@ -1,12 +1,15 @@
|
|
1
1
|
module Aws
|
2
2
|
module Plugins
|
3
|
-
|
4
|
-
# @seahorse.client.option [Boolean] :validate_params (true)
|
5
|
-
# When `true`, request parameters are validated before
|
6
|
-
# sending the request.
|
3
|
+
# @api private
|
7
4
|
class ParamValidator < Seahorse::Client::Plugin
|
8
5
|
|
9
|
-
option(:validate_params,
|
6
|
+
option(:validate_params,
|
7
|
+
default: true,
|
8
|
+
doc_type: 'Boolean',
|
9
|
+
docstring: <<-DOCS)
|
10
|
+
When `true`, request parameters are validated before
|
11
|
+
sending the request.
|
12
|
+
DOCS
|
10
13
|
|
11
14
|
def add_handlers(handlers, config)
|
12
15
|
if config.validate_params
|
@@ -1,20 +1,21 @@
|
|
1
1
|
module Aws
|
2
2
|
module Plugins
|
3
3
|
module Protocols
|
4
|
-
|
5
|
-
# @seahorse.client.option [Boolean] :simple_json (false)
|
6
|
-
# Disables request parameter conversion, validation, and formatting.
|
7
|
-
# Also disable response data type conversions. This option is useful
|
8
|
-
# when you want to ensure the highest level of performance by
|
9
|
-
# avoiding overhead of walking request parameters and response data
|
10
|
-
# structures.
|
11
|
-
#
|
12
|
-
# When `:simple_json` is enabled, the request parameters hash must
|
13
|
-
# be formatted exactly as the DynamoDB API expects.
|
14
|
-
#
|
15
4
|
class JsonRpc < Seahorse::Client::Plugin
|
16
5
|
|
17
|
-
option(:simple_json,
|
6
|
+
option(:simple_json,
|
7
|
+
default: false,
|
8
|
+
doc_type: 'Boolean',
|
9
|
+
docstring: <<-DOCS)
|
10
|
+
Disables request parameter conversion, validation, and formatting.
|
11
|
+
Also disable response data type conversions. This option is useful
|
12
|
+
when you want to ensure the highest level of performance by
|
13
|
+
avoiding overhead of walking request parameters and response data
|
14
|
+
structures.
|
15
|
+
|
16
|
+
When `:simple_json` is enabled, the request parameters hash must
|
17
|
+
be formatted exactly as the DynamoDB API expects.
|
18
|
+
DOCS
|
18
19
|
|
19
20
|
option(:validate_params) { |config| !config.simple_json }
|
20
21
|
|
@@ -1,14 +1,6 @@
|
|
1
1
|
module Aws
|
2
2
|
module Plugins
|
3
|
-
|
4
|
-
# @seahorse.client.option [required, String] :region
|
5
|
-
# The AWS region to connect to. The region is used to construct
|
6
|
-
# the client endpoint. Defaults to `ENV['AWS_REGION']`.
|
7
|
-
# Also checks `AMAZON_REGION` and `AWS_DEFAULT_REGION`.
|
8
|
-
#
|
9
|
-
# @seahorse.client.option [String] :endpoint A default endpoint is
|
10
|
-
# constructed from the `:region`.
|
11
|
-
#
|
3
|
+
# @api private
|
12
4
|
class RegionalEndpoint < Seahorse::Client::Plugin
|
13
5
|
|
14
6
|
# raised when region is not configured
|
@@ -16,22 +8,38 @@ module Aws
|
|
16
8
|
|
17
9
|
option(:profile)
|
18
10
|
|
19
|
-
option(:region
|
11
|
+
option(:region,
|
12
|
+
required: true,
|
13
|
+
doc_type: String,
|
14
|
+
docstring: <<-DOCS) do |cfg|
|
15
|
+
The AWS region to connect to. The configured `:region` is
|
16
|
+
used to determine the service `:endpoint`. When not passed,
|
17
|
+
a default `:region` is search for in the following locations:
|
18
|
+
|
19
|
+
* `Aws.config[:region]`
|
20
|
+
* `ENV['AWS_REGION']`
|
21
|
+
* `ENV['AMAZON_REGION']`
|
22
|
+
* `ENV['AWS_DEFAULT_REGION']`
|
23
|
+
* `~/.aws/credentials`
|
24
|
+
* `~/.aws/config`
|
25
|
+
DOCS
|
20
26
|
resolve_region(cfg)
|
21
27
|
end
|
22
28
|
|
23
|
-
option(:endpoint) do |cfg|
|
29
|
+
option(:endpoint, doc_type: String, docstring: <<-DOCS) do |cfg|
|
30
|
+
The client endpoint is normally constructed from the `:region`
|
31
|
+
option. You should only configure an `:endpoint` when connecting
|
32
|
+
to test endpoints. This should be avalid HTTP(S) URI.
|
33
|
+
DOCS
|
24
34
|
endpoint_prefix = cfg.api.metadata['endpointPrefix']
|
25
35
|
if cfg.region && endpoint_prefix
|
26
|
-
EndpointProvider.resolve(cfg.region, endpoint_prefix)
|
36
|
+
Aws::Partitions::EndpointProvider.resolve(cfg.region, endpoint_prefix)
|
27
37
|
end
|
28
38
|
end
|
29
39
|
|
30
40
|
def after_initialize(client)
|
31
41
|
if client.config.region.nil? or client.config.region == ''
|
32
|
-
|
33
|
-
msg << "export region name to ENV['AWS_REGION']"
|
34
|
-
raise Errors::MissingRegionError, msg
|
42
|
+
raise Errors::MissingRegionError
|
35
43
|
end
|
36
44
|
end
|
37
45
|
|