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
data/lib/aws-sdk-core.rb
CHANGED
@@ -1,320 +1,76 @@
|
|
1
|
-
require '
|
1
|
+
require 'aws-partitions'
|
2
2
|
require 'seahorse'
|
3
|
+
require 'jmespath'
|
4
|
+
|
5
|
+
require_relative 'aws-sdk-core/deprecations'
|
6
|
+
|
7
|
+
# credential providers
|
8
|
+
|
9
|
+
require_relative 'aws-sdk-core/credential_provider'
|
10
|
+
require_relative 'aws-sdk-core/refreshing_credentials'
|
11
|
+
require_relative 'aws-sdk-core/assume_role_credentials'
|
12
|
+
require_relative 'aws-sdk-core/credentials'
|
13
|
+
require_relative 'aws-sdk-core/credential_provider_chain'
|
14
|
+
require_relative 'aws-sdk-core/ecs_credentials'
|
15
|
+
require_relative 'aws-sdk-core/instance_profile_credentials'
|
16
|
+
require_relative 'aws-sdk-core/shared_credentials'
|
17
|
+
|
18
|
+
# client modules
|
19
|
+
|
20
|
+
require_relative 'aws-sdk-core/client_stubs'
|
21
|
+
require_relative 'aws-sdk-core/eager_loader'
|
22
|
+
require_relative 'aws-sdk-core/errors'
|
23
|
+
require_relative 'aws-sdk-core/pageable_response'
|
24
|
+
require_relative 'aws-sdk-core/pager'
|
25
|
+
require_relative 'aws-sdk-core/param_converter'
|
26
|
+
require_relative 'aws-sdk-core/param_validator'
|
27
|
+
require_relative 'aws-sdk-core/shared_config'
|
3
28
|
require_relative 'aws-sdk-core/structure'
|
4
|
-
require_relative 'aws-sdk-core/
|
29
|
+
require_relative 'aws-sdk-core/type_builder'
|
30
|
+
require_relative 'aws-sdk-core/util'
|
31
|
+
require_relative 'aws-sdk-core/version'
|
5
32
|
|
6
|
-
|
7
|
-
'ARNs' => 'arns',
|
8
|
-
'CNAMEs' => 'cnames',
|
9
|
-
'Ec2' => 'ec2',
|
10
|
-
'ElastiCache' => 'elasticache',
|
11
|
-
'iSCSI' => 'iscsi',
|
12
|
-
'ACLs' => 'acls',
|
13
|
-
'HIT' => 'hit',
|
14
|
-
'URL' => 'url'
|
15
|
-
#'SSEKMS' => 'sse_kms',
|
16
|
-
})
|
33
|
+
# resource classes
|
17
34
|
|
18
|
-
|
35
|
+
require_relative 'aws-sdk-core/resources/collection'
|
19
36
|
|
20
|
-
|
21
|
-
API_DIR = File.join(File.dirname(File.dirname(__FILE__)), 'apis')
|
37
|
+
# logging
|
22
38
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
ACM
|
27
|
-
APIGateway
|
28
|
-
AppStream
|
29
|
-
ApplicationAutoScaling
|
30
|
-
ApplicationDiscoveryService
|
31
|
-
Athena
|
32
|
-
AutoScaling
|
33
|
-
Batch
|
34
|
-
Budgets
|
35
|
-
CloudDirectory
|
36
|
-
CloudFormation
|
37
|
-
CloudFront
|
38
|
-
CloudHSM
|
39
|
-
CloudSearch
|
40
|
-
CloudSearchDomain
|
41
|
-
CloudTrail
|
42
|
-
CloudWatch
|
43
|
-
CloudWatchEvents
|
44
|
-
CloudWatchLogs
|
45
|
-
CodeBuild
|
46
|
-
CodeCommit
|
47
|
-
CodeDeploy
|
48
|
-
CodePipeline
|
49
|
-
CodeStar
|
50
|
-
CognitoIdentity
|
51
|
-
CognitoIdentityProvider
|
52
|
-
CognitoSync
|
53
|
-
ConfigService
|
54
|
-
CostandUsageReportService
|
55
|
-
DataPipeline
|
56
|
-
DatabaseMigrationService
|
57
|
-
DeviceFarm
|
58
|
-
DirectConnect
|
59
|
-
DirectoryService
|
60
|
-
DynamoDB
|
61
|
-
DynamoDBStreams
|
62
|
-
EC2
|
63
|
-
ECR
|
64
|
-
ECS
|
65
|
-
EFS
|
66
|
-
EMR
|
67
|
-
ElastiCache
|
68
|
-
ElasticBeanstalk
|
69
|
-
ElasticLoadBalancing
|
70
|
-
ElasticLoadBalancingV2
|
71
|
-
ElasticTranscoder
|
72
|
-
ElasticsearchService
|
73
|
-
Firehose
|
74
|
-
GameLift
|
75
|
-
Glacier
|
76
|
-
Greengrass
|
77
|
-
Health
|
78
|
-
IAM
|
79
|
-
ImportExport
|
80
|
-
Inspector
|
81
|
-
IoT
|
82
|
-
IoTDataPlane
|
83
|
-
KMS
|
84
|
-
Kinesis
|
85
|
-
KinesisAnalytics
|
86
|
-
Lambda
|
87
|
-
LambdaPreview
|
88
|
-
Lex
|
89
|
-
LexModelBuildingService
|
90
|
-
Lightsail
|
91
|
-
MTurk
|
92
|
-
MachineLearning
|
93
|
-
MarketplaceCommerceAnalytics
|
94
|
-
MarketplaceEntitlementService
|
95
|
-
MarketplaceMetering
|
96
|
-
OpsWorks
|
97
|
-
OpsWorksCM
|
98
|
-
Organizations
|
99
|
-
Pinpoint
|
100
|
-
Polly
|
101
|
-
RDS
|
102
|
-
Redshift
|
103
|
-
Rekognition
|
104
|
-
ResourceGroupsTaggingAPI
|
105
|
-
Route53
|
106
|
-
Route53Domains
|
107
|
-
S3
|
108
|
-
SES
|
109
|
-
SMS
|
110
|
-
SNS
|
111
|
-
SQS
|
112
|
-
SSM
|
113
|
-
STS
|
114
|
-
SWF
|
115
|
-
ServiceCatalog
|
116
|
-
Shield
|
117
|
-
SimpleDB
|
118
|
-
Snowball
|
119
|
-
States
|
120
|
-
StorageGateway
|
121
|
-
Support
|
122
|
-
WAF
|
123
|
-
WAFRegional
|
124
|
-
WorkDocs
|
125
|
-
WorkSpaces
|
126
|
-
XRay
|
127
|
-
)
|
128
|
-
# end services
|
39
|
+
require_relative 'aws-sdk-core/log/formatter'
|
40
|
+
require_relative 'aws-sdk-core/log/param_filter'
|
41
|
+
require_relative 'aws-sdk-core/log/param_formatter'
|
129
42
|
|
130
|
-
|
131
|
-
@services = {}
|
132
|
-
@service_added_callbacks = []
|
43
|
+
# stubbing
|
133
44
|
|
134
|
-
|
135
|
-
|
136
|
-
|
45
|
+
require_relative 'aws-sdk-core/stubbing/empty_stub'
|
46
|
+
require_relative 'aws-sdk-core/stubbing/data_applicator'
|
47
|
+
require_relative 'aws-sdk-core/stubbing/stub_data'
|
48
|
+
require_relative 'aws-sdk-core/stubbing/xml_error'
|
137
49
|
|
138
|
-
|
139
|
-
autoload :Checksums, 'aws-sdk-core/checksums'
|
140
|
-
autoload :Client, 'aws-sdk-core/client'
|
141
|
-
autoload :ClientStubs, 'aws-sdk-core/client_stubs'
|
142
|
-
autoload :ClientWaiters, 'aws-sdk-core/client_waiters'
|
143
|
-
autoload :CredentialProvider, 'aws-sdk-core/credential_provider'
|
144
|
-
autoload :CredentialProviderChain, 'aws-sdk-core/credential_provider_chain'
|
145
|
-
autoload :Credentials, 'aws-sdk-core/credentials'
|
146
|
-
autoload :Deprecations, 'aws-sdk-core/deprecations'
|
147
|
-
autoload :EagerLoader, 'aws-sdk-core/eager_loader'
|
148
|
-
autoload :ECSCredentials, 'aws-sdk-core/ecs_credentials'
|
149
|
-
autoload :EndpointProvider, 'aws-sdk-core/endpoint_provider'
|
150
|
-
autoload :Errors, 'aws-sdk-core/errors'
|
151
|
-
autoload :IniParser, 'aws-sdk-core/ini_parser'
|
152
|
-
autoload :InstanceProfileCredentials, 'aws-sdk-core/instance_profile_credentials'
|
153
|
-
autoload :Json, 'aws-sdk-core/json'
|
154
|
-
autoload :PageableResponse, 'aws-sdk-core/pageable_response'
|
155
|
-
autoload :Pager, 'aws-sdk-core/pager'
|
156
|
-
autoload :ParamConverter, 'aws-sdk-core/param_converter'
|
157
|
-
autoload :ParamValidator, 'aws-sdk-core/param_validator'
|
158
|
-
autoload :Partitions, 'aws-sdk-core/partitions'
|
159
|
-
autoload :RefreshingCredentials, 'aws-sdk-core/refreshing_credentials'
|
160
|
-
autoload :Service, 'aws-sdk-core/service'
|
161
|
-
autoload :SharedConfig, 'aws-sdk-core/shared_config'
|
162
|
-
autoload :SharedCredentials, 'aws-sdk-core/shared_credentials'
|
163
|
-
autoload :TreeHash, 'aws-sdk-core/tree_hash'
|
164
|
-
autoload :TypeBuilder, 'aws-sdk-core/type_builder'
|
165
|
-
autoload :VERSION, 'aws-sdk-core/version'
|
50
|
+
# stubbing protocols
|
166
51
|
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
autoload :Builder, 'aws-sdk-core/api/docs/builder'
|
174
|
-
autoload :ClientTypeDocumenter, 'aws-sdk-core/api/docs/client_type_documenter'
|
175
|
-
autoload :Crosslink, 'aws-sdk-core/api/docs/crosslink'
|
176
|
-
autoload :DocstringProvider, 'aws-sdk-core/api/docs/docstring_provider'
|
177
|
-
autoload :NullDocstringProvider, 'aws-sdk-core/api/docs/docstring_provider'
|
178
|
-
autoload :OperationDocumenter, 'aws-sdk-core/api/docs/operation_documenter'
|
179
|
-
autoload :ParamFormatter, 'aws-sdk-core/api/docs/param_formatter'
|
180
|
-
autoload :RequestSyntaxExample, 'aws-sdk-core/api/docs/request_syntax_example'
|
181
|
-
autoload :ResponseStructureExample, 'aws-sdk-core/api/docs/response_structure_example'
|
182
|
-
autoload :SharedExample, 'aws-sdk-core/api/docs/shared_example'
|
183
|
-
autoload :Utils, 'aws-sdk-core/api/docs/utils'
|
184
|
-
end
|
185
|
-
end
|
52
|
+
require_relative 'aws-sdk-core/stubbing/protocols/ec2'
|
53
|
+
require_relative 'aws-sdk-core/stubbing/protocols/json'
|
54
|
+
require_relative 'aws-sdk-core/stubbing/protocols/query'
|
55
|
+
require_relative 'aws-sdk-core/stubbing/protocols/rest'
|
56
|
+
require_relative 'aws-sdk-core/stubbing/protocols/rest_json'
|
57
|
+
require_relative 'aws-sdk-core/stubbing/protocols/rest_xml'
|
186
58
|
|
187
|
-
|
188
|
-
autoload :Formatter, 'aws-sdk-core/log/formatter'
|
189
|
-
autoload :ParamFilter, 'aws-sdk-core/log/param_filter'
|
190
|
-
autoload :ParamFormatter, 'aws-sdk-core/log/param_formatter'
|
191
|
-
end
|
59
|
+
# protocols
|
192
60
|
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
autoload :CSDSwitchToPost, 'aws-sdk-core/plugins/csd_switch_to_post'
|
197
|
-
autoload :DynamoDBExtendedRetries, 'aws-sdk-core/plugins/dynamodb_extended_retries'
|
198
|
-
autoload :DynamoDBSimpleAttributes, 'aws-sdk-core/plugins/dynamodb_simple_attributes'
|
199
|
-
autoload :DynamoDBCRC32Validation, 'aws-sdk-core/plugins/dynamodb_crc32_validation'
|
200
|
-
autoload :EC2CopyEncryptedSnapshot, 'aws-sdk-core/plugins/ec2_copy_encrypted_snapshot'
|
201
|
-
autoload :EC2RegionValidation, 'aws-sdk-core/plugins/ec2_region_validation'
|
202
|
-
autoload :GlacierAccountId, 'aws-sdk-core/plugins/glacier_account_id'
|
203
|
-
autoload :GlacierApiVersion, 'aws-sdk-core/plugins/glacier_api_version'
|
204
|
-
autoload :GlacierChecksums, 'aws-sdk-core/plugins/glacier_checksums'
|
205
|
-
autoload :GlobalConfiguration, 'aws-sdk-core/plugins/global_configuration'
|
206
|
-
autoload :HelpfulSocketErrors, 'aws-sdk-core/plugins/helpful_socket_errors'
|
207
|
-
autoload :IdempotencyToken, 'aws-sdk-core/plugins/idempotency_token'
|
208
|
-
autoload :JsonvalueConverter, 'aws-sdk-core/plugins/jsonvalue_converter'
|
209
|
-
autoload :Logging, 'aws-sdk-core/plugins/logging'
|
210
|
-
autoload :MachineLearningPredictEndpoint, 'aws-sdk-core/plugins/machine_learning_predict_endpoint'
|
211
|
-
autoload :ParamConverter, 'aws-sdk-core/plugins/param_converter'
|
212
|
-
autoload :ParamValidator, 'aws-sdk-core/plugins/param_validator'
|
213
|
-
autoload :RDSCrossRegionCopying, 'aws-sdk-core/plugins/rds_cross_region_copying'
|
214
|
-
autoload :RegionalEndpoint, 'aws-sdk-core/plugins/regional_endpoint'
|
215
|
-
autoload :ResponsePaging, 'aws-sdk-core/plugins/response_paging'
|
216
|
-
autoload :RequestSigner, 'aws-sdk-core/plugins/request_signer'
|
217
|
-
autoload :RetryErrors, 'aws-sdk-core/plugins/retry_errors'
|
218
|
-
autoload :Route53IdFix, 'aws-sdk-core/plugins/route_53_id_fix'
|
219
|
-
autoload :S3Accelerate, 'aws-sdk-core/plugins/s3_accelerate'
|
220
|
-
autoload :S3BucketDns, 'aws-sdk-core/plugins/s3_bucket_dns'
|
221
|
-
autoload :S3BucketNameRestrictions, 'aws-sdk-core/plugins/s3_bucket_name_restrictions'
|
222
|
-
autoload :S3Dualstack, 'aws-sdk-core/plugins/s3_dualstack'
|
223
|
-
autoload :S3Expect100Continue, 'aws-sdk-core/plugins/s3_expect_100_continue'
|
224
|
-
autoload :S3GetBucketLocationFix, 'aws-sdk-core/plugins/s3_get_bucket_location_fix'
|
225
|
-
autoload :S3Http200Errors, 'aws-sdk-core/plugins/s3_http_200_errors'
|
226
|
-
autoload :S3HostId, 'aws-sdk-core/plugins/s3_host_id'
|
227
|
-
autoload :S3LocationConstraint, 'aws-sdk-core/plugins/s3_location_constraint'
|
228
|
-
autoload :S3Md5s, 'aws-sdk-core/plugins/s3_md5s'
|
229
|
-
autoload :S3Redirects, 'aws-sdk-core/plugins/s3_redirects'
|
230
|
-
autoload :S3RequestSigner, 'aws-sdk-core/plugins/s3_request_signer'
|
231
|
-
autoload :S3SseCpk, 'aws-sdk-core/plugins/s3_sse_cpk'
|
232
|
-
autoload :S3UrlEncodedKeys, 'aws-sdk-core/plugins/s3_url_encoded_keys'
|
233
|
-
autoload :SQSQueueUrls, 'aws-sdk-core/plugins/sqs_queue_urls'
|
234
|
-
autoload :SQSMd5s, 'aws-sdk-core/plugins/sqs_md5s'
|
235
|
-
autoload :StubResponses, 'aws-sdk-core/plugins/stub_responses'
|
236
|
-
autoload :SWFReadTimeouts, 'aws-sdk-core/plugins/swf_read_timeouts'
|
237
|
-
autoload :UserAgent, 'aws-sdk-core/plugins/user_agent'
|
61
|
+
require_relative 'aws-sdk-core/rest'
|
62
|
+
require_relative 'aws-sdk-core/xml'
|
63
|
+
require_relative 'aws-sdk-core/json'
|
238
64
|
|
239
|
-
|
240
|
-
autoload :EC2, 'aws-sdk-core/plugins/protocols/ec2'
|
241
|
-
autoload :JsonRpc, 'aws-sdk-core/plugins/protocols/json_rpc'
|
242
|
-
autoload :Query, 'aws-sdk-core/plugins/protocols/query'
|
243
|
-
autoload :RestJson, 'aws-sdk-core/plugins/protocols/rest_json'
|
244
|
-
autoload :RestXml, 'aws-sdk-core/plugins/protocols/rest_xml'
|
245
|
-
end
|
246
|
-
|
247
|
-
end
|
248
|
-
|
249
|
-
# @api private
|
250
|
-
module Query
|
251
|
-
autoload :EC2ParamBuilder, 'aws-sdk-core/query/ec2_param_builder'
|
252
|
-
autoload :Handler, 'aws-sdk-core/query/handler'
|
253
|
-
autoload :Param, 'aws-sdk-core/query/param'
|
254
|
-
autoload :ParamBuilder, 'aws-sdk-core/query/param_builder'
|
255
|
-
autoload :ParamList, 'aws-sdk-core/query/param_list'
|
256
|
-
end
|
65
|
+
# aws-sdk-sts is vendored to support Aws::AssumeRoleCredentials
|
257
66
|
|
258
|
-
|
259
|
-
module Rest
|
260
|
-
autoload :Handler, 'aws-sdk-core/rest/handler'
|
261
|
-
module Request
|
262
|
-
autoload :Body, 'aws-sdk-core/rest/request/body'
|
263
|
-
autoload :Builder, 'aws-sdk-core/rest/request/builder'
|
264
|
-
autoload :Endpoint, 'aws-sdk-core/rest/request/endpoint'
|
265
|
-
autoload :Headers, 'aws-sdk-core/rest/request/headers'
|
266
|
-
autoload :QuerystringBuilder, 'aws-sdk-core/rest/request/querystring_builder'
|
267
|
-
end
|
268
|
-
module Response
|
269
|
-
autoload :Body, 'aws-sdk-core/rest/response/body'
|
270
|
-
autoload :Headers, 'aws-sdk-core/rest/response/headers'
|
271
|
-
autoload :Parser, 'aws-sdk-core/rest/response/parser'
|
272
|
-
autoload :StatusCode, 'aws-sdk-core/rest/response/status_code'
|
273
|
-
end
|
274
|
-
end
|
67
|
+
require 'aws-sdk-sts'
|
275
68
|
|
276
|
-
|
277
|
-
module Signers
|
278
|
-
autoload :Base, 'aws-sdk-core/signers/base'
|
279
|
-
autoload :S3, 'aws-sdk-core/signers/s3'
|
280
|
-
autoload :V2, 'aws-sdk-core/signers/v2'
|
281
|
-
autoload :V3, 'aws-sdk-core/signers/v3'
|
282
|
-
autoload :V4, 'aws-sdk-core/signers/v4'
|
283
|
-
end
|
284
|
-
|
285
|
-
# @api private
|
286
|
-
module Stubbing
|
287
|
-
autoload :EmptyStub, 'aws-sdk-core/stubbing/empty_stub'
|
288
|
-
autoload :DataApplicator, 'aws-sdk-core/stubbing/data_applicator'
|
289
|
-
autoload :StubData, 'aws-sdk-core/stubbing/stub_data'
|
290
|
-
autoload :XmlError, 'aws-sdk-core/stubbing/xml_error'
|
291
|
-
module Protocols
|
292
|
-
autoload :EC2, 'aws-sdk-core/stubbing/protocols/ec2'
|
293
|
-
autoload :Json, 'aws-sdk-core/stubbing/protocols/json'
|
294
|
-
autoload :Query, 'aws-sdk-core/stubbing/protocols/query'
|
295
|
-
autoload :Rest, 'aws-sdk-core/stubbing/protocols/rest'
|
296
|
-
autoload :RestJson, 'aws-sdk-core/stubbing/protocols/rest_json'
|
297
|
-
autoload :RestXml, 'aws-sdk-core/stubbing/protocols/rest_xml'
|
298
|
-
end
|
299
|
-
end
|
69
|
+
module Aws
|
300
70
|
|
301
|
-
|
302
|
-
autoload :Poller, 'aws-sdk-core/waiters/poller'
|
303
|
-
autoload :Errors, 'aws-sdk-core/waiters/errors'
|
304
|
-
autoload :NullProvider, 'aws-sdk-core/waiters/null_provider'
|
305
|
-
autoload :Provider, 'aws-sdk-core/waiters/provider'
|
306
|
-
autoload :Waiter, 'aws-sdk-core/waiters/waiter'
|
307
|
-
end
|
71
|
+
CORE_GEM_VERSION = File.read(File.expand_path('../../VERSION', __FILE__)).strip
|
308
72
|
|
309
|
-
|
310
|
-
module Xml
|
311
|
-
autoload :Builder, 'aws-sdk-core/xml/builder'
|
312
|
-
autoload :DefaultList, 'aws-sdk-core/xml/default_list'
|
313
|
-
autoload :DefaultMap, 'aws-sdk-core/xml/default_map'
|
314
|
-
autoload :DocBuilder, 'aws-sdk-core/xml/doc_builder'
|
315
|
-
autoload :ErrorHandler, 'aws-sdk-core/xml/error_handler'
|
316
|
-
autoload :Parser, 'aws-sdk-core/xml/parser'
|
317
|
-
end
|
73
|
+
@config = {}
|
318
74
|
|
319
75
|
class << self
|
320
76
|
|
@@ -337,57 +93,14 @@ module Aws
|
|
337
93
|
end
|
338
94
|
end
|
339
95
|
|
340
|
-
#
|
341
|
-
# the services and regions available in that partition.
|
342
|
-
#
|
343
|
-
# aws = Aws.partition('aws')
|
344
|
-
#
|
345
|
-
# puts "Regions available in the aws partition:\n"
|
346
|
-
# aws.regions.each do |region|
|
347
|
-
# puts region.name
|
348
|
-
# end
|
349
|
-
#
|
350
|
-
# puts "Services available in the aws partition:\n"
|
351
|
-
# aws.services.each do |services|
|
352
|
-
# puts services.name
|
353
|
-
# end
|
354
|
-
#
|
355
|
-
# See {Partitions} for more information and examples.
|
356
|
-
#
|
357
|
-
# @param [String] partition_name The name of the partition to return.
|
358
|
-
# Valid names include "aws", "aws-cn", and "aws-us-gov".
|
359
|
-
#
|
360
|
-
# @return [Partitions::Partition]
|
361
|
-
#
|
362
|
-
# @raise [ArgumentError] Raises an `ArgumentError` if a partition is
|
363
|
-
# not found with the given name. The error message contains a list
|
364
|
-
# of valid partition names.
|
96
|
+
# @see (Aws::Partitions.partition)
|
365
97
|
def partition(partition_name)
|
366
|
-
Partitions.
|
98
|
+
Aws::Partitions.partition(partition_name)
|
367
99
|
end
|
368
100
|
|
369
|
-
#
|
370
|
-
# the services and regions available in that partition.
|
371
|
-
#
|
372
|
-
# Aws.partitions.each do |partition|
|
373
|
-
#
|
374
|
-
# puts "Regions available in #{partition.name}:\n"
|
375
|
-
# partition.regions.each do |region|
|
376
|
-
# puts region.name
|
377
|
-
# end
|
378
|
-
#
|
379
|
-
# puts "Services available in #{partition.name}:\n"
|
380
|
-
# partition.services.each do |service|
|
381
|
-
# puts service.name
|
382
|
-
# end
|
383
|
-
# end
|
384
|
-
#
|
385
|
-
# See {Partitions} for more information and examples.
|
386
|
-
#
|
387
|
-
# @return [Array<Partitions::Partition>] Returns an array of all
|
388
|
-
# known partitions.
|
101
|
+
# @see (Aws::Partitions.partitions)
|
389
102
|
def partitions
|
390
|
-
Partitions.
|
103
|
+
Aws::Partitions.partitions
|
391
104
|
end
|
392
105
|
|
393
106
|
# The SDK ships with a ca certificate bundle to use when verifying SSL
|
@@ -416,7 +129,8 @@ module Aws
|
|
416
129
|
#
|
417
130
|
# Applications that rely heavily on the `fork()` system call on POSIX systems
|
418
131
|
# should call this method in the child process directly after fork to ensure
|
419
|
-
# there are no race conditions between the parent
|
132
|
+
# there are no race conditions between the parent
|
133
|
+
# process and its children
|
420
134
|
# for the pooled TCP connections.
|
421
135
|
#
|
422
136
|
# Child processes that make multi-threaded calls to the SDK should block on
|
@@ -429,114 +143,12 @@ module Aws
|
|
429
143
|
end
|
430
144
|
end
|
431
145
|
|
432
|
-
# Loads modules that are normally loaded with Ruby's `autoload`.
|
433
|
-
# This can avoid thread-safety issues that some Ruby versions have
|
434
|
-
# with `autoload`.
|
435
|
-
#
|
436
|
-
# # loads ALL services
|
437
|
-
# Aws.eager_autoload!
|
438
|
-
#
|
439
|
-
# Loading all services can be slow. You can specify what services you
|
440
|
-
# want to load with the `:services` option. All services not named
|
441
|
-
# will continue to autoload as normal.
|
442
|
-
#
|
443
|
-
# Aws.eager_autoload!(services: %w(S3 EC2))
|
444
|
-
#
|
445
|
-
# @return [void]
|
446
|
-
def eager_autoload!(options = {})
|
447
|
-
eager_loader = EagerLoader.new
|
448
|
-
eager_loader.load(JMESPath)
|
449
|
-
eager_loader.load(Seahorse)
|
450
|
-
sub_modules(options).each do |module_or_class|
|
451
|
-
eager_loader.load(module_or_class)
|
452
|
-
end
|
453
|
-
eager_loader
|
454
|
-
end
|
455
|
-
|
456
|
-
def sub_modules(options = {})
|
457
|
-
constants = Aws.constants.map(&:to_s)
|
458
|
-
if options[:services]
|
459
|
-
constants -= SERVICE_MODULE_NAMES
|
460
|
-
constants += options[:services] || SERVICE_MODULE_NAMES
|
461
|
-
end
|
462
|
-
constants.inject([]) do |modules, const_name|
|
463
|
-
constant = Aws.const_get(const_name)
|
464
|
-
modules << constant if Module === constant
|
465
|
-
modules
|
466
|
-
end
|
467
|
-
end
|
468
|
-
|
469
|
-
# Yields to the given block for each service that has already been
|
470
|
-
# defined via {add_service}. Also yields to the given block for
|
471
|
-
# each new service added after the callback is registered.
|
472
146
|
# @api private
|
473
|
-
def
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
end
|
478
|
-
@service_added_callbacks << callback
|
147
|
+
def eager_autoload!(*args)
|
148
|
+
msg = 'Aws.eager_autoload is no longer needed, usage of '
|
149
|
+
msg << 'autoload has been replaced with require statements'
|
150
|
+
warn(msg)
|
479
151
|
end
|
480
152
|
|
481
|
-
# Registers a new service.
|
482
|
-
#
|
483
|
-
# Aws.add_service('SvcName',
|
484
|
-
# api: '/path/to/svc.api.json',
|
485
|
-
# paginators: '/path/to/svc.paginators.json',
|
486
|
-
# waiters: '/path/to/svc.waiters.json',
|
487
|
-
# resources: '/path/to/svc.resources.json')
|
488
|
-
#
|
489
|
-
# Aws::SvcName::Client.new
|
490
|
-
# #=> #<Aws::SvcName::Client>
|
491
|
-
#
|
492
|
-
# @param [String] svc_name The name of the service. This will also be
|
493
|
-
# the namespace under {Aws}. This must be a valid constant name.
|
494
|
-
# @option options[String,Pathname,Hash,Seahorse::Model::Api,nil] :api
|
495
|
-
# @option options[String,Pathname,Hash,nil] :paginators
|
496
|
-
# @option options[String,Pathname,Hash,Waiters::Provider,nil] :waiters
|
497
|
-
# @option options[String,Pathname,Hash,Resources::Definition,nil] :resources
|
498
|
-
# @return [Module<Service>] Returns the new service module.
|
499
|
-
def add_service(svc_name, options = {})
|
500
|
-
svc_module = Module.new { extend Service }
|
501
|
-
const_set(svc_name, svc_module)
|
502
|
-
@services[svc_name] = [svc_module, options]
|
503
|
-
@service_added_callbacks.each do |callback|
|
504
|
-
callback.call(svc_name.to_s, *@services[svc_name])
|
505
|
-
end
|
506
|
-
svc_module
|
507
|
-
end
|
508
|
-
|
509
|
-
end
|
510
|
-
|
511
|
-
# build service client classes
|
512
|
-
service_added do |name, svc_module, options|
|
513
|
-
options[:type_builder] ||= TypeBuilder.new(svc_module)
|
514
|
-
svc_module.const_set(:Client, Client.define(name, options))
|
515
|
-
svc_module.const_set(:Errors, Module.new { extend Errors::DynamicErrors })
|
516
|
-
end
|
517
|
-
|
518
|
-
# enable response paging
|
519
|
-
service_added do |name, svc_module, options|
|
520
|
-
if paginators = options[:paginators]
|
521
|
-
paginators = Json.load_file(paginators) unless Hash === paginators
|
522
|
-
svc_module::Client.api.operations.each do |_, operation|
|
523
|
-
if rules = paginators['pagination'][operation.name]
|
524
|
-
operation[:pager] = Pager.new(rules)
|
525
|
-
end
|
526
|
-
end
|
527
|
-
end
|
528
|
-
end
|
529
|
-
|
530
|
-
# add shared client examples
|
531
|
-
service_added do |name, svc_module, options|
|
532
|
-
if ENV['DOCSTRINGS'] && options[:examples]
|
533
|
-
json = Json.load_file(options[:examples])
|
534
|
-
json['examples'].each_pair do |operation_name, examples|
|
535
|
-
operation_name = Seahorse::Util.underscore(operation_name)
|
536
|
-
operation = svc_module::Client.api.operation(operation_name)
|
537
|
-
operation['examples'] = examples
|
538
|
-
end
|
539
|
-
end
|
540
153
|
end
|
541
|
-
|
542
154
|
end
|