aws-sdk-core 2.8.4 → 3.129.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +1287 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/ca-bundle.crt +3615 -3541
- data/lib/aws-defaults/default_configuration.rb +153 -0
- data/lib/aws-defaults/defaults_mode_config_resolver.rb +107 -0
- data/lib/aws-defaults.rb +3 -0
- data/lib/aws-sdk-core/arn.rb +92 -0
- data/lib/aws-sdk-core/arn_parser.rb +40 -0
- data/lib/aws-sdk-core/assume_role_credentials.rb +20 -0
- data/lib/aws-sdk-core/assume_role_web_identity_credentials.rb +109 -0
- data/lib/aws-sdk-core/async_client_stubs.rb +82 -0
- data/lib/aws-sdk-core/binary/decode_handler.rb +58 -0
- data/lib/aws-sdk-core/binary/encode_handler.rb +34 -0
- data/lib/aws-sdk-core/binary/event_builder.rb +124 -0
- data/lib/aws-sdk-core/binary/event_parser.rb +136 -0
- data/lib/aws-sdk-core/binary/event_stream_decoder.rb +64 -0
- data/lib/aws-sdk-core/binary/event_stream_encoder.rb +55 -0
- data/lib/aws-sdk-core/binary.rb +8 -0
- data/lib/aws-sdk-core/client_side_monitoring/publisher.rb +51 -0
- data/lib/aws-sdk-core/client_side_monitoring/request_metrics.rb +199 -0
- data/lib/aws-sdk-core/client_stubs.rb +69 -12
- data/lib/aws-sdk-core/credential_provider.rb +2 -29
- data/lib/aws-sdk-core/credential_provider_chain.rb +111 -32
- data/lib/aws-sdk-core/credentials.rb +2 -0
- data/lib/aws-sdk-core/deprecations.rb +17 -11
- data/lib/aws-sdk-core/eager_loader.rb +2 -0
- data/lib/aws-sdk-core/ec2_metadata.rb +238 -0
- data/lib/aws-sdk-core/ecs_credentials.rb +20 -11
- data/lib/aws-sdk-core/endpoint_cache.rb +193 -0
- data/lib/aws-sdk-core/errors.rb +227 -18
- data/lib/aws-sdk-core/event_emitter.rb +64 -0
- data/lib/aws-sdk-core/ini_parser.rb +3 -0
- data/lib/aws-sdk-core/instance_profile_credentials.rb +237 -45
- data/lib/aws-sdk-core/json/builder.rb +6 -2
- data/lib/aws-sdk-core/json/error_handler.rb +21 -2
- data/lib/aws-sdk-core/json/handler.rb +24 -3
- data/lib/aws-sdk-core/json/json_engine.rb +12 -8
- data/lib/aws-sdk-core/json/oj_engine.rb +35 -6
- data/lib/aws-sdk-core/json/parser.rb +11 -1
- data/lib/aws-sdk-core/json.rb +15 -33
- data/lib/aws-sdk-core/log/formatter.rb +16 -4
- data/lib/aws-sdk-core/log/handler.rb +2 -0
- data/lib/aws-sdk-core/log/param_filter.rb +41 -15
- data/lib/aws-sdk-core/log/param_formatter.rb +2 -0
- data/lib/aws-sdk-core/pageable_response.rb +112 -47
- data/lib/aws-sdk-core/pager.rb +35 -25
- data/lib/aws-sdk-core/param_converter.rb +5 -3
- data/lib/aws-sdk-core/param_validator.rb +109 -26
- data/lib/aws-sdk-core/plugins/api_key.rb +56 -0
- data/lib/aws-sdk-core/plugins/apig_authorizer_token.rb +32 -0
- data/lib/aws-sdk-core/plugins/apig_credentials_configuration.rb +36 -0
- data/lib/aws-sdk-core/plugins/apig_user_agent.rb +39 -0
- data/lib/aws-sdk-core/plugins/checksum_algorithm.rb +340 -0
- data/lib/aws-sdk-core/plugins/client_metrics_plugin.rb +283 -0
- data/lib/aws-sdk-core/plugins/client_metrics_send_plugin.rb +86 -0
- data/lib/aws-sdk-core/plugins/credentials_configuration.rb +81 -0
- data/lib/aws-sdk-core/plugins/defaults_mode.rb +40 -0
- data/lib/aws-sdk-core/plugins/endpoint_discovery.rb +168 -0
- data/lib/aws-sdk-core/plugins/endpoint_pattern.rb +65 -0
- data/lib/aws-sdk-core/plugins/event_stream_configuration.rb +32 -0
- data/lib/aws-sdk-core/plugins/global_configuration.rb +21 -10
- data/lib/aws-sdk-core/plugins/helpful_socket_errors.rb +2 -0
- data/lib/aws-sdk-core/plugins/http_checksum.rb +64 -0
- data/lib/aws-sdk-core/plugins/idempotency_token.rb +3 -2
- data/lib/aws-sdk-core/plugins/invocation_id.rb +35 -0
- data/lib/aws-sdk-core/plugins/jsonvalue_converter.rb +31 -0
- data/lib/aws-sdk-core/plugins/logging.rb +20 -18
- data/lib/aws-sdk-core/plugins/param_converter.rb +11 -5
- data/lib/aws-sdk-core/plugins/param_validator.rb +10 -5
- data/lib/aws-sdk-core/plugins/protocols/api_gateway.rb +29 -0
- data/lib/aws-sdk-core/plugins/protocols/ec2.rb +4 -1
- data/lib/aws-sdk-core/plugins/protocols/json_rpc.rb +15 -12
- data/lib/aws-sdk-core/plugins/protocols/query.rb +4 -2
- data/lib/aws-sdk-core/plugins/protocols/rest_json.rb +18 -1
- data/lib/aws-sdk-core/plugins/protocols/rest_xml.rb +2 -0
- data/lib/aws-sdk-core/plugins/recursion_detection.rb +27 -0
- data/lib/aws-sdk-core/plugins/regional_endpoint.rb +96 -28
- data/lib/aws-sdk-core/plugins/response_paging.rb +8 -19
- data/lib/aws-sdk-core/plugins/retries/client_rate_limiter.rb +139 -0
- data/lib/aws-sdk-core/plugins/retries/clock_skew.rb +100 -0
- data/lib/aws-sdk-core/plugins/retries/error_inspector.rb +146 -0
- data/lib/aws-sdk-core/plugins/retries/retry_quota.rb +59 -0
- data/lib/aws-sdk-core/plugins/retry_errors.rb +342 -82
- data/lib/aws-sdk-core/plugins/signature_v2.rb +53 -0
- data/lib/aws-sdk-core/plugins/signature_v4.rb +144 -0
- data/lib/aws-sdk-core/plugins/stub_responses.rb +44 -18
- data/lib/aws-sdk-core/plugins/transfer_encoding.rb +53 -0
- data/lib/aws-sdk-core/plugins/user_agent.rb +25 -10
- data/lib/aws-sdk-core/process_credentials.rb +81 -0
- data/lib/aws-sdk-core/query/ec2_param_builder.rb +11 -3
- data/lib/aws-sdk-core/query/handler.rb +22 -16
- data/lib/aws-sdk-core/query/param.rb +2 -0
- data/lib/aws-sdk-core/query/param_builder.rb +12 -4
- data/lib/aws-sdk-core/query/param_list.rb +2 -0
- data/lib/aws-sdk-core/query.rb +7 -0
- data/lib/aws-sdk-core/refreshing_credentials.rb +16 -3
- data/lib/aws-sdk-core/resources/collection.rb +123 -0
- data/lib/aws-sdk-core/rest/handler.rb +3 -0
- data/lib/aws-sdk-core/rest/request/body.rb +21 -1
- data/lib/aws-sdk-core/rest/request/builder.rb +4 -1
- data/lib/aws-sdk-core/rest/request/endpoint.rb +13 -6
- data/lib/aws-sdk-core/rest/request/headers.rb +38 -5
- data/lib/aws-sdk-core/rest/request/querystring_builder.rb +17 -2
- data/lib/aws-sdk-core/rest/response/body.rb +16 -1
- data/lib/aws-sdk-core/rest/response/headers.rb +13 -1
- data/lib/aws-sdk-core/rest/response/parser.rb +20 -14
- data/lib/aws-sdk-core/rest/response/status_code.rb +2 -0
- data/lib/aws-sdk-core/rest.rb +12 -0
- data/lib/aws-sdk-core/shared_config.rb +205 -69
- data/lib/aws-sdk-core/shared_credentials.rb +11 -1
- data/lib/aws-sdk-core/sso_credentials.rb +136 -0
- data/lib/aws-sdk-core/structure.rb +33 -13
- data/lib/aws-sdk-core/stubbing/data_applicator.rb +3 -1
- data/lib/aws-sdk-core/stubbing/empty_stub.rb +12 -3
- data/lib/aws-sdk-core/stubbing/protocols/api_gateway.rb +10 -0
- data/lib/aws-sdk-core/stubbing/protocols/ec2.rb +3 -1
- data/lib/aws-sdk-core/stubbing/protocols/json.rb +3 -1
- data/lib/aws-sdk-core/stubbing/protocols/query.rb +4 -2
- data/lib/aws-sdk-core/stubbing/protocols/rest.rb +120 -2
- data/lib/aws-sdk-core/stubbing/protocols/rest_json.rb +8 -2
- data/lib/aws-sdk-core/stubbing/protocols/rest_xml.rb +11 -7
- data/lib/aws-sdk-core/stubbing/stub_data.rb +18 -3
- data/lib/aws-sdk-core/stubbing/xml_error.rb +2 -0
- data/lib/aws-sdk-core/type_builder.rb +2 -0
- data/lib/aws-sdk-core/util.rb +72 -0
- data/lib/aws-sdk-core/waiters/errors.rb +2 -0
- data/lib/aws-sdk-core/waiters/poller.rb +7 -9
- data/lib/aws-sdk-core/waiters/waiter.rb +5 -2
- data/lib/aws-sdk-core/waiters.rb +5 -0
- data/lib/aws-sdk-core/xml/builder.rb +15 -7
- data/lib/aws-sdk-core/xml/default_list.rb +2 -0
- data/lib/aws-sdk-core/xml/default_map.rb +2 -0
- data/lib/aws-sdk-core/xml/doc_builder.rb +15 -4
- data/lib/aws-sdk-core/xml/error_handler.rb +30 -6
- data/lib/aws-sdk-core/xml/parser/engines/libxml.rb +2 -0
- data/lib/aws-sdk-core/xml/parser/engines/nokogiri.rb +2 -0
- data/lib/aws-sdk-core/xml/parser/engines/oga.rb +2 -0
- data/lib/aws-sdk-core/xml/parser/engines/ox.rb +7 -1
- data/lib/aws-sdk-core/xml/parser/engines/rexml.rb +4 -1
- data/lib/aws-sdk-core/xml/parser/frame.rb +31 -6
- data/lib/aws-sdk-core/xml/parser/parsing_error.rb +2 -0
- data/lib/aws-sdk-core/xml/parser/stack.rb +2 -0
- data/lib/aws-sdk-core/xml/parser.rb +8 -11
- data/lib/aws-sdk-core/xml.rb +11 -0
- data/lib/aws-sdk-core.rb +112 -440
- data/lib/aws-sdk-sso/client.rb +570 -0
- data/lib/aws-sdk-sso/client_api.rb +190 -0
- data/lib/aws-sdk-sso/customizations.rb +1 -0
- data/lib/aws-sdk-sso/errors.rb +102 -0
- data/lib/aws-sdk-sso/resource.rb +26 -0
- data/lib/aws-sdk-sso/types.rb +352 -0
- data/lib/aws-sdk-sso.rb +55 -0
- data/lib/aws-sdk-sts/client.rb +2315 -0
- data/lib/aws-sdk-sts/client_api.rb +344 -0
- data/lib/aws-sdk-sts/customizations.rb +4 -0
- data/lib/aws-sdk-sts/errors.rb +166 -0
- data/lib/aws-sdk-sts/plugins/sts_regional_endpoints.rb +38 -0
- data/lib/aws-sdk-sts/presigner.rb +75 -0
- data/lib/aws-sdk-sts/resource.rb +26 -0
- data/lib/aws-sdk-sts/types.rb +1673 -0
- data/lib/aws-sdk-sts.rb +55 -0
- data/lib/seahorse/client/async_base.rb +52 -0
- data/lib/seahorse/client/async_response.rb +64 -0
- data/lib/seahorse/client/base.rb +8 -9
- data/lib/seahorse/client/block_io.rb +6 -2
- data/lib/seahorse/client/configuration.rb +16 -2
- data/lib/seahorse/client/events.rb +3 -1
- data/lib/seahorse/client/h2/connection.rb +250 -0
- data/lib/seahorse/client/h2/handler.rb +152 -0
- data/lib/seahorse/client/handler.rb +2 -0
- data/lib/seahorse/client/handler_builder.rb +2 -0
- data/lib/seahorse/client/handler_list.rb +2 -0
- data/lib/seahorse/client/handler_list_entry.rb +6 -4
- data/lib/seahorse/client/http/async_response.rb +44 -0
- data/lib/seahorse/client/http/headers.rb +2 -0
- data/lib/seahorse/client/http/request.rb +5 -3
- data/lib/seahorse/client/http/response.rb +18 -11
- data/lib/seahorse/client/logging/formatter.rb +9 -1
- data/lib/seahorse/client/logging/handler.rb +4 -0
- data/lib/seahorse/client/managed_file.rb +2 -0
- data/lib/seahorse/client/net_http/connection_pool.rb +46 -27
- data/lib/seahorse/client/net_http/handler.rb +29 -7
- data/lib/seahorse/client/net_http/patches.rb +18 -79
- data/lib/seahorse/client/networking_error.rb +30 -0
- data/lib/seahorse/client/plugin.rb +69 -6
- data/lib/seahorse/client/plugin_list.rb +2 -0
- data/lib/seahorse/client/plugins/content_length.rb +14 -3
- data/lib/seahorse/client/plugins/endpoint.rb +16 -10
- data/lib/seahorse/client/plugins/h2.rb +69 -0
- data/lib/seahorse/client/plugins/logging.rb +19 -19
- data/lib/seahorse/client/plugins/net_http.rb +58 -14
- data/lib/seahorse/client/plugins/operation_methods.rb +2 -0
- data/lib/seahorse/client/plugins/raise_response_errors.rb +6 -4
- data/lib/seahorse/client/plugins/request_callback.rb +110 -0
- data/lib/seahorse/client/plugins/response_target.rb +28 -10
- data/lib/seahorse/client/request.rb +2 -0
- data/lib/seahorse/client/request_context.rb +7 -0
- data/lib/seahorse/client/response.rb +5 -5
- data/lib/seahorse/model/api.rb +43 -0
- data/lib/seahorse/model/authorizer.rb +23 -0
- data/lib/seahorse/model/operation.rb +28 -0
- data/lib/seahorse/model/shapes.rb +71 -2
- data/lib/seahorse/util.rb +9 -22
- data/lib/seahorse/version.rb +2 -0
- data/lib/seahorse.rb +63 -60
- metadata +132 -520
- 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 -4523
- 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 -511
- 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 -820
- data/apis/appstream/2016-12-01/examples-1.json +0 -5
- data/apis/appstream/2016-12-01/waiters-2.json +0 -55
- data/apis/autoscaling/2011-01-01/api-2.json +0 -2172
- data/apis/autoscaling/2011-01-01/examples-1.json +0 -1395
- 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 -885
- data/apis/batch/2016-08-10/examples-1.json +0 -589
- 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 -3033
- data/apis/clouddirectory/2016-05-10/examples-1.json +0 -5
- data/apis/clouddirectory/2016-05-10/paginators-1.json +0 -84
- data/apis/cloudformation/2010-05-15/api-2.json +0 -1428
- data/apis/cloudformation/2010-05-15/examples-1.json +0 -158
- data/apis/cloudformation/2010-05-15/paginators-1.json +0 -27
- data/apis/cloudformation/2010-05-15/resources-1.json +0 -211
- data/apis/cloudformation/2010-05-15/waiters-2.json +0 -157
- 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/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 -907
- 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 -702
- 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 -2300
- data/apis/codedeploy/2014-10-06/examples-1.json +0 -5
- data/apis/codedeploy/2014-10-06/paginators-1.json +0 -4
- 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/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 -3325
- data/apis/cognito-idp/2016-04-18/examples-1.json +0 -5
- data/apis/cognito-sync/2014-06-30/api-2.json +0 -1875
- data/apis/config/2014-11-12/api-2.json +0 -1417
- 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 -2031
- data/apis/devicefarm/2015-06-23/examples-1.json +0 -1242
- data/apis/devicefarm/2015-06-23/paginators-1.json +0 -74
- data/apis/directconnect/2012-10-25/api-2.json +0 -1347
- 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 -867
- data/apis/discovery/2015-11-01/examples-1.json +0 -5
- data/apis/dms/2016-01-01/api-2.json +0 -1505
- data/apis/dms/2016-01-01/examples-1.json +0 -5
- 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 -15373
- 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 -1625
- 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 -2474
- data/apis/elasticache/2015-02-02/examples-1.json +0 -2968
- 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 -1590
- 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 -1823
- data/apis/elasticloadbalancingv2/2015-12-01/examples-1.json +0 -1384
- data/apis/elasticloadbalancingv2/2015-12-01/paginators-1.json +0 -19
- data/apis/elasticmapreduce/2009-03-31/api-2.json +0 -1794
- data/apis/elasticmapreduce/2009-03-31/examples-1.json +0 -5
- data/apis/elasticmapreduce/2009-03-31/paginators-1.json +0 -32
- data/apis/elasticmapreduce/2009-03-31/waiters-2.json +0 -67
- 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/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 -644
- data/apis/events/2015-10-07/examples-1.json +0 -5
- 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 -2256
- 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/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 -4730
- 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 -1965
- data/apis/inspector/2016-02-16/examples-1.json +0 -1140
- data/apis/iot/2015-05-28/api-2.json +0 -4347
- data/apis/iot/2015-05-28/examples-1.json +0 -5
- 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 -18
- data/apis/kinesisanalytics/2015-08-14/api-2.json +0 -1049
- data/apis/kinesisanalytics/2015-08-14/examples-1.json +0 -5
- data/apis/kms/2014-11-01/api-2.json +0 -1492
- data/apis/kms/2014-11-01/examples-1.json +0 -862
- 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 -1514
- data/apis/lambda/2015-03-31/examples-1.json +0 -614
- data/apis/lambda/2015-03-31/paginators-1.json +0 -16
- data/apis/lightsail/2016-11-28/api-2.json +0 -2137
- data/apis/lightsail/2016-11-28/examples-1.json +0 -5
- 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 -170
- data/apis/marketplacecommerceanalytics/2015-07-01/examples-1.json +0 -5
- 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 -811
- 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 -2607
- 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 -1989
- data/apis/organizations/2016-11-28/examples-1.json +0 -1398
- data/apis/organizations/2016-11-28/paginators-1.json +0 -4
- data/apis/pinpoint/2016-12-01/api-2.json +0 -2753
- data/apis/pinpoint/2016-12-01/examples-1.json +0 -5
- data/apis/polly/2016-06-10/api-2.json +0 -504
- data/apis/polly/2016-06-10/examples-1.json +0 -171
- 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 -5098
- data/apis/rds/2014-10-31/examples-1.json +0 -1861
- 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 -3775
- 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 -844
- data/apis/rekognition/2016-06-27/examples-1.json +0 -651
- data/apis/rekognition/2016-06-27/paginators-1.json +0 -16
- 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/paginators-1.json +0 -17
- data/apis/runtime.lex/2016-11-28/api-2.json +0 -243
- 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 -5
- 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 -1955
- data/apis/servicecatalog/2015-12-10/examples-1.json +0 -5
- 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 -834
- 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 -986
- 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 -5296
- 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 -2551
- 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/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 -1781
- 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 -491
- data/apis/xray/2016-04-12/examples-1.json +0 -5
- 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 -261
- 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 -5
- data/lib/aws-sdk-core/appstream.rb +0 -6
- data/lib/aws-sdk-core/autoscaling.rb +0 -8
- data/lib/aws-sdk-core/batch.rb +0 -5
- 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 -59
- 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 -5
- 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/cognitoidentity.rb +0 -6
- data/lib/aws-sdk-core/cognitoidentityprovider.rb +0 -5
- 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 -5
- 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 -108
- 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 -6
- 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/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 -5
- data/lib/aws-sdk-core/iot.rb +0 -5
- 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 -5
- 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/lightsail.rb +0 -5
- data/lib/aws-sdk-core/machinelearning.rb +0 -7
- data/lib/aws-sdk-core/marketplacecommerceanalytics.rb +0 -5
- 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 -209
- 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 -142
- 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_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 -92
- 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 -13
- data/lib/aws-sdk-core/rds.rb +0 -8
- data/lib/aws-sdk-core/redshift.rb +0 -7
- data/lib/aws-sdk-core/rekognition.rb +0 -6
- data/lib/aws-sdk-core/route53.rb +0 -7
- data/lib/aws-sdk-core/route53domains.rb +0 -5
- 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 -5
- 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 -184
- 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 -5
- 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/version.rb +0 -3
- 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 -5
- data/lib/seahorse/client/plugins/restful_bindings.rb +0 -127
- data/service-models.json +0 -381
@@ -1,7 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'net/https'
|
1
4
|
require 'openssl'
|
2
5
|
|
3
6
|
module Seahorse
|
4
7
|
module Client
|
8
|
+
# @api private
|
5
9
|
module NetHttp
|
6
10
|
|
7
11
|
# The default HTTP handler for Seahorse::Client. This is based on
|
@@ -11,8 +15,8 @@ module Seahorse
|
|
11
15
|
# @api private
|
12
16
|
class TruncatedBodyError < IOError
|
13
17
|
def initialize(bytes_expected, bytes_received)
|
14
|
-
msg = "http response body truncated, expected #{bytes_expected} "
|
15
|
-
|
18
|
+
msg = "http response body truncated, expected #{bytes_expected} "\
|
19
|
+
"bytes, received #{bytes_received} bytes"
|
16
20
|
super(msg)
|
17
21
|
end
|
18
22
|
end
|
@@ -21,7 +25,8 @@ module Seahorse
|
|
21
25
|
SocketError, EOFError, IOError, Timeout::Error,
|
22
26
|
Errno::ECONNABORTED, Errno::ECONNRESET, Errno::EPIPE,
|
23
27
|
Errno::EINVAL, Errno::ETIMEDOUT, OpenSSL::SSL::SSLError,
|
24
|
-
Errno::EHOSTUNREACH, Errno::ECONNREFUSED
|
28
|
+
Errno::EHOSTUNREACH, Errno::ECONNREFUSED,
|
29
|
+
Net::HTTPFatalError # for proxy connection failures
|
25
30
|
]
|
26
31
|
|
27
32
|
# does not exist in Ruby 1.9.3
|
@@ -69,8 +74,9 @@ module Seahorse
|
|
69
74
|
# @return [void]
|
70
75
|
def transmit(config, req, resp)
|
71
76
|
session(config, req) do |http|
|
77
|
+
# Monkey patch default content-type set by Net::HTTP
|
78
|
+
Thread.current[:net_http_skip_default_content_type] = true
|
72
79
|
http.request(build_net_request(req)) do |net_resp|
|
73
|
-
|
74
80
|
status_code = net_resp.code.to_i
|
75
81
|
headers = extract_headers(net_resp)
|
76
82
|
|
@@ -91,6 +97,9 @@ module Seahorse
|
|
91
97
|
rescue => error
|
92
98
|
# not retryable
|
93
99
|
resp.signal_error(error)
|
100
|
+
ensure
|
101
|
+
# ensure we turn off monkey patch in case of error
|
102
|
+
Thread.current[:net_http_skip_default_content_type] = nil
|
94
103
|
end
|
95
104
|
|
96
105
|
def complete_response(req, resp, bytes_received)
|
@@ -117,6 +126,9 @@ module Seahorse
|
|
117
126
|
|
118
127
|
def session(config, req, &block)
|
119
128
|
pool_for(config).session_for(req.endpoint) do |http|
|
129
|
+
# Ruby 2.5, can disable retries for idempotent operations
|
130
|
+
# avoid patching for Ruby 2.5 for disable retry
|
131
|
+
http.max_retries = 0 if http.respond_to?(:max_retries)
|
120
132
|
http.read_timeout = config.http_read_timeout
|
121
133
|
yield(http)
|
122
134
|
end
|
@@ -139,7 +151,12 @@ module Seahorse
|
|
139
151
|
def build_net_request(request)
|
140
152
|
request_class = net_http_request_class(request)
|
141
153
|
req = request_class.new(request.endpoint.request_uri, headers(request))
|
142
|
-
|
154
|
+
# Net::HTTP adds a default Content-Type when a body is present.
|
155
|
+
# Set the body stream when it has an unknown size or when it is > 0.
|
156
|
+
if !request.body.respond_to?(:size) ||
|
157
|
+
(request.body.respond_to?(:size) && request.body.size > 0)
|
158
|
+
req.body_stream = request.body
|
159
|
+
end
|
143
160
|
req
|
144
161
|
end
|
145
162
|
|
@@ -158,8 +175,13 @@ module Seahorse
|
|
158
175
|
# @return [Hash] Returns a vanilla hash of headers to send with the
|
159
176
|
# HTTP request.
|
160
177
|
def headers(request)
|
161
|
-
#
|
162
|
-
|
178
|
+
# Net::HTTP adds a default header for accept-encoding (2.0.0+).
|
179
|
+
# Setting a default empty value defeats this.
|
180
|
+
#
|
181
|
+
# Removing this is necessary for most services to not break request
|
182
|
+
# signatures as well as dynamodb crc32 checks (these fail if the
|
183
|
+
# response is gzipped).
|
184
|
+
headers = { 'accept-encoding' => '' }
|
163
185
|
request.headers.each_pair do |key, value|
|
164
186
|
headers[key] = value
|
165
187
|
end
|
@@ -1,97 +1,36 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'net/http'
|
2
4
|
|
3
5
|
module Seahorse
|
4
6
|
module Client
|
7
|
+
# @api private
|
5
8
|
module NetHttp
|
6
9
|
|
7
10
|
# @api private
|
8
11
|
module Patches
|
9
12
|
|
10
13
|
def self.apply!
|
11
|
-
|
12
|
-
|
13
|
-
Net::HTTP::IDEMPOTENT_METHODS_.clear
|
14
|
-
elsif RUBY_VERSION >= '1.9.3'
|
15
|
-
Net::HTTP.send(:include, Ruby_1_9_3)
|
16
|
-
end
|
17
|
-
Net::HTTP.send(:alias_method, :old_transport_request, :transport_request)
|
18
|
-
Net::HTTP.send(:alias_method, :transport_request, :new_transport_request)
|
19
|
-
end
|
20
|
-
|
21
|
-
module Ruby_2
|
22
|
-
def new_transport_request(req)
|
23
|
-
count = 0
|
24
|
-
begin
|
25
|
-
begin_transport req
|
26
|
-
res = catch(:response) {
|
27
|
-
req.exec @socket, @curr_http_version, edit_path(req.path)
|
28
|
-
begin
|
29
|
-
res = Net::HTTPResponse.read_new(@socket)
|
30
|
-
res.decode_content = req.decode_content
|
31
|
-
end while res.kind_of?(Net::HTTPContinue)
|
14
|
+
Net::HTTPGenericRequest.prepend(PatchDefaultContentType)
|
15
|
+
return unless RUBY_VERSION < '2.5'
|
32
16
|
|
33
|
-
|
34
|
-
|
35
|
-
res
|
36
|
-
}
|
37
|
-
res.reading_body(@socket, req.response_body_permitted?) {
|
38
|
-
yield res if block_given?
|
39
|
-
}
|
40
|
-
rescue Net::OpenTimeout
|
41
|
-
raise
|
42
|
-
rescue Net::ReadTimeout, IOError, EOFError,
|
43
|
-
Errno::ECONNRESET, Errno::ECONNABORTED, Errno::EPIPE,
|
44
|
-
# avoid a dependency on OpenSSL
|
45
|
-
defined?(OpenSSL::SSL) ? OpenSSL::SSL::SSLError : IOError,
|
46
|
-
Timeout::Error => exception
|
47
|
-
if count == 0 && Net::HTTP::IDEMPOTENT_METHODS_.include?(req.method)
|
48
|
-
count += 1
|
49
|
-
@socket.close if @socket and not @socket.closed?
|
50
|
-
D "Conn close because of error #{exception}, and retry"
|
51
|
-
if req.body_stream
|
52
|
-
if req.body_stream.respond_to?(:rewind)
|
53
|
-
req.body_stream.rewind
|
54
|
-
else
|
55
|
-
raise
|
56
|
-
end
|
57
|
-
end
|
58
|
-
retry
|
59
|
-
end
|
60
|
-
D "Conn close because of error #{exception}"
|
61
|
-
@socket.close if @socket and not @socket.closed?
|
62
|
-
raise
|
63
|
-
end
|
64
|
-
|
65
|
-
end_transport req, res
|
66
|
-
res
|
67
|
-
rescue => exception
|
68
|
-
D "Conn close because of error #{exception}"
|
69
|
-
@socket.close if @socket and not @socket.closed?
|
70
|
-
raise exception
|
71
|
-
end
|
17
|
+
Net::HTTP::IDEMPOTENT_METHODS_.clear
|
72
18
|
end
|
73
19
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
yield res if block_given?
|
86
|
-
}
|
87
|
-
end_transport req, res
|
88
|
-
res
|
89
|
-
rescue => exception
|
90
|
-
D "Conn close because of error #{exception}"
|
91
|
-
@socket.close if @socket and not @socket.closed?
|
92
|
-
raise exception
|
20
|
+
# For requests with bodys, Net::HTTP sets a default content type of:
|
21
|
+
# 'application/x-www-form-urlencoded'
|
22
|
+
# There are cases where we should not send content type at all.
|
23
|
+
# Even when no body is supplied, Net::HTTP uses a default empty body
|
24
|
+
# and sets it anyway. This patch disables the behavior when a Thread
|
25
|
+
# local variable is set.
|
26
|
+
module PatchDefaultContentType
|
27
|
+
def supply_default_content_type
|
28
|
+
return if Thread.current[:net_http_skip_default_content_type]
|
29
|
+
|
30
|
+
super
|
93
31
|
end
|
94
32
|
end
|
33
|
+
|
95
34
|
end
|
96
35
|
end
|
97
36
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Seahorse
|
2
4
|
module Client
|
3
5
|
class NetworkingError < StandardError
|
@@ -11,5 +13,33 @@ module Seahorse
|
|
11
13
|
attr_reader :original_error
|
12
14
|
|
13
15
|
end
|
16
|
+
|
17
|
+
# Raised when sending initial headers and data failed
|
18
|
+
# for event stream requests over Http2
|
19
|
+
class Http2InitialRequestError < StandardError
|
20
|
+
|
21
|
+
def initialize(error)
|
22
|
+
@original_error = error
|
23
|
+
end
|
24
|
+
|
25
|
+
# @return [HTTP2::Error]
|
26
|
+
attr_reader :original_error
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
# Raised when connection failed to initialize a new stream
|
31
|
+
class Http2StreamInitializeError < StandardError
|
32
|
+
|
33
|
+
def initialize(error)
|
34
|
+
@original_error = error
|
35
|
+
end
|
36
|
+
|
37
|
+
# @return [HTTP2::Error]
|
38
|
+
attr_reader :original_error
|
39
|
+
|
40
|
+
end
|
41
|
+
|
42
|
+
# Rasied when trying to use an closed connection
|
43
|
+
class Http2ConnectionClosedError < StandardError; end
|
14
44
|
end
|
15
45
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Seahorse
|
2
4
|
module Client
|
3
5
|
class Plugin
|
@@ -7,8 +9,12 @@ module Seahorse
|
|
7
9
|
# @param [Configuration] config
|
8
10
|
# @return [void]
|
9
11
|
def add_options(config)
|
10
|
-
self.class.options.each do |
|
11
|
-
|
12
|
+
self.class.options.each do |option|
|
13
|
+
if option.default_block
|
14
|
+
config.add_option(option.name, &option.default_block)
|
15
|
+
else
|
16
|
+
config.add_option(option.name, option.default)
|
17
|
+
end
|
12
18
|
end
|
13
19
|
end
|
14
20
|
|
@@ -38,12 +44,24 @@ module Seahorse
|
|
38
44
|
|
39
45
|
class << self
|
40
46
|
|
41
|
-
|
42
|
-
|
43
|
-
|
47
|
+
# @overload option(name, options = {}, &block)
|
48
|
+
# @option options [Object] :default Can also be set by passing a block.
|
49
|
+
# @option options [String] :doc_default
|
50
|
+
# @option options [Boolean] :required
|
51
|
+
# @option options [String] :doc_type
|
52
|
+
# @option options [String] :docs
|
53
|
+
# @return [void]
|
54
|
+
def option(name, default = nil, options = {}, &block)
|
55
|
+
# For backwards-compat reasons, the default value can be passed as 2nd
|
56
|
+
# positional argument (before the options hash) or as the `:default` option
|
57
|
+
# in the options hash.
|
58
|
+
if default.is_a? Hash
|
59
|
+
options = default
|
44
60
|
else
|
45
|
-
options
|
61
|
+
options[:default] = default
|
46
62
|
end
|
63
|
+
options[:default_block] = block if block_given?
|
64
|
+
self.options << PluginOption.new(name, options)
|
47
65
|
end
|
48
66
|
|
49
67
|
def before_initialize(&block)
|
@@ -74,6 +92,51 @@ module Seahorse
|
|
74
92
|
@after_initialize_hooks ||= []
|
75
93
|
end
|
76
94
|
|
95
|
+
# @api private
|
96
|
+
def literal(string)
|
97
|
+
CodeLiteral.new(string)
|
98
|
+
end
|
99
|
+
|
100
|
+
# @api private
|
101
|
+
class CodeLiteral < String
|
102
|
+
def inspect
|
103
|
+
to_s
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
end
|
108
|
+
|
109
|
+
# @api private
|
110
|
+
class PluginOption
|
111
|
+
|
112
|
+
def initialize(name, options = {})
|
113
|
+
@name = name
|
114
|
+
@doc_default = nil
|
115
|
+
options.each_pair do |opt_name, opt_value|
|
116
|
+
self.send("#{opt_name}=", opt_value)
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
attr_reader :name
|
121
|
+
attr_accessor :default
|
122
|
+
attr_accessor :default_block
|
123
|
+
attr_accessor :required
|
124
|
+
attr_accessor :doc_type
|
125
|
+
attr_writer :doc_default
|
126
|
+
attr_accessor :docstring
|
127
|
+
|
128
|
+
def doc_default(options)
|
129
|
+
if @doc_default.nil? && !default.is_a?(Proc)
|
130
|
+
default
|
131
|
+
else
|
132
|
+
@doc_default.respond_to?(:call) ? @doc_default.call(options) : @doc_default
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
def documented?
|
137
|
+
!!docstring
|
138
|
+
end
|
139
|
+
|
77
140
|
end
|
78
141
|
end
|
79
142
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Seahorse
|
2
4
|
module Client
|
3
5
|
module Plugins
|
@@ -5,13 +7,22 @@ module Seahorse
|
|
5
7
|
|
6
8
|
# @api private
|
7
9
|
class Handler < Client::Handler
|
10
|
+
# https://github.com/ruby/net-http/blob/master/lib/net/http/requests.rb
|
11
|
+
# Methods without body are forwards compatible, because content-length
|
12
|
+
# may be set for requests without body but is technically incorrect.
|
13
|
+
METHODS_WITHOUT_BODY = Set.new(
|
14
|
+
%w[GET HEAD DELETE OPTIONS TRACE COPY MOVE]
|
15
|
+
)
|
8
16
|
|
9
17
|
def call(context)
|
10
|
-
|
11
|
-
context.http_request.
|
18
|
+
body = context.http_request.body
|
19
|
+
method = context.http_request.http_method
|
20
|
+
# We use Net::HTTP with body_stream which doesn't do this by default
|
21
|
+
if body.respond_to?(:size) && !METHODS_WITHOUT_BODY.include?(method)
|
22
|
+
context.http_request.headers['Content-Length'] = body.size
|
23
|
+
end
|
12
24
|
@handler.call(context)
|
13
25
|
end
|
14
|
-
|
15
26
|
end
|
16
27
|
|
17
28
|
handler(Handler, step: :sign, priority: 0)
|
@@ -1,24 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Seahorse
|
2
4
|
module Client
|
3
5
|
module Plugins
|
4
|
-
# @seahorse.client.option [String] :endpoint
|
5
|
-
# The HTTP or HTTPS endpoint to send requests to.
|
6
|
-
# For example:
|
7
|
-
#
|
8
|
-
# 'http://example.com'
|
9
|
-
# 'https://example.com'
|
10
|
-
# 'http://example.com:123'
|
11
|
-
#
|
12
6
|
class Endpoint < Plugin
|
13
7
|
|
14
|
-
option(:endpoint
|
8
|
+
option(:endpoint,
|
9
|
+
doc_type: 'String, URI::HTTPS, URI::HTTP',
|
10
|
+
docstring: <<-DOCS)
|
11
|
+
Normally you should not configure the `:endpoint` option
|
12
|
+
directly. This is normally constructed from the `:region`
|
13
|
+
option. Configuring `:endpoint` is normally reserved for
|
14
|
+
connecting to test or custom endpoints. The endpoint should
|
15
|
+
be a URI formatted like:
|
16
|
+
|
17
|
+
'http://example.com'
|
18
|
+
'https://example.com'
|
19
|
+
'http://example.com:123'
|
20
|
+
|
21
|
+
DOCS
|
15
22
|
|
16
23
|
def add_handlers(handlers, config)
|
17
24
|
handlers.add(Handler, priority: 90)
|
18
25
|
end
|
19
26
|
|
20
27
|
def after_initialize(client)
|
21
|
-
|
22
28
|
endpoint = client.config.endpoint
|
23
29
|
if endpoint.nil?
|
24
30
|
msg = "missing required option `:endpoint'"
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'seahorse/client/h2/handler'
|
4
|
+
|
5
|
+
module Seahorse
|
6
|
+
module Client
|
7
|
+
module Plugins
|
8
|
+
class H2 < Plugin
|
9
|
+
|
10
|
+
# H2 Client
|
11
|
+
option(:max_concurrent_streams, default: 100, doc_type: Integer, docstring: <<-DOCS)
|
12
|
+
Maximum concurrent streams used in HTTP2 connection, defaults to 100. Note that server may send back
|
13
|
+
:settings_max_concurrent_streams value which will take priority when initializing new streams.
|
14
|
+
DOCS
|
15
|
+
|
16
|
+
option(:connection_timeout, default: 60, doc_type: Integer, docstring: <<-DOCS)
|
17
|
+
Connection timeout in seconds, defaults to 60 sec.
|
18
|
+
DOCS
|
19
|
+
|
20
|
+
option(:connection_read_timeout, default: 60, doc_type: Integer, docstring: <<-DOCS)
|
21
|
+
Connection read timeout in seconds, defaults to 60 sec.
|
22
|
+
DOCS
|
23
|
+
|
24
|
+
option(:read_chunk_size, default: 1024, doc_type: Integer, docstring: '')
|
25
|
+
|
26
|
+
option(:raise_response_errors, default: true, doc_type: 'Boolean', docstring: <<-DOCS)
|
27
|
+
Defaults to `true`, raises errors if exist when #wait or #join! is called upon async response.
|
28
|
+
DOCS
|
29
|
+
|
30
|
+
# SSL Context
|
31
|
+
option(:ssl_ca_bundle, default: nil, doc_type: String, docstring: <<-DOCS) do |cfg|
|
32
|
+
Full path to the SSL certificate authority bundle file that should be used when
|
33
|
+
verifying peer certificates. If you do not pass `:ssl_ca_directory` or `:ssl_ca_bundle`
|
34
|
+
the system default will be used if available.
|
35
|
+
DOCS
|
36
|
+
ENV['AWS_CA_BUNDLE'] ||
|
37
|
+
Aws.shared_config.ca_bundle(profile: cfg.profile) if cfg.respond_to?(:profile)
|
38
|
+
end
|
39
|
+
|
40
|
+
option(:ssl_ca_directory, default: nil, doc_type: String, docstring: <<-DOCS)
|
41
|
+
Full path of the directory that contains the unbundled SSL certificate authority
|
42
|
+
files for verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
|
43
|
+
`:ssl_ca_directory` the system default will be used if available.
|
44
|
+
DOCS
|
45
|
+
|
46
|
+
option(:ssl_ca_store, default: nil, doc_type: String, docstring: '')
|
47
|
+
|
48
|
+
option(:ssl_verify_peer, default: true, doc_type: 'Boolean', docstring: <<-DOCS)
|
49
|
+
When `true`, SSL peer certificates are verified when establishing a connection.
|
50
|
+
DOCS
|
51
|
+
|
52
|
+
option(:http_wire_trace, default: false, doc_type: 'Boolean', docstring: <<-DOCS)
|
53
|
+
When `true`, HTTP2 debug output will be sent to the `:logger`.
|
54
|
+
DOCS
|
55
|
+
|
56
|
+
option(:enable_alpn, default: false, doc_type: 'Boolean', docstring: <<-DOCS)
|
57
|
+
Setting to `true` to enable ALPN in HTTP2 over TLS, requires Ruby version >= 2.3 and
|
58
|
+
Openssl version >= 1.0.2. Defaults to false. Note: not all service HTTP2 operations
|
59
|
+
supports ALPN on server side, please refer to service documentation.
|
60
|
+
DOCS
|
61
|
+
|
62
|
+
option(:logger)
|
63
|
+
|
64
|
+
handler(Client::H2::Handler, step: :send)
|
65
|
+
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -1,29 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Seahorse
|
2
4
|
module Client
|
3
5
|
module Plugins
|
4
|
-
|
5
|
-
# Enables logging for all requests. This plugin allows you to configure
|
6
|
-
# your logging device, the log format and the level to log messages at.
|
7
|
-
#
|
8
|
-
# @see Logging::Formatter
|
9
|
-
#
|
10
|
-
# @seahorse.client.option [Logger] :logger (nil) The Logger instance
|
11
|
-
# to send log messages to. If this option is not set, logging
|
12
|
-
# will be disabled.
|
13
|
-
#
|
14
|
-
# @seahorse.client.option [Symbol] :log_level (:info) The log level
|
15
|
-
# to send messages to the logger at.
|
16
|
-
#
|
17
|
-
# @seahorse.client.option [Logging::LogFormatter] :log_formatter The log
|
18
|
-
# formatter. Defaults to {Seahorse::Client::Logging::Formatter.default}.
|
19
|
-
#
|
6
|
+
# @api private
|
20
7
|
class Logging < Plugin
|
21
8
|
|
22
|
-
option(:logger,
|
9
|
+
option(:logger,
|
10
|
+
default: nil,
|
11
|
+
doc_type: 'Logger',
|
12
|
+
docstring: <<-DOCS)
|
13
|
+
The Logger instance to send log messages to. If this option
|
14
|
+
is not set, logging is disabled.
|
15
|
+
DOCS
|
23
16
|
|
24
|
-
option(:log_level,
|
17
|
+
option(:log_level,
|
18
|
+
default: :info,
|
19
|
+
doc_type: Symbol,
|
20
|
+
docstring: 'The log level to send messages to the logger at.')
|
25
21
|
|
26
|
-
option(:log_formatter,
|
22
|
+
option(:log_formatter,
|
23
|
+
default: Seahorse::Client::Logging::Formatter.default,
|
24
|
+
doc_default: 'Aws::Log::Formatter.default',
|
25
|
+
doc_type: 'Aws::Log::Formatter',
|
26
|
+
docstring: 'The log formatter.')
|
27
27
|
|
28
28
|
def add_handlers(handlers, config)
|
29
29
|
if config.logger
|
@@ -1,26 +1,70 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'seahorse/client/net_http/handler'
|
4
|
+
|
1
5
|
module Seahorse
|
2
6
|
module Client
|
3
7
|
module Plugins
|
4
|
-
|
5
|
-
# @seahorse.client.option [String] :http_proxy
|
6
|
-
# @seahorse.client.option [Integer] :http_open_timeout (15)
|
7
|
-
# @seahorse.client.option [Integer] :http_read_timeout (60)
|
8
|
-
# @seahorse.client.option [Integer] :http_idle_timeout (5)
|
9
|
-
# @seahorse.client.option [Float] :http_continue_timeout (1)
|
10
|
-
# @seahorse.client.option [Boolean] :http_wire_trace (false)
|
11
|
-
# @seahorse.client.option [Logger] :logger (nil)
|
12
|
-
# @seahorse.client.option [Boolean] :ssl_verify_peer (true)
|
13
|
-
# @seahorse.client.option [String] :ssl_ca_bundle
|
14
|
-
# @seahorse.client.option [String] :ssl_ca_directory
|
15
|
-
# @seahorse.client.option [String] :ssl_ca_store
|
16
8
|
class NetHttp < Plugin
|
17
9
|
|
18
|
-
|
19
|
-
|
10
|
+
option(:http_proxy, default: nil, doc_type: String, docstring: '')
|
11
|
+
|
12
|
+
option(:http_open_timeout, default: 15, doc_type: Integer, docstring: '') do |cfg|
|
13
|
+
resolve_http_open_timeout(cfg)
|
14
|
+
end
|
15
|
+
|
16
|
+
option(:http_read_timeout, default: 60, doc_type: Integer, docstring: '') do |cfg|
|
17
|
+
resolve_http_read_timeout(cfg)
|
18
|
+
end
|
19
|
+
|
20
|
+
option(:http_idle_timeout, default: 5, doc_type: Integer, docstring: '')
|
21
|
+
|
22
|
+
option(:http_continue_timeout, default: 1, doc_type: Integer, docstring: '')
|
23
|
+
|
24
|
+
option(:http_wire_trace, default: false, doc_type: 'Boolean', docstring: '')
|
25
|
+
|
26
|
+
option(:ssl_verify_peer, default: true, doc_type: 'Boolean', docstring: '')
|
27
|
+
|
28
|
+
option(:ssl_ca_bundle, doc_type: String, docstring: '') do |cfg|
|
29
|
+
ENV['AWS_CA_BUNDLE'] ||
|
30
|
+
Aws.shared_config.ca_bundle(profile: cfg.profile) if cfg.respond_to?(:profile)
|
31
|
+
end
|
32
|
+
|
33
|
+
option(:ssl_ca_directory, default: nil, doc_type: String, docstring: '')
|
34
|
+
|
35
|
+
option(:ssl_ca_store, default: nil, doc_type: String, docstring: '')
|
36
|
+
|
37
|
+
option(:ssl_timeout, default: nil, doc_type: Float, docstring: '') do |cfg|
|
38
|
+
resolve_ssl_timeout(cfg)
|
20
39
|
end
|
21
40
|
|
41
|
+
option(:logger) # for backwards compat
|
42
|
+
|
22
43
|
handler(Client::NetHttp::Handler, step: :send)
|
23
44
|
|
45
|
+
def self.resolve_http_open_timeout(cfg)
|
46
|
+
default_mode_value =
|
47
|
+
if cfg.respond_to?(:defaults_mode_config_resolver)
|
48
|
+
cfg.defaults_mode_config_resolver.resolve(:http_open_timeout)
|
49
|
+
end
|
50
|
+
default_mode_value || 15
|
51
|
+
end
|
52
|
+
|
53
|
+
def self.resolve_http_read_timeout(cfg)
|
54
|
+
default_mode_value =
|
55
|
+
if cfg.respond_to?(:defaults_mode_config_resolver)
|
56
|
+
cfg.defaults_mode_config_resolver.resolve(:http_read_timeout)
|
57
|
+
end
|
58
|
+
default_mode_value || 60
|
59
|
+
end
|
60
|
+
|
61
|
+
def self.resolve_ssl_timeout(cfg)
|
62
|
+
default_mode_value =
|
63
|
+
if cfg.respond_to?(:defaults_mode_config_resolver)
|
64
|
+
cfg.defaults_mode_config_resolver.resolve(:ssl_timeout)
|
65
|
+
end
|
66
|
+
default_mode_value || nil
|
67
|
+
end
|
24
68
|
end
|
25
69
|
end
|
26
70
|
end
|
@@ -1,12 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Seahorse
|
2
4
|
module Client
|
3
5
|
module Plugins
|
4
|
-
|
5
|
-
# @seahorse.client.option [Boolean] :raise_response_errors (true)
|
6
|
-
# When `true`, response errors are raised.
|
7
6
|
class RaiseResponseErrors < Plugin
|
8
7
|
|
9
|
-
option(:raise_response_errors,
|
8
|
+
option(:raise_response_errors,
|
9
|
+
default: true,
|
10
|
+
doc_type: 'Boolean',
|
11
|
+
docstring: 'When `true`, response errors are raised.')
|
10
12
|
|
11
13
|
# @api private
|
12
14
|
class Handler < Client::Handler
|