aws-sdk-core 2.4.0 → 3.53.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/ca-bundle.crt +3615 -3541
- data/lib/aws-sdk-core.rb +96 -408
- data/lib/aws-sdk-core/async_client_stubs.rb +80 -0
- data/lib/aws-sdk-core/binary.rb +6 -0
- data/lib/aws-sdk-core/binary/decode_handler.rb +56 -0
- data/lib/aws-sdk-core/binary/encode_handler.rb +32 -0
- data/lib/aws-sdk-core/binary/event_builder.rb +122 -0
- data/lib/aws-sdk-core/binary/event_parser.rb +134 -0
- data/lib/aws-sdk-core/binary/event_stream_decoder.rb +62 -0
- data/lib/aws-sdk-core/binary/event_stream_encoder.rb +53 -0
- data/lib/aws-sdk-core/client_side_monitoring/publisher.rb +41 -0
- data/lib/aws-sdk-core/client_side_monitoring/request_metrics.rb +197 -0
- data/lib/aws-sdk-core/client_stubs.rb +73 -10
- data/lib/aws-sdk-core/credential_provider.rb +2 -0
- data/lib/aws-sdk-core/credential_provider_chain.rb +22 -5
- data/lib/aws-sdk-core/ecs_credentials.rb +3 -3
- data/lib/aws-sdk-core/endpoint_cache.rb +188 -0
- data/lib/aws-sdk-core/errors.rb +174 -10
- data/lib/aws-sdk-core/event_emitter.rb +62 -0
- data/lib/aws-sdk-core/ini_parser.rb +1 -0
- data/lib/aws-sdk-core/instance_profile_credentials.rb +21 -12
- data/lib/aws-sdk-core/json.rb +4 -5
- data/lib/aws-sdk-core/json/builder.rb +4 -2
- data/lib/aws-sdk-core/json/error_handler.rb +19 -2
- data/lib/aws-sdk-core/json/handler.rb +22 -3
- data/lib/aws-sdk-core/json/parser.rb +1 -1
- 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 +56 -21
- data/lib/aws-sdk-core/plugins/api_key.rb +52 -0
- data/lib/aws-sdk-core/plugins/apig_authorizer_token.rb +30 -0
- data/lib/aws-sdk-core/plugins/apig_credentials_configuration.rb +34 -0
- data/lib/aws-sdk-core/plugins/apig_user_agent.rb +37 -0
- data/lib/aws-sdk-core/plugins/client_metrics_plugin.rb +256 -0
- data/lib/aws-sdk-core/plugins/client_metrics_send_plugin.rb +84 -0
- data/lib/aws-sdk-core/plugins/credentials_configuration.rb +62 -0
- data/lib/aws-sdk-core/plugins/endpoint_discovery.rb +160 -0
- data/lib/aws-sdk-core/plugins/endpoint_pattern.rb +63 -0
- data/lib/aws-sdk-core/plugins/event_stream_configuration.rb +30 -0
- data/lib/aws-sdk-core/plugins/global_configuration.rb +19 -10
- data/lib/aws-sdk-core/plugins/helpful_socket_errors.rb +41 -0
- data/lib/aws-sdk-core/plugins/idempotency_token.rb +36 -0
- data/lib/aws-sdk-core/plugins/invocation_id.rb +33 -0
- data/lib/aws-sdk-core/plugins/jsonvalue_converter.rb +29 -0
- 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/api_gateway.rb +10 -0
- 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 +28 -16
- data/lib/aws-sdk-core/plugins/response_paging.rb +5 -18
- data/lib/aws-sdk-core/plugins/retry_errors.rb +97 -23
- data/lib/aws-sdk-core/plugins/signature_v2.rb +51 -0
- data/lib/aws-sdk-core/plugins/signature_v4.rb +141 -0
- data/lib/aws-sdk-core/plugins/stub_responses.rb +35 -18
- data/lib/aws-sdk-core/plugins/transfer_encoding.rb +53 -0
- data/lib/aws-sdk-core/plugins/user_agent.rb +23 -6
- data/lib/aws-sdk-core/process_credentials.rb +76 -0
- data/lib/aws-sdk-core/query.rb +5 -0
- data/lib/aws-sdk-core/query/ec2_param_builder.rb +9 -3
- data/lib/aws-sdk-core/query/handler.rb +20 -16
- data/lib/aws-sdk-core/query/param_builder.rb +10 -4
- data/lib/aws-sdk-core/refreshing_credentials.rb +1 -1
- data/lib/aws-sdk-core/resources/collection.rb +121 -0
- data/lib/aws-sdk-core/rest.rb +10 -0
- data/lib/aws-sdk-core/rest/handler.rb +1 -0
- data/lib/aws-sdk-core/rest/request/builder.rb +2 -1
- data/lib/aws-sdk-core/rest/request/endpoint.rb +11 -66
- data/lib/aws-sdk-core/rest/request/headers.rb +20 -1
- data/lib/aws-sdk-core/rest/request/querystring_builder.rb +103 -0
- data/lib/aws-sdk-core/rest/response/body.rb +14 -1
- data/lib/aws-sdk-core/rest/response/headers.rb +9 -0
- data/lib/aws-sdk-core/rest/response/parser.rb +18 -14
- data/lib/aws-sdk-core/shared_config.rb +132 -18
- data/lib/aws-sdk-core/shared_credentials.rb +2 -0
- data/lib/aws-sdk-core/structure.rb +21 -11
- data/lib/aws-sdk-core/stubbing/data_applicator.rb +1 -1
- data/lib/aws-sdk-core/stubbing/empty_stub.rb +10 -3
- data/lib/aws-sdk-core/stubbing/protocols/api_gateway.rb +8 -0
- data/lib/aws-sdk-core/stubbing/protocols/ec2.rb +1 -1
- data/lib/aws-sdk-core/stubbing/protocols/rest.rb +99 -1
- data/lib/aws-sdk-core/stubbing/protocols/rest_json.rb +5 -1
- data/lib/aws-sdk-core/stubbing/protocols/rest_xml.rb +9 -5
- data/lib/aws-sdk-core/stubbing/stub_data.rb +16 -3
- data/lib/aws-sdk-core/util.rb +66 -0
- data/lib/aws-sdk-core/waiters.rb +3 -0
- data/lib/aws-sdk-core/waiters/poller.rb +5 -7
- data/lib/aws-sdk-core/waiters/waiter.rb +1 -0
- data/lib/aws-sdk-core/xml.rb +9 -0
- data/lib/aws-sdk-core/xml/builder.rb +11 -5
- data/lib/aws-sdk-core/xml/error_handler.rb +27 -5
- data/lib/aws-sdk-core/xml/parser.rb +1 -11
- data/lib/aws-sdk-core/xml/parser/engines/ox.rb +5 -1
- data/lib/aws-sdk-core/xml/parser/frame.rb +6 -6
- data/lib/aws-sdk-sts.rb +45 -0
- data/lib/aws-sdk-sts/client.rb +1761 -0
- data/lib/aws-sdk-sts/client_api.rb +304 -0
- data/lib/aws-sdk-sts/customizations.rb +0 -0
- data/lib/aws-sdk-sts/errors.rb +142 -0
- data/lib/aws-sdk-sts/resource.rb +23 -0
- data/lib/aws-sdk-sts/types.rb +1279 -0
- data/lib/seahorse.rb +60 -60
- data/lib/seahorse/client/async_base.rb +50 -0
- data/lib/seahorse/client/async_response.rb +62 -0
- data/lib/seahorse/client/base.rb +2 -8
- data/lib/seahorse/client/configuration.rb +9 -1
- data/lib/seahorse/client/h2/connection.rb +244 -0
- data/lib/seahorse/client/h2/handler.rb +151 -0
- data/lib/seahorse/client/http/async_response.rb +42 -0
- data/lib/seahorse/client/http/response.rb +10 -5
- data/lib/seahorse/client/logging/formatter.rb +5 -1
- data/lib/seahorse/client/logging/handler.rb +2 -0
- data/lib/seahorse/client/net_http/connection_pool.rb +27 -11
- data/lib/seahorse/client/net_http/handler.rb +10 -2
- data/lib/seahorse/client/net_http/patches.rb +9 -1
- data/lib/seahorse/client/networking_error.rb +28 -0
- data/lib/seahorse/client/plugin.rb +66 -6
- data/lib/seahorse/client/plugin_list.rb +3 -1
- data/lib/seahorse/client/plugins/content_length.rb +7 -2
- data/lib/seahorse/client/plugins/endpoint.rb +14 -10
- data/lib/seahorse/client/plugins/h2.rb +64 -0
- 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 +10 -1
- data/lib/seahorse/client/request_context.rb +5 -0
- data/lib/seahorse/client/response.rb +9 -20
- data/lib/seahorse/model/api.rb +37 -0
- data/lib/seahorse/model/authorizer.rb +21 -0
- data/lib/seahorse/model/operation.rb +20 -0
- data/lib/seahorse/model/shapes.rb +44 -2
- data/lib/seahorse/util.rb +1 -21
- metadata +112 -359
- data/apis/acm/2015-12-08/api-2.json +0 -495
- 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 -3347
- data/apis/apigateway/2015-07-09/examples-1.json +0 -5
- data/apis/apigateway/2015-07-09/paginators-1.json +0 -52
- data/apis/application-autoscaling/2016-02-06/api-2.json +0 -502
- data/apis/application-autoscaling/2016-02-06/examples-1.json +0 -5
- data/apis/application-autoscaling/2016-02-06/paginators-1.json +0 -22
- data/apis/autoscaling/2011-01-01/api-2.json +0 -2038
- data/apis/autoscaling/2011-01-01/examples-1.json +0 -5
- data/apis/autoscaling/2011-01-01/paginators-1.json +0 -52
- data/apis/autoscaling/2011-01-01/resources-1.json +0 -1613
- data/apis/autoscaling/2011-01-01/waiters-2.json +0 -62
- data/apis/cloudformation/2010-05-15/api-2.json +0 -1299
- data/apis/cloudformation/2010-05-15/examples-1.json +0 -5
- data/apis/cloudformation/2010-05-15/paginators-1.json +0 -27
- data/apis/cloudformation/2010-05-15/resources-1.json +0 -202
- data/apis/cloudformation/2010-05-15/waiters-2.json +0 -235
- data/apis/cloudfront/2016-01-28/api-2.json +0 -2218
- 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/cloudhsm/2014-05-30/api-2.json +0 -877
- data/apis/cloudhsm/2014-05-30/examples-1.json +0 -5
- data/apis/cloudsearch/2013-01-01/api-2.json +0 -2001
- data/apis/cloudsearch/2013-01-01/paginators-1.json +0 -20
- data/apis/cloudsearchdomain/2013-01-01/api-2.json +0 -373
- data/apis/cloudsearchdomain/2013-01-01/examples-1.json +0 -5
- data/apis/cloudtrail/2013-11-01/api-2.json +0 -801
- data/apis/cloudtrail/2013-11-01/examples-1.json +0 -5
- data/apis/cloudtrail/2013-11-01/paginators-1.json +0 -7
- data/apis/codecommit/2015-04-13/api-2.json +0 -916
- data/apis/codecommit/2015-04-13/examples-1.json +0 -5
- data/apis/codecommit/2015-04-13/paginators-1.json +0 -14
- data/apis/codedeploy/2014-10-06/api-2.json +0 -1954
- data/apis/codedeploy/2014-10-06/examples-1.json +0 -5
- data/apis/codedeploy/2014-10-06/paginators-1.json +0 -34
- data/apis/codepipeline/2015-07-09/api-2.json +0 -1633
- data/apis/codepipeline/2015-07-09/examples-1.json +0 -902
- data/apis/cognito-identity/2014-06-30/api-2.json +0 -859
- data/apis/cognito-identity/2014-06-30/examples-1.json +0 -5
- data/apis/cognito-idp/2016-04-18/api-2.json +0 -1657
- data/apis/cognito-idp/2016-04-18/examples-1.json +0 -5
- data/apis/cognito-sync/2014-06-30/api-2.json +0 -1874
- data/apis/config/2014-11-12/api-2.json +0 -1303
- data/apis/config/2014-11-12/examples-1.json +0 -5
- data/apis/config/2014-11-12/paginators-1.json +0 -10
- data/apis/datapipeline/2012-10-29/api-2.json +0 -1167
- data/apis/datapipeline/2012-10-29/paginators-1.json +0 -26
- data/apis/devicefarm/2015-06-23/api-2.json +0 -2030
- data/apis/devicefarm/2015-06-23/examples-1.json +0 -5
- data/apis/devicefarm/2015-06-23/paginators-1.json +0 -74
- data/apis/directconnect/2012-10-25/api-2.json +0 -793
- 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 -556
- data/apis/discovery/2015-11-01/examples-1.json +0 -5
- data/apis/dms/2016-01-01/api-2.json +0 -1469
- data/apis/dms/2016-01-01/examples-1.json +0 -5
- data/apis/ds/2015-04-16/api-2.json +0 -1674
- data/apis/ds/2015-04-16/examples-1.json +0 -5
- data/apis/dynamodb/2012-08-10/api-2.json +0 -1200
- data/apis/dynamodb/2012-08-10/examples-1.json +0 -5
- 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 -13759
- 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 -13842
- data/apis/ec2/2016-04-01/examples-1.json +0 -5
- 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/ecr/2015-09-21/api-2.json +0 -849
- data/apis/ecr/2015-09-21/examples-1.json +0 -5
- data/apis/ecs/2014-11-13/api-2.json +0 -1396
- data/apis/ecs/2014-11-13/examples-1.json +0 -5
- 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 -2426
- data/apis/elasticache/2015-02-02/examples-1.json +0 -5
- 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 -1894
- 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 -713
- data/apis/elasticfilesystem/2015-02-01/examples-1.json +0 -5
- data/apis/elasticloadbalancing/2012-06-01/api-2.json +0 -2145
- data/apis/elasticloadbalancing/2012-06-01/paginators-1.json +0 -18
- data/apis/elasticloadbalancing/2012-06-01/waiters-2.json +0 -49
- data/apis/elasticmapreduce/2009-03-31/api-2.json +0 -1341
- 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 -1807
- 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 -1791
- data/apis/email/2010-12-01/examples-1.json +0 -5
- 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 -764
- data/apis/events/2015-10-07/api-2.json +0 -643
- data/apis/events/2015-10-07/examples-1.json +0 -5
- data/apis/firehose/2015-08-04/api-2.json +0 -719
- data/apis/gamelift/2015-10-01/api-2.json +0 -2307
- data/apis/gamelift/2015-10-01/examples-1.json +0 -5
- data/apis/glacier/2012-06-01/api-2.json +0 -2144
- 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/iam/2010-05-08/api-2.json +0 -4514
- data/apis/iam/2010-05-08/examples-1.json +0 -5
- 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 -666
- data/apis/importexport/2010-06-01/paginators-1.json +0 -11
- data/apis/inspector/2016-02-16/api-2.json +0 -1964
- data/apis/inspector/2016-02-16/examples-1.json +0 -5
- data/apis/iot-data/2015-05-28/api-2.json +0 -263
- data/apis/iot/2015-05-28/api-2.json +0 -3800
- data/apis/iot/2015-05-28/examples-1.json +0 -5
- data/apis/kinesis/2013-12-02/api-2.json +0 -822
- 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/kms/2014-11-01/api-2.json +0 -1209
- data/apis/kms/2014-11-01/examples-1.json +0 -5
- data/apis/kms/2014-11-01/paginators-1.json +0 -32
- data/apis/lambda/2014-11-11/api-2.json +0 -667
- data/apis/lambda/2014-11-11/paginators-1.json +0 -16
- data/apis/lambda/2015-03-31/api-2.json +0 -1342
- data/apis/lambda/2015-03-31/examples-1.json +0 -5
- data/apis/lambda/2015-03-31/paginators-1.json +0 -16
- data/apis/logs/2014-03-28/api-2.json +0 -1138
- 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 -1947
- 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 -120
- data/apis/marketplacecommerceanalytics/2015-07-01/examples-1.json +0 -5
- data/apis/meteringmarketplace/2016-01-14/api-2.json +0 -127
- data/apis/meteringmarketplace/2016-01-14/examples-1.json +0 -5
- data/apis/monitoring/2010-08-01/api-2.json +0 -790
- 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/opsworks/2013-02-18/api-2.json +0 -2606
- 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/rds/2014-10-31/api-2.json +0 -4757
- data/apis/rds/2014-10-31/examples-1.json +0 -5
- 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 -102
- data/apis/redshift/2012-12-01/api-2.json +0 -3768
- 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/route53/2013-04-01/api-2.json +0 -3245
- data/apis/route53/2013-04-01/examples-1.json +0 -5
- 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 -1197
- data/apis/route53domains/2014-05-15/paginators-1.json +0 -17
- data/apis/s3/2006-03-01/api-2.json +0 -4517
- 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 -954
- data/apis/sdb/2009-04-15/paginators-1.json +0 -15
- data/apis/servicecatalog/2015-12-10/api-2.json +0 -749
- data/apis/servicecatalog/2015-12-10/examples-1.json +0 -5
- data/apis/sns/2010-03-31/api-2.json +0 -1139
- 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 -950
- data/apis/sqs/2012-11-05/examples-1.json +0 -44
- data/apis/sqs/2012-11-05/paginators-1.json +0 -7
- data/apis/ssm/2014-11-06/api-2.json +0 -1796
- data/apis/ssm/2014-11-06/examples-1.json +0 -5
- data/apis/ssm/2014-11-06/paginators-1.json +0 -34
- data/apis/storagegateway/2013-06-30/api-2.json +0 -2275
- data/apis/storagegateway/2013-06-30/examples-1.json +0 -5
- data/apis/storagegateway/2013-06-30/paginators-1.json +0 -52
- data/apis/streams.dynamodb/2012-08-10/api-2.json +0 -397
- data/apis/streams.dynamodb/2012-08-10/examples-1.json +0 -5
- data/apis/sts/2011-06-15/api-2.json +0 -521
- data/apis/sts/2011-06-15/examples-1.json +0 -5
- data/apis/support/2013-04-15/api-2.json +0 -869
- data/apis/support/2013-04-15/paginators-1.json +0 -25
- data/apis/swf/2012-01-25/api-2.json +0 -2838
- 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 -5
- data/apis/workspaces/2015-04-08/api-2.json +0 -632
- data/apis/workspaces/2015-04-08/examples-1.json +0 -5
- data/apis/workspaces/2015-04-08/paginators-1.json +0 -20
- data/bin/aws.rb +0 -180
- data/endpoints.json +0 -1460
- 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 -217
- data/lib/aws-sdk-core/api/docs/builder.rb +0 -220
- data/lib/aws-sdk-core/api/docs/client_type_documenter.rb +0 -109
- data/lib/aws-sdk-core/api/docs/docstring_provider.rb +0 -75
- data/lib/aws-sdk-core/api/docs/operation_documenter.rb +0 -138
- 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/autoscaling.rb +0 -8
- data/lib/aws-sdk-core/checksums.rb +0 -51
- data/lib/aws-sdk-core/client.rb +0 -57
- data/lib/aws-sdk-core/client_waiters.rb +0 -120
- data/lib/aws-sdk-core/cloudformation.rb +0 -8
- data/lib/aws-sdk-core/cloudfront.rb +0 -15
- data/lib/aws-sdk-core/cloudfront/url_signer.rb +0 -167
- 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/codecommit.rb +0 -6
- data/lib/aws-sdk-core/codedeploy.rb +0 -6
- data/lib/aws-sdk-core/codepipeline.rb +0 -5
- data/lib/aws-sdk-core/cognitoidentity.rb +0 -5
- 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/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.rb +0 -40
- data/lib/aws-sdk-core/dynamodb/attribute_value.rb +0 -108
- data/lib/aws-sdk-core/dynamodbstreams.rb +0 -5
- data/lib/aws-sdk-core/ec2.rb +0 -8
- data/lib/aws-sdk-core/ecr.rb +0 -5
- 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 -6
- data/lib/aws-sdk-core/elasticsearchservice.rb +0 -4
- data/lib/aws-sdk-core/elastictranscoder.rb +0 -6
- 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 -95
- data/lib/aws-sdk-core/firehose.rb +0 -4
- data/lib/aws-sdk-core/gamelift.rb +0 -5
- data/lib/aws-sdk-core/glacier.rb +0 -7
- 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/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/machinelearning.rb +0 -6
- data/lib/aws-sdk-core/marketplacecommerceanalytics.rb +0 -5
- data/lib/aws-sdk-core/marketplacemetering.rb +0 -5
- data/lib/aws-sdk-core/opsworks.rb +0 -8
- data/lib/aws-sdk-core/partitions.rb +0 -174
- 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 -78
- data/lib/aws-sdk-core/partitions/service.rb +0 -84
- 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/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 -87
- 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/request_signer.rb +0 -138
- data/lib/aws-sdk-core/plugins/route_53_id_fix.rb +0 -55
- data/lib/aws-sdk-core/plugins/s3_accelerate.rb +0 -73
- 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_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/rds.rb +0 -8
- data/lib/aws-sdk-core/redshift.rb +0 -7
- data/lib/aws-sdk-core/route53.rb +0 -7
- data/lib/aws-sdk-core/route53domains.rb +0 -5
- data/lib/aws-sdk-core/s3.rb +0 -26
- data/lib/aws-sdk-core/s3/bucket_region_cache.rb +0 -75
- data/lib/aws-sdk-core/s3/presigner.rb +0 -113
- 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/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 -233
- data/lib/aws-sdk-core/simpledb.rb +0 -5
- data/lib/aws-sdk-core/sns.rb +0 -6
- data/lib/aws-sdk-core/sqs.rb +0 -6
- data/lib/aws-sdk-core/ssm.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 -5
- 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 -5
- 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/workspaces.rb +0 -6
- data/lib/seahorse/client/plugins/restful_bindings.rb +0 -127
- data/service-models.json +0 -285
@@ -87,7 +87,9 @@ module Seahorse
|
|
87
87
|
@canonical_name = plugin.name || plugin.object_id
|
88
88
|
@plugin = plugin
|
89
89
|
when Symbol, String
|
90
|
-
|
90
|
+
words = plugin.to_s.split('.')
|
91
|
+
@canonical_name = words.pop
|
92
|
+
@gem_name = words.empty? ? nil : words.join('.')
|
91
93
|
@plugin = nil
|
92
94
|
else
|
93
95
|
@canonical_name = plugin.object_id
|
@@ -7,8 +7,13 @@ module Seahorse
|
|
7
7
|
class Handler < Client::Handler
|
8
8
|
|
9
9
|
def call(context)
|
10
|
-
|
11
|
-
|
10
|
+
begin
|
11
|
+
length = context.http_request.body.size
|
12
|
+
context.http_request.headers['Content-Length'] = length
|
13
|
+
rescue
|
14
|
+
# allowing `Content-Length` failed to be set
|
15
|
+
# see Aws::Plugins::TransferEncoding
|
16
|
+
end
|
12
17
|
@handler.call(context)
|
13
18
|
end
|
14
19
|
|
@@ -1,24 +1,28 @@
|
|
1
1
|
module Seahorse
|
2
2
|
module Client
|
3
3
|
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
4
|
class Endpoint < Plugin
|
13
5
|
|
14
|
-
option(:endpoint
|
6
|
+
option(:endpoint,
|
7
|
+
doc_type: 'String, URI::HTTPS, URI::HTTP',
|
8
|
+
docstring: <<-DOCS)
|
9
|
+
Normally you should not configure the `:endpoint` option
|
10
|
+
directly. This is normally constructed from the `:region`
|
11
|
+
option. Configuring `:endpoint` is normally reserved for
|
12
|
+
connecting to test endpoints. The endpoint should be a URI
|
13
|
+
formatted like:
|
14
|
+
|
15
|
+
'http://example.com'
|
16
|
+
'https://example.com'
|
17
|
+
'http://example.com:123'
|
18
|
+
|
19
|
+
DOCS
|
15
20
|
|
16
21
|
def add_handlers(handlers, config)
|
17
22
|
handlers.add(Handler, priority: 90)
|
18
23
|
end
|
19
24
|
|
20
25
|
def after_initialize(client)
|
21
|
-
|
22
26
|
endpoint = client.config.endpoint
|
23
27
|
if endpoint.nil?
|
24
28
|
msg = "missing required option `:endpoint'"
|
@@ -0,0 +1,64 @@
|
|
1
|
+
require 'seahorse/client/h2/handler'
|
2
|
+
|
3
|
+
module Seahorse
|
4
|
+
module Client
|
5
|
+
module Plugins
|
6
|
+
class H2 < Plugin
|
7
|
+
|
8
|
+
# H2 Client
|
9
|
+
option(:max_concurrent_streams, default: 100, doc_type: Integer, docstring: <<-DOCS)
|
10
|
+
Maximum concurrent streams used in HTTP2 connection, defaults to 100. Note that server may send back
|
11
|
+
:settings_max_concurrent_streams value which will take priority when initializing new streams.
|
12
|
+
DOCS
|
13
|
+
|
14
|
+
option(:connection_timeout, default: 60, doc_type: Integer, docstring: <<-DOCS)
|
15
|
+
Connection timeout in seconds, defaults to 60 sec.
|
16
|
+
DOCS
|
17
|
+
|
18
|
+
option(:connection_read_timeout, default: 60, doc_type: Integer, docstring: <<-DOCS)
|
19
|
+
Connection read timeout in seconds, defaults to 60 sec.
|
20
|
+
DOCS
|
21
|
+
|
22
|
+
option(:read_chunk_size, default: 1024, doc_type: Integer, docstring: '')
|
23
|
+
|
24
|
+
option(:raise_response_errors, default: true, doc_type: 'Boolean', docstring: <<-DOCS)
|
25
|
+
Defaults to `true`, raises errors if exist when #wait or #join! is called upon async response.
|
26
|
+
DOCS
|
27
|
+
|
28
|
+
# SSL Context
|
29
|
+
option(:ssl_ca_bundle, default: nil, doc_type: String, docstring: <<-DOCS)
|
30
|
+
Full path to the SSL certificate authority bundle file that should be used when
|
31
|
+
verifying peer certificates. If you do not pass `:ssl_ca_directory` or `:ssl_ca_bundle`
|
32
|
+
the system default will be used if available.
|
33
|
+
DOCS
|
34
|
+
|
35
|
+
option(:ssl_ca_directory, default: nil, doc_type: String, docstring: <<-DOCS)
|
36
|
+
Full path of the directory that contains the unbundled SSL certificate authority
|
37
|
+
files for verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
|
38
|
+
`:ssl_ca_directory` the system default will be used if available.
|
39
|
+
DOCS
|
40
|
+
|
41
|
+
option(:ssl_ca_store, default: nil, doc_type: String, docstring: '')
|
42
|
+
|
43
|
+
option(:ssl_verify_peer, default: true, doc_type: 'Boolean', docstring: <<-DOCS)
|
44
|
+
When `true`, SSL peer certificates are verified when establishing a connection.
|
45
|
+
DOCS
|
46
|
+
|
47
|
+
option(:http_wire_trace, default: false, doc_type: 'Boolean', docstring: <<-DOCS)
|
48
|
+
When `true`, HTTP2 debug output will be sent to the `:logger`.
|
49
|
+
DOCS
|
50
|
+
|
51
|
+
option(:enable_alpn, default: false, doc_type: 'Boolean', docstring: <<-DOCS)
|
52
|
+
Setting to `true` to enable ALPN in HTTP2 over TLS, requires Ruby version >= 2.3 and
|
53
|
+
Openssl version >= 1.0.2. Defaults to false. Note: not all service HTTP2 operations
|
54
|
+
supports ALPN on server side, please refer to service documentation.
|
55
|
+
DOCS
|
56
|
+
|
57
|
+
option(:logger)
|
58
|
+
|
59
|
+
handler(Client::H2::Handler, step: :send)
|
60
|
+
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -1,29 +1,27 @@
|
|
1
1
|
module Seahorse
|
2
2
|
module Client
|
3
3
|
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
|
-
#
|
4
|
+
# @api private
|
20
5
|
class Logging < Plugin
|
21
6
|
|
22
|
-
option(:logger,
|
7
|
+
option(:logger,
|
8
|
+
default: nil,
|
9
|
+
doc_type: 'Logger',
|
10
|
+
docstring: <<-DOCS)
|
11
|
+
The Logger instance to send log messages to. If this option
|
12
|
+
is not set, logging is disabled.
|
13
|
+
DOCS
|
23
14
|
|
24
|
-
option(:log_level,
|
15
|
+
option(:log_level,
|
16
|
+
default: :info,
|
17
|
+
doc_type: Symbol,
|
18
|
+
docstring: 'The log level to send messages to the logger at.')
|
25
19
|
|
26
|
-
option(:log_formatter,
|
20
|
+
option(:log_formatter,
|
21
|
+
default: Seahorse::Client::Logging::Formatter.default,
|
22
|
+
doc_default: 'Aws::Log::Formatter.default',
|
23
|
+
doc_type: 'Aws::Log::Formatter',
|
24
|
+
docstring: 'The log formatter.')
|
27
25
|
|
28
26
|
def add_handlers(handlers, config)
|
29
27
|
if config.logger
|
@@ -1,23 +1,31 @@
|
|
1
|
+
require 'seahorse/client/net_http/handler'
|
2
|
+
|
1
3
|
module Seahorse
|
2
4
|
module Client
|
3
5
|
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
6
|
class NetHttp < Plugin
|
17
7
|
|
18
|
-
|
19
|
-
|
20
|
-
|
8
|
+
option(:http_proxy, default: nil, doc_type: String, docstring: '')
|
9
|
+
|
10
|
+
option(:http_open_timeout, default: 15, doc_type: Integer, docstring: '')
|
11
|
+
|
12
|
+
option(:http_read_timeout, default: 60, doc_type: Integer, docstring: '')
|
13
|
+
|
14
|
+
option(:http_idle_timeout, default: 5, doc_type: Integer, docstring: '')
|
15
|
+
|
16
|
+
option(:http_continue_timeout, default: 1, doc_type: Integer, docstring: '')
|
17
|
+
|
18
|
+
option(:http_wire_trace, default: false, doc_type: 'Boolean', docstring: '')
|
19
|
+
|
20
|
+
option(:ssl_verify_peer, default: true, doc_type: 'Boolean', docstring: '')
|
21
|
+
|
22
|
+
option(:ssl_ca_bundle, default: nil, doc_type: String, docstring: '')
|
23
|
+
|
24
|
+
option(:ssl_ca_directory, default: nil, doc_type: String, docstring: '')
|
25
|
+
|
26
|
+
option(:ssl_ca_store, default: nil, doc_type: String, docstring: '')
|
27
|
+
|
28
|
+
option(:logger) # for backwards compat
|
21
29
|
|
22
30
|
handler(Client::NetHttp::Handler, step: :send)
|
23
31
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module Seahorse
|
2
2
|
module Client
|
3
3
|
module Plugins
|
4
|
-
|
5
|
-
# @seahorse.client.option [Boolean] :raise_response_errors (true)
|
6
|
-
# When `true`, response errors are raised.
|
7
4
|
class RaiseResponseErrors < Plugin
|
8
5
|
|
9
|
-
option(:raise_response_errors,
|
6
|
+
option(:raise_response_errors,
|
7
|
+
default: true,
|
8
|
+
doc_type: 'Boolean',
|
9
|
+
docstring: 'When `true`, response errors are raised.')
|
10
10
|
|
11
11
|
# @api private
|
12
12
|
class Handler < Client::Handler
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
|
1
3
|
module Seahorse
|
2
4
|
module Client
|
3
5
|
module Plugins
|
@@ -39,7 +41,14 @@ module Seahorse
|
|
39
41
|
context.http_response.on_error do
|
40
42
|
body = context.http_response.body
|
41
43
|
File.unlink(body) if ManagedFile === body
|
42
|
-
|
44
|
+
# Aws::S3::Encryption::DecryptHandler (with lower priority)
|
45
|
+
# has callbacks registered after ResponseTarget::Handler,
|
46
|
+
# where http_response.body is an IODecrypter
|
47
|
+
# and has error callbacks handling for it.
|
48
|
+
# Thus avoid early remove of IODecrypter at ResponseTarget::Handler
|
49
|
+
unless context.http_response.body.respond_to?(:io)
|
50
|
+
context.http_response.body = StringIO.new
|
51
|
+
end
|
43
52
|
end
|
44
53
|
end
|
45
54
|
|
@@ -6,6 +6,7 @@ module Seahorse
|
|
6
6
|
|
7
7
|
# @option options [required,Symbol] :operation_name (nil)
|
8
8
|
# @option options [required,Model::Operation] :operation (nil)
|
9
|
+
# @option options [Model::Authorizer] :authorizer (nil)
|
9
10
|
# @option options [Hash] :params ({})
|
10
11
|
# @option options [Configuration] :config (nil)
|
11
12
|
# @option options [Http::Request] :http_request (Http::Request.new)
|
@@ -14,6 +15,7 @@ module Seahorse
|
|
14
15
|
def initialize(options = {})
|
15
16
|
@operation_name = options[:operation_name]
|
16
17
|
@operation = options[:operation]
|
18
|
+
@authorizer = options[:authorizer]
|
17
19
|
@client = options[:client]
|
18
20
|
@params = options[:params] || {}
|
19
21
|
@config = options[:config]
|
@@ -29,6 +31,9 @@ module Seahorse
|
|
29
31
|
# @return [Model::Operation]
|
30
32
|
attr_accessor :operation
|
31
33
|
|
34
|
+
# @return [Model::Authorizer] APIG SDKs only
|
35
|
+
attr_accessor :authorizer
|
36
|
+
|
32
37
|
# @return [Seahorse::Client::Base]
|
33
38
|
attr_accessor :client
|
34
39
|
|
@@ -1,6 +1,8 @@
|
|
1
|
+
require 'delegate'
|
2
|
+
|
1
3
|
module Seahorse
|
2
4
|
module Client
|
3
|
-
class Response
|
5
|
+
class Response < Delegator
|
4
6
|
|
5
7
|
# @option options [RequestContext] :context (nil)
|
6
8
|
# @option options [Integer] :status_code (nil)
|
@@ -63,29 +65,16 @@ module Seahorse
|
|
63
65
|
self
|
64
66
|
end
|
65
67
|
|
68
|
+
# Necessary to define as a subclass of Delegator
|
66
69
|
# @api private
|
67
|
-
def
|
68
|
-
@data
|
69
|
-
end
|
70
|
-
|
71
|
-
# @api private
|
72
|
-
def pretty_print(q)
|
73
|
-
@data.pretty_print(q)
|
70
|
+
def __getobj__
|
71
|
+
@data
|
74
72
|
end
|
75
73
|
|
74
|
+
# Necessary to define as a subclass of Delegator
|
76
75
|
# @api private
|
77
|
-
def
|
78
|
-
@data
|
79
|
-
end
|
80
|
-
|
81
|
-
private
|
82
|
-
|
83
|
-
def method_missing(*args, &block)
|
84
|
-
if @data.respond_to?(args.first, false)
|
85
|
-
@data.send(*args, &block)
|
86
|
-
else
|
87
|
-
super
|
88
|
-
end
|
76
|
+
def __setobj__(obj)
|
77
|
+
@data = obj
|
89
78
|
end
|
90
79
|
|
91
80
|
end
|
data/lib/seahorse/model/api.rb
CHANGED
@@ -5,6 +5,8 @@ module Seahorse
|
|
5
5
|
def initialize
|
6
6
|
@metadata = {}
|
7
7
|
@operations = {}
|
8
|
+
@authorizers = {}
|
9
|
+
@endpoint_operation = nil
|
8
10
|
end
|
9
11
|
|
10
12
|
# @return [String, nil]
|
@@ -13,6 +15,9 @@ module Seahorse
|
|
13
15
|
# @return [Hash]
|
14
16
|
attr_accessor :metadata
|
15
17
|
|
18
|
+
# @return [Symbol|nil]
|
19
|
+
attr_accessor :endpoint_operation
|
20
|
+
|
16
21
|
def operations(&block)
|
17
22
|
if block_given?
|
18
23
|
@operations.each(&block)
|
@@ -33,10 +38,42 @@ module Seahorse
|
|
33
38
|
@operations.keys
|
34
39
|
end
|
35
40
|
|
41
|
+
def async_operation_names
|
42
|
+
@operations.select {|_, op| op.async }.keys
|
43
|
+
end
|
44
|
+
|
36
45
|
def add_operation(name, operation)
|
37
46
|
@operations[name.to_sym] = operation
|
38
47
|
end
|
39
48
|
|
49
|
+
def authorizers(&block)
|
50
|
+
if block_given?
|
51
|
+
@authorizers.each(&block)
|
52
|
+
else
|
53
|
+
@authorizers.enum_for(:each)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def authorizer(name)
|
58
|
+
if @authorizers.key?(name.to_sym)
|
59
|
+
@authorizers[name.to_sym]
|
60
|
+
else
|
61
|
+
raise ArgumentError, "unknown authorizer #{name.inspect}"
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
def authorizer_names
|
66
|
+
@authorizers.keys
|
67
|
+
end
|
68
|
+
|
69
|
+
def add_authorizer(name, authorizer)
|
70
|
+
@authorizers[name.to_sym] = authorizer
|
71
|
+
end
|
72
|
+
|
73
|
+
def inspect(*args)
|
74
|
+
"#<#{self.class.name}>"
|
75
|
+
end
|
76
|
+
|
40
77
|
end
|
41
78
|
end
|
42
79
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Seahorse
|
2
|
+
module Model
|
3
|
+
class Authorizer
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@type = 'provided'
|
7
|
+
@placement = {}
|
8
|
+
end
|
9
|
+
|
10
|
+
# @return [String]
|
11
|
+
attr_accessor :name
|
12
|
+
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :type
|
15
|
+
|
16
|
+
# @return [Hash]
|
17
|
+
attr_accessor :placement
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -8,6 +8,7 @@ module Seahorse
|
|
8
8
|
@deprecated = false
|
9
9
|
@errors = []
|
10
10
|
@metadata = {}
|
11
|
+
@async = false
|
11
12
|
end
|
12
13
|
|
13
14
|
# @return [String, nil]
|
@@ -22,9 +23,21 @@ module Seahorse
|
|
22
23
|
# @return [Boolean]
|
23
24
|
attr_accessor :deprecated
|
24
25
|
|
26
|
+
# @return [Boolean]
|
27
|
+
attr_accessor :endpoint_operation
|
28
|
+
|
29
|
+
# @return [Hash]
|
30
|
+
attr_accessor :endpoint_discovery
|
31
|
+
|
25
32
|
# @return [String, nil]
|
26
33
|
attr_accessor :documentation
|
27
34
|
|
35
|
+
# @return [Hash, nil]
|
36
|
+
attr_accessor :endpoint_pattern
|
37
|
+
|
38
|
+
# @return [String, nil]
|
39
|
+
attr_accessor :authorizer
|
40
|
+
|
28
41
|
# @return [ShapeRef, nil]
|
29
42
|
attr_accessor :input
|
30
43
|
|
@@ -34,6 +47,13 @@ module Seahorse
|
|
34
47
|
# @return [Array<ShapeRef>]
|
35
48
|
attr_accessor :errors
|
36
49
|
|
50
|
+
# APIG only
|
51
|
+
# @return [Boolean]
|
52
|
+
attr_accessor :require_apikey
|
53
|
+
|
54
|
+
# @return [Boolean]
|
55
|
+
attr_accessor :async
|
56
|
+
|
37
57
|
def [](key)
|
38
58
|
@metadata[key.to_s]
|
39
59
|
end
|