aws-sdk-core 2.11.445 → 3.86.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -0
- data/lib/aws-sdk-core.rb +88 -582
- data/lib/aws-sdk-core/arn.rb +77 -0
- data/lib/aws-sdk-core/arn_parser.rb +38 -0
- data/lib/aws-sdk-core/assume_role_web_identity_credentials.rb +101 -0
- 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 +49 -0
- data/lib/aws-sdk-core/client_side_monitoring/request_metrics.rb +197 -0
- data/lib/aws-sdk-core/client_stubs.rb +11 -8
- data/lib/aws-sdk-core/credential_provider.rb +0 -29
- data/lib/aws-sdk-core/credential_provider_chain.rb +41 -14
- data/lib/aws-sdk-core/deprecations.rb +16 -10
- data/lib/aws-sdk-core/endpoint_cache.rb +14 -11
- data/lib/aws-sdk-core/errors.rb +146 -24
- 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 +58 -74
- data/lib/aws-sdk-core/json.rb +9 -10
- 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/formatter.rb +7 -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 +60 -26
- 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 +280 -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 +43 -50
- data/lib/aws-sdk-core/plugins/endpoint_pattern.rb +9 -8
- 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/idempotency_token.rb +1 -2
- data/lib/aws-sdk-core/plugins/invocation_id.rb +33 -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 +27 -15
- data/lib/aws-sdk-core/plugins/response_paging.rb +5 -18
- data/lib/aws-sdk-core/plugins/retry_errors.rb +81 -25
- 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 +80 -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 +3 -3
- data/lib/aws-sdk-core/rest/request/headers.rb +11 -1
- data/lib/aws-sdk-core/rest/request/querystring_builder.rb +13 -0
- data/lib/aws-sdk-core/rest/response/body.rb +14 -1
- data/lib/aws-sdk-core/rest/response/headers.rb +2 -0
- data/lib/aws-sdk-core/rest/response/parser.rb +18 -14
- data/lib/aws-sdk-core/shared_config.rb +187 -15
- data/lib/aws-sdk-core/shared_credentials.rb +2 -0
- data/lib/aws-sdk-core/structure.rb +22 -13
- 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 +92 -0
- 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 -9
- 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/frame.rb +6 -6
- data/lib/aws-sdk-sts.rb +45 -0
- data/lib/aws-sdk-sts/client.rb +2126 -0
- data/lib/aws-sdk-sts/client_api.rb +336 -0
- data/lib/aws-sdk-sts/customizations.rb +2 -0
- data/lib/aws-sdk-sts/errors.rb +142 -0
- data/lib/aws-sdk-sts/plugins/sts_regional_endpoints.rb +32 -0
- data/lib/aws-sdk-sts/presigner.rb +67 -0
- data/lib/aws-sdk-sts/resource.rb +23 -0
- data/lib/aws-sdk-sts/types.rb +1504 -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 +5 -9
- data/lib/seahorse/client/configuration.rb +4 -2
- data/lib/seahorse/client/h2/connection.rb +246 -0
- data/lib/seahorse/client/h2/handler.rb +151 -0
- data/lib/seahorse/client/handler_list_entry.rb +2 -2
- 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 +6 -2
- data/lib/seahorse/client/logging/handler.rb +2 -0
- data/lib/seahorse/client/net_http/connection_pool.rb +16 -4
- data/lib/seahorse/client/net_http/handler.rb +5 -0
- 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 +67 -6
- 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/model/api.rb +33 -0
- data/lib/seahorse/model/authorizer.rb +21 -0
- data/lib/seahorse/model/operation.rb +11 -0
- data/lib/seahorse/model/shapes.rb +44 -2
- data/lib/seahorse/util.rb +1 -22
- metadata +104 -1169
- data/apis/AWSMigrationHub/2017-05-31/api-2.json +0 -914
- data/apis/AWSMigrationHub/2017-05-31/examples-1.json +0 -5
- data/apis/AWSMigrationHub/2017-05-31/paginators-1.json +0 -34
- data/apis/accessanalyzer/2019-11-01/api-2.json +0 -1128
- data/apis/accessanalyzer/2019-11-01/examples-1.json +0 -5
- data/apis/accessanalyzer/2019-11-01/paginators-1.json +0 -24
- data/apis/acm-pca/2017-08-22/api-2.json +0 -1091
- data/apis/acm-pca/2017-08-22/examples-1.json +0 -5
- data/apis/acm-pca/2017-08-22/paginators-1.json +0 -22
- data/apis/acm-pca/2017-08-22/waiters-2.json +0 -61
- data/apis/acm/2015-12-08/api-2.json +0 -872
- data/apis/acm/2015-12-08/examples-1.json +0 -5
- data/apis/acm/2015-12-08/paginators-1.json +0 -10
- data/apis/acm/2015-12-08/smoke.json +0 -18
- data/apis/acm/2015-12-08/waiters-2.json +0 -35
- data/apis/alexaforbusiness/2017-11-09/api-2.json +0 -4133
- data/apis/alexaforbusiness/2017-11-09/examples-1.json +0 -5
- data/apis/alexaforbusiness/2017-11-09/paginators-1.json +0 -94
- data/apis/amplify/2017-07-25/api-2.json +0 -2374
- data/apis/amplify/2017-07-25/examples-1.json +0 -5
- data/apis/amplify/2017-07-25/paginators-1.json +0 -4
- data/apis/apigateway/2015-07-09/api-2.json +0 -5384
- data/apis/apigateway/2015-07-09/examples-1.json +0 -5
- data/apis/apigateway/2015-07-09/paginators-1.json +0 -76
- data/apis/apigateway/2015-07-09/smoke.json +0 -20
- data/apis/apigatewaymanagementapi/2018-11-29/api-2.json +0 -192
- data/apis/apigatewaymanagementapi/2018-11-29/paginators-1.json +0 -3
- data/apis/apigatewayv2/2018-11-29/api-2.json +0 -6379
- data/apis/apigatewayv2/2018-11-29/paginators-1.json +0 -3
- data/apis/appconfig/2019-10-09/api-2.json +0 -1391
- data/apis/appconfig/2019-10-09/examples-1.json +0 -5
- data/apis/appconfig/2019-10-09/paginators-1.json +0 -29
- data/apis/application-autoscaling/2016-02-06/api-2.json +0 -786
- data/apis/application-autoscaling/2016-02-06/examples-1.json +0 -384
- data/apis/application-autoscaling/2016-02-06/paginators-1.json +0 -28
- data/apis/application-autoscaling/2016-02-06/smoke.json +0 -13
- data/apis/application-insights/2018-11-25/api-2.json +0 -1208
- data/apis/application-insights/2018-11-25/examples-1.json +0 -5
- data/apis/application-insights/2018-11-25/paginators-1.json +0 -34
- data/apis/appmesh/2018-10-01/api-2.json +0 -1972
- data/apis/appmesh/2018-10-01/examples-1.json +0 -4
- data/apis/appmesh/2018-10-01/paginators-1.json +0 -28
- data/apis/appmesh/2019-01-25/api-2.json +0 -3424
- data/apis/appmesh/2019-01-25/examples-1.json +0 -4
- data/apis/appmesh/2019-01-25/paginators-1.json +0 -40
- data/apis/appstream/2016-12-01/api-2.json +0 -2356
- data/apis/appstream/2016-12-01/examples-1.json +0 -5
- data/apis/appstream/2016-12-01/paginators-1.json +0 -14
- data/apis/appstream/2016-12-01/smoke.json +0 -11
- data/apis/appstream/2016-12-01/waiters-2.json +0 -55
- data/apis/appsync/2017-07-25/api-2.json +0 -2288
- data/apis/appsync/2017-07-25/examples-1.json +0 -5
- data/apis/appsync/2017-07-25/paginators-1.json +0 -4
- data/apis/athena/2017-05-18/api-2.json +0 -989
- data/apis/athena/2017-05-18/examples-1.json +0 -5
- data/apis/athena/2017-05-18/paginators-1.json +0 -24
- data/apis/athena/2017-05-18/smoke.json +0 -11
- data/apis/autoscaling-plans/2018-01-06/api-2.json +0 -659
- data/apis/autoscaling-plans/2018-01-06/examples-1.json +0 -5
- data/apis/autoscaling-plans/2018-01-06/paginators-1.json +0 -4
- data/apis/autoscaling/2011-01-01/api-2.json +0 -2464
- data/apis/autoscaling/2011-01-01/examples-1.json +0 -1396
- data/apis/autoscaling/2011-01-01/paginators-1.json +0 -52
- data/apis/autoscaling/2011-01-01/resources-1.json +0 -1624
- data/apis/autoscaling/2011-01-01/smoke.json +0 -20
- data/apis/autoscaling/2011-01-01/waiters-2.json +0 -62
- data/apis/backup/2018-11-15/api-2.json +0 -2345
- data/apis/backup/2018-11-15/examples-1.json +0 -5
- data/apis/backup/2018-11-15/paginators-1.json +0 -64
- data/apis/batch/2016-08-10/api-2.json +0 -1137
- data/apis/batch/2016-08-10/examples-1.json +0 -589
- data/apis/batch/2016-08-10/paginators-1.json +0 -28
- data/apis/batch/2016-08-10/smoke.json +0 -11
- data/apis/budgets/2016-10-20/api-2.json +0 -830
- data/apis/budgets/2016-10-20/examples-1.json +0 -5
- data/apis/budgets/2016-10-20/paginators-1.json +0 -4
- data/apis/ce/2017-10-25/api-2.json +0 -1633
- data/apis/ce/2017-10-25/examples-1.json +0 -5
- data/apis/ce/2017-10-25/paginators-1.json +0 -14
- data/apis/chime/2018-05-01/api-2.json +0 -4653
- data/apis/chime/2018-05-01/examples-1.json +0 -5
- data/apis/chime/2018-05-01/paginators-1.json +0 -59
- data/apis/cloud9/2017-09-23/api-2.json +0 -549
- data/apis/cloud9/2017-09-23/examples-1.json +0 -315
- data/apis/cloud9/2017-09-23/paginators-1.json +0 -14
- data/apis/clouddirectory/2016-05-10/api-2.json +0 -4244
- data/apis/clouddirectory/2016-05-10/examples-1.json +0 -5
- data/apis/clouddirectory/2016-05-10/paginators-1.json +0 -94
- data/apis/clouddirectory/2017-01-11/api-2.json +0 -4321
- data/apis/clouddirectory/2017-01-11/examples-1.json +0 -5
- data/apis/clouddirectory/2017-01-11/paginators-1.json +0 -99
- data/apis/cloudformation/2010-05-15/api-2.json +0 -3438
- data/apis/cloudformation/2010-05-15/examples-1.json +0 -5
- data/apis/cloudformation/2010-05-15/paginators-1.json +0 -57
- data/apis/cloudformation/2010-05-15/resources-1.json +0 -211
- data/apis/cloudformation/2010-05-15/smoke.json +0 -19
- data/apis/cloudformation/2010-05-15/waiters-2.json +0 -257
- data/apis/cloudfront/2016-01-28/api-2.json +0 -2219
- data/apis/cloudfront/2016-01-28/examples-1.json +0 -5
- data/apis/cloudfront/2016-01-28/paginators-1.json +0 -32
- data/apis/cloudfront/2016-01-28/waiters-2.json +0 -47
- data/apis/cloudfront/2016-08-01/api-2.json +0 -2548
- data/apis/cloudfront/2016-08-01/examples-1.json +0 -5
- data/apis/cloudfront/2016-08-01/paginators-1.json +0 -32
- data/apis/cloudfront/2016-08-01/waiters-2.json +0 -47
- data/apis/cloudfront/2016-08-20/api-2.json +0 -2586
- data/apis/cloudfront/2016-08-20/paginators-1.json +0 -32
- data/apis/cloudfront/2016-08-20/waiters-2.json +0 -47
- data/apis/cloudfront/2016-09-07/api-2.json +0 -2596
- data/apis/cloudfront/2016-09-07/examples-1.json +0 -5
- data/apis/cloudfront/2016-09-07/paginators-1.json +0 -32
- data/apis/cloudfront/2016-09-07/waiters-2.json +0 -47
- data/apis/cloudfront/2016-09-29/api-2.json +0 -2599
- data/apis/cloudfront/2016-09-29/examples-1.json +0 -5
- data/apis/cloudfront/2016-09-29/paginators-1.json +0 -32
- data/apis/cloudfront/2016-09-29/waiters-2.json +0 -47
- data/apis/cloudfront/2016-11-25/api-2.json +0 -2665
- data/apis/cloudfront/2016-11-25/examples-1.json +0 -5
- data/apis/cloudfront/2016-11-25/paginators-1.json +0 -32
- data/apis/cloudfront/2016-11-25/waiters-2.json +0 -47
- data/apis/cloudfront/2017-03-25/api-2.json +0 -2726
- data/apis/cloudfront/2017-03-25/examples-1.json +0 -83
- data/apis/cloudfront/2017-03-25/paginators-1.json +0 -32
- data/apis/cloudfront/2017-03-25/waiters-2.json +0 -47
- data/apis/cloudfront/2017-10-30/api-2.json +0 -3906
- data/apis/cloudfront/2017-10-30/examples-1.json +0 -5
- data/apis/cloudfront/2017-10-30/paginators-1.json +0 -32
- data/apis/cloudfront/2017-10-30/smoke.json +0 -20
- data/apis/cloudfront/2017-10-30/waiters-2.json +0 -47
- data/apis/cloudfront/2018-06-18/api-2.json +0 -3907
- data/apis/cloudfront/2018-06-18/examples-1.json +0 -5
- data/apis/cloudfront/2018-06-18/paginators-1.json +0 -32
- data/apis/cloudfront/2018-06-18/smoke.json +0 -20
- data/apis/cloudfront/2018-06-18/waiters-2.json +0 -47
- data/apis/cloudfront/2018-11-05/api-2.json +0 -4004
- data/apis/cloudfront/2018-11-05/examples-1.json +0 -5
- data/apis/cloudfront/2018-11-05/paginators-1.json +0 -32
- data/apis/cloudfront/2018-11-05/smoke.json +0 -20
- data/apis/cloudfront/2018-11-05/waiters-2.json +0 -47
- data/apis/cloudfront/2019-03-26/api-2.json +0 -4032
- data/apis/cloudfront/2019-03-26/examples-1.json +0 -5
- data/apis/cloudfront/2019-03-26/paginators-1.json +0 -32
- data/apis/cloudfront/2019-03-26/smoke.json +0 -20
- data/apis/cloudfront/2019-03-26/waiters-2.json +0 -47
- data/apis/cloudhsm/2014-05-30/api-2.json +0 -879
- data/apis/cloudhsm/2014-05-30/examples-1.json +0 -5
- data/apis/cloudhsm/2014-05-30/paginators-1.json +0 -4
- data/apis/cloudhsmv2/2017-04-28/api-2.json +0 -741
- data/apis/cloudhsmv2/2017-04-28/examples-1.json +0 -5
- data/apis/cloudhsmv2/2017-04-28/paginators-1.json +0 -19
- data/apis/cloudhsmv2/2017-04-28/smoke.json +0 -18
- data/apis/cloudsearch/2013-01-01/api-2.json +0 -1529
- data/apis/cloudsearch/2013-01-01/examples-1.json +0 -5
- data/apis/cloudsearch/2013-01-01/paginators-1.json +0 -19
- data/apis/cloudsearch/2013-01-01/smoke.json +0 -18
- 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 -1168
- data/apis/cloudtrail/2013-11-01/examples-1.json +0 -5
- data/apis/cloudtrail/2013-11-01/paginators-1.json +0 -28
- data/apis/cloudtrail/2013-11-01/smoke.json +0 -18
- data/apis/codebuild/2016-10-06/api-2.json +0 -1910
- data/apis/codebuild/2016-10-06/examples-1.json +0 -281
- data/apis/codebuild/2016-10-06/paginators-1.json +0 -4
- data/apis/codebuild/2016-10-06/smoke.json +0 -11
- data/apis/codecommit/2015-04-13/api-2.json +0 -5383
- data/apis/codecommit/2015-04-13/examples-1.json +0 -5
- data/apis/codecommit/2015-04-13/paginators-1.json +0 -64
- data/apis/codecommit/2015-04-13/smoke.json +0 -18
- data/apis/codedeploy/2014-10-06/api-2.json +0 -3224
- data/apis/codedeploy/2014-10-06/examples-1.json +0 -5
- data/apis/codedeploy/2014-10-06/paginators-1.json +0 -34
- data/apis/codedeploy/2014-10-06/smoke.json +0 -18
- data/apis/codedeploy/2014-10-06/waiters-2.json +0 -30
- data/apis/codeguru-reviewer/2019-09-19/api-2.json +0 -351
- data/apis/codeguru-reviewer/2019-09-19/examples-1.json +0 -5
- data/apis/codeguru-reviewer/2019-09-19/paginators-1.json +0 -10
- data/apis/codeguruprofiler/2019-07-18/api-2.json +0 -645
- data/apis/codeguruprofiler/2019-07-18/examples-1.json +0 -5
- data/apis/codeguruprofiler/2019-07-18/paginators-1.json +0 -14
- data/apis/codepipeline/2015-07-09/api-2.json +0 -2505
- data/apis/codepipeline/2015-07-09/examples-1.json +0 -5
- data/apis/codepipeline/2015-07-09/paginators-1.json +0 -38
- data/apis/codepipeline/2015-07-09/smoke.json +0 -18
- data/apis/codestar-connections/2019-12-01/api-2.json +0 -194
- data/apis/codestar-connections/2019-12-01/examples-1.json +0 -5
- data/apis/codestar-connections/2019-12-01/paginators-1.json +0 -9
- data/apis/codestar-notifications/2019-10-15/api-2.json +0 -724
- data/apis/codestar-notifications/2019-10-15/examples-1.json +0 -5
- data/apis/codestar-notifications/2019-10-15/paginators-1.json +0 -22
- data/apis/codestar/2017-04-19/api-2.json +0 -1033
- data/apis/codestar/2017-04-19/examples-1.json +0 -5
- data/apis/codestar/2017-04-19/paginators-1.json +0 -4
- data/apis/codestar/2017-04-19/smoke.json +0 -11
- data/apis/cognito-identity/2014-06-30/api-2.json +0 -1062
- 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 -5449
- data/apis/cognito-idp/2016-04-18/examples-1.json +0 -5
- data/apis/cognito-idp/2016-04-18/paginators-1.json +0 -58
- data/apis/cognito-idp/2016-04-18/smoke.json +0 -20
- data/apis/cognito-sync/2014-06-30/api-2.json +0 -1875
- data/apis/comprehend/2017-11-27/api-2.json +0 -2664
- data/apis/comprehend/2017-11-27/examples-1.json +0 -5
- data/apis/comprehend/2017-11-27/paginators-1.json +0 -44
- data/apis/comprehendmedical/2018-10-30/api-2.json +0 -924
- data/apis/comprehendmedical/2018-10-30/examples-1.json +0 -5
- data/apis/comprehendmedical/2018-10-30/paginators-1.json +0 -4
- data/apis/compute-optimizer/2019-11-01/api-2.json +0 -571
- data/apis/compute-optimizer/2019-11-01/examples-1.json +0 -5
- data/apis/compute-optimizer/2019-11-01/paginators-1.json +0 -4
- data/apis/config/2014-11-12/api-2.json +0 -4340
- data/apis/config/2014-11-12/examples-1.json +0 -5
- data/apis/config/2014-11-12/paginators-1.json +0 -21
- data/apis/config/2014-11-12/smoke.json +0 -19
- data/apis/connect/2017-08-08/api-2.json +0 -2139
- data/apis/connect/2017-08-08/examples-1.json +0 -5
- data/apis/connect/2017-08-08/paginators-1.json +0 -62
- data/apis/connectparticipant/2018-09-07/api-2.json +0 -408
- data/apis/connectparticipant/2018-09-07/examples-1.json +0 -5
- data/apis/connectparticipant/2018-09-07/paginators-1.json +0 -9
- data/apis/cur/2017-01-06/api-2.json +0 -277
- data/apis/cur/2017-01-06/examples-1.json +0 -102
- data/apis/cur/2017-01-06/paginators-1.json +0 -9
- data/apis/cur/2017-01-06/smoke.json +0 -11
- data/apis/dataexchange/2017-07-25/api-2.json +0 -2263
- data/apis/dataexchange/2017-07-25/paginators-1.json +0 -28
- data/apis/datapipeline/2012-10-29/api-2.json +0 -1168
- data/apis/datapipeline/2012-10-29/paginators-1.json +0 -26
- data/apis/datasync/2018-11-09/api-2.json +0 -1451
- data/apis/datasync/2018-11-09/examples-1.json +0 -5
- data/apis/datasync/2018-11-09/paginators-1.json +0 -29
- data/apis/dax/2017-04-19/api-2.json +0 -1140
- data/apis/dax/2017-04-19/examples-1.json +0 -5
- data/apis/dax/2017-04-19/paginators-1.json +0 -4
- data/apis/detective/2018-10-26/api-2.json +0 -447
- data/apis/detective/2018-10-26/examples-1.json +0 -5
- data/apis/detective/2018-10-26/paginators-1.json +0 -19
- data/apis/devicefarm/2015-06-23/api-2.json +0 -3619
- data/apis/devicefarm/2015-06-23/examples-1.json +0 -1242
- data/apis/devicefarm/2015-06-23/paginators-1.json +0 -97
- data/apis/devicefarm/2015-06-23/smoke.json +0 -18
- data/apis/directconnect/2012-10-25/api-2.json +0 -2074
- data/apis/directconnect/2012-10-25/examples-1.json +0 -5
- data/apis/directconnect/2012-10-25/paginators-1.json +0 -22
- data/apis/directconnect/2012-10-25/smoke.json +0 -18
- data/apis/discovery/2015-11-01/api-2.json +0 -1369
- data/apis/discovery/2015-11-01/examples-1.json +0 -5
- data/apis/discovery/2015-11-01/paginators-1.json +0 -14
- data/apis/discovery/2015-11-01/smoke.json +0 -11
- data/apis/dlm/2018-01-12/api-2.json +0 -687
- data/apis/dlm/2018-01-12/examples-1.json +0 -5
- data/apis/dlm/2018-01-12/paginators-1.json +0 -4
- data/apis/dms/2016-01-01/api-2.json +0 -2296
- data/apis/dms/2016-01-01/examples-1.json +0 -1074
- data/apis/dms/2016-01-01/paginators-1.json +0 -79
- data/apis/dms/2016-01-01/smoke.json +0 -18
- data/apis/dms/2016-01-01/waiters-2.json +0 -336
- data/apis/docdb/2014-10-31/api-2.json +0 -2534
- data/apis/docdb/2014-10-31/examples-1.json +0 -5
- data/apis/docdb/2014-10-31/paginators-1.json +0 -43
- data/apis/docdb/2014-10-31/smoke.json +0 -18
- data/apis/docdb/2014-10-31/waiters-2.json +0 -90
- data/apis/ds/2015-04-16/api-2.json +0 -3019
- data/apis/ds/2015-04-16/examples-1.json +0 -5
- data/apis/ds/2015-04-16/paginators-1.json +0 -9
- data/apis/ds/2015-04-16/smoke.json +0 -20
- data/apis/dynamodb/2011-12-05/api-2.json +0 -818
- 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/smoke.json +0 -20
- data/apis/dynamodb/2011-12-05/waiters-2.json +0 -35
- data/apis/dynamodb/2012-08-10/api-2.json +0 -3182
- data/apis/dynamodb/2012-08-10/examples-1.json +0 -631
- data/apis/dynamodb/2012-08-10/paginators-1.json +0 -31
- data/apis/dynamodb/2012-08-10/resources-1.json +0 -136
- data/apis/dynamodb/2012-08-10/smoke.json +0 -20
- data/apis/dynamodb/2012-08-10/waiters-2.json +0 -35
- data/apis/ebs/2019-11-02/api-2.json +0 -277
- data/apis/ebs/2019-11-02/examples-1.json +0 -5
- data/apis/ebs/2019-11-02/paginators-1.json +0 -14
- data/apis/ec2-instance-connect/2018-04-02/api-2.json +0 -119
- data/apis/ec2-instance-connect/2018-04-02/examples-1.json +0 -34
- data/apis/ec2-instance-connect/2018-04-02/paginators-1.json +0 -4
- 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 -29182
- data/apis/ec2/2016-11-15/examples-1.json +0 -5048
- data/apis/ec2/2016-11-15/paginators-1.json +0 -474
- data/apis/ec2/2016-11-15/resources-1.json +0 -2907
- data/apis/ec2/2016-11-15/smoke.json +0 -20
- data/apis/ec2/2016-11-15/waiters-2.json +0 -640
- data/apis/ecr/2015-09-21/api-2.json +0 -1615
- data/apis/ecr/2015-09-21/examples-1.json +0 -215
- data/apis/ecr/2015-09-21/paginators-1.json +0 -48
- data/apis/ecr/2015-09-21/smoke.json +0 -18
- data/apis/ecr/2015-09-21/waiters-2.json +0 -45
- data/apis/ecs/2014-11-13/api-2.json +0 -3150
- data/apis/ecs/2014-11-13/examples-1.json +0 -1137
- data/apis/ecs/2014-11-13/paginators-1.json +0 -52
- data/apis/ecs/2014-11-13/smoke.json +0 -18
- data/apis/ecs/2014-11-13/waiters-2.json +0 -93
- data/apis/eks/2017-11-01/api-2.json +0 -1434
- data/apis/eks/2017-11-01/examples-1.json +0 -135
- data/apis/eks/2017-11-01/paginators-1.json +0 -28
- data/apis/eks/2017-11-01/waiters-2.json +0 -91
- data/apis/elastic-inference/2017-07-25/api-2.json +0 -174
- data/apis/elastic-inference/2017-07-25/examples-1.json +0 -5
- data/apis/elastic-inference/2017-07-25/paginators-1.json +0 -4
- data/apis/elasticache/2015-02-02/api-2.json +0 -3301
- data/apis/elasticache/2015-02-02/examples-1.json +0 -3149
- data/apis/elasticache/2015-02-02/paginators-1.json +0 -88
- data/apis/elasticache/2015-02-02/smoke.json +0 -18
- data/apis/elasticache/2015-02-02/waiters-2.json +0 -143
- data/apis/elasticbeanstalk/2010-12-01/api-2.json +0 -2492
- data/apis/elasticbeanstalk/2010-12-01/examples-1.json +0 -1109
- data/apis/elasticbeanstalk/2010-12-01/paginators-1.json +0 -25
- data/apis/elasticbeanstalk/2010-12-01/smoke.json +0 -18
- data/apis/elasticfilesystem/2015-02-01/api-2.json +0 -1370
- data/apis/elasticfilesystem/2015-02-01/examples-1.json +0 -291
- data/apis/elasticfilesystem/2015-02-01/paginators-1.json +0 -24
- data/apis/elasticfilesystem/2015-02-01/smoke.json +0 -18
- data/apis/elasticloadbalancing/2012-06-01/api-2.json +0 -1642
- 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/smoke.json +0 -20
- data/apis/elasticloadbalancing/2012-06-01/waiters-2.json +0 -54
- data/apis/elasticloadbalancingv2/2015-12-01/api-2.json +0 -2346
- data/apis/elasticloadbalancingv2/2015-12-01/examples-1.json +0 -1384
- data/apis/elasticloadbalancingv2/2015-12-01/paginators-1.json +0 -19
- data/apis/elasticloadbalancingv2/2015-12-01/smoke.json +0 -20
- data/apis/elasticloadbalancingv2/2015-12-01/waiters-2.json +0 -100
- data/apis/elasticmapreduce/2009-03-31/api-2.json +0 -2241
- data/apis/elasticmapreduce/2009-03-31/examples-1.json +0 -5
- data/apis/elasticmapreduce/2009-03-31/paginators-1.json +0 -42
- data/apis/elasticmapreduce/2009-03-31/smoke.json +0 -18
- data/apis/elasticmapreduce/2009-03-31/waiters-2.json +0 -86
- data/apis/elastictranscoder/2012-09-25/api-2.json +0 -1484
- 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/smoke.json +0 -18
- data/apis/elastictranscoder/2012-09-25/waiters-2.json +0 -30
- data/apis/email/2010-12-01/api-2.json +0 -3182
- data/apis/email/2010-12-01/examples-1.json +0 -1021
- data/apis/email/2010-12-01/paginators-1.json +0 -18
- data/apis/email/2010-12-01/smoke.json +0 -18
- data/apis/email/2010-12-01/waiters-2.json +0 -18
- data/apis/entitlement.marketplace/2017-01-11/api-2.json +0 -128
- data/apis/entitlement.marketplace/2017-01-11/examples-1.json +0 -5
- data/apis/entitlement.marketplace/2017-01-11/paginators-1.json +0 -4
- data/apis/es/2015-01-01/api-2.json +0 -1632
- data/apis/es/2015-01-01/examples-1.json +0 -5
- data/apis/es/2015-01-01/paginators-1.json +0 -29
- data/apis/es/2015-01-01/smoke.json +0 -18
- data/apis/eventbridge/2015-10-07/api-2.json +0 -1462
- data/apis/eventbridge/2015-10-07/examples-1.json +0 -5
- data/apis/eventbridge/2015-10-07/paginators-1.json +0 -4
- data/apis/eventbridge/2015-10-07/smoke.json +0 -18
- data/apis/events/2015-10-07/api-2.json +0 -1462
- data/apis/events/2015-10-07/examples-1.json +0 -5
- data/apis/events/2015-10-07/paginators-1.json +0 -4
- data/apis/events/2015-10-07/smoke.json +0 -18
- data/apis/firehose/2015-08-04/api-2.json +0 -1445
- data/apis/firehose/2015-08-04/examples-1.json +0 -5
- data/apis/firehose/2015-08-04/paginators-1.json +0 -4
- data/apis/firehose/2015-08-04/smoke.json +0 -18
- data/apis/fms/2018-01-01/api-2.json +0 -829
- data/apis/fms/2018-01-01/examples-1.json +0 -5
- data/apis/fms/2018-01-01/paginators-1.json +0 -22
- data/apis/forecast/2018-06-26/api-2.json +0 -1418
- data/apis/forecast/2018-06-26/examples-1.json +0 -5
- data/apis/forecast/2018-06-26/paginators-1.json +0 -40
- data/apis/forecastquery/2018-06-26/api-2.json +0 -146
- data/apis/forecastquery/2018-06-26/examples-1.json +0 -5
- data/apis/forecastquery/2018-06-26/paginators-1.json +0 -4
- data/apis/frauddetector/2019-11-15/api-2.json +0 -1541
- data/apis/frauddetector/2019-11-15/examples-1.json +0 -5
- data/apis/frauddetector/2019-11-15/paginators-1.json +0 -39
- data/apis/fsx/2018-03-01/api-2.json +0 -1340
- data/apis/fsx/2018-03-01/examples-1.json +0 -384
- data/apis/fsx/2018-03-01/paginators-1.json +0 -19
- data/apis/gamelift/2015-10-01/api-2.json +0 -3695
- data/apis/gamelift/2015-10-01/examples-1.json +0 -5
- data/apis/gamelift/2015-10-01/paginators-1.json +0 -4
- data/apis/gamelift/2015-10-01/smoke.json +0 -18
- data/apis/glacier/2012-06-01/api-2.json +0 -1906
- 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/smoke.json +0 -18
- data/apis/glacier/2012-06-01/waiters-2.json +0 -39
- data/apis/globalaccelerator/2018-08-08/api-2.json +0 -818
- data/apis/globalaccelerator/2018-08-08/examples-1.json +0 -5
- data/apis/globalaccelerator/2018-08-08/paginators-1.json +0 -4
- data/apis/glue/2017-03-31/api-2.json +0 -6305
- data/apis/glue/2017-03-31/examples-1.json +0 -5
- data/apis/glue/2017-03-31/paginators-1.json +0 -120
- data/apis/glue/2017-03-31/smoke.json +0 -11
- data/apis/greengrass/2017-06-07/api-2.json +0 -5124
- data/apis/groundstation/2019-05-23/api-2.json +0 -1409
- data/apis/groundstation/2019-05-23/examples-1.json +0 -5
- data/apis/groundstation/2019-05-23/paginators-1.json +0 -40
- data/apis/guardduty/2017-11-28/api-2.json +0 -3508
- data/apis/guardduty/2017-11-28/examples-1.json +0 -5
- data/apis/guardduty/2017-11-28/paginators-1.json +0 -51
- data/apis/health/2016-08-04/api-2.json +0 -836
- data/apis/health/2016-08-04/examples-1.json +0 -5
- data/apis/health/2016-08-04/paginators-1.json +0 -52
- data/apis/health/2016-08-04/smoke.json +0 -11
- data/apis/iam/2010-05-08/api-2.json +0 -5797
- data/apis/iam/2010-05-08/examples-1.json +0 -1577
- 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/smoke.json +0 -18
- data/apis/iam/2010-05-08/waiters-2.json +0 -73
- data/apis/imagebuilder/2019-12-02/api-2.json +0 -2414
- data/apis/imagebuilder/2019-12-02/examples-1.json +0 -5
- data/apis/imagebuilder/2019-12-02/paginators-1.json +0 -49
- 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 -2387
- data/apis/inspector/2016-02-16/examples-1.json +0 -1148
- data/apis/inspector/2016-02-16/paginators-1.json +0 -54
- data/apis/inspector/2016-02-16/smoke.json +0 -18
- data/apis/iot-data/2015-05-28/api-2.json +0 -264
- data/apis/iot-jobs-data/2017-09-29/api-2.json +0 -348
- data/apis/iot-jobs-data/2017-09-29/examples-1.json +0 -5
- data/apis/iot-jobs-data/2017-09-29/paginators-1.json +0 -4
- data/apis/iot/2015-05-28/api-2.json +0 -11061
- data/apis/iot/2015-05-28/examples-1.json +0 -5
- data/apis/iot/2015-05-28/paginators-1.json +0 -4
- data/apis/iot/2015-05-28/smoke.json +0 -18
- data/apis/iot1click-devices/2018-05-14/api-2.json +0 -902
- data/apis/iot1click-projects/2018-05-14/api-2.json +0 -883
- data/apis/iot1click-projects/2018-05-14/examples-1.json +0 -5
- data/apis/iot1click-projects/2018-05-14/paginators-1.json +0 -16
- data/apis/iotanalytics/2017-11-27/api-2.json +0 -2223
- data/apis/iotanalytics/2017-11-27/examples-1.json +0 -5
- data/apis/iotanalytics/2017-11-27/paginators-1.json +0 -29
- data/apis/iotevents-data/2018-10-23/api-2.json +0 -454
- data/apis/iotevents-data/2018-10-23/examples-1.json +0 -5
- data/apis/iotevents-data/2018-10-23/paginators-1.json +0 -4
- data/apis/iotevents/2018-07-27/api-2.json +0 -1144
- data/apis/iotevents/2018-07-27/examples-1.json +0 -5
- data/apis/iotevents/2018-07-27/paginators-1.json +0 -4
- data/apis/iotsecuretunneling/2018-10-05/api-2.json +0 -388
- data/apis/iotsecuretunneling/2018-10-05/examples-1.json +0 -5
- data/apis/iotsecuretunneling/2018-10-05/paginators-1.json +0 -9
- data/apis/iotthingsgraph/2018-09-06/api-2.json +0 -1581
- data/apis/iotthingsgraph/2018-09-06/examples-1.json +0 -5
- data/apis/iotthingsgraph/2018-09-06/paginators-1.json +0 -64
- data/apis/kafka/2018-11-14/api-2.json +0 -2208
- data/apis/kafka/2018-11-14/paginators-1.json +0 -40
- data/apis/kendra/2019-02-03/api-2.json +0 -1738
- data/apis/kendra/2019-02-03/examples-1.json +0 -5
- data/apis/kendra/2019-02-03/paginators-1.json +0 -19
- data/apis/kinesis-video-archived-media/2017-09-30/api-2.json +0 -418
- data/apis/kinesis-video-archived-media/2017-09-30/examples-1.json +0 -5
- data/apis/kinesis-video-archived-media/2017-09-30/paginators-1.json +0 -10
- data/apis/kinesis-video-media/2017-09-30/api-2.json +0 -160
- data/apis/kinesis-video-media/2017-09-30/examples-1.json +0 -5
- data/apis/kinesis-video-media/2017-09-30/paginators-1.json +0 -4
- data/apis/kinesis-video-signaling/2019-12-04/api-2.json +0 -200
- data/apis/kinesis-video-signaling/2019-12-04/examples-1.json +0 -5
- data/apis/kinesis-video-signaling/2019-12-04/paginators-1.json +0 -4
- data/apis/kinesis/2013-12-02/api-2.json +0 -1409
- data/apis/kinesis/2013-12-02/examples-1.json +0 -5
- data/apis/kinesis/2013-12-02/paginators-1.json +0 -23
- data/apis/kinesis/2013-12-02/smoke.json +0 -18
- data/apis/kinesis/2013-12-02/waiters-2.json +0 -30
- data/apis/kinesisanalytics/2015-08-14/api-2.json +0 -1510
- data/apis/kinesisanalytics/2015-08-14/examples-1.json +0 -5
- data/apis/kinesisanalytics/2015-08-14/paginators-1.json +0 -4
- data/apis/kinesisanalyticsv2/2018-05-23/api-2.json +0 -2266
- data/apis/kinesisanalyticsv2/2018-05-23/examples-1.json +0 -5
- data/apis/kinesisanalyticsv2/2018-05-23/paginators-1.json +0 -4
- data/apis/kinesisvideo/2017-09-30/api-2.json +0 -954
- data/apis/kinesisvideo/2017-09-30/examples-1.json +0 -5
- data/apis/kinesisvideo/2017-09-30/paginators-1.json +0 -16
- data/apis/kms/2014-11-01/api-2.json +0 -2155
- data/apis/kms/2014-11-01/examples-1.json +0 -906
- data/apis/kms/2014-11-01/paginators-1.json +0 -32
- data/apis/kms/2014-11-01/smoke.json +0 -19
- data/apis/lakeformation/2017-03-31/api-2.json +0 -708
- data/apis/lakeformation/2017-03-31/examples-1.json +0 -5
- data/apis/lakeformation/2017-03-31/paginators-1.json +0 -19
- 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 -2944
- data/apis/lambda/2015-03-31/examples-1.json +0 -614
- data/apis/lambda/2015-03-31/paginators-1.json +0 -52
- data/apis/lambda/2015-03-31/smoke.json +0 -18
- data/apis/lambda/2015-03-31/waiters-2.json +0 -74
- data/apis/lex-models/2017-04-19/api-2.json +0 -2395
- data/apis/lex-models/2017-04-19/examples-1.json +0 -758
- data/apis/lex-models/2017-04-19/paginators-1.json +0 -54
- data/apis/license-manager/2018-08-01/api-2.json +0 -886
- data/apis/license-manager/2018-08-01/examples-1.json +0 -5
- data/apis/license-manager/2018-08-01/paginators-1.json +0 -4
- data/apis/lightsail/2016-11-28/api-2.json +0 -5017
- data/apis/lightsail/2016-11-28/examples-1.json +0 -5
- data/apis/lightsail/2016-11-28/paginators-1.json +0 -4
- data/apis/lightsail/2016-11-28/smoke.json +0 -11
- data/apis/logs/2014-03-28/api-2.json +0 -1701
- data/apis/logs/2014-03-28/examples-1.json +0 -5
- data/apis/logs/2014-03-28/paginators-1.json +0 -49
- data/apis/logs/2014-03-28/smoke.json +0 -19
- 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/macie/2017-12-19/api-2.json +0 -365
- data/apis/macie/2017-12-19/examples-1.json +0 -5
- data/apis/macie/2017-12-19/paginators-1.json +0 -14
- data/apis/managedblockchain/2018-09-24/api-2.json +0 -1363
- data/apis/managedblockchain/2018-09-24/examples-1.json +0 -5
- data/apis/managedblockchain/2018-09-24/paginators-1.json +0 -34
- data/apis/marketplace-catalog/2018-09-17/api-2.json +0 -550
- data/apis/marketplace-catalog/2018-09-17/examples-1.json +0 -5
- data/apis/marketplace-catalog/2018-09-17/paginators-1.json +0 -14
- data/apis/marketplacecommerceanalytics/2015-07-01/api-2.json +0 -176
- data/apis/marketplacecommerceanalytics/2015-07-01/examples-1.json +0 -5
- data/apis/marketplacecommerceanalytics/2015-07-01/paginators-1.json +0 -4
- data/apis/marketplacecommerceanalytics/2015-07-01/smoke.json +0 -17
- data/apis/mediaconnect/2018-11-14/api-2.json +0 -1901
- data/apis/mediaconnect/2018-11-14/paginators-1.json +0 -16
- data/apis/mediaconvert/2017-08-29/api-2.json +0 -8695
- data/apis/mediaconvert/2017-08-29/paginators-1.json +0 -34
- data/apis/medialive/2017-10-14/api-2.json +0 -10694
- data/apis/medialive/2017-10-14/paginators-1.json +0 -52
- data/apis/medialive/2017-10-14/waiters-2.json +0 -217
- data/apis/mediapackage-vod/2018-11-07/api-2.json +0 -1565
- data/apis/mediapackage-vod/2018-11-07/paginators-1.json +0 -22
- data/apis/mediapackage/2017-10-12/api-2.json +0 -2516
- data/apis/mediapackage/2017-10-12/paginators-1.json +0 -22
- data/apis/mediastore-data/2017-09-01/api-2.json +0 -406
- data/apis/mediastore-data/2017-09-01/examples-1.json +0 -5
- data/apis/mediastore-data/2017-09-01/paginators-1.json +0 -9
- data/apis/mediastore/2017-09-01/api-2.json +0 -737
- data/apis/mediastore/2017-09-01/examples-1.json +0 -5
- data/apis/mediastore/2017-09-01/paginators-1.json +0 -9
- data/apis/mediatailor/2018-04-23/api-2.json +0 -557
- data/apis/mediatailor/2018-04-23/paginators-1.json +0 -3
- data/apis/meteringmarketplace/2016-01-14/api-2.json +0 -345
- data/apis/meteringmarketplace/2016-01-14/examples-1.json +0 -5
- data/apis/meteringmarketplace/2016-01-14/paginators-1.json +0 -4
- data/apis/migrationhub-config/2019-06-30/api-2.json +0 -207
- data/apis/migrationhub-config/2019-06-30/examples-1.json +0 -5
- data/apis/migrationhub-config/2019-06-30/paginators-1.json +0 -9
- data/apis/mobile/2017-07-01/api-2.json +0 -551
- data/apis/mobile/2017-07-01/examples-1.json +0 -5
- data/apis/mobile/2017-07-01/paginators-1.json +0 -14
- data/apis/monitoring/2010-08-01/api-2.json +0 -1876
- data/apis/monitoring/2010-08-01/examples-1.json +0 -5
- data/apis/monitoring/2010-08-01/paginators-1.json +0 -43
- data/apis/monitoring/2010-08-01/resources-1.json +0 -346
- data/apis/monitoring/2010-08-01/smoke.json +0 -22
- data/apis/monitoring/2010-08-01/waiters-2.json +0 -18
- data/apis/mq/2017-11-27/api-2.json +0 -2577
- data/apis/mq/2017-11-27/paginators-1.json +0 -3
- data/apis/mturk-requester/2017-01-17/api-2.json +0 -1696
- 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/neptune/2014-10-31/api-2.json +0 -3583
- data/apis/neptune/2014-10-31/examples-1.json +0 -5
- data/apis/neptune/2014-10-31/paginators-1.json +0 -61
- data/apis/neptune/2014-10-31/smoke.json +0 -18
- data/apis/neptune/2014-10-31/waiters-2.json +0 -90
- data/apis/networkmanager/2019-07-05/api-2.json +0 -1588
- data/apis/networkmanager/2019-07-05/examples-1.json +0 -5
- data/apis/networkmanager/2019-07-05/paginators-1.json +0 -46
- data/apis/opsworks/2013-02-18/api-2.json +0 -2885
- 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/smoke.json +0 -18
- data/apis/opsworks/2013-02-18/waiters-2.json +0 -289
- data/apis/opsworkscm/2016-11-01/api-2.json +0 -947
- data/apis/opsworkscm/2016-11-01/examples-1.json +0 -5
- data/apis/opsworkscm/2016-11-01/paginators-1.json +0 -4
- data/apis/opsworkscm/2016-11-01/waiters-2.json +0 -25
- data/apis/organizations/2016-11-28/api-2.json +0 -2401
- data/apis/organizations/2016-11-28/examples-1.json +0 -1409
- data/apis/organizations/2016-11-28/paginators-1.json +0 -74
- data/apis/outposts/2019-12-03/api-2.json +0 -367
- data/apis/outposts/2019-12-03/examples-1.json +0 -5
- data/apis/outposts/2019-12-03/paginators-1.json +0 -14
- data/apis/personalize-events/2018-03-22/api-2.json +0 -91
- data/apis/personalize-events/2018-03-22/examples-1.json +0 -5
- data/apis/personalize-events/2018-03-22/paginators-1.json +0 -4
- data/apis/personalize-runtime/2018-05-22/api-2.json +0 -147
- data/apis/personalize-runtime/2018-05-22/examples-1.json +0 -5
- data/apis/personalize-runtime/2018-05-22/paginators-1.json +0 -4
- data/apis/personalize/2018-05-22/api-2.json +0 -1863
- data/apis/personalize/2018-05-22/examples-1.json +0 -5
- data/apis/personalize/2018-05-22/paginators-1.json +0 -64
- data/apis/pi/2018-02-27/api-2.json +0 -253
- data/apis/pi/2018-02-27/examples-1.json +0 -5
- data/apis/pi/2018-02-27/paginators-1.json +0 -4
- data/apis/pinpoint-email/2018-07-26/api-2.json +0 -2093
- data/apis/pinpoint-email/2018-07-26/examples-1.json +0 -5
- data/apis/pinpoint-email/2018-07-26/paginators-1.json +0 -34
- data/apis/pinpoint/2016-12-01/api-2.json +0 -11495
- data/apis/pinpoint/2016-12-01/examples-1.json +0 -5
- data/apis/polly/2016-06-10/api-2.json +0 -832
- data/apis/polly/2016-06-10/examples-1.json +0 -171
- data/apis/polly/2016-06-10/paginators-1.json +0 -9
- data/apis/polly/2016-06-10/smoke.json +0 -11
- data/apis/pricing/2017-10-15/api-2.json +0 -227
- data/apis/pricing/2017-10-15/examples-1.json +0 -103
- data/apis/pricing/2017-10-15/paginators-1.json +0 -19
- data/apis/qldb-session/2019-07-11/api-2.json +0 -259
- data/apis/qldb-session/2019-07-11/examples-1.json +0 -5
- data/apis/qldb-session/2019-07-11/paginators-1.json +0 -4
- data/apis/qldb/2019-01-02/api-2.json +0 -776
- data/apis/qldb/2019-01-02/examples-1.json +0 -5
- data/apis/qldb/2019-01-02/paginators-1.json +0 -19
- data/apis/quicksight/2018-04-01/api-2.json +0 -5482
- data/apis/quicksight/2018-04-01/examples-1.json +0 -5
- data/apis/quicksight/2018-04-01/paginators-1.json +0 -44
- data/apis/ram/2018-01-04/api-2.json +0 -1272
- data/apis/ram/2018-01-04/examples-1.json +0 -5
- data/apis/ram/2018-01-04/paginators-1.json +0 -39
- data/apis/rds-data/2018-08-01/api-2.json +0 -552
- data/apis/rds-data/2018-08-01/examples-1.json +0 -5
- data/apis/rds-data/2018-08-01/paginators-1.json +0 -4
- data/apis/rds/2013-01-10/api-2.json +0 -2903
- 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-01-10/smoke.json +0 -18
- data/apis/rds/2013-02-12/api-2.json +0 -3059
- 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-02-12/smoke.json +0 -18
- data/apis/rds/2013-09-09/api-2.json +0 -3160
- 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/smoke.json +0 -18
- data/apis/rds/2013-09-09/waiters-2.json +0 -97
- data/apis/rds/2014-09-01/api-2.json +0 -3273
- 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-09-01/smoke.json +0 -18
- data/apis/rds/2014-10-31/api-2.json +0 -7646
- data/apis/rds/2014-10-31/examples-1.json +0 -1951
- data/apis/rds/2014-10-31/paginators-1.json +0 -164
- data/apis/rds/2014-10-31/resources-1.json +0 -3272
- data/apis/rds/2014-10-31/smoke.json +0 -18
- data/apis/rds/2014-10-31/waiters-2.json +0 -260
- data/apis/rds/2015-11-12/api-2.json +0 -5509
- data/apis/rds/2015-11-12/examples-1.json +0 -1951
- data/apis/rds/2015-11-12/paginators-1.json +0 -110
- data/apis/rds/2015-11-12/resources-1.json +0 -3272
- data/apis/rds/2015-11-12/waiters-2.json +0 -175
- data/apis/redshift/2012-12-01/api-2.json +0 -5263
- data/apis/redshift/2012-12-01/examples-1.json +0 -5
- data/apis/redshift/2012-12-01/paginators-1.json +0 -106
- data/apis/redshift/2012-12-01/smoke.json +0 -18
- data/apis/redshift/2012-12-01/waiters-2.json +0 -97
- data/apis/rekognition/2016-06-27/api-2.json +0 -2659
- data/apis/rekognition/2016-06-27/examples-1.json +0 -651
- data/apis/rekognition/2016-06-27/paginators-1.json +0 -63
- data/apis/rekognition/2016-06-27/smoke.json +0 -11
- data/apis/rekognition/2016-06-27/waiters-2.json +0 -45
- data/apis/resource-groups/2017-11-27/api-2.json +0 -743
- data/apis/resource-groups/2017-11-27/examples-1.json +0 -5
- data/apis/resource-groups/2017-11-27/paginators-1.json +0 -19
- data/apis/resourcegroupstaggingapi/2017-01-26/api-2.json +0 -532
- data/apis/resourcegroupstaggingapi/2017-01-26/examples-1.json +0 -5
- data/apis/resourcegroupstaggingapi/2017-01-26/paginators-1.json +0 -26
- data/apis/robomaker/2018-06-29/api-2.json +0 -2380
- data/apis/robomaker/2018-06-29/examples-1.json +0 -5
- data/apis/robomaker/2018-06-29/paginators-1.json +0 -46
- data/apis/route53/2013-04-01/api-2.json +0 -3780
- 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/smoke.json +0 -18
- data/apis/route53/2013-04-01/waiters-2.json +0 -18
- data/apis/route53domains/2014-05-15/api-2.json +0 -1382
- data/apis/route53domains/2014-05-15/examples-1.json +0 -5
- data/apis/route53domains/2014-05-15/paginators-1.json +0 -16
- data/apis/route53resolver/2018-04-01/api-2.json +0 -1199
- data/apis/route53resolver/2018-04-01/examples-1.json +0 -5
- data/apis/route53resolver/2018-04-01/paginators-1.json +0 -24
- data/apis/route53resolver/2018-04-01/smoke.json +0 -18
- data/apis/runtime.lex/2016-11-28/api-2.json +0 -714
- 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/runtime.sagemaker/2017-05-13/api-2.json +0 -165
- data/apis/runtime.sagemaker/2017-05-13/examples-1.json +0 -5
- data/apis/runtime.sagemaker/2017-05-13/paginators-1.json +0 -4
- data/apis/s3/2006-03-01/api-2.json +0 -6653
- data/apis/s3/2006-03-01/examples-1.json +0 -1876
- data/apis/s3/2006-03-01/paginators-1.json +0 -66
- data/apis/s3/2006-03-01/resources-1.json +0 -1249
- data/apis/s3/2006-03-01/smoke.json +0 -11
- data/apis/s3/2006-03-01/waiters-2.json +0 -73
- data/apis/s3control/2018-08-20/api-2.json +0 -1377
- data/apis/s3control/2018-08-20/examples-1.json +0 -5
- data/apis/s3control/2018-08-20/paginators-1.json +0 -14
- data/apis/sagemaker-a2i-runtime/2019-11-07/api-2.json +0 -367
- data/apis/sagemaker-a2i-runtime/2019-11-07/examples-1.json +0 -5
- data/apis/sagemaker-a2i-runtime/2019-11-07/paginators-1.json +0 -10
- data/apis/sagemaker/2017-07-24/api-2.json +0 -9199
- data/apis/sagemaker/2017-07-24/examples-1.json +0 -5
- data/apis/sagemaker/2017-07-24/paginators-1.json +0 -196
- data/apis/sagemaker/2017-07-24/waiters-2.json +0 -193
- data/apis/savingsplans/2019-06-28/api-2.json +0 -749
- data/apis/savingsplans/2019-06-28/examples-1.json +0 -5
- data/apis/savingsplans/2019-06-28/paginators-1.json +0 -4
- data/apis/schemas/2019-12-02/api-2.json +0 -2700
- data/apis/schemas/2019-12-02/paginators-1.json +0 -34
- data/apis/schemas/2019-12-02/waiters-2.json +0 -36
- data/apis/sdb/2009-04-15/api-2.json +0 -955
- data/apis/sdb/2009-04-15/paginators-1.json +0 -15
- data/apis/secretsmanager/2017-10-17/api-2.json +0 -982
- data/apis/secretsmanager/2017-10-17/examples-1.json +0 -571
- data/apis/secretsmanager/2017-10-17/paginators-1.json +0 -14
- data/apis/secretsmanager/2017-10-17/smoke.json +0 -18
- data/apis/securityhub/2018-10-26/api-2.json +0 -2806
- data/apis/securityhub/2018-10-26/examples-1.json +0 -5
- data/apis/securityhub/2018-10-26/paginators-1.json +0 -54
- data/apis/serverlessrepo/2017-09-08/api-2.json +0 -1806
- data/apis/serverlessrepo/2017-09-08/paginators-1.json +0 -19
- data/apis/service-quotas/2019-06-24/api-2.json +0 -867
- data/apis/service-quotas/2019-06-24/examples-1.json +0 -5
- data/apis/service-quotas/2019-06-24/paginators-1.json +0 -40
- data/apis/servicecatalog/2015-12-10/api-2.json +0 -3977
- data/apis/servicecatalog/2015-12-10/examples-1.json +0 -5
- data/apis/servicecatalog/2015-12-10/paginators-1.json +0 -84
- data/apis/servicecatalog/2015-12-10/smoke.json +0 -11
- data/apis/servicediscovery/2017-03-14/api-2.json +0 -1156
- data/apis/servicediscovery/2017-03-14/examples-1.json +0 -5
- data/apis/servicediscovery/2017-03-14/paginators-1.json +0 -29
- data/apis/sesv2/2019-09-27/api-2.json +0 -2433
- data/apis/sesv2/2019-09-27/examples-1.json +0 -5
- data/apis/sesv2/2019-09-27/paginators-1.json +0 -39
- data/apis/shield/2016-06-02/api-2.json +0 -968
- data/apis/shield/2016-06-02/examples-1.json +0 -5
- data/apis/shield/2016-06-02/paginators-1.json +0 -4
- data/apis/shield/2016-06-02/smoke.json +0 -11
- data/apis/signer/2017-08-25/api-2.json +0 -817
- data/apis/signer/2017-08-25/examples-1.json +0 -5
- data/apis/signer/2017-08-25/paginators-1.json +0 -19
- data/apis/signer/2017-08-25/waiters-2.json +0 -29
- data/apis/sms-voice/2018-09-05/api-2.json +0 -630
- data/apis/sms/2016-10-24/api-2.json +0 -1366
- data/apis/sms/2016-10-24/examples-1.json +0 -5
- data/apis/sms/2016-10-24/paginators-1.json +0 -28
- data/apis/sms/2016-10-24/smoke.json +0 -18
- data/apis/snowball/2016-06-30/api-2.json +0 -955
- data/apis/snowball/2016-06-30/examples-1.json +0 -442
- data/apis/snowball/2016-06-30/paginators-1.json +0 -16
- data/apis/snowball/2016-06-30/smoke.json +0 -11
- data/apis/sns/2010-03-31/api-2.json +0 -1468
- 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/sns/2010-03-31/smoke.json +0 -19
- data/apis/sqs/2012-11-05/api-2.json +0 -1128
- 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/sqs/2012-11-05/smoke.json +0 -18
- data/apis/ssm/2014-11-06/api-2.json +0 -9217
- data/apis/ssm/2014-11-06/examples-1.json +0 -5
- data/apis/ssm/2014-11-06/paginators-1.json +0 -55
- data/apis/ssm/2014-11-06/smoke.json +0 -18
- data/apis/sso-oidc/2019-06-10/api-2.json +0 -283
- data/apis/sso-oidc/2019-06-10/examples-1.json +0 -5
- data/apis/sso-oidc/2019-06-10/paginators-1.json +0 -4
- data/apis/sso/2019-06-10/api-2.json +0 -281
- data/apis/sso/2019-06-10/examples-1.json +0 -5
- data/apis/sso/2019-06-10/paginators-1.json +0 -16
- data/apis/states/2016-11-23/api-2.json +0 -1476
- data/apis/states/2016-11-23/examples-1.json +0 -5
- data/apis/states/2016-11-23/paginators-1.json +0 -28
- data/apis/states/2016-11-23/smoke.json +0 -11
- data/apis/storagegateway/2013-06-30/api-2.json +0 -3260
- data/apis/storagegateway/2013-06-30/examples-1.json +0 -1381
- data/apis/storagegateway/2013-06-30/paginators-1.json +0 -76
- 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 -598
- data/apis/sts/2011-06-15/examples-1.json +0 -271
- data/apis/sts/2011-06-15/paginators-1.json +0 -4
- data/apis/sts/2011-06-15/smoke.json +0 -19
- data/apis/support/2013-04-15/api-2.json +0 -773
- data/apis/support/2013-04-15/examples-1.json +0 -5
- data/apis/support/2013-04-15/paginators-1.json +0 -25
- data/apis/support/2013-04-15/smoke.json +0 -22
- data/apis/swf/2012-01-25/api-2.json +0 -2792
- data/apis/swf/2012-01-25/examples-1.json +0 -5
- data/apis/swf/2012-01-25/paginators-1.json +0 -46
- data/apis/textract/2018-06-27/api-2.json +0 -653
- data/apis/textract/2018-06-27/examples-1.json +0 -5
- data/apis/textract/2018-06-27/paginators-1.json +0 -4
- data/apis/transcribe-streaming/2017-10-26/api-2.json +0 -262
- data/apis/transcribe-streaming/2017-10-26/examples-1.json +0 -5
- data/apis/transcribe-streaming/2017-10-26/paginators-1.json +0 -4
- data/apis/transcribe/2017-10-26/api-2.json +0 -740
- data/apis/transcribe/2017-10-26/examples-1.json +0 -5
- data/apis/transcribe/2017-10-26/paginators-1.json +0 -19
- data/apis/transfer/2018-11-05/api-2.json +0 -964
- data/apis/transfer/2018-11-05/examples-1.json +0 -5
- data/apis/transfer/2018-11-05/paginators-1.json +0 -19
- data/apis/translate/2017-07-01/api-2.json +0 -658
- data/apis/translate/2017-07-01/examples-1.json +0 -5
- data/apis/translate/2017-07-01/paginators-1.json +0 -14
- data/apis/waf-regional/2016-11-28/api-2.json +0 -3992
- 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/waf-regional/2016-11-28/smoke.json +0 -21
- data/apis/waf/2015-08-24/api-2.json +0 -3857
- 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/2015-08-24/smoke.json +0 -21
- data/apis/wafv2/2019-07-29/api-2.json +0 -2418
- data/apis/wafv2/2019-07-29/examples-1.json +0 -5
- data/apis/wafv2/2019-07-29/paginators-1.json +0 -4
- data/apis/wafv2/2019-07-29/smoke.json +0 -21
- data/apis/workdocs/2016-05-01/api-2.json +0 -2899
- data/apis/workdocs/2016-05-01/examples-1.json +0 -5
- data/apis/workdocs/2016-05-01/paginators-1.json +0 -25
- data/apis/worklink/2018-09-25/api-2.json +0 -1266
- data/apis/worklink/2018-09-25/examples-1.json +0 -5
- data/apis/worklink/2018-09-25/paginators-1.json +0 -29
- data/apis/workmail/2017-10-01/api-2.json +0 -1918
- data/apis/workmail/2017-10-01/examples-1.json +0 -5
- data/apis/workmail/2017-10-01/paginators-1.json +0 -44
- data/apis/workmailmessageflow/2019-05-01/api-2.json +0 -67
- data/apis/workmailmessageflow/2019-05-01/examples-1.json +0 -5
- data/apis/workmailmessageflow/2019-05-01/paginators-1.json +0 -4
- data/apis/workspaces/2015-04-08/api-2.json +0 -2029
- data/apis/workspaces/2015-04-08/examples-1.json +0 -5
- data/apis/workspaces/2015-04-08/paginators-1.json +0 -20
- data/apis/workspaces/2015-04-08/smoke.json +0 -18
- data/apis/xray/2016-04-12/api-2.json +0 -1352
- data/apis/xray/2016-04-12/examples-1.json +0 -5
- data/apis/xray/2016-04-12/paginators-1.json +0 -59
- data/bin/aws.rb +0 -180
- data/endpoints.json +0 -5960
- data/lib/aws-sdk-core/accessanalyzer.rb +0 -6
- data/lib/aws-sdk-core/acm.rb +0 -7
- data/lib/aws-sdk-core/acmpca.rb +0 -7
- data/lib/aws-sdk-core/alexaforbusiness.rb +0 -6
- data/lib/aws-sdk-core/amplify.rb +0 -6
- data/lib/aws-sdk-core/api/builder.rb +0 -129
- data/lib/aws-sdk-core/api/customizations.rb +0 -304
- 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 -146
- data/lib/aws-sdk-core/apigateway.rb +0 -6
- data/lib/aws-sdk-core/apigatewaymanagementapi.rb +0 -5
- data/lib/aws-sdk-core/apigatewayv2.rb +0 -5
- data/lib/aws-sdk-core/appconfig.rb +0 -6
- data/lib/aws-sdk-core/applicationautoscaling.rb +0 -6
- data/lib/aws-sdk-core/applicationdiscoveryservice.rb +0 -6
- data/lib/aws-sdk-core/applicationinsights.rb +0 -6
- data/lib/aws-sdk-core/appmesh.rb +0 -6
- data/lib/aws-sdk-core/appstream.rb +0 -7
- data/lib/aws-sdk-core/appsync.rb +0 -6
- data/lib/aws-sdk-core/athena.rb +0 -6
- data/lib/aws-sdk-core/augmentedairuntime.rb +0 -6
- data/lib/aws-sdk-core/autoscaling.rb +0 -8
- data/lib/aws-sdk-core/autoscalingplans.rb +0 -6
- data/lib/aws-sdk-core/backup.rb +0 -6
- data/lib/aws-sdk-core/batch.rb +0 -6
- data/lib/aws-sdk-core/budgets.rb +0 -6
- data/lib/aws-sdk-core/checksums.rb +0 -51
- data/lib/aws-sdk-core/chime.rb +0 -6
- data/lib/aws-sdk-core/client.rb +0 -72
- data/lib/aws-sdk-core/client_waiters.rb +0 -120
- data/lib/aws-sdk-core/cloud9.rb +0 -6
- data/lib/aws-sdk-core/clouddirectory.rb +0 -6
- data/lib/aws-sdk-core/cloudformation.rb +0 -8
- data/lib/aws-sdk-core/cloudfront.rb +0 -17
- 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/cloudhsm.rb +0 -6
- data/lib/aws-sdk-core/cloudhsmv2.rb +0 -6
- data/lib/aws-sdk-core/cloudsearch.rb +0 -6
- data/lib/aws-sdk-core/cloudsearchdomain.rb +0 -5
- data/lib/aws-sdk-core/cloudtrail.rb +0 -6
- data/lib/aws-sdk-core/cloudwatch.rb +0 -8
- data/lib/aws-sdk-core/cloudwatchevents.rb +0 -6
- data/lib/aws-sdk-core/cloudwatchlogs.rb +0 -6
- data/lib/aws-sdk-core/codebuild.rb +0 -6
- data/lib/aws-sdk-core/codecommit.rb +0 -6
- data/lib/aws-sdk-core/codedeploy.rb +0 -7
- data/lib/aws-sdk-core/codeguruprofiler.rb +0 -6
- data/lib/aws-sdk-core/codegurureviewer.rb +0 -6
- data/lib/aws-sdk-core/codepipeline.rb +0 -6
- data/lib/aws-sdk-core/codestar.rb +0 -6
- data/lib/aws-sdk-core/codestarconnections.rb +0 -6
- data/lib/aws-sdk-core/codestarnotifications.rb +0 -6
- data/lib/aws-sdk-core/cognitoidentity.rb +0 -6
- data/lib/aws-sdk-core/cognitoidentityprovider.rb +0 -6
- data/lib/aws-sdk-core/cognitosync.rb +0 -4
- data/lib/aws-sdk-core/comprehend.rb +0 -6
- data/lib/aws-sdk-core/comprehendmedical.rb +0 -6
- data/lib/aws-sdk-core/computeoptimizer.rb +0 -6
- data/lib/aws-sdk-core/configservice.rb +0 -6
- data/lib/aws-sdk-core/connect.rb +0 -6
- data/lib/aws-sdk-core/connectparticipant.rb +0 -6
- data/lib/aws-sdk-core/costandusagereportservice.rb +0 -6
- data/lib/aws-sdk-core/costexplorer.rb +0 -6
- data/lib/aws-sdk-core/databasemigrationservice.rb +0 -7
- data/lib/aws-sdk-core/dataexchange.rb +0 -5
- data/lib/aws-sdk-core/datapipeline.rb +0 -5
- data/lib/aws-sdk-core/datasync.rb +0 -6
- data/lib/aws-sdk-core/dax.rb +0 -6
- data/lib/aws-sdk-core/detective.rb +0 -6
- 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 -6
- data/lib/aws-sdk-core/dlm.rb +0 -6
- data/lib/aws-sdk-core/docdb.rb +0 -7
- data/lib/aws-sdk-core/dynamodb.rb +0 -40
- data/lib/aws-sdk-core/dynamodb/attribute_value.rb +0 -110
- data/lib/aws-sdk-core/dynamodbstreams.rb +0 -6
- data/lib/aws-sdk-core/ebs.rb +0 -6
- data/lib/aws-sdk-core/ec2.rb +0 -8
- data/lib/aws-sdk-core/ec2instanceconnect.rb +0 -6
- data/lib/aws-sdk-core/ecr.rb +0 -7
- data/lib/aws-sdk-core/ecs.rb +0 -7
- data/lib/aws-sdk-core/efs.rb +0 -6
- data/lib/aws-sdk-core/eks.rb +0 -7
- data/lib/aws-sdk-core/elasticache.rb +0 -7
- data/lib/aws-sdk-core/elasticbeanstalk.rb +0 -6
- data/lib/aws-sdk-core/elasticinference.rb +0 -6
- data/lib/aws-sdk-core/elasticloadbalancing.rb +0 -7
- data/lib/aws-sdk-core/elasticloadbalancingv2.rb +0 -7
- data/lib/aws-sdk-core/elasticsearchservice.rb +0 -6
- data/lib/aws-sdk-core/elastictranscoder.rb +0 -7
- data/lib/aws-sdk-core/empty_structure.rb +0 -3
- data/lib/aws-sdk-core/emr.rb +0 -7
- data/lib/aws-sdk-core/endpoint_provider.rb +0 -131
- data/lib/aws-sdk-core/eventbridge.rb +0 -6
- data/lib/aws-sdk-core/firehose.rb +0 -6
- data/lib/aws-sdk-core/fms.rb +0 -6
- data/lib/aws-sdk-core/forecastqueryservice.rb +0 -6
- data/lib/aws-sdk-core/forecastservice.rb +0 -6
- data/lib/aws-sdk-core/frauddetector.rb +0 -6
- data/lib/aws-sdk-core/fsx.rb +0 -6
- data/lib/aws-sdk-core/gamelift.rb +0 -6
- data/lib/aws-sdk-core/glacier.rb +0 -8
- data/lib/aws-sdk-core/globalaccelerator.rb +0 -6
- data/lib/aws-sdk-core/glue.rb +0 -6
- data/lib/aws-sdk-core/greengrass.rb +0 -4
- data/lib/aws-sdk-core/groundstation.rb +0 -6
- data/lib/aws-sdk-core/guardduty.rb +0 -6
- data/lib/aws-sdk-core/health.rb +0 -6
- data/lib/aws-sdk-core/iam.rb +0 -8
- data/lib/aws-sdk-core/imagebuilder.rb +0 -6
- data/lib/aws-sdk-core/importexport.rb +0 -5
- data/lib/aws-sdk-core/inspector.rb +0 -6
- data/lib/aws-sdk-core/iot.rb +0 -6
- data/lib/aws-sdk-core/iot1clickdevicesservice.rb +0 -4
- data/lib/aws-sdk-core/iot1clickprojects.rb +0 -6
- data/lib/aws-sdk-core/iotanalytics.rb +0 -6
- data/lib/aws-sdk-core/iotdataplane.rb +0 -4
- data/lib/aws-sdk-core/iotevents.rb +0 -6
- data/lib/aws-sdk-core/ioteventsdata.rb +0 -6
- data/lib/aws-sdk-core/iotjobsdataplane.rb +0 -6
- data/lib/aws-sdk-core/iotsecuretunneling.rb +0 -6
- data/lib/aws-sdk-core/iotthingsgraph.rb +0 -6
- data/lib/aws-sdk-core/kafka.rb +0 -5
- data/lib/aws-sdk-core/kendra.rb +0 -6
- data/lib/aws-sdk-core/kinesis.rb +0 -7
- data/lib/aws-sdk-core/kinesisanalytics.rb +0 -6
- data/lib/aws-sdk-core/kinesisanalyticsv2.rb +0 -6
- data/lib/aws-sdk-core/kinesisvideo.rb +0 -6
- data/lib/aws-sdk-core/kinesisvideoarchivedmedia.rb +0 -6
- data/lib/aws-sdk-core/kinesisvideomedia.rb +0 -6
- data/lib/aws-sdk-core/kinesisvideosignalingchannels.rb +0 -6
- data/lib/aws-sdk-core/kms.rb +0 -6
- data/lib/aws-sdk-core/lakeformation.rb +0 -6
- data/lib/aws-sdk-core/lambda.rb +0 -7
- data/lib/aws-sdk-core/lambdapreview.rb +0 -5
- data/lib/aws-sdk-core/lex.rb +0 -6
- data/lib/aws-sdk-core/lexmodelbuildingservice.rb +0 -6
- data/lib/aws-sdk-core/licensemanager.rb +0 -6
- data/lib/aws-sdk-core/lightsail.rb +0 -6
- data/lib/aws-sdk-core/machinelearning.rb +0 -7
- data/lib/aws-sdk-core/macie.rb +0 -6
- data/lib/aws-sdk-core/managedblockchain.rb +0 -6
- data/lib/aws-sdk-core/marketplacecatalog.rb +0 -6
- data/lib/aws-sdk-core/marketplacecommerceanalytics.rb +0 -6
- data/lib/aws-sdk-core/marketplaceentitlementservice.rb +0 -6
- data/lib/aws-sdk-core/marketplacemetering.rb +0 -6
- data/lib/aws-sdk-core/mediaconnect.rb +0 -5
- data/lib/aws-sdk-core/mediaconvert.rb +0 -5
- data/lib/aws-sdk-core/medialive.rb +0 -6
- data/lib/aws-sdk-core/mediapackage.rb +0 -5
- data/lib/aws-sdk-core/mediapackagevod.rb +0 -5
- data/lib/aws-sdk-core/mediastore.rb +0 -6
- data/lib/aws-sdk-core/mediastoredata.rb +0 -6
- data/lib/aws-sdk-core/mediatailor.rb +0 -5
- data/lib/aws-sdk-core/migrationhub.rb +0 -6
- data/lib/aws-sdk-core/migrationhubconfig.rb +0 -6
- data/lib/aws-sdk-core/mobile.rb +0 -6
- data/lib/aws-sdk-core/mq.rb +0 -5
- data/lib/aws-sdk-core/mturk.rb +0 -6
- data/lib/aws-sdk-core/neptune.rb +0 -7
- data/lib/aws-sdk-core/networkmanager.rb +0 -6
- data/lib/aws-sdk-core/opsworks.rb +0 -8
- data/lib/aws-sdk-core/opsworkscm.rb +0 -7
- data/lib/aws-sdk-core/organizations.rb +0 -6
- data/lib/aws-sdk-core/outposts.rb +0 -6
- 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 -66
- data/lib/aws-sdk-core/partitions/service.rb +0 -75
- data/lib/aws-sdk-core/personalize.rb +0 -6
- data/lib/aws-sdk-core/personalizeevents.rb +0 -6
- data/lib/aws-sdk-core/personalizeruntime.rb +0 -6
- data/lib/aws-sdk-core/pi.rb +0 -6
- data/lib/aws-sdk-core/pinpoint.rb +0 -5
- data/lib/aws-sdk-core/pinpointemail.rb +0 -6
- data/lib/aws-sdk-core/pinpointsmsvoice.rb +0 -4
- data/lib/aws-sdk-core/plugins/api_gateway_header.rb +0 -19
- data/lib/aws-sdk-core/plugins/csd_conditional_signing.rb +0 -30
- data/lib/aws-sdk-core/plugins/csd_switch_to_post.rb +0 -36
- data/lib/aws-sdk-core/plugins/dynamodb_crc32_validation.rb +0 -52
- data/lib/aws-sdk-core/plugins/dynamodb_extended_retries.rb +0 -22
- data/lib/aws-sdk-core/plugins/dynamodb_simple_attributes.rb +0 -208
- data/lib/aws-sdk-core/plugins/ec2_copy_encrypted_snapshot.rb +0 -56
- data/lib/aws-sdk-core/plugins/ec2_region_validation.rb +0 -17
- data/lib/aws-sdk-core/plugins/glacier_account_id.rb +0 -19
- data/lib/aws-sdk-core/plugins/glacier_api_version.rb +0 -19
- data/lib/aws-sdk-core/plugins/glacier_checksums.rb +0 -87
- data/lib/aws-sdk-core/plugins/machine_learning_predict_endpoint.rb +0 -20
- data/lib/aws-sdk-core/plugins/rds_cross_region_copying.rb +0 -69
- data/lib/aws-sdk-core/plugins/request_signer.rb +0 -150
- data/lib/aws-sdk-core/plugins/route_53_id_fix.rb +0 -55
- data/lib/aws-sdk-core/plugins/s3_accelerate.rb +0 -90
- data/lib/aws-sdk-core/plugins/s3_bucket_dns.rb +0 -86
- data/lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb +0 -21
- data/lib/aws-sdk-core/plugins/s3_control_dns.rb +0 -25
- data/lib/aws-sdk-core/plugins/s3_control_dualstack.rb +0 -48
- data/lib/aws-sdk-core/plugins/s3_control_signer.rb +0 -53
- data/lib/aws-sdk-core/plugins/s3_dualstack.rb +0 -67
- data/lib/aws-sdk-core/plugins/s3_expect_100_continue.rb +0 -27
- data/lib/aws-sdk-core/plugins/s3_get_bucket_location_fix.rb +0 -21
- data/lib/aws-sdk-core/plugins/s3_host_id.rb +0 -26
- data/lib/aws-sdk-core/plugins/s3_http_200_errors.rb +0 -45
- data/lib/aws-sdk-core/plugins/s3_iad_regional_endpoint.rb +0 -58
- data/lib/aws-sdk-core/plugins/s3_location_constraint.rb +0 -31
- data/lib/aws-sdk-core/plugins/s3_md5s.rb +0 -50
- data/lib/aws-sdk-core/plugins/s3_redirects.rb +0 -37
- data/lib/aws-sdk-core/plugins/s3_request_signer.rb +0 -166
- data/lib/aws-sdk-core/plugins/s3_sse_cpk.rb +0 -64
- data/lib/aws-sdk-core/plugins/s3_url_encoded_keys.rb +0 -93
- data/lib/aws-sdk-core/plugins/sqs_md5s.rb +0 -164
- data/lib/aws-sdk-core/plugins/sqs_queue_urls.rb +0 -34
- data/lib/aws-sdk-core/plugins/sts_regional_endpoints.rb +0 -30
- data/lib/aws-sdk-core/plugins/swf_read_timeouts.rb +0 -23
- data/lib/aws-sdk-core/polly.rb +0 -14
- data/lib/aws-sdk-core/polly/presigner.rb +0 -70
- data/lib/aws-sdk-core/pricing.rb +0 -6
- data/lib/aws-sdk-core/qldb.rb +0 -6
- data/lib/aws-sdk-core/qldbsession.rb +0 -6
- data/lib/aws-sdk-core/quicksight.rb +0 -6
- data/lib/aws-sdk-core/ram.rb +0 -6
- data/lib/aws-sdk-core/rds.rb +0 -16
- data/lib/aws-sdk-core/rds/auth_token_generator.rb +0 -63
- data/lib/aws-sdk-core/rdsdataservice.rb +0 -6
- data/lib/aws-sdk-core/redshift.rb +0 -7
- data/lib/aws-sdk-core/rekognition.rb +0 -7
- data/lib/aws-sdk-core/resourcegroups.rb +0 -6
- data/lib/aws-sdk-core/resourcegroupstaggingapi.rb +0 -6
- data/lib/aws-sdk-core/robomaker.rb +0 -6
- data/lib/aws-sdk-core/route53.rb +0 -7
- data/lib/aws-sdk-core/route53domains.rb +0 -6
- data/lib/aws-sdk-core/route53resolver.rb +0 -6
- 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 -116
- data/lib/aws-sdk-core/s3control.rb +0 -6
- data/lib/aws-sdk-core/sagemaker.rb +0 -7
- data/lib/aws-sdk-core/sagemakerruntime.rb +0 -6
- data/lib/aws-sdk-core/savingsplans.rb +0 -6
- data/lib/aws-sdk-core/schemas.rb +0 -6
- data/lib/aws-sdk-core/secretsmanager.rb +0 -6
- data/lib/aws-sdk-core/securityhub.rb +0 -6
- data/lib/aws-sdk-core/serverlessapplicationrepository.rb +0 -5
- data/lib/aws-sdk-core/service.rb +0 -4
- data/lib/aws-sdk-core/servicecatalog.rb +0 -6
- data/lib/aws-sdk-core/servicediscovery.rb +0 -6
- data/lib/aws-sdk-core/servicequotas.rb +0 -6
- data/lib/aws-sdk-core/ses.rb +0 -7
- data/lib/aws-sdk-core/sesv2.rb +0 -6
- data/lib/aws-sdk-core/shield.rb +0 -6
- data/lib/aws-sdk-core/signer.rb +0 -7
- data/lib/aws-sdk-core/signers/base.rb +0 -31
- data/lib/aws-sdk-core/signers/s3.rb +0 -185
- data/lib/aws-sdk-core/signers/v2.rb +0 -51
- data/lib/aws-sdk-core/signers/v3.rb +0 -34
- data/lib/aws-sdk-core/signers/v4.rb +0 -234
- data/lib/aws-sdk-core/simpledb.rb +0 -5
- data/lib/aws-sdk-core/sms.rb +0 -6
- data/lib/aws-sdk-core/snowball.rb +0 -6
- data/lib/aws-sdk-core/sns.rb +0 -7
- data/lib/aws-sdk-core/sqs.rb +0 -7
- data/lib/aws-sdk-core/ssm.rb +0 -6
- data/lib/aws-sdk-core/sso.rb +0 -6
- data/lib/aws-sdk-core/ssooidc.rb +0 -6
- data/lib/aws-sdk-core/states.rb +0 -6
- data/lib/aws-sdk-core/storagegateway.rb +0 -6
- data/lib/aws-sdk-core/sts.rb +0 -6
- data/lib/aws-sdk-core/support.rb +0 -6
- data/lib/aws-sdk-core/swf.rb +0 -6
- data/lib/aws-sdk-core/textract.rb +0 -6
- data/lib/aws-sdk-core/transcribeservice.rb +0 -6
- data/lib/aws-sdk-core/transfer.rb +0 -6
- data/lib/aws-sdk-core/translate.rb +0 -6
- 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/wafv2.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/worklink.rb +0 -6
- data/lib/aws-sdk-core/workmail.rb +0 -6
- data/lib/aws-sdk-core/workmailmessageflow.rb +0 -6
- data/lib/aws-sdk-core/workspaces.rb +0 -6
- data/lib/aws-sdk-core/xray.rb +0 -6
- data/lib/seahorse/client/plugins/restful_bindings.rb +0 -125
- data/service-models.json +0 -881
@@ -18,21 +18,43 @@ module Aws
|
|
18
18
|
if body.empty?
|
19
19
|
code = http_status_error_code(context)
|
20
20
|
message = ''
|
21
|
+
data = EmptyStructure.new
|
21
22
|
else
|
22
|
-
code, message = extract_error(body, context)
|
23
|
+
code, message, data = extract_error(body, context)
|
23
24
|
end
|
24
|
-
|
25
|
-
|
26
|
-
|
25
|
+
errors_module = context.client.class.errors_module
|
26
|
+
error_class = errors_module.error_class(code).new(context, message, data)
|
27
|
+
error_class
|
27
28
|
end
|
28
29
|
|
29
30
|
def extract_error(body, context)
|
31
|
+
code = error_code(body, context)
|
30
32
|
[
|
31
|
-
|
33
|
+
code,
|
32
34
|
error_message(body),
|
35
|
+
error_data(context, code)
|
33
36
|
]
|
34
37
|
end
|
35
38
|
|
39
|
+
def error_data(context, code)
|
40
|
+
data = EmptyStructure.new
|
41
|
+
if error_rules = context.operation.errors
|
42
|
+
error_rules.each do |rule|
|
43
|
+
# for modeled shape with error trait
|
44
|
+
# match `code` in the error trait before
|
45
|
+
# match modeled shape name
|
46
|
+
error_shape_code = rule.shape['error']['code'] if rule.shape['error']
|
47
|
+
match = (code == error_shape_code || code == rule.shape.name)
|
48
|
+
if match && rule.shape.members.any?
|
49
|
+
data = Parser.new(rule).parse(context.http_response.body_contents)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
data
|
54
|
+
rescue Xml::Parser::ParsingError
|
55
|
+
EmptyStructure.new
|
56
|
+
end
|
57
|
+
|
36
58
|
def error_code(body, context)
|
37
59
|
if matches = body.match(/<Code>(.+?)<\/Code>/)
|
38
60
|
remove_prefix(unescape(matches[1]), context)
|
@@ -1,19 +1,9 @@
|
|
1
1
|
module Aws
|
2
|
+
# @api private
|
2
3
|
module Xml
|
3
|
-
|
4
4
|
# A SAX-style XML parser that uses a shape context to handle types.
|
5
5
|
class Parser
|
6
6
|
|
7
|
-
autoload :Stack, 'aws-sdk-core/xml/parser/stack'
|
8
|
-
autoload :Frame, 'aws-sdk-core/xml/parser/frame'
|
9
|
-
autoload :ParsingError, 'aws-sdk-core/xml/parser/parsing_error'
|
10
|
-
|
11
|
-
autoload :LibxmlEngine, 'aws-sdk-core/xml/parser/engines/libxml'
|
12
|
-
autoload :NokogiriEngine, 'aws-sdk-core/xml/parser/engines/nokogiri'
|
13
|
-
autoload :OgaEngine, 'aws-sdk-core/xml/parser/engines/oga'
|
14
|
-
autoload :OxEngine, 'aws-sdk-core/xml/parser/engines/ox'
|
15
|
-
autoload :RexmlEngine, 'aws-sdk-core/xml/parser/engines/rexml'
|
16
|
-
|
17
7
|
# @param [Seahorse::Model::ShapeRef] rules
|
18
8
|
def initialize(rules, options = {})
|
19
9
|
@rules = rules
|
@@ -24,9 +24,9 @@ module Aws
|
|
24
24
|
|
25
25
|
def frame_class(ref)
|
26
26
|
klass = FRAME_CLASSES[ref.shape.class]
|
27
|
-
if ListFrame == klass && ref[
|
27
|
+
if ListFrame == klass && (ref.shape.flattened || ref["flattened"])
|
28
28
|
FlatListFrame
|
29
|
-
elsif MapFrame == klass && ref[
|
29
|
+
elsif MapFrame == klass && (ref.shape.flattened || ref["flattened"])
|
30
30
|
MapEntryFrame
|
31
31
|
else
|
32
32
|
klass
|
@@ -79,7 +79,7 @@ module Aws
|
|
79
79
|
|
80
80
|
def initialize(xml_name, parent, ref, result = nil)
|
81
81
|
super
|
82
|
-
@result ||= ref
|
82
|
+
@result ||= ref.shape.struct_class.new
|
83
83
|
@members = {}
|
84
84
|
ref.shape.members.each do |member_name, member_ref|
|
85
85
|
apply_default_value(member_name, member_ref)
|
@@ -120,15 +120,15 @@ module Aws
|
|
120
120
|
end
|
121
121
|
|
122
122
|
def xml_name(ref)
|
123
|
-
if flattened_list?(ref
|
123
|
+
if flattened_list?(ref)
|
124
124
|
ref.shape.member.location_name || ref.location_name
|
125
125
|
else
|
126
126
|
ref.location_name
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
130
|
-
def flattened_list?(
|
131
|
-
ListShape === shape && shape[
|
130
|
+
def flattened_list?(ref)
|
131
|
+
ListShape === ref.shape && (ref.shape.flattened || ref["flattened"])
|
132
132
|
end
|
133
133
|
|
134
134
|
end
|
data/lib/aws-sdk-sts.rb
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
|
9
|
+
require_relative 'aws-sdk-sts/types'
|
10
|
+
require_relative 'aws-sdk-sts/client_api'
|
11
|
+
require_relative 'aws-sdk-sts/client'
|
12
|
+
require_relative 'aws-sdk-sts/errors'
|
13
|
+
require_relative 'aws-sdk-sts/resource'
|
14
|
+
require_relative 'aws-sdk-sts/customizations'
|
15
|
+
|
16
|
+
# This module provides support for AWS Security Token Service. This module is available in the
|
17
|
+
# `aws-sdk-core` gem.
|
18
|
+
#
|
19
|
+
# # Client
|
20
|
+
#
|
21
|
+
# The {Client} class provides one method for each API operation. Operation
|
22
|
+
# methods each accept a hash of request parameters and return a response
|
23
|
+
# structure.
|
24
|
+
#
|
25
|
+
# See {Client} for more information.
|
26
|
+
#
|
27
|
+
# # Errors
|
28
|
+
#
|
29
|
+
# Errors returned from AWS Security Token Service all
|
30
|
+
# extend {Errors::ServiceError}.
|
31
|
+
#
|
32
|
+
# begin
|
33
|
+
# # do stuff
|
34
|
+
# rescue Aws::STS::Errors::ServiceError
|
35
|
+
# # rescues all service API errors
|
36
|
+
# end
|
37
|
+
#
|
38
|
+
# See {Errors} for more information.
|
39
|
+
#
|
40
|
+
# @service
|
41
|
+
module Aws::STS
|
42
|
+
|
43
|
+
GEM_VERSION = '3.86.0'
|
44
|
+
|
45
|
+
end
|
@@ -0,0 +1,2126 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
require 'seahorse/client/plugins/content_length.rb'
|
9
|
+
require 'aws-sdk-core/plugins/credentials_configuration.rb'
|
10
|
+
require 'aws-sdk-core/plugins/logging.rb'
|
11
|
+
require 'aws-sdk-core/plugins/param_converter.rb'
|
12
|
+
require 'aws-sdk-core/plugins/param_validator.rb'
|
13
|
+
require 'aws-sdk-core/plugins/user_agent.rb'
|
14
|
+
require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
|
15
|
+
require 'aws-sdk-core/plugins/retry_errors.rb'
|
16
|
+
require 'aws-sdk-core/plugins/global_configuration.rb'
|
17
|
+
require 'aws-sdk-core/plugins/regional_endpoint.rb'
|
18
|
+
require 'aws-sdk-core/plugins/endpoint_discovery.rb'
|
19
|
+
require 'aws-sdk-core/plugins/endpoint_pattern.rb'
|
20
|
+
require 'aws-sdk-core/plugins/response_paging.rb'
|
21
|
+
require 'aws-sdk-core/plugins/stub_responses.rb'
|
22
|
+
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
23
|
+
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
24
|
+
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
|
+
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
|
+
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
27
|
+
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
|
+
require 'aws-sdk-core/plugins/protocols/query.rb'
|
29
|
+
require 'aws-sdk-sts/plugins/sts_regional_endpoints.rb'
|
30
|
+
|
31
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:sts)
|
32
|
+
|
33
|
+
module Aws::STS
|
34
|
+
class Client < Seahorse::Client::Base
|
35
|
+
|
36
|
+
include Aws::ClientStubs
|
37
|
+
|
38
|
+
@identifier = :sts
|
39
|
+
|
40
|
+
set_api(ClientApi::API)
|
41
|
+
|
42
|
+
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
43
|
+
add_plugin(Aws::Plugins::CredentialsConfiguration)
|
44
|
+
add_plugin(Aws::Plugins::Logging)
|
45
|
+
add_plugin(Aws::Plugins::ParamConverter)
|
46
|
+
add_plugin(Aws::Plugins::ParamValidator)
|
47
|
+
add_plugin(Aws::Plugins::UserAgent)
|
48
|
+
add_plugin(Aws::Plugins::HelpfulSocketErrors)
|
49
|
+
add_plugin(Aws::Plugins::RetryErrors)
|
50
|
+
add_plugin(Aws::Plugins::GlobalConfiguration)
|
51
|
+
add_plugin(Aws::Plugins::RegionalEndpoint)
|
52
|
+
add_plugin(Aws::Plugins::EndpointDiscovery)
|
53
|
+
add_plugin(Aws::Plugins::EndpointPattern)
|
54
|
+
add_plugin(Aws::Plugins::ResponsePaging)
|
55
|
+
add_plugin(Aws::Plugins::StubResponses)
|
56
|
+
add_plugin(Aws::Plugins::IdempotencyToken)
|
57
|
+
add_plugin(Aws::Plugins::JsonvalueConverter)
|
58
|
+
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
59
|
+
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
60
|
+
add_plugin(Aws::Plugins::TransferEncoding)
|
61
|
+
add_plugin(Aws::Plugins::SignatureV4)
|
62
|
+
add_plugin(Aws::Plugins::Protocols::Query)
|
63
|
+
add_plugin(Aws::STS::Plugins::STSRegionalEndpoints)
|
64
|
+
|
65
|
+
# @overload initialize(options)
|
66
|
+
# @param [Hash] options
|
67
|
+
# @option options [required, Aws::CredentialProvider] :credentials
|
68
|
+
# Your AWS credentials. This can be an instance of any one of the
|
69
|
+
# following classes:
|
70
|
+
#
|
71
|
+
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
72
|
+
# credentials.
|
73
|
+
#
|
74
|
+
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
75
|
+
# from an EC2 IMDS on an EC2 instance.
|
76
|
+
#
|
77
|
+
# * `Aws::SharedCredentials` - Used for loading credentials from a
|
78
|
+
# shared file, such as `~/.aws/config`.
|
79
|
+
#
|
80
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
81
|
+
#
|
82
|
+
# When `:credentials` are not configured directly, the following
|
83
|
+
# locations will be searched for credentials:
|
84
|
+
#
|
85
|
+
# * `Aws.config[:credentials]`
|
86
|
+
# * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
|
87
|
+
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
88
|
+
# * `~/.aws/credentials`
|
89
|
+
# * `~/.aws/config`
|
90
|
+
# * EC2 IMDS instance profile - When used by default, the timeouts are
|
91
|
+
# very aggressive. Construct and pass an instance of
|
92
|
+
# `Aws::InstanceProfileCredentails` to enable retries and extended
|
93
|
+
# timeouts.
|
94
|
+
#
|
95
|
+
# @option options [required, String] :region
|
96
|
+
# The AWS region to connect to. The configured `:region` is
|
97
|
+
# used to determine the service `:endpoint`. When not passed,
|
98
|
+
# a default `:region` is search for in the following locations:
|
99
|
+
#
|
100
|
+
# * `Aws.config[:region]`
|
101
|
+
# * `ENV['AWS_REGION']`
|
102
|
+
# * `ENV['AMAZON_REGION']`
|
103
|
+
# * `ENV['AWS_DEFAULT_REGION']`
|
104
|
+
# * `~/.aws/credentials`
|
105
|
+
# * `~/.aws/config`
|
106
|
+
#
|
107
|
+
# @option options [String] :access_key_id
|
108
|
+
#
|
109
|
+
# @option options [Boolean] :active_endpoint_cache (false)
|
110
|
+
# When set to `true`, a thread polling for endpoints will be running in
|
111
|
+
# the background every 60 secs (default). Defaults to `false`.
|
112
|
+
#
|
113
|
+
# @option options [Boolean] :client_side_monitoring (false)
|
114
|
+
# When `true`, client-side metrics will be collected for all API requests from
|
115
|
+
# this client.
|
116
|
+
#
|
117
|
+
# @option options [String] :client_side_monitoring_client_id ("")
|
118
|
+
# Allows you to provide an identifier for this client which will be attached to
|
119
|
+
# all generated client side metrics. Defaults to an empty string.
|
120
|
+
#
|
121
|
+
# @option options [String] :client_side_monitoring_host ("127.0.0.1")
|
122
|
+
# Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client
|
123
|
+
# side monitoring agent is running on, where client metrics will be published via UDP.
|
124
|
+
#
|
125
|
+
# @option options [Integer] :client_side_monitoring_port (31000)
|
126
|
+
# Required for publishing client metrics. The port that the client side monitoring
|
127
|
+
# agent is running on, where client metrics will be published via UDP.
|
128
|
+
#
|
129
|
+
# @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher)
|
130
|
+
# Allows you to provide a custom client-side monitoring publisher class. By default,
|
131
|
+
# will use the Client Side Monitoring Agent Publisher.
|
132
|
+
#
|
133
|
+
# @option options [Boolean] :convert_params (true)
|
134
|
+
# When `true`, an attempt is made to coerce request parameters into
|
135
|
+
# the required types.
|
136
|
+
#
|
137
|
+
# @option options [Boolean] :disable_host_prefix_injection (false)
|
138
|
+
# Set to true to disable SDK automatically adding host prefix
|
139
|
+
# to default service endpoint when available.
|
140
|
+
#
|
141
|
+
# @option options [String] :endpoint
|
142
|
+
# The client endpoint is normally constructed from the `:region`
|
143
|
+
# option. You should only configure an `:endpoint` when connecting
|
144
|
+
# to test endpoints. This should be avalid HTTP(S) URI.
|
145
|
+
#
|
146
|
+
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
147
|
+
# Used for the maximum size limit of the LRU cache storing endpoints data
|
148
|
+
# for endpoint discovery enabled operations. Defaults to 1000.
|
149
|
+
#
|
150
|
+
# @option options [Integer] :endpoint_cache_max_threads (10)
|
151
|
+
# Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
|
152
|
+
#
|
153
|
+
# @option options [Integer] :endpoint_cache_poll_interval (60)
|
154
|
+
# When :endpoint_discovery and :active_endpoint_cache is enabled,
|
155
|
+
# Use this option to config the time interval in seconds for making
|
156
|
+
# requests fetching endpoints information. Defaults to 60 sec.
|
157
|
+
#
|
158
|
+
# @option options [Boolean] :endpoint_discovery (false)
|
159
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
|
160
|
+
#
|
161
|
+
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
162
|
+
# The log formatter.
|
163
|
+
#
|
164
|
+
# @option options [Symbol] :log_level (:info)
|
165
|
+
# The log level to send messages to the `:logger` at.
|
166
|
+
#
|
167
|
+
# @option options [Logger] :logger
|
168
|
+
# The Logger instance to send log messages to. If this option
|
169
|
+
# is not set, logging will be disabled.
|
170
|
+
#
|
171
|
+
# @option options [String] :profile ("default")
|
172
|
+
# Used when loading credentials from the shared credentials file
|
173
|
+
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
174
|
+
#
|
175
|
+
# @option options [Float] :retry_base_delay (0.3)
|
176
|
+
# The base delay in seconds used by the default backoff function.
|
177
|
+
#
|
178
|
+
# @option options [Symbol] :retry_jitter (:none)
|
179
|
+
# A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
|
180
|
+
#
|
181
|
+
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
182
|
+
#
|
183
|
+
# @option options [Integer] :retry_limit (3)
|
184
|
+
# The maximum number of times to retry failed requests. Only
|
185
|
+
# ~ 500 level server errors and certain ~ 400 level client errors
|
186
|
+
# are retried. Generally, these are throttling errors, data
|
187
|
+
# checksum errors, networking errors, timeout errors and auth
|
188
|
+
# errors from expired credentials.
|
189
|
+
#
|
190
|
+
# @option options [Integer] :retry_max_delay (0)
|
191
|
+
# The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
|
192
|
+
#
|
193
|
+
# @option options [String] :secret_access_key
|
194
|
+
#
|
195
|
+
# @option options [String] :session_token
|
196
|
+
#
|
197
|
+
# @option options [String] :sts_regional_endpoints ("legacy")
|
198
|
+
# Passing in 'regional' to enable regional endpoint for STS for all supported
|
199
|
+
# regions (except 'aws-global'), defaults to 'legacy' mode, using global endpoint
|
200
|
+
# for legacy regions.
|
201
|
+
#
|
202
|
+
# @option options [Boolean] :stub_responses (false)
|
203
|
+
# Causes the client to return stubbed responses. By default
|
204
|
+
# fake responses are generated and returned. You can specify
|
205
|
+
# the response data to return or errors to raise by calling
|
206
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
207
|
+
#
|
208
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
209
|
+
# requests are made, and retries are disabled.
|
210
|
+
#
|
211
|
+
# @option options [Boolean] :validate_params (true)
|
212
|
+
# When `true`, request parameters are validated before
|
213
|
+
# sending the request.
|
214
|
+
#
|
215
|
+
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
216
|
+
# requests through. Formatted like 'http://proxy.com:123'.
|
217
|
+
#
|
218
|
+
# @option options [Float] :http_open_timeout (15) The number of
|
219
|
+
# seconds to wait when opening a HTTP session before rasing a
|
220
|
+
# `Timeout::Error`.
|
221
|
+
#
|
222
|
+
# @option options [Integer] :http_read_timeout (60) The default
|
223
|
+
# number of seconds to wait for response data. This value can
|
224
|
+
# safely be set
|
225
|
+
# per-request on the session yeidled by {#session_for}.
|
226
|
+
#
|
227
|
+
# @option options [Float] :http_idle_timeout (5) The number of
|
228
|
+
# seconds a connection is allowed to sit idble before it is
|
229
|
+
# considered stale. Stale connections are closed and removed
|
230
|
+
# from the pool before making a request.
|
231
|
+
#
|
232
|
+
# @option options [Float] :http_continue_timeout (1) The number of
|
233
|
+
# seconds to wait for a 100-continue response before sending the
|
234
|
+
# request body. This option has no effect unless the request has
|
235
|
+
# "Expect" header set to "100-continue". Defaults to `nil` which
|
236
|
+
# disables this behaviour. This value can safely be set per
|
237
|
+
# request on the session yeidled by {#session_for}.
|
238
|
+
#
|
239
|
+
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
240
|
+
# HTTP debug output will be sent to the `:logger`.
|
241
|
+
#
|
242
|
+
# @option options [Boolean] :ssl_verify_peer (true) When `true`,
|
243
|
+
# SSL peer certificates are verified when establishing a
|
244
|
+
# connection.
|
245
|
+
#
|
246
|
+
# @option options [String] :ssl_ca_bundle Full path to the SSL
|
247
|
+
# certificate authority bundle file that should be used when
|
248
|
+
# verifying peer certificates. If you do not pass
|
249
|
+
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
250
|
+
# will be used if available.
|
251
|
+
#
|
252
|
+
# @option options [String] :ssl_ca_directory Full path of the
|
253
|
+
# directory that contains the unbundled SSL certificate
|
254
|
+
# authority files for verifying peer certificates. If you do
|
255
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
256
|
+
# system default will be used if available.
|
257
|
+
#
|
258
|
+
def initialize(*args)
|
259
|
+
super
|
260
|
+
end
|
261
|
+
|
262
|
+
# @!group API Operations
|
263
|
+
|
264
|
+
# Returns a set of temporary security credentials that you can use to
|
265
|
+
# access AWS resources that you might not normally have access to. These
|
266
|
+
# temporary credentials consist of an access key ID, a secret access
|
267
|
+
# key, and a security token. Typically, you use `AssumeRole` within your
|
268
|
+
# account or for cross-account access. For a comparison of `AssumeRole`
|
269
|
+
# with other API operations that produce temporary credentials, see
|
270
|
+
# [Requesting Temporary Security Credentials][1] and [Comparing the AWS
|
271
|
+
# STS API operations][2] in the *IAM User Guide*.
|
272
|
+
#
|
273
|
+
# You cannot use AWS account root user credentials to call `AssumeRole`.
|
274
|
+
# You must use credentials for an IAM user or an IAM role to call
|
275
|
+
# `AssumeRole`.
|
276
|
+
#
|
277
|
+
# For cross-account access, imagine that you own multiple accounts and
|
278
|
+
# need to access resources in each account. You could create long-term
|
279
|
+
# credentials in each account to access those resources. However,
|
280
|
+
# managing all those credentials and remembering which one can access
|
281
|
+
# which account can be time consuming. Instead, you can create one set
|
282
|
+
# of long-term credentials in one account. Then use temporary security
|
283
|
+
# credentials to access all the other accounts by assuming roles in
|
284
|
+
# those accounts. For more information about roles, see [IAM Roles][3]
|
285
|
+
# in the *IAM User Guide*.
|
286
|
+
#
|
287
|
+
# **Session Duration**
|
288
|
+
#
|
289
|
+
# By default, the temporary security credentials created by `AssumeRole`
|
290
|
+
# last for one hour. However, you can use the optional `DurationSeconds`
|
291
|
+
# parameter to specify the duration of your session. You can provide a
|
292
|
+
# value from 900 seconds (15 minutes) up to the maximum session duration
|
293
|
+
# setting for the role. This setting can have a value from 1 hour to 12
|
294
|
+
# hours. To learn how to view the maximum value for your role, see [View
|
295
|
+
# the Maximum Session Duration Setting for a Role][4] in the *IAM User
|
296
|
+
# Guide*. The maximum session duration limit applies when you use the
|
297
|
+
# `AssumeRole*` API operations or the `assume-role*` CLI commands.
|
298
|
+
# However the limit does not apply when you use those operations to
|
299
|
+
# create a console URL. For more information, see [Using IAM Roles][5]
|
300
|
+
# in the *IAM User Guide*.
|
301
|
+
#
|
302
|
+
# **Permissions**
|
303
|
+
#
|
304
|
+
# The temporary security credentials created by `AssumeRole` can be used
|
305
|
+
# to make API calls to any AWS service with the following exception: You
|
306
|
+
# cannot call the AWS STS `GetFederationToken` or `GetSessionToken` API
|
307
|
+
# operations.
|
308
|
+
#
|
309
|
+
# (Optional) You can pass inline or managed [session policies][6] to
|
310
|
+
# this operation. You can pass a single JSON policy document to use as
|
311
|
+
# an inline session policy. You can also specify up to 10 managed
|
312
|
+
# policies to use as managed session policies. The plain text that you
|
313
|
+
# use for both inline and managed session policies can't exceed 2,048
|
314
|
+
# characters. Passing policies to this operation returns new temporary
|
315
|
+
# credentials. The resulting session's permissions are the intersection
|
316
|
+
# of the role's identity-based policy and the session policies. You can
|
317
|
+
# use the role's temporary credentials in subsequent AWS API calls to
|
318
|
+
# access resources in the account that owns the role. You cannot use
|
319
|
+
# session policies to grant more permissions than those allowed by the
|
320
|
+
# identity-based policy of the role that is being assumed. For more
|
321
|
+
# information, see [Session Policies][6] in the *IAM User Guide*.
|
322
|
+
#
|
323
|
+
# To assume a role from a different account, your AWS account must be
|
324
|
+
# trusted by the role. The trust relationship is defined in the role's
|
325
|
+
# trust policy when the role is created. That trust policy states which
|
326
|
+
# accounts are allowed to delegate that access to users in the account.
|
327
|
+
#
|
328
|
+
# A user who wants to access a role in a different account must also
|
329
|
+
# have permissions that are delegated from the user account
|
330
|
+
# administrator. The administrator must attach a policy that allows the
|
331
|
+
# user to call `AssumeRole` for the ARN of the role in the other
|
332
|
+
# account. If the user is in the same account as the role, then you can
|
333
|
+
# do either of the following:
|
334
|
+
#
|
335
|
+
# * Attach a policy to the user (identical to the previous user in a
|
336
|
+
# different account).
|
337
|
+
#
|
338
|
+
# * Add the user as a principal directly in the role's trust policy.
|
339
|
+
#
|
340
|
+
# In this case, the trust policy acts as an IAM resource-based policy.
|
341
|
+
# Users in the same account as the role do not need explicit permission
|
342
|
+
# to assume the role. For more information about trust policies and
|
343
|
+
# resource-based policies, see [IAM Policies][7] in the *IAM User
|
344
|
+
# Guide*.
|
345
|
+
#
|
346
|
+
# **Tags**
|
347
|
+
#
|
348
|
+
# (Optional) You can pass tag key-value pairs to your session. These
|
349
|
+
# tags are called session tags. For more information about session tags,
|
350
|
+
# see [Passing Session Tags in STS][8] in the *IAM User Guide*.
|
351
|
+
#
|
352
|
+
# An administrator must grant you the permissions necessary to pass
|
353
|
+
# session tags. The administrator can also create granular permissions
|
354
|
+
# to allow you to pass only specific session tags. For more information,
|
355
|
+
# see [Tutorial: Using Tags for Attribute-Based Access Control][9] in
|
356
|
+
# the *IAM User Guide*.
|
357
|
+
#
|
358
|
+
# You can set the session tags as transitive. Transitive tags persist
|
359
|
+
# during role chaining. For more information, see [Chaining Roles with
|
360
|
+
# Session Tags][10] in the *IAM User Guide*.
|
361
|
+
#
|
362
|
+
# **Using MFA with AssumeRole**
|
363
|
+
#
|
364
|
+
# (Optional) You can include multi-factor authentication (MFA)
|
365
|
+
# information when you call `AssumeRole`. This is useful for
|
366
|
+
# cross-account scenarios to ensure that the user that assumes the role
|
367
|
+
# has been authenticated with an AWS MFA device. In that scenario, the
|
368
|
+
# trust policy of the role being assumed includes a condition that tests
|
369
|
+
# for MFA authentication. If the caller does not include valid MFA
|
370
|
+
# information, the request to assume the role is denied. The condition
|
371
|
+
# in a trust policy that tests for MFA authentication might look like
|
372
|
+
# the following example.
|
373
|
+
#
|
374
|
+
# `"Condition": \{"Bool": \{"aws:MultiFactorAuthPresent": true\}\}`
|
375
|
+
#
|
376
|
+
# For more information, see [Configuring MFA-Protected API Access][11]
|
377
|
+
# in the *IAM User Guide* guide.
|
378
|
+
#
|
379
|
+
# To use MFA with `AssumeRole`, you pass values for the `SerialNumber`
|
380
|
+
# and `TokenCode` parameters. The `SerialNumber` value identifies the
|
381
|
+
# user's hardware or virtual MFA device. The `TokenCode` is the
|
382
|
+
# time-based one-time password (TOTP) that the MFA device produces.
|
383
|
+
#
|
384
|
+
#
|
385
|
+
#
|
386
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html
|
387
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison
|
388
|
+
# [3]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html
|
389
|
+
# [4]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session
|
390
|
+
# [5]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html
|
391
|
+
# [6]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
|
392
|
+
# [7]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html
|
393
|
+
# [8]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html
|
394
|
+
# [9]: https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html
|
395
|
+
# [10]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining
|
396
|
+
# [11]: https://docs.aws.amazon.com/IAM/latest/UserGuide/MFAProtectedAPI.html
|
397
|
+
#
|
398
|
+
# @option params [required, String] :role_arn
|
399
|
+
# The Amazon Resource Name (ARN) of the role to assume.
|
400
|
+
#
|
401
|
+
# @option params [required, String] :role_session_name
|
402
|
+
# An identifier for the assumed role session.
|
403
|
+
#
|
404
|
+
# Use the role session name to uniquely identify a session when the same
|
405
|
+
# role is assumed by different principals or for different reasons. In
|
406
|
+
# cross-account scenarios, the role session name is visible to, and can
|
407
|
+
# be logged by the account that owns the role. The role session name is
|
408
|
+
# also used in the ARN of the assumed role principal. This means that
|
409
|
+
# subsequent cross-account API requests that use the temporary security
|
410
|
+
# credentials will expose the role session name to the external account
|
411
|
+
# in their AWS CloudTrail logs.
|
412
|
+
#
|
413
|
+
# The regex used to validate this parameter is a string of characters
|
414
|
+
# consisting of upper- and lower-case alphanumeric characters with no
|
415
|
+
# spaces. You can also include underscores or any of the following
|
416
|
+
# characters: =,.@-
|
417
|
+
#
|
418
|
+
# @option params [Array<Types::PolicyDescriptorType>] :policy_arns
|
419
|
+
# The Amazon Resource Names (ARNs) of the IAM managed policies that you
|
420
|
+
# want to use as managed session policies. The policies must exist in
|
421
|
+
# the same account as the role.
|
422
|
+
#
|
423
|
+
# This parameter is optional. You can provide up to 10 managed policy
|
424
|
+
# ARNs. However, the plain text that you use for both inline and managed
|
425
|
+
# session policies can't exceed 2,048 characters. For more information
|
426
|
+
# about ARNs, see [Amazon Resource Names (ARNs) and AWS Service
|
427
|
+
# Namespaces][1] in the AWS General Reference.
|
428
|
+
#
|
429
|
+
# <note markdown="1"> An AWS conversion compresses the passed session policies and session
|
430
|
+
# tags into a packed binary format that has a separate limit. Your
|
431
|
+
# request can fail for this limit even if your plain text meets the
|
432
|
+
# other requirements. The `PackedPolicySize` response element indicates
|
433
|
+
# by percentage how close the policies and tags for your request are to
|
434
|
+
# the upper size limit.
|
435
|
+
#
|
436
|
+
# </note>
|
437
|
+
#
|
438
|
+
# Passing policies to this operation returns new temporary credentials.
|
439
|
+
# The resulting session's permissions are the intersection of the
|
440
|
+
# role's identity-based policy and the session policies. You can use
|
441
|
+
# the role's temporary credentials in subsequent AWS API calls to
|
442
|
+
# access resources in the account that owns the role. You cannot use
|
443
|
+
# session policies to grant more permissions than those allowed by the
|
444
|
+
# identity-based policy of the role that is being assumed. For more
|
445
|
+
# information, see [Session Policies][2] in the *IAM User Guide*.
|
446
|
+
#
|
447
|
+
#
|
448
|
+
#
|
449
|
+
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
|
450
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
|
451
|
+
#
|
452
|
+
# @option params [String] :policy
|
453
|
+
# An IAM policy in JSON format that you want to use as an inline session
|
454
|
+
# policy.
|
455
|
+
#
|
456
|
+
# This parameter is optional. Passing policies to this operation returns
|
457
|
+
# new temporary credentials. The resulting session's permissions are
|
458
|
+
# the intersection of the role's identity-based policy and the session
|
459
|
+
# policies. You can use the role's temporary credentials in subsequent
|
460
|
+
# AWS API calls to access resources in the account that owns the role.
|
461
|
+
# You cannot use session policies to grant more permissions than those
|
462
|
+
# allowed by the identity-based policy of the role that is being
|
463
|
+
# assumed. For more information, see [Session Policies][1] in the *IAM
|
464
|
+
# User Guide*.
|
465
|
+
#
|
466
|
+
# The plain text that you use for both inline and managed session
|
467
|
+
# policies can't exceed 2,048 characters. The JSON policy characters
|
468
|
+
# can be any ASCII character from the space character to the end of the
|
469
|
+
# valid character list (\\u0020 through \\u00FF). It can also include
|
470
|
+
# the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D)
|
471
|
+
# characters.
|
472
|
+
#
|
473
|
+
# <note markdown="1"> An AWS conversion compresses the passed session policies and session
|
474
|
+
# tags into a packed binary format that has a separate limit. Your
|
475
|
+
# request can fail for this limit even if your plain text meets the
|
476
|
+
# other requirements. The `PackedPolicySize` response element indicates
|
477
|
+
# by percentage how close the policies and tags for your request are to
|
478
|
+
# the upper size limit.
|
479
|
+
#
|
480
|
+
# </note>
|
481
|
+
#
|
482
|
+
#
|
483
|
+
#
|
484
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
|
485
|
+
#
|
486
|
+
# @option params [Integer] :duration_seconds
|
487
|
+
# The duration, in seconds, of the role session. The value can range
|
488
|
+
# from 900 seconds (15 minutes) up to the maximum session duration
|
489
|
+
# setting for the role. This setting can have a value from 1 hour to 12
|
490
|
+
# hours. If you specify a value higher than this setting, the operation
|
491
|
+
# fails. For example, if you specify a session duration of 12 hours, but
|
492
|
+
# your administrator set the maximum session duration to 6 hours, your
|
493
|
+
# operation fails. To learn how to view the maximum value for your role,
|
494
|
+
# see [View the Maximum Session Duration Setting for a Role][1] in the
|
495
|
+
# *IAM User Guide*.
|
496
|
+
#
|
497
|
+
# By default, the value is set to `3600` seconds.
|
498
|
+
#
|
499
|
+
# <note markdown="1"> The `DurationSeconds` parameter is separate from the duration of a
|
500
|
+
# console session that you might request using the returned credentials.
|
501
|
+
# The request to the federation endpoint for a console sign-in token
|
502
|
+
# takes a `SessionDuration` parameter that specifies the maximum length
|
503
|
+
# of the console session. For more information, see [Creating a URL that
|
504
|
+
# Enables Federated Users to Access the AWS Management Console][2] in
|
505
|
+
# the *IAM User Guide*.
|
506
|
+
#
|
507
|
+
# </note>
|
508
|
+
#
|
509
|
+
#
|
510
|
+
#
|
511
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session
|
512
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html
|
513
|
+
#
|
514
|
+
# @option params [Array<Types::Tag>] :tags
|
515
|
+
# A list of session tags that you want to pass. Each session tag
|
516
|
+
# consists of a key name and an associated value. For more information
|
517
|
+
# about session tags, see [Tagging AWS STS Sessions][1] in the *IAM User
|
518
|
+
# Guide*.
|
519
|
+
#
|
520
|
+
# This parameter is optional. You can pass up to 50 session tags. The
|
521
|
+
# plain text session tag keys can’t exceed 128 characters, and the
|
522
|
+
# values can’t exceed 256 characters. For these and additional limits,
|
523
|
+
# see [IAM and STS Character Limits][2] in the *IAM User Guide*.
|
524
|
+
#
|
525
|
+
# <note markdown="1"> An AWS conversion compresses the passed session policies and session
|
526
|
+
# tags into a packed binary format that has a separate limit. Your
|
527
|
+
# request can fail for this limit even if your plain text meets the
|
528
|
+
# other requirements. The `PackedPolicySize` response element indicates
|
529
|
+
# by percentage how close the policies and tags for your request are to
|
530
|
+
# the upper size limit.
|
531
|
+
#
|
532
|
+
# </note>
|
533
|
+
#
|
534
|
+
# You can pass a session tag with the same key as a tag that is already
|
535
|
+
# attached to the role. When you do, session tags override a role tag
|
536
|
+
# with the same key.
|
537
|
+
#
|
538
|
+
# Tag key–value pairs are not case sensitive, but case is preserved.
|
539
|
+
# This means that you cannot have separate `Department` and `department`
|
540
|
+
# tag keys. Assume that the role has the `Department`=`Marketing` tag
|
541
|
+
# and you pass the `department`=`engineering` session tag. `Department`
|
542
|
+
# and `department` are not saved as separate tags, and the session tag
|
543
|
+
# passed in the request takes precedence over the role tag.
|
544
|
+
#
|
545
|
+
# Additionally, if you used temporary credentials to perform this
|
546
|
+
# operation, the new session inherits any transitive session tags from
|
547
|
+
# the calling session. If you pass a session tag with the same key as an
|
548
|
+
# inherited tag, the operation fails. To view the inherited tags for a
|
549
|
+
# session, see the AWS CloudTrail logs. For more information, see
|
550
|
+
# [Viewing Session Tags in CloudTrail][3] in the *IAM User Guide*.
|
551
|
+
#
|
552
|
+
#
|
553
|
+
#
|
554
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html
|
555
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length
|
556
|
+
# [3]: https://docs.aws.amazon.com/IAM/latest/UserGuide/session-tags.html#id_session-tags_ctlogs
|
557
|
+
#
|
558
|
+
# @option params [Array<String>] :transitive_tag_keys
|
559
|
+
# A list of keys for session tags that you want to set as transitive. If
|
560
|
+
# you set a tag key as transitive, the corresponding key and value
|
561
|
+
# passes to subsequent sessions in a role chain. For more information,
|
562
|
+
# see [Chaining Roles with Session Tags][1] in the *IAM User Guide*.
|
563
|
+
#
|
564
|
+
# This parameter is optional. When you set session tags as transitive,
|
565
|
+
# the session policy and session tags packed binary limit is not
|
566
|
+
# affected.
|
567
|
+
#
|
568
|
+
# If you choose not to specify a transitive tag key, then no tags are
|
569
|
+
# passed from this session to any subsequent sessions.
|
570
|
+
#
|
571
|
+
#
|
572
|
+
#
|
573
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining
|
574
|
+
#
|
575
|
+
# @option params [String] :external_id
|
576
|
+
# A unique identifier that might be required when you assume a role in
|
577
|
+
# another account. If the administrator of the account to which the role
|
578
|
+
# belongs provided you with an external ID, then provide that value in
|
579
|
+
# the `ExternalId` parameter. This value can be any string, such as a
|
580
|
+
# passphrase or account number. A cross-account role is usually set up
|
581
|
+
# to trust everyone in an account. Therefore, the administrator of the
|
582
|
+
# trusting account might send an external ID to the administrator of the
|
583
|
+
# trusted account. That way, only someone with the ID can assume the
|
584
|
+
# role, rather than everyone in the account. For more information about
|
585
|
+
# the external ID, see [How to Use an External ID When Granting Access
|
586
|
+
# to Your AWS Resources to a Third Party][1] in the *IAM User Guide*.
|
587
|
+
#
|
588
|
+
# The regex used to validate this parameter is a string of characters
|
589
|
+
# consisting of upper- and lower-case alphanumeric characters with no
|
590
|
+
# spaces. You can also include underscores or any of the following
|
591
|
+
# characters: =,.@:/-
|
592
|
+
#
|
593
|
+
#
|
594
|
+
#
|
595
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html
|
596
|
+
#
|
597
|
+
# @option params [String] :serial_number
|
598
|
+
# The identification number of the MFA device that is associated with
|
599
|
+
# the user who is making the `AssumeRole` call. Specify this value if
|
600
|
+
# the trust policy of the role being assumed includes a condition that
|
601
|
+
# requires MFA authentication. The value is either the serial number for
|
602
|
+
# a hardware device (such as `GAHT12345678`) or an Amazon Resource Name
|
603
|
+
# (ARN) for a virtual device (such as
|
604
|
+
# `arn:aws:iam::123456789012:mfa/user`).
|
605
|
+
#
|
606
|
+
# The regex used to validate this parameter is a string of characters
|
607
|
+
# consisting of upper- and lower-case alphanumeric characters with no
|
608
|
+
# spaces. You can also include underscores or any of the following
|
609
|
+
# characters: =,.@-
|
610
|
+
#
|
611
|
+
# @option params [String] :token_code
|
612
|
+
# The value provided by the MFA device, if the trust policy of the role
|
613
|
+
# being assumed requires MFA (that is, if the policy includes a
|
614
|
+
# condition that tests for MFA). If the role being assumed requires MFA
|
615
|
+
# and if the `TokenCode` value is missing or expired, the `AssumeRole`
|
616
|
+
# call returns an "access denied" error.
|
617
|
+
#
|
618
|
+
# The format for this parameter, as described by its regex pattern, is a
|
619
|
+
# sequence of six numeric digits.
|
620
|
+
#
|
621
|
+
# @return [Types::AssumeRoleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
622
|
+
#
|
623
|
+
# * {Types::AssumeRoleResponse#credentials #credentials} => Types::Credentials
|
624
|
+
# * {Types::AssumeRoleResponse#assumed_role_user #assumed_role_user} => Types::AssumedRoleUser
|
625
|
+
# * {Types::AssumeRoleResponse#packed_policy_size #packed_policy_size} => Integer
|
626
|
+
#
|
627
|
+
#
|
628
|
+
# @example Example: To assume a role
|
629
|
+
#
|
630
|
+
# resp = client.assume_role({
|
631
|
+
# external_id: "123ABC",
|
632
|
+
# policy: "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Stmt1\",\"Effect\":\"Allow\",\"Action\":\"s3:ListAllMyBuckets\",\"Resource\":\"*\"}]}",
|
633
|
+
# role_arn: "arn:aws:iam::123456789012:role/demo",
|
634
|
+
# role_session_name: "testAssumeRoleSession",
|
635
|
+
# tags: [
|
636
|
+
# {
|
637
|
+
# key: "Project",
|
638
|
+
# value: "Unicorn",
|
639
|
+
# },
|
640
|
+
# {
|
641
|
+
# key: "Team",
|
642
|
+
# value: "Automation",
|
643
|
+
# },
|
644
|
+
# {
|
645
|
+
# key: "Cost-Center",
|
646
|
+
# value: "12345",
|
647
|
+
# },
|
648
|
+
# ],
|
649
|
+
# transitive_tag_keys: [
|
650
|
+
# "Project",
|
651
|
+
# "Cost-Center",
|
652
|
+
# ],
|
653
|
+
# })
|
654
|
+
#
|
655
|
+
# resp.to_h outputs the following:
|
656
|
+
# {
|
657
|
+
# assumed_role_user: {
|
658
|
+
# arn: "arn:aws:sts::123456789012:assumed-role/demo/Bob",
|
659
|
+
# assumed_role_id: "ARO123EXAMPLE123:Bob",
|
660
|
+
# },
|
661
|
+
# credentials: {
|
662
|
+
# access_key_id: "AKIAIOSFODNN7EXAMPLE",
|
663
|
+
# expiration: Time.parse("2011-07-15T23:28:33.359Z"),
|
664
|
+
# secret_access_key: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
|
665
|
+
# session_token: "AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA==",
|
666
|
+
# },
|
667
|
+
# packed_policy_size: 8,
|
668
|
+
# }
|
669
|
+
#
|
670
|
+
# @example Request syntax with placeholder values
|
671
|
+
#
|
672
|
+
# resp = client.assume_role({
|
673
|
+
# role_arn: "arnType", # required
|
674
|
+
# role_session_name: "roleSessionNameType", # required
|
675
|
+
# policy_arns: [
|
676
|
+
# {
|
677
|
+
# arn: "arnType",
|
678
|
+
# },
|
679
|
+
# ],
|
680
|
+
# policy: "sessionPolicyDocumentType",
|
681
|
+
# duration_seconds: 1,
|
682
|
+
# tags: [
|
683
|
+
# {
|
684
|
+
# key: "tagKeyType", # required
|
685
|
+
# value: "tagValueType", # required
|
686
|
+
# },
|
687
|
+
# ],
|
688
|
+
# transitive_tag_keys: ["tagKeyType"],
|
689
|
+
# external_id: "externalIdType",
|
690
|
+
# serial_number: "serialNumberType",
|
691
|
+
# token_code: "tokenCodeType",
|
692
|
+
# })
|
693
|
+
#
|
694
|
+
# @example Response structure
|
695
|
+
#
|
696
|
+
# resp.credentials.access_key_id #=> String
|
697
|
+
# resp.credentials.secret_access_key #=> String
|
698
|
+
# resp.credentials.session_token #=> String
|
699
|
+
# resp.credentials.expiration #=> Time
|
700
|
+
# resp.assumed_role_user.assumed_role_id #=> String
|
701
|
+
# resp.assumed_role_user.arn #=> String
|
702
|
+
# resp.packed_policy_size #=> Integer
|
703
|
+
#
|
704
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRole AWS API Documentation
|
705
|
+
#
|
706
|
+
# @overload assume_role(params = {})
|
707
|
+
# @param [Hash] params ({})
|
708
|
+
def assume_role(params = {}, options = {})
|
709
|
+
req = build_request(:assume_role, params)
|
710
|
+
req.send_request(options)
|
711
|
+
end
|
712
|
+
|
713
|
+
# Returns a set of temporary security credentials for users who have
|
714
|
+
# been authenticated via a SAML authentication response. This operation
|
715
|
+
# provides a mechanism for tying an enterprise identity store or
|
716
|
+
# directory to role-based AWS access without user-specific credentials
|
717
|
+
# or configuration. For a comparison of `AssumeRoleWithSAML` with the
|
718
|
+
# other API operations that produce temporary credentials, see
|
719
|
+
# [Requesting Temporary Security Credentials][1] and [Comparing the AWS
|
720
|
+
# STS API operations][2] in the *IAM User Guide*.
|
721
|
+
#
|
722
|
+
# The temporary security credentials returned by this operation consist
|
723
|
+
# of an access key ID, a secret access key, and a security token.
|
724
|
+
# Applications can use these temporary security credentials to sign
|
725
|
+
# calls to AWS services.
|
726
|
+
#
|
727
|
+
# **Session Duration**
|
728
|
+
#
|
729
|
+
# By default, the temporary security credentials created by
|
730
|
+
# `AssumeRoleWithSAML` last for one hour. However, you can use the
|
731
|
+
# optional `DurationSeconds` parameter to specify the duration of your
|
732
|
+
# session. Your role session lasts for the duration that you specify, or
|
733
|
+
# until the time specified in the SAML authentication response's
|
734
|
+
# `SessionNotOnOrAfter` value, whichever is shorter. You can provide a
|
735
|
+
# `DurationSeconds` value from 900 seconds (15 minutes) up to the
|
736
|
+
# maximum session duration setting for the role. This setting can have a
|
737
|
+
# value from 1 hour to 12 hours. To learn how to view the maximum value
|
738
|
+
# for your role, see [View the Maximum Session Duration Setting for a
|
739
|
+
# Role][3] in the *IAM User Guide*. The maximum session duration limit
|
740
|
+
# applies when you use the `AssumeRole*` API operations or the
|
741
|
+
# `assume-role*` CLI commands. However the limit does not apply when you
|
742
|
+
# use those operations to create a console URL. For more information,
|
743
|
+
# see [Using IAM Roles][4] in the *IAM User Guide*.
|
744
|
+
#
|
745
|
+
# **Permissions**
|
746
|
+
#
|
747
|
+
# The temporary security credentials created by `AssumeRoleWithSAML` can
|
748
|
+
# be used to make API calls to any AWS service with the following
|
749
|
+
# exception: you cannot call the STS `GetFederationToken` or
|
750
|
+
# `GetSessionToken` API operations.
|
751
|
+
#
|
752
|
+
# (Optional) You can pass inline or managed [session policies][5] to
|
753
|
+
# this operation. You can pass a single JSON policy document to use as
|
754
|
+
# an inline session policy. You can also specify up to 10 managed
|
755
|
+
# policies to use as managed session policies. The plain text that you
|
756
|
+
# use for both inline and managed session policies can't exceed 2,048
|
757
|
+
# characters. Passing policies to this operation returns new temporary
|
758
|
+
# credentials. The resulting session's permissions are the intersection
|
759
|
+
# of the role's identity-based policy and the session policies. You can
|
760
|
+
# use the role's temporary credentials in subsequent AWS API calls to
|
761
|
+
# access resources in the account that owns the role. You cannot use
|
762
|
+
# session policies to grant more permissions than those allowed by the
|
763
|
+
# identity-based policy of the role that is being assumed. For more
|
764
|
+
# information, see [Session Policies][5] in the *IAM User Guide*.
|
765
|
+
#
|
766
|
+
# Calling `AssumeRoleWithSAML` does not require the use of AWS security
|
767
|
+
# credentials. The identity of the caller is validated by using keys in
|
768
|
+
# the metadata document that is uploaded for the SAML provider entity
|
769
|
+
# for your identity provider.
|
770
|
+
#
|
771
|
+
# Calling `AssumeRoleWithSAML` can result in an entry in your AWS
|
772
|
+
# CloudTrail logs. The entry includes the value in the `NameID` element
|
773
|
+
# of the SAML assertion. We recommend that you use a `NameIDType` that
|
774
|
+
# is not associated with any personally identifiable information (PII).
|
775
|
+
# For example, you could instead use the persistent identifier
|
776
|
+
# (`urn:oasis:names:tc:SAML:2.0:nameid-format:persistent`).
|
777
|
+
#
|
778
|
+
# **Tags**
|
779
|
+
#
|
780
|
+
# (Optional) You can configure your IdP to pass attributes into your
|
781
|
+
# SAML assertion as session tags. Each session tag consists of a key
|
782
|
+
# name and an associated value. For more information about session tags,
|
783
|
+
# see [Passing Session Tags in STS][6] in the *IAM User Guide*.
|
784
|
+
#
|
785
|
+
# You can pass up to 50 session tags. The plain text session tag keys
|
786
|
+
# can’t exceed 128 characters and the values can’t exceed 256
|
787
|
+
# characters. For these and additional limits, see [IAM and STS
|
788
|
+
# Character Limits][7] in the *IAM User Guide*.
|
789
|
+
#
|
790
|
+
# <note markdown="1"> An AWS conversion compresses the passed session policies and session
|
791
|
+
# tags into a packed binary format that has a separate limit. Your
|
792
|
+
# request can fail for this limit even if your plain text meets the
|
793
|
+
# other requirements. The `PackedPolicySize` response element indicates
|
794
|
+
# by percentage how close the policies and tags for your request are to
|
795
|
+
# the upper size limit.
|
796
|
+
#
|
797
|
+
# </note>
|
798
|
+
#
|
799
|
+
# You can pass a session tag with the same key as a tag that is attached
|
800
|
+
# to the role. When you do, session tags override the role's tags with
|
801
|
+
# the same key.
|
802
|
+
#
|
803
|
+
# An administrator must grant you the permissions necessary to pass
|
804
|
+
# session tags. The administrator can also create granular permissions
|
805
|
+
# to allow you to pass only specific session tags. For more information,
|
806
|
+
# see [Tutorial: Using Tags for Attribute-Based Access Control][8] in
|
807
|
+
# the *IAM User Guide*.
|
808
|
+
#
|
809
|
+
# You can set the session tags as transitive. Transitive tags persist
|
810
|
+
# during role chaining. For more information, see [Chaining Roles with
|
811
|
+
# Session Tags][9] in the *IAM User Guide*.
|
812
|
+
#
|
813
|
+
# **SAML Configuration**
|
814
|
+
#
|
815
|
+
# Before your application can call `AssumeRoleWithSAML`, you must
|
816
|
+
# configure your SAML identity provider (IdP) to issue the claims
|
817
|
+
# required by AWS. Additionally, you must use AWS Identity and Access
|
818
|
+
# Management (IAM) to create a SAML provider entity in your AWS account
|
819
|
+
# that represents your identity provider. You must also create an IAM
|
820
|
+
# role that specifies this SAML provider in its trust policy.
|
821
|
+
#
|
822
|
+
# For more information, see the following resources:
|
823
|
+
#
|
824
|
+
# * [About SAML 2.0-based Federation][10] in the *IAM User Guide*.
|
825
|
+
#
|
826
|
+
# * [Creating SAML Identity Providers][11] in the *IAM User Guide*.
|
827
|
+
#
|
828
|
+
# * [Configuring a Relying Party and Claims][12] in the *IAM User
|
829
|
+
# Guide*.
|
830
|
+
#
|
831
|
+
# * [Creating a Role for SAML 2.0 Federation][13] in the *IAM User
|
832
|
+
# Guide*.
|
833
|
+
#
|
834
|
+
#
|
835
|
+
#
|
836
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html
|
837
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison
|
838
|
+
# [3]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session
|
839
|
+
# [4]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html
|
840
|
+
# [5]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
|
841
|
+
# [6]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html
|
842
|
+
# [7]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length
|
843
|
+
# [8]: https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html
|
844
|
+
# [9]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining
|
845
|
+
# [10]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html
|
846
|
+
# [11]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml.html
|
847
|
+
# [12]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml_relying-party.html
|
848
|
+
# [13]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-idp_saml.html
|
849
|
+
#
|
850
|
+
# @option params [required, String] :role_arn
|
851
|
+
# The Amazon Resource Name (ARN) of the role that the caller is
|
852
|
+
# assuming.
|
853
|
+
#
|
854
|
+
# @option params [required, String] :principal_arn
|
855
|
+
# The Amazon Resource Name (ARN) of the SAML provider in IAM that
|
856
|
+
# describes the IdP.
|
857
|
+
#
|
858
|
+
# @option params [required, String] :saml_assertion
|
859
|
+
# The base-64 encoded SAML authentication response provided by the IdP.
|
860
|
+
#
|
861
|
+
# For more information, see [Configuring a Relying Party and Adding
|
862
|
+
# Claims][1] in the *IAM User Guide*.
|
863
|
+
#
|
864
|
+
#
|
865
|
+
#
|
866
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/create-role-saml-IdP-tasks.html
|
867
|
+
#
|
868
|
+
# @option params [Array<Types::PolicyDescriptorType>] :policy_arns
|
869
|
+
# The Amazon Resource Names (ARNs) of the IAM managed policies that you
|
870
|
+
# want to use as managed session policies. The policies must exist in
|
871
|
+
# the same account as the role.
|
872
|
+
#
|
873
|
+
# This parameter is optional. You can provide up to 10 managed policy
|
874
|
+
# ARNs. However, the plain text that you use for both inline and managed
|
875
|
+
# session policies can't exceed 2,048 characters. For more information
|
876
|
+
# about ARNs, see [Amazon Resource Names (ARNs) and AWS Service
|
877
|
+
# Namespaces][1] in the AWS General Reference.
|
878
|
+
#
|
879
|
+
# <note markdown="1"> An AWS conversion compresses the passed session policies and session
|
880
|
+
# tags into a packed binary format that has a separate limit. Your
|
881
|
+
# request can fail for this limit even if your plain text meets the
|
882
|
+
# other requirements. The `PackedPolicySize` response element indicates
|
883
|
+
# by percentage how close the policies and tags for your request are to
|
884
|
+
# the upper size limit.
|
885
|
+
#
|
886
|
+
# </note>
|
887
|
+
#
|
888
|
+
# Passing policies to this operation returns new temporary credentials.
|
889
|
+
# The resulting session's permissions are the intersection of the
|
890
|
+
# role's identity-based policy and the session policies. You can use
|
891
|
+
# the role's temporary credentials in subsequent AWS API calls to
|
892
|
+
# access resources in the account that owns the role. You cannot use
|
893
|
+
# session policies to grant more permissions than those allowed by the
|
894
|
+
# identity-based policy of the role that is being assumed. For more
|
895
|
+
# information, see [Session Policies][2] in the *IAM User Guide*.
|
896
|
+
#
|
897
|
+
#
|
898
|
+
#
|
899
|
+
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
|
900
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
|
901
|
+
#
|
902
|
+
# @option params [String] :policy
|
903
|
+
# An IAM policy in JSON format that you want to use as an inline session
|
904
|
+
# policy.
|
905
|
+
#
|
906
|
+
# This parameter is optional. Passing policies to this operation returns
|
907
|
+
# new temporary credentials. The resulting session's permissions are
|
908
|
+
# the intersection of the role's identity-based policy and the session
|
909
|
+
# policies. You can use the role's temporary credentials in subsequent
|
910
|
+
# AWS API calls to access resources in the account that owns the role.
|
911
|
+
# You cannot use session policies to grant more permissions than those
|
912
|
+
# allowed by the identity-based policy of the role that is being
|
913
|
+
# assumed. For more information, see [Session Policies][1] in the *IAM
|
914
|
+
# User Guide*.
|
915
|
+
#
|
916
|
+
# The plain text that you use for both inline and managed session
|
917
|
+
# policies can't exceed 2,048 characters. The JSON policy characters
|
918
|
+
# can be any ASCII character from the space character to the end of the
|
919
|
+
# valid character list (\\u0020 through \\u00FF). It can also include
|
920
|
+
# the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D)
|
921
|
+
# characters.
|
922
|
+
#
|
923
|
+
# <note markdown="1"> An AWS conversion compresses the passed session policies and session
|
924
|
+
# tags into a packed binary format that has a separate limit. Your
|
925
|
+
# request can fail for this limit even if your plain text meets the
|
926
|
+
# other requirements. The `PackedPolicySize` response element indicates
|
927
|
+
# by percentage how close the policies and tags for your request are to
|
928
|
+
# the upper size limit.
|
929
|
+
#
|
930
|
+
# </note>
|
931
|
+
#
|
932
|
+
#
|
933
|
+
#
|
934
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
|
935
|
+
#
|
936
|
+
# @option params [Integer] :duration_seconds
|
937
|
+
# The duration, in seconds, of the role session. Your role session lasts
|
938
|
+
# for the duration that you specify for the `DurationSeconds` parameter,
|
939
|
+
# or until the time specified in the SAML authentication response's
|
940
|
+
# `SessionNotOnOrAfter` value, whichever is shorter. You can provide a
|
941
|
+
# `DurationSeconds` value from 900 seconds (15 minutes) up to the
|
942
|
+
# maximum session duration setting for the role. This setting can have a
|
943
|
+
# value from 1 hour to 12 hours. If you specify a value higher than this
|
944
|
+
# setting, the operation fails. For example, if you specify a session
|
945
|
+
# duration of 12 hours, but your administrator set the maximum session
|
946
|
+
# duration to 6 hours, your operation fails. To learn how to view the
|
947
|
+
# maximum value for your role, see [View the Maximum Session Duration
|
948
|
+
# Setting for a Role][1] in the *IAM User Guide*.
|
949
|
+
#
|
950
|
+
# By default, the value is set to `3600` seconds.
|
951
|
+
#
|
952
|
+
# <note markdown="1"> The `DurationSeconds` parameter is separate from the duration of a
|
953
|
+
# console session that you might request using the returned credentials.
|
954
|
+
# The request to the federation endpoint for a console sign-in token
|
955
|
+
# takes a `SessionDuration` parameter that specifies the maximum length
|
956
|
+
# of the console session. For more information, see [Creating a URL that
|
957
|
+
# Enables Federated Users to Access the AWS Management Console][2] in
|
958
|
+
# the *IAM User Guide*.
|
959
|
+
#
|
960
|
+
# </note>
|
961
|
+
#
|
962
|
+
#
|
963
|
+
#
|
964
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session
|
965
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html
|
966
|
+
#
|
967
|
+
# @return [Types::AssumeRoleWithSAMLResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
968
|
+
#
|
969
|
+
# * {Types::AssumeRoleWithSAMLResponse#credentials #credentials} => Types::Credentials
|
970
|
+
# * {Types::AssumeRoleWithSAMLResponse#assumed_role_user #assumed_role_user} => Types::AssumedRoleUser
|
971
|
+
# * {Types::AssumeRoleWithSAMLResponse#packed_policy_size #packed_policy_size} => Integer
|
972
|
+
# * {Types::AssumeRoleWithSAMLResponse#subject #subject} => String
|
973
|
+
# * {Types::AssumeRoleWithSAMLResponse#subject_type #subject_type} => String
|
974
|
+
# * {Types::AssumeRoleWithSAMLResponse#issuer #issuer} => String
|
975
|
+
# * {Types::AssumeRoleWithSAMLResponse#audience #audience} => String
|
976
|
+
# * {Types::AssumeRoleWithSAMLResponse#name_qualifier #name_qualifier} => String
|
977
|
+
#
|
978
|
+
# @example Request syntax with placeholder values
|
979
|
+
#
|
980
|
+
# resp = client.assume_role_with_saml({
|
981
|
+
# role_arn: "arnType", # required
|
982
|
+
# principal_arn: "arnType", # required
|
983
|
+
# saml_assertion: "SAMLAssertionType", # required
|
984
|
+
# policy_arns: [
|
985
|
+
# {
|
986
|
+
# arn: "arnType",
|
987
|
+
# },
|
988
|
+
# ],
|
989
|
+
# policy: "sessionPolicyDocumentType",
|
990
|
+
# duration_seconds: 1,
|
991
|
+
# })
|
992
|
+
#
|
993
|
+
# @example Response structure
|
994
|
+
#
|
995
|
+
# resp.credentials.access_key_id #=> String
|
996
|
+
# resp.credentials.secret_access_key #=> String
|
997
|
+
# resp.credentials.session_token #=> String
|
998
|
+
# resp.credentials.expiration #=> Time
|
999
|
+
# resp.assumed_role_user.assumed_role_id #=> String
|
1000
|
+
# resp.assumed_role_user.arn #=> String
|
1001
|
+
# resp.packed_policy_size #=> Integer
|
1002
|
+
# resp.subject #=> String
|
1003
|
+
# resp.subject_type #=> String
|
1004
|
+
# resp.issuer #=> String
|
1005
|
+
# resp.audience #=> String
|
1006
|
+
# resp.name_qualifier #=> String
|
1007
|
+
#
|
1008
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithSAML AWS API Documentation
|
1009
|
+
#
|
1010
|
+
# @overload assume_role_with_saml(params = {})
|
1011
|
+
# @param [Hash] params ({})
|
1012
|
+
def assume_role_with_saml(params = {}, options = {})
|
1013
|
+
req = build_request(:assume_role_with_saml, params)
|
1014
|
+
req.send_request(options)
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
# Returns a set of temporary security credentials for users who have
|
1018
|
+
# been authenticated in a mobile or web application with a web identity
|
1019
|
+
# provider. Example providers include Amazon Cognito, Login with Amazon,
|
1020
|
+
# Facebook, Google, or any OpenID Connect-compatible identity provider.
|
1021
|
+
#
|
1022
|
+
# <note markdown="1"> For mobile applications, we recommend that you use Amazon Cognito. You
|
1023
|
+
# can use Amazon Cognito with the [AWS SDK for iOS Developer Guide][1]
|
1024
|
+
# and the [AWS SDK for Android Developer Guide][2] to uniquely identify
|
1025
|
+
# a user. You can also supply the user with a consistent identity
|
1026
|
+
# throughout the lifetime of an application.
|
1027
|
+
#
|
1028
|
+
# To learn more about Amazon Cognito, see [Amazon Cognito Overview][3]
|
1029
|
+
# in *AWS SDK for Android Developer Guide* and [Amazon Cognito
|
1030
|
+
# Overview][4] in the *AWS SDK for iOS Developer Guide*.
|
1031
|
+
#
|
1032
|
+
# </note>
|
1033
|
+
#
|
1034
|
+
# Calling `AssumeRoleWithWebIdentity` does not require the use of AWS
|
1035
|
+
# security credentials. Therefore, you can distribute an application
|
1036
|
+
# (for example, on mobile devices) that requests temporary security
|
1037
|
+
# credentials without including long-term AWS credentials in the
|
1038
|
+
# application. You also don't need to deploy server-based proxy
|
1039
|
+
# services that use long-term AWS credentials. Instead, the identity of
|
1040
|
+
# the caller is validated by using a token from the web identity
|
1041
|
+
# provider. For a comparison of `AssumeRoleWithWebIdentity` with the
|
1042
|
+
# other API operations that produce temporary credentials, see
|
1043
|
+
# [Requesting Temporary Security Credentials][5] and [Comparing the AWS
|
1044
|
+
# STS API operations][6] in the *IAM User Guide*.
|
1045
|
+
#
|
1046
|
+
# The temporary security credentials returned by this API consist of an
|
1047
|
+
# access key ID, a secret access key, and a security token. Applications
|
1048
|
+
# can use these temporary security credentials to sign calls to AWS
|
1049
|
+
# service API operations.
|
1050
|
+
#
|
1051
|
+
# **Session Duration**
|
1052
|
+
#
|
1053
|
+
# By default, the temporary security credentials created by
|
1054
|
+
# `AssumeRoleWithWebIdentity` last for one hour. However, you can use
|
1055
|
+
# the optional `DurationSeconds` parameter to specify the duration of
|
1056
|
+
# your session. You can provide a value from 900 seconds (15 minutes) up
|
1057
|
+
# to the maximum session duration setting for the role. This setting can
|
1058
|
+
# have a value from 1 hour to 12 hours. To learn how to view the maximum
|
1059
|
+
# value for your role, see [View the Maximum Session Duration Setting
|
1060
|
+
# for a Role][7] in the *IAM User Guide*. The maximum session duration
|
1061
|
+
# limit applies when you use the `AssumeRole*` API operations or the
|
1062
|
+
# `assume-role*` CLI commands. However the limit does not apply when you
|
1063
|
+
# use those operations to create a console URL. For more information,
|
1064
|
+
# see [Using IAM Roles][8] in the *IAM User Guide*.
|
1065
|
+
#
|
1066
|
+
# **Permissions**
|
1067
|
+
#
|
1068
|
+
# The temporary security credentials created by
|
1069
|
+
# `AssumeRoleWithWebIdentity` can be used to make API calls to any AWS
|
1070
|
+
# service with the following exception: you cannot call the STS
|
1071
|
+
# `GetFederationToken` or `GetSessionToken` API operations.
|
1072
|
+
#
|
1073
|
+
# (Optional) You can pass inline or managed [session policies][9] to
|
1074
|
+
# this operation. You can pass a single JSON policy document to use as
|
1075
|
+
# an inline session policy. You can also specify up to 10 managed
|
1076
|
+
# policies to use as managed session policies. The plain text that you
|
1077
|
+
# use for both inline and managed session policies can't exceed 2,048
|
1078
|
+
# characters. Passing policies to this operation returns new temporary
|
1079
|
+
# credentials. The resulting session's permissions are the intersection
|
1080
|
+
# of the role's identity-based policy and the session policies. You can
|
1081
|
+
# use the role's temporary credentials in subsequent AWS API calls to
|
1082
|
+
# access resources in the account that owns the role. You cannot use
|
1083
|
+
# session policies to grant more permissions than those allowed by the
|
1084
|
+
# identity-based policy of the role that is being assumed. For more
|
1085
|
+
# information, see [Session Policies][9] in the *IAM User Guide*.
|
1086
|
+
#
|
1087
|
+
# **Tags**
|
1088
|
+
#
|
1089
|
+
# (Optional) You can configure your IdP to pass attributes into your web
|
1090
|
+
# identity token as session tags. Each session tag consists of a key
|
1091
|
+
# name and an associated value. For more information about session tags,
|
1092
|
+
# see [Passing Session Tags in STS][10] in the *IAM User Guide*.
|
1093
|
+
#
|
1094
|
+
# You can pass up to 50 session tags. The plain text session tag keys
|
1095
|
+
# can’t exceed 128 characters and the values can’t exceed 256
|
1096
|
+
# characters. For these and additional limits, see [IAM and STS
|
1097
|
+
# Character Limits][11] in the *IAM User Guide*.
|
1098
|
+
#
|
1099
|
+
# <note markdown="1"> An AWS conversion compresses the passed session policies and session
|
1100
|
+
# tags into a packed binary format that has a separate limit. Your
|
1101
|
+
# request can fail for this limit even if your plain text meets the
|
1102
|
+
# other requirements. The `PackedPolicySize` response element indicates
|
1103
|
+
# by percentage how close the policies and tags for your request are to
|
1104
|
+
# the upper size limit.
|
1105
|
+
#
|
1106
|
+
# </note>
|
1107
|
+
#
|
1108
|
+
# You can pass a session tag with the same key as a tag that is attached
|
1109
|
+
# to the role. When you do, the session tag overrides the role tag with
|
1110
|
+
# the same key.
|
1111
|
+
#
|
1112
|
+
# An administrator must grant you the permissions necessary to pass
|
1113
|
+
# session tags. The administrator can also create granular permissions
|
1114
|
+
# to allow you to pass only specific session tags. For more information,
|
1115
|
+
# see [Tutorial: Using Tags for Attribute-Based Access Control][12] in
|
1116
|
+
# the *IAM User Guide*.
|
1117
|
+
#
|
1118
|
+
# You can set the session tags as transitive. Transitive tags persist
|
1119
|
+
# during role chaining. For more information, see [Chaining Roles with
|
1120
|
+
# Session Tags][13] in the *IAM User Guide*.
|
1121
|
+
#
|
1122
|
+
# **Identities**
|
1123
|
+
#
|
1124
|
+
# Before your application can call `AssumeRoleWithWebIdentity`, you must
|
1125
|
+
# have an identity token from a supported identity provider and create a
|
1126
|
+
# role that the application can assume. The role that your application
|
1127
|
+
# assumes must trust the identity provider that is associated with the
|
1128
|
+
# identity token. In other words, the identity provider must be
|
1129
|
+
# specified in the role's trust policy.
|
1130
|
+
#
|
1131
|
+
# Calling `AssumeRoleWithWebIdentity` can result in an entry in your AWS
|
1132
|
+
# CloudTrail logs. The entry includes the [Subject][14] of the provided
|
1133
|
+
# Web Identity Token. We recommend that you avoid using any personally
|
1134
|
+
# identifiable information (PII) in this field. For example, you could
|
1135
|
+
# instead use a GUID or a pairwise identifier, as [suggested in the OIDC
|
1136
|
+
# specification][15].
|
1137
|
+
#
|
1138
|
+
# For more information about how to use web identity federation and the
|
1139
|
+
# `AssumeRoleWithWebIdentity` API, see the following resources:
|
1140
|
+
#
|
1141
|
+
# * [Using Web Identity Federation API Operations for Mobile Apps][16]
|
1142
|
+
# and [Federation Through a Web-based Identity Provider][17].
|
1143
|
+
#
|
1144
|
+
# * [ Web Identity Federation Playground][18]. Walk through the process
|
1145
|
+
# of authenticating through Login with Amazon, Facebook, or Google,
|
1146
|
+
# getting temporary security credentials, and then using those
|
1147
|
+
# credentials to make a request to AWS.
|
1148
|
+
#
|
1149
|
+
# * [AWS SDK for iOS Developer Guide][1] and [AWS SDK for Android
|
1150
|
+
# Developer Guide][2]. These toolkits contain sample apps that show
|
1151
|
+
# how to invoke the identity providers. The toolkits then show how to
|
1152
|
+
# use the information from these providers to get and use temporary
|
1153
|
+
# security credentials.
|
1154
|
+
#
|
1155
|
+
# * [Web Identity Federation with Mobile Applications][19]. This article
|
1156
|
+
# discusses web identity federation and shows an example of how to use
|
1157
|
+
# web identity federation to get access to content in Amazon S3.
|
1158
|
+
#
|
1159
|
+
#
|
1160
|
+
#
|
1161
|
+
# [1]: http://aws.amazon.com/sdkforios/
|
1162
|
+
# [2]: http://aws.amazon.com/sdkforandroid/
|
1163
|
+
# [3]: https://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/cognito-auth.html#d0e840
|
1164
|
+
# [4]: https://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-auth.html#d0e664
|
1165
|
+
# [5]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html
|
1166
|
+
# [6]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison
|
1167
|
+
# [7]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session
|
1168
|
+
# [8]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html
|
1169
|
+
# [9]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
|
1170
|
+
# [10]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html
|
1171
|
+
# [11]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length
|
1172
|
+
# [12]: https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html
|
1173
|
+
# [13]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining
|
1174
|
+
# [14]: http://openid.net/specs/openid-connect-core-1_0.html#Claims
|
1175
|
+
# [15]: http://openid.net/specs/openid-connect-core-1_0.html#SubjectIDTypes
|
1176
|
+
# [16]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc_manual.html
|
1177
|
+
# [17]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity
|
1178
|
+
# [18]: https://web-identity-federation-playground.s3.amazonaws.com/index.html
|
1179
|
+
# [19]: http://aws.amazon.com/articles/web-identity-federation-with-mobile-applications
|
1180
|
+
#
|
1181
|
+
# @option params [required, String] :role_arn
|
1182
|
+
# The Amazon Resource Name (ARN) of the role that the caller is
|
1183
|
+
# assuming.
|
1184
|
+
#
|
1185
|
+
# @option params [required, String] :role_session_name
|
1186
|
+
# An identifier for the assumed role session. Typically, you pass the
|
1187
|
+
# name or identifier that is associated with the user who is using your
|
1188
|
+
# application. That way, the temporary security credentials that your
|
1189
|
+
# application will use are associated with that user. This session name
|
1190
|
+
# is included as part of the ARN and assumed role ID in the
|
1191
|
+
# `AssumedRoleUser` response element.
|
1192
|
+
#
|
1193
|
+
# The regex used to validate this parameter is a string of characters
|
1194
|
+
# consisting of upper- and lower-case alphanumeric characters with no
|
1195
|
+
# spaces. You can also include underscores or any of the following
|
1196
|
+
# characters: =,.@-
|
1197
|
+
#
|
1198
|
+
# @option params [required, String] :web_identity_token
|
1199
|
+
# The OAuth 2.0 access token or OpenID Connect ID token that is provided
|
1200
|
+
# by the identity provider. Your application must get this token by
|
1201
|
+
# authenticating the user who is using your application with a web
|
1202
|
+
# identity provider before the application makes an
|
1203
|
+
# `AssumeRoleWithWebIdentity` call.
|
1204
|
+
#
|
1205
|
+
# @option params [String] :provider_id
|
1206
|
+
# The fully qualified host component of the domain name of the identity
|
1207
|
+
# provider.
|
1208
|
+
#
|
1209
|
+
# Specify this value only for OAuth 2.0 access tokens. Currently
|
1210
|
+
# `www.amazon.com` and `graph.facebook.com` are the only supported
|
1211
|
+
# identity providers for OAuth 2.0 access tokens. Do not include URL
|
1212
|
+
# schemes and port numbers.
|
1213
|
+
#
|
1214
|
+
# Do not specify this value for OpenID Connect ID tokens.
|
1215
|
+
#
|
1216
|
+
# @option params [Array<Types::PolicyDescriptorType>] :policy_arns
|
1217
|
+
# The Amazon Resource Names (ARNs) of the IAM managed policies that you
|
1218
|
+
# want to use as managed session policies. The policies must exist in
|
1219
|
+
# the same account as the role.
|
1220
|
+
#
|
1221
|
+
# This parameter is optional. You can provide up to 10 managed policy
|
1222
|
+
# ARNs. However, the plain text that you use for both inline and managed
|
1223
|
+
# session policies can't exceed 2,048 characters. For more information
|
1224
|
+
# about ARNs, see [Amazon Resource Names (ARNs) and AWS Service
|
1225
|
+
# Namespaces][1] in the AWS General Reference.
|
1226
|
+
#
|
1227
|
+
# <note markdown="1"> An AWS conversion compresses the passed session policies and session
|
1228
|
+
# tags into a packed binary format that has a separate limit. Your
|
1229
|
+
# request can fail for this limit even if your plain text meets the
|
1230
|
+
# other requirements. The `PackedPolicySize` response element indicates
|
1231
|
+
# by percentage how close the policies and tags for your request are to
|
1232
|
+
# the upper size limit.
|
1233
|
+
#
|
1234
|
+
# </note>
|
1235
|
+
#
|
1236
|
+
# Passing policies to this operation returns new temporary credentials.
|
1237
|
+
# The resulting session's permissions are the intersection of the
|
1238
|
+
# role's identity-based policy and the session policies. You can use
|
1239
|
+
# the role's temporary credentials in subsequent AWS API calls to
|
1240
|
+
# access resources in the account that owns the role. You cannot use
|
1241
|
+
# session policies to grant more permissions than those allowed by the
|
1242
|
+
# identity-based policy of the role that is being assumed. For more
|
1243
|
+
# information, see [Session Policies][2] in the *IAM User Guide*.
|
1244
|
+
#
|
1245
|
+
#
|
1246
|
+
#
|
1247
|
+
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
|
1248
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
|
1249
|
+
#
|
1250
|
+
# @option params [String] :policy
|
1251
|
+
# An IAM policy in JSON format that you want to use as an inline session
|
1252
|
+
# policy.
|
1253
|
+
#
|
1254
|
+
# This parameter is optional. Passing policies to this operation returns
|
1255
|
+
# new temporary credentials. The resulting session's permissions are
|
1256
|
+
# the intersection of the role's identity-based policy and the session
|
1257
|
+
# policies. You can use the role's temporary credentials in subsequent
|
1258
|
+
# AWS API calls to access resources in the account that owns the role.
|
1259
|
+
# You cannot use session policies to grant more permissions than those
|
1260
|
+
# allowed by the identity-based policy of the role that is being
|
1261
|
+
# assumed. For more information, see [Session Policies][1] in the *IAM
|
1262
|
+
# User Guide*.
|
1263
|
+
#
|
1264
|
+
# The plain text that you use for both inline and managed session
|
1265
|
+
# policies can't exceed 2,048 characters. The JSON policy characters
|
1266
|
+
# can be any ASCII character from the space character to the end of the
|
1267
|
+
# valid character list (\\u0020 through \\u00FF). It can also include
|
1268
|
+
# the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D)
|
1269
|
+
# characters.
|
1270
|
+
#
|
1271
|
+
# <note markdown="1"> An AWS conversion compresses the passed session policies and session
|
1272
|
+
# tags into a packed binary format that has a separate limit. Your
|
1273
|
+
# request can fail for this limit even if your plain text meets the
|
1274
|
+
# other requirements. The `PackedPolicySize` response element indicates
|
1275
|
+
# by percentage how close the policies and tags for your request are to
|
1276
|
+
# the upper size limit.
|
1277
|
+
#
|
1278
|
+
# </note>
|
1279
|
+
#
|
1280
|
+
#
|
1281
|
+
#
|
1282
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
|
1283
|
+
#
|
1284
|
+
# @option params [Integer] :duration_seconds
|
1285
|
+
# The duration, in seconds, of the role session. The value can range
|
1286
|
+
# from 900 seconds (15 minutes) up to the maximum session duration
|
1287
|
+
# setting for the role. This setting can have a value from 1 hour to 12
|
1288
|
+
# hours. If you specify a value higher than this setting, the operation
|
1289
|
+
# fails. For example, if you specify a session duration of 12 hours, but
|
1290
|
+
# your administrator set the maximum session duration to 6 hours, your
|
1291
|
+
# operation fails. To learn how to view the maximum value for your role,
|
1292
|
+
# see [View the Maximum Session Duration Setting for a Role][1] in the
|
1293
|
+
# *IAM User Guide*.
|
1294
|
+
#
|
1295
|
+
# By default, the value is set to `3600` seconds.
|
1296
|
+
#
|
1297
|
+
# <note markdown="1"> The `DurationSeconds` parameter is separate from the duration of a
|
1298
|
+
# console session that you might request using the returned credentials.
|
1299
|
+
# The request to the federation endpoint for a console sign-in token
|
1300
|
+
# takes a `SessionDuration` parameter that specifies the maximum length
|
1301
|
+
# of the console session. For more information, see [Creating a URL that
|
1302
|
+
# Enables Federated Users to Access the AWS Management Console][2] in
|
1303
|
+
# the *IAM User Guide*.
|
1304
|
+
#
|
1305
|
+
# </note>
|
1306
|
+
#
|
1307
|
+
#
|
1308
|
+
#
|
1309
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session
|
1310
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html
|
1311
|
+
#
|
1312
|
+
# @return [Types::AssumeRoleWithWebIdentityResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1313
|
+
#
|
1314
|
+
# * {Types::AssumeRoleWithWebIdentityResponse#credentials #credentials} => Types::Credentials
|
1315
|
+
# * {Types::AssumeRoleWithWebIdentityResponse#subject_from_web_identity_token #subject_from_web_identity_token} => String
|
1316
|
+
# * {Types::AssumeRoleWithWebIdentityResponse#assumed_role_user #assumed_role_user} => Types::AssumedRoleUser
|
1317
|
+
# * {Types::AssumeRoleWithWebIdentityResponse#packed_policy_size #packed_policy_size} => Integer
|
1318
|
+
# * {Types::AssumeRoleWithWebIdentityResponse#provider #provider} => String
|
1319
|
+
# * {Types::AssumeRoleWithWebIdentityResponse#audience #audience} => String
|
1320
|
+
#
|
1321
|
+
#
|
1322
|
+
# @example Example: To assume a role as an OpenID Connect-federated user
|
1323
|
+
#
|
1324
|
+
# resp = client.assume_role_with_web_identity({
|
1325
|
+
# duration_seconds: 3600,
|
1326
|
+
# policy: "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Stmt1\",\"Effect\":\"Allow\",\"Action\":\"s3:ListAllMyBuckets\",\"Resource\":\"*\"}]}",
|
1327
|
+
# provider_id: "www.amazon.com",
|
1328
|
+
# role_arn: "arn:aws:iam::123456789012:role/FederatedWebIdentityRole",
|
1329
|
+
# role_session_name: "app1",
|
1330
|
+
# web_identity_token: "Atza%7CIQEBLjAsAhRFiXuWpUXuRvQ9PZL3GMFcYevydwIUFAHZwXZXXXXXXXXJnrulxKDHwy87oGKPznh0D6bEQZTSCzyoCtL_8S07pLpr0zMbn6w1lfVZKNTBdDansFBmtGnIsIapjI6xKR02Yc_2bQ8LZbUXSGm6Ry6_BG7PrtLZtj_dfCTj92xNGed-CrKqjG7nPBjNIL016GGvuS5gSvPRUxWES3VYfm1wl7WTI7jn-Pcb6M-buCgHhFOzTQxod27L9CqnOLio7N3gZAGpsp6n1-AJBOCJckcyXe2c6uD0srOJeZlKUm2eTDVMf8IehDVI0r1QOnTV6KzzAI3OY87Vd_cVMQ",
|
1331
|
+
# })
|
1332
|
+
#
|
1333
|
+
# resp.to_h outputs the following:
|
1334
|
+
# {
|
1335
|
+
# assumed_role_user: {
|
1336
|
+
# arn: "arn:aws:sts::123456789012:assumed-role/FederatedWebIdentityRole/app1",
|
1337
|
+
# assumed_role_id: "AROACLKWSDQRAOEXAMPLE:app1",
|
1338
|
+
# },
|
1339
|
+
# audience: "client.5498841531868486423.1548@apps.example.com",
|
1340
|
+
# credentials: {
|
1341
|
+
# access_key_id: "AKIAIOSFODNN7EXAMPLE",
|
1342
|
+
# expiration: Time.parse("2014-10-24T23:00:23Z"),
|
1343
|
+
# secret_access_key: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
|
1344
|
+
# session_token: "AQoDYXdzEE0a8ANXXXXXXXXNO1ewxE5TijQyp+IEXAMPLE",
|
1345
|
+
# },
|
1346
|
+
# packed_policy_size: 123,
|
1347
|
+
# provider: "www.amazon.com",
|
1348
|
+
# subject_from_web_identity_token: "amzn1.account.AF6RHO7KZU5XRVQJGXK6HEXAMPLE",
|
1349
|
+
# }
|
1350
|
+
#
|
1351
|
+
# @example Request syntax with placeholder values
|
1352
|
+
#
|
1353
|
+
# resp = client.assume_role_with_web_identity({
|
1354
|
+
# role_arn: "arnType", # required
|
1355
|
+
# role_session_name: "roleSessionNameType", # required
|
1356
|
+
# web_identity_token: "clientTokenType", # required
|
1357
|
+
# provider_id: "urlType",
|
1358
|
+
# policy_arns: [
|
1359
|
+
# {
|
1360
|
+
# arn: "arnType",
|
1361
|
+
# },
|
1362
|
+
# ],
|
1363
|
+
# policy: "sessionPolicyDocumentType",
|
1364
|
+
# duration_seconds: 1,
|
1365
|
+
# })
|
1366
|
+
#
|
1367
|
+
# @example Response structure
|
1368
|
+
#
|
1369
|
+
# resp.credentials.access_key_id #=> String
|
1370
|
+
# resp.credentials.secret_access_key #=> String
|
1371
|
+
# resp.credentials.session_token #=> String
|
1372
|
+
# resp.credentials.expiration #=> Time
|
1373
|
+
# resp.subject_from_web_identity_token #=> String
|
1374
|
+
# resp.assumed_role_user.assumed_role_id #=> String
|
1375
|
+
# resp.assumed_role_user.arn #=> String
|
1376
|
+
# resp.packed_policy_size #=> Integer
|
1377
|
+
# resp.provider #=> String
|
1378
|
+
# resp.audience #=> String
|
1379
|
+
#
|
1380
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithWebIdentity AWS API Documentation
|
1381
|
+
#
|
1382
|
+
# @overload assume_role_with_web_identity(params = {})
|
1383
|
+
# @param [Hash] params ({})
|
1384
|
+
def assume_role_with_web_identity(params = {}, options = {})
|
1385
|
+
req = build_request(:assume_role_with_web_identity, params)
|
1386
|
+
req.send_request(options)
|
1387
|
+
end
|
1388
|
+
|
1389
|
+
# Decodes additional information about the authorization status of a
|
1390
|
+
# request from an encoded message returned in response to an AWS
|
1391
|
+
# request.
|
1392
|
+
#
|
1393
|
+
# For example, if a user is not authorized to perform an operation that
|
1394
|
+
# he or she has requested, the request returns a
|
1395
|
+
# `Client.UnauthorizedOperation` response (an HTTP 403 response). Some
|
1396
|
+
# AWS operations additionally return an encoded message that can provide
|
1397
|
+
# details about this authorization failure.
|
1398
|
+
#
|
1399
|
+
# <note markdown="1"> Only certain AWS operations return an encoded authorization message.
|
1400
|
+
# The documentation for an individual operation indicates whether that
|
1401
|
+
# operation returns an encoded message in addition to returning an HTTP
|
1402
|
+
# code.
|
1403
|
+
#
|
1404
|
+
# </note>
|
1405
|
+
#
|
1406
|
+
# The message is encoded because the details of the authorization status
|
1407
|
+
# can constitute privileged information that the user who requested the
|
1408
|
+
# operation should not see. To decode an authorization status message, a
|
1409
|
+
# user must be granted permissions via an IAM policy to request the
|
1410
|
+
# `DecodeAuthorizationMessage` (`sts:DecodeAuthorizationMessage`)
|
1411
|
+
# action.
|
1412
|
+
#
|
1413
|
+
# The decoded message includes the following type of information:
|
1414
|
+
#
|
1415
|
+
# * Whether the request was denied due to an explicit deny or due to the
|
1416
|
+
# absence of an explicit allow. For more information, see [Determining
|
1417
|
+
# Whether a Request is Allowed or Denied][1] in the *IAM User Guide*.
|
1418
|
+
#
|
1419
|
+
# * The principal who made the request.
|
1420
|
+
#
|
1421
|
+
# * The requested action.
|
1422
|
+
#
|
1423
|
+
# * The requested resource.
|
1424
|
+
#
|
1425
|
+
# * The values of condition keys in the context of the user's request.
|
1426
|
+
#
|
1427
|
+
#
|
1428
|
+
#
|
1429
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html#policy-eval-denyallow
|
1430
|
+
#
|
1431
|
+
# @option params [required, String] :encoded_message
|
1432
|
+
# The encoded message that was returned with the response.
|
1433
|
+
#
|
1434
|
+
# @return [Types::DecodeAuthorizationMessageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1435
|
+
#
|
1436
|
+
# * {Types::DecodeAuthorizationMessageResponse#decoded_message #decoded_message} => String
|
1437
|
+
#
|
1438
|
+
#
|
1439
|
+
# @example Example: To decode information about an authorization status of a request
|
1440
|
+
#
|
1441
|
+
# resp = client.decode_authorization_message({
|
1442
|
+
# encoded_message: "<encoded-message>",
|
1443
|
+
# })
|
1444
|
+
#
|
1445
|
+
# resp.to_h outputs the following:
|
1446
|
+
# {
|
1447
|
+
# decoded_message: "{\"allowed\": \"false\",\"explicitDeny\": \"false\",\"matchedStatements\": \"\",\"failures\": \"\",\"context\": {\"principal\": {\"id\": \"AIDACKCEVSQ6C2EXAMPLE\",\"name\": \"Bob\",\"arn\": \"arn:aws:iam::123456789012:user/Bob\"},\"action\": \"ec2:StopInstances\",\"resource\": \"arn:aws:ec2:us-east-1:123456789012:instance/i-dd01c9bd\",\"conditions\": [{\"item\": {\"key\": \"ec2:Tenancy\",\"values\": [\"default\"]},{\"item\": {\"key\": \"ec2:ResourceTag/elasticbeanstalk:environment-name\",\"values\": [\"Default-Environment\"]}},(Additional items ...)]}}",
|
1448
|
+
# }
|
1449
|
+
#
|
1450
|
+
# @example Request syntax with placeholder values
|
1451
|
+
#
|
1452
|
+
# resp = client.decode_authorization_message({
|
1453
|
+
# encoded_message: "encodedMessageType", # required
|
1454
|
+
# })
|
1455
|
+
#
|
1456
|
+
# @example Response structure
|
1457
|
+
#
|
1458
|
+
# resp.decoded_message #=> String
|
1459
|
+
#
|
1460
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/DecodeAuthorizationMessage AWS API Documentation
|
1461
|
+
#
|
1462
|
+
# @overload decode_authorization_message(params = {})
|
1463
|
+
# @param [Hash] params ({})
|
1464
|
+
def decode_authorization_message(params = {}, options = {})
|
1465
|
+
req = build_request(:decode_authorization_message, params)
|
1466
|
+
req.send_request(options)
|
1467
|
+
end
|
1468
|
+
|
1469
|
+
# Returns the account identifier for the specified access key ID.
|
1470
|
+
#
|
1471
|
+
# Access keys consist of two parts: an access key ID (for example,
|
1472
|
+
# `AKIAIOSFODNN7EXAMPLE`) and a secret access key (for example,
|
1473
|
+
# `wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`). For more information
|
1474
|
+
# about access keys, see [Managing Access Keys for IAM Users][1] in the
|
1475
|
+
# *IAM User Guide*.
|
1476
|
+
#
|
1477
|
+
# When you pass an access key ID to this operation, it returns the ID of
|
1478
|
+
# the AWS account to which the keys belong. Access key IDs beginning
|
1479
|
+
# with `AKIA` are long-term credentials for an IAM user or the AWS
|
1480
|
+
# account root user. Access key IDs beginning with `ASIA` are temporary
|
1481
|
+
# credentials that are created using STS operations. If the account in
|
1482
|
+
# the response belongs to you, you can sign in as the root user and
|
1483
|
+
# review your root user access keys. Then, you can pull a [credentials
|
1484
|
+
# report][2] to learn which IAM user owns the keys. To learn who
|
1485
|
+
# requested the temporary credentials for an `ASIA` access key, view the
|
1486
|
+
# STS events in your [CloudTrail logs][3] in the *IAM User Guide*.
|
1487
|
+
#
|
1488
|
+
# This operation does not indicate the state of the access key. The key
|
1489
|
+
# might be active, inactive, or deleted. Active keys might not have
|
1490
|
+
# permissions to perform an operation. Providing a deleted access key
|
1491
|
+
# might return an error that the key doesn't exist.
|
1492
|
+
#
|
1493
|
+
#
|
1494
|
+
#
|
1495
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html
|
1496
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_getting-report.html
|
1497
|
+
# [3]: https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html
|
1498
|
+
#
|
1499
|
+
# @option params [required, String] :access_key_id
|
1500
|
+
# The identifier of an access key.
|
1501
|
+
#
|
1502
|
+
# This parameter allows (through its regex pattern) a string of
|
1503
|
+
# characters that can consist of any upper- or lowercase letter or
|
1504
|
+
# digit.
|
1505
|
+
#
|
1506
|
+
# @return [Types::GetAccessKeyInfoResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1507
|
+
#
|
1508
|
+
# * {Types::GetAccessKeyInfoResponse#account #account} => String
|
1509
|
+
#
|
1510
|
+
# @example Request syntax with placeholder values
|
1511
|
+
#
|
1512
|
+
# resp = client.get_access_key_info({
|
1513
|
+
# access_key_id: "accessKeyIdType", # required
|
1514
|
+
# })
|
1515
|
+
#
|
1516
|
+
# @example Response structure
|
1517
|
+
#
|
1518
|
+
# resp.account #=> String
|
1519
|
+
#
|
1520
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetAccessKeyInfo AWS API Documentation
|
1521
|
+
#
|
1522
|
+
# @overload get_access_key_info(params = {})
|
1523
|
+
# @param [Hash] params ({})
|
1524
|
+
def get_access_key_info(params = {}, options = {})
|
1525
|
+
req = build_request(:get_access_key_info, params)
|
1526
|
+
req.send_request(options)
|
1527
|
+
end
|
1528
|
+
|
1529
|
+
# Returns details about the IAM user or role whose credentials are used
|
1530
|
+
# to call the operation.
|
1531
|
+
#
|
1532
|
+
# <note markdown="1"> No permissions are required to perform this operation. If an
|
1533
|
+
# administrator adds a policy to your IAM user or role that explicitly
|
1534
|
+
# denies access to the `sts:GetCallerIdentity` action, you can still
|
1535
|
+
# perform this operation. Permissions are not required because the same
|
1536
|
+
# information is returned when an IAM user or role is denied access. To
|
1537
|
+
# view an example response, see [I Am Not Authorized to Perform:
|
1538
|
+
# iam:DeleteVirtualMFADevice][1] in the *IAM User Guide*.
|
1539
|
+
#
|
1540
|
+
# </note>
|
1541
|
+
#
|
1542
|
+
#
|
1543
|
+
#
|
1544
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_access-denied-delete-mfa
|
1545
|
+
#
|
1546
|
+
# @return [Types::GetCallerIdentityResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1547
|
+
#
|
1548
|
+
# * {Types::GetCallerIdentityResponse#user_id #user_id} => String
|
1549
|
+
# * {Types::GetCallerIdentityResponse#account #account} => String
|
1550
|
+
# * {Types::GetCallerIdentityResponse#arn #arn} => String
|
1551
|
+
#
|
1552
|
+
#
|
1553
|
+
# @example Example: To get details about a calling IAM user
|
1554
|
+
#
|
1555
|
+
# # This example shows a request and response made with the credentials for a user named Alice in the AWS account
|
1556
|
+
# # 123456789012.
|
1557
|
+
#
|
1558
|
+
# resp = client.get_caller_identity({
|
1559
|
+
# })
|
1560
|
+
#
|
1561
|
+
# resp.to_h outputs the following:
|
1562
|
+
# {
|
1563
|
+
# account: "123456789012",
|
1564
|
+
# arn: "arn:aws:iam::123456789012:user/Alice",
|
1565
|
+
# user_id: "AKIAI44QH8DHBEXAMPLE",
|
1566
|
+
# }
|
1567
|
+
#
|
1568
|
+
# @example Example: To get details about a calling user federated with AssumeRole
|
1569
|
+
#
|
1570
|
+
# # This example shows a request and response made with temporary credentials created by AssumeRole. The name of the assumed
|
1571
|
+
# # role is my-role-name, and the RoleSessionName is set to my-role-session-name.
|
1572
|
+
#
|
1573
|
+
# resp = client.get_caller_identity({
|
1574
|
+
# })
|
1575
|
+
#
|
1576
|
+
# resp.to_h outputs the following:
|
1577
|
+
# {
|
1578
|
+
# account: "123456789012",
|
1579
|
+
# arn: "arn:aws:sts::123456789012:assumed-role/my-role-name/my-role-session-name",
|
1580
|
+
# user_id: "AKIAI44QH8DHBEXAMPLE:my-role-session-name",
|
1581
|
+
# }
|
1582
|
+
#
|
1583
|
+
# @example Example: To get details about a calling user federated with GetFederationToken
|
1584
|
+
#
|
1585
|
+
# # This example shows a request and response made with temporary credentials created by using GetFederationToken. The Name
|
1586
|
+
# # parameter is set to my-federated-user-name.
|
1587
|
+
#
|
1588
|
+
# resp = client.get_caller_identity({
|
1589
|
+
# })
|
1590
|
+
#
|
1591
|
+
# resp.to_h outputs the following:
|
1592
|
+
# {
|
1593
|
+
# account: "123456789012",
|
1594
|
+
# arn: "arn:aws:sts::123456789012:federated-user/my-federated-user-name",
|
1595
|
+
# user_id: "123456789012:my-federated-user-name",
|
1596
|
+
# }
|
1597
|
+
#
|
1598
|
+
# @example Response structure
|
1599
|
+
#
|
1600
|
+
# resp.user_id #=> String
|
1601
|
+
# resp.account #=> String
|
1602
|
+
# resp.arn #=> String
|
1603
|
+
#
|
1604
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetCallerIdentity AWS API Documentation
|
1605
|
+
#
|
1606
|
+
# @overload get_caller_identity(params = {})
|
1607
|
+
# @param [Hash] params ({})
|
1608
|
+
def get_caller_identity(params = {}, options = {})
|
1609
|
+
req = build_request(:get_caller_identity, params)
|
1610
|
+
req.send_request(options)
|
1611
|
+
end
|
1612
|
+
|
1613
|
+
# Returns a set of temporary security credentials (consisting of an
|
1614
|
+
# access key ID, a secret access key, and a security token) for a
|
1615
|
+
# federated user. A typical use is in a proxy application that gets
|
1616
|
+
# temporary security credentials on behalf of distributed applications
|
1617
|
+
# inside a corporate network. You must call the `GetFederationToken`
|
1618
|
+
# operation using the long-term security credentials of an IAM user. As
|
1619
|
+
# a result, this call is appropriate in contexts where those credentials
|
1620
|
+
# can be safely stored, usually in a server-based application. For a
|
1621
|
+
# comparison of `GetFederationToken` with the other API operations that
|
1622
|
+
# produce temporary credentials, see [Requesting Temporary Security
|
1623
|
+
# Credentials][1] and [Comparing the AWS STS API operations][2] in the
|
1624
|
+
# *IAM User Guide*.
|
1625
|
+
#
|
1626
|
+
# <note markdown="1"> You can create a mobile-based or browser-based app that can
|
1627
|
+
# authenticate users using a web identity provider like Login with
|
1628
|
+
# Amazon, Facebook, Google, or an OpenID Connect-compatible identity
|
1629
|
+
# provider. In this case, we recommend that you use [Amazon Cognito][3]
|
1630
|
+
# or `AssumeRoleWithWebIdentity`. For more information, see [Federation
|
1631
|
+
# Through a Web-based Identity Provider][4] in the *IAM User Guide*.
|
1632
|
+
#
|
1633
|
+
# </note>
|
1634
|
+
#
|
1635
|
+
# You can also call `GetFederationToken` using the security credentials
|
1636
|
+
# of an AWS account root user, but we do not recommend it. Instead, we
|
1637
|
+
# recommend that you create an IAM user for the purpose of the proxy
|
1638
|
+
# application. Then attach a policy to the IAM user that limits
|
1639
|
+
# federated users to only the actions and resources that they need to
|
1640
|
+
# access. For more information, see [IAM Best Practices][5] in the *IAM
|
1641
|
+
# User Guide*.
|
1642
|
+
#
|
1643
|
+
# **Session duration**
|
1644
|
+
#
|
1645
|
+
# The temporary credentials are valid for the specified duration, from
|
1646
|
+
# 900 seconds (15 minutes) up to a maximum of 129,600 seconds (36
|
1647
|
+
# hours). The default session duration is 43,200 seconds (12 hours).
|
1648
|
+
# Temporary credentials that are obtained by using AWS account root user
|
1649
|
+
# credentials have a maximum duration of 3,600 seconds (1 hour).
|
1650
|
+
#
|
1651
|
+
# **Permissions**
|
1652
|
+
#
|
1653
|
+
# You can use the temporary credentials created by `GetFederationToken`
|
1654
|
+
# in any AWS service except the following:
|
1655
|
+
#
|
1656
|
+
# * You cannot call any IAM operations using the AWS CLI or the AWS API.
|
1657
|
+
#
|
1658
|
+
# * You cannot call any STS operations except `GetCallerIdentity`.
|
1659
|
+
#
|
1660
|
+
# You must pass an inline or managed [session policy][6] to this
|
1661
|
+
# operation. You can pass a single JSON policy document to use as an
|
1662
|
+
# inline session policy. You can also specify up to 10 managed policies
|
1663
|
+
# to use as managed session policies. The plain text that you use for
|
1664
|
+
# both inline and managed session policies can't exceed 2,048
|
1665
|
+
# characters.
|
1666
|
+
#
|
1667
|
+
# Though the session policy parameters are optional, if you do not pass
|
1668
|
+
# a policy, then the resulting federated user session has no
|
1669
|
+
# permissions. When you pass session policies, the session permissions
|
1670
|
+
# are the intersection of the IAM user policies and the session policies
|
1671
|
+
# that you pass. This gives you a way to further restrict the
|
1672
|
+
# permissions for a federated user. You cannot use session policies to
|
1673
|
+
# grant more permissions than those that are defined in the permissions
|
1674
|
+
# policy of the IAM user. For more information, see [Session
|
1675
|
+
# Policies][6] in the *IAM User Guide*. For information about using
|
1676
|
+
# `GetFederationToken` to create temporary security credentials, see
|
1677
|
+
# [GetFederationToken—Federation Through a Custom Identity Broker][7].
|
1678
|
+
#
|
1679
|
+
# You can use the credentials to access a resource that has a
|
1680
|
+
# resource-based policy. If that policy specifically references the
|
1681
|
+
# federated user session in the `Principal` element of the policy, the
|
1682
|
+
# session has the permissions allowed by the policy. These permissions
|
1683
|
+
# are granted in addition to the permissions granted by the session
|
1684
|
+
# policies.
|
1685
|
+
#
|
1686
|
+
# **Tags**
|
1687
|
+
#
|
1688
|
+
# (Optional) You can pass tag key-value pairs to your session. These are
|
1689
|
+
# called session tags. For more information about session tags, see
|
1690
|
+
# [Passing Session Tags in STS][8] in the *IAM User Guide*.
|
1691
|
+
#
|
1692
|
+
# An administrator must grant you the permissions necessary to pass
|
1693
|
+
# session tags. The administrator can also create granular permissions
|
1694
|
+
# to allow you to pass only specific session tags. For more information,
|
1695
|
+
# see [Tutorial: Using Tags for Attribute-Based Access Control][9] in
|
1696
|
+
# the *IAM User Guide*.
|
1697
|
+
#
|
1698
|
+
# Tag key–value pairs are not case sensitive, but case is preserved.
|
1699
|
+
# This means that you cannot have separate `Department` and `department`
|
1700
|
+
# tag keys. Assume that the user that you are federating has the
|
1701
|
+
# `Department`=`Marketing` tag and you pass the
|
1702
|
+
# `department`=`engineering` session tag. `Department` and `department`
|
1703
|
+
# are not saved as separate tags, and the session tag passed in the
|
1704
|
+
# request takes precedence over the user tag.
|
1705
|
+
#
|
1706
|
+
#
|
1707
|
+
#
|
1708
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html
|
1709
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison
|
1710
|
+
# [3]: http://aws.amazon.com/cognito/
|
1711
|
+
# [4]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity
|
1712
|
+
# [5]: https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html
|
1713
|
+
# [6]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
|
1714
|
+
# [7]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_getfederationtoken
|
1715
|
+
# [8]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html
|
1716
|
+
# [9]: https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html
|
1717
|
+
#
|
1718
|
+
# @option params [required, String] :name
|
1719
|
+
# The name of the federated user. The name is used as an identifier for
|
1720
|
+
# the temporary security credentials (such as `Bob`). For example, you
|
1721
|
+
# can reference the federated user name in a resource-based policy, such
|
1722
|
+
# as in an Amazon S3 bucket policy.
|
1723
|
+
#
|
1724
|
+
# The regex used to validate this parameter is a string of characters
|
1725
|
+
# consisting of upper- and lower-case alphanumeric characters with no
|
1726
|
+
# spaces. You can also include underscores or any of the following
|
1727
|
+
# characters: =,.@-
|
1728
|
+
#
|
1729
|
+
# @option params [String] :policy
|
1730
|
+
# An IAM policy in JSON format that you want to use as an inline session
|
1731
|
+
# policy.
|
1732
|
+
#
|
1733
|
+
# You must pass an inline or managed [session policy][1] to this
|
1734
|
+
# operation. You can pass a single JSON policy document to use as an
|
1735
|
+
# inline session policy. You can also specify up to 10 managed policies
|
1736
|
+
# to use as managed session policies.
|
1737
|
+
#
|
1738
|
+
# This parameter is optional. However, if you do not pass any session
|
1739
|
+
# policies, then the resulting federated user session has no
|
1740
|
+
# permissions.
|
1741
|
+
#
|
1742
|
+
# When you pass session policies, the session permissions are the
|
1743
|
+
# intersection of the IAM user policies and the session policies that
|
1744
|
+
# you pass. This gives you a way to further restrict the permissions for
|
1745
|
+
# a federated user. You cannot use session policies to grant more
|
1746
|
+
# permissions than those that are defined in the permissions policy of
|
1747
|
+
# the IAM user. For more information, see [Session Policies][1] in the
|
1748
|
+
# *IAM User Guide*.
|
1749
|
+
#
|
1750
|
+
# The resulting credentials can be used to access a resource that has a
|
1751
|
+
# resource-based policy. If that policy specifically references the
|
1752
|
+
# federated user session in the `Principal` element of the policy, the
|
1753
|
+
# session has the permissions allowed by the policy. These permissions
|
1754
|
+
# are granted in addition to the permissions that are granted by the
|
1755
|
+
# session policies.
|
1756
|
+
#
|
1757
|
+
# The plain text that you use for both inline and managed session
|
1758
|
+
# policies can't exceed 2,048 characters. The JSON policy characters
|
1759
|
+
# can be any ASCII character from the space character to the end of the
|
1760
|
+
# valid character list (\\u0020 through \\u00FF). It can also include
|
1761
|
+
# the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D)
|
1762
|
+
# characters.
|
1763
|
+
#
|
1764
|
+
# <note markdown="1"> An AWS conversion compresses the passed session policies and session
|
1765
|
+
# tags into a packed binary format that has a separate limit. Your
|
1766
|
+
# request can fail for this limit even if your plain text meets the
|
1767
|
+
# other requirements. The `PackedPolicySize` response element indicates
|
1768
|
+
# by percentage how close the policies and tags for your request are to
|
1769
|
+
# the upper size limit.
|
1770
|
+
#
|
1771
|
+
# </note>
|
1772
|
+
#
|
1773
|
+
#
|
1774
|
+
#
|
1775
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
|
1776
|
+
#
|
1777
|
+
# @option params [Array<Types::PolicyDescriptorType>] :policy_arns
|
1778
|
+
# The Amazon Resource Names (ARNs) of the IAM managed policies that you
|
1779
|
+
# want to use as a managed session policy. The policies must exist in
|
1780
|
+
# the same account as the IAM user that is requesting federated access.
|
1781
|
+
#
|
1782
|
+
# You must pass an inline or managed [session policy][1] to this
|
1783
|
+
# operation. You can pass a single JSON policy document to use as an
|
1784
|
+
# inline session policy. You can also specify up to 10 managed policies
|
1785
|
+
# to use as managed session policies. The plain text that you use for
|
1786
|
+
# both inline and managed session policies can't exceed 2,048
|
1787
|
+
# characters. You can provide up to 10 managed policy ARNs. For more
|
1788
|
+
# information about ARNs, see [Amazon Resource Names (ARNs) and AWS
|
1789
|
+
# Service Namespaces][2] in the AWS General Reference.
|
1790
|
+
#
|
1791
|
+
# This parameter is optional. However, if you do not pass any session
|
1792
|
+
# policies, then the resulting federated user session has no
|
1793
|
+
# permissions.
|
1794
|
+
#
|
1795
|
+
# When you pass session policies, the session permissions are the
|
1796
|
+
# intersection of the IAM user policies and the session policies that
|
1797
|
+
# you pass. This gives you a way to further restrict the permissions for
|
1798
|
+
# a federated user. You cannot use session policies to grant more
|
1799
|
+
# permissions than those that are defined in the permissions policy of
|
1800
|
+
# the IAM user. For more information, see [Session Policies][1] in the
|
1801
|
+
# *IAM User Guide*.
|
1802
|
+
#
|
1803
|
+
# The resulting credentials can be used to access a resource that has a
|
1804
|
+
# resource-based policy. If that policy specifically references the
|
1805
|
+
# federated user session in the `Principal` element of the policy, the
|
1806
|
+
# session has the permissions allowed by the policy. These permissions
|
1807
|
+
# are granted in addition to the permissions that are granted by the
|
1808
|
+
# session policies.
|
1809
|
+
#
|
1810
|
+
# <note markdown="1"> An AWS conversion compresses the passed session policies and session
|
1811
|
+
# tags into a packed binary format that has a separate limit. Your
|
1812
|
+
# request can fail for this limit even if your plain text meets the
|
1813
|
+
# other requirements. The `PackedPolicySize` response element indicates
|
1814
|
+
# by percentage how close the policies and tags for your request are to
|
1815
|
+
# the upper size limit.
|
1816
|
+
#
|
1817
|
+
# </note>
|
1818
|
+
#
|
1819
|
+
#
|
1820
|
+
#
|
1821
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
|
1822
|
+
# [2]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
|
1823
|
+
#
|
1824
|
+
# @option params [Integer] :duration_seconds
|
1825
|
+
# The duration, in seconds, that the session should last. Acceptable
|
1826
|
+
# durations for federation sessions range from 900 seconds (15 minutes)
|
1827
|
+
# to 129,600 seconds (36 hours), with 43,200 seconds (12 hours) as the
|
1828
|
+
# default. Sessions obtained using AWS account root user credentials are
|
1829
|
+
# restricted to a maximum of 3,600 seconds (one hour). If the specified
|
1830
|
+
# duration is longer than one hour, the session obtained by using root
|
1831
|
+
# user credentials defaults to one hour.
|
1832
|
+
#
|
1833
|
+
# @option params [Array<Types::Tag>] :tags
|
1834
|
+
# A list of session tags. Each session tag consists of a key name and an
|
1835
|
+
# associated value. For more information about session tags, see
|
1836
|
+
# [Passing Session Tags in STS][1] in the *IAM User Guide*.
|
1837
|
+
#
|
1838
|
+
# This parameter is optional. You can pass up to 50 session tags. The
|
1839
|
+
# plain text session tag keys can’t exceed 128 characters and the values
|
1840
|
+
# can’t exceed 256 characters. For these and additional limits, see [IAM
|
1841
|
+
# and STS Character Limits][2] in the *IAM User Guide*.
|
1842
|
+
#
|
1843
|
+
# <note markdown="1"> An AWS conversion compresses the passed session policies and session
|
1844
|
+
# tags into a packed binary format that has a separate limit. Your
|
1845
|
+
# request can fail for this limit even if your plain text meets the
|
1846
|
+
# other requirements. The `PackedPolicySize` response element indicates
|
1847
|
+
# by percentage how close the policies and tags for your request are to
|
1848
|
+
# the upper size limit.
|
1849
|
+
#
|
1850
|
+
# </note>
|
1851
|
+
#
|
1852
|
+
# You can pass a session tag with the same key as a tag that is already
|
1853
|
+
# attached to the user you are federating. When you do, session tags
|
1854
|
+
# override a user tag with the same key.
|
1855
|
+
#
|
1856
|
+
# Tag key–value pairs are not case sensitive, but case is preserved.
|
1857
|
+
# This means that you cannot have separate `Department` and `department`
|
1858
|
+
# tag keys. Assume that the role has the `Department`=`Marketing` tag
|
1859
|
+
# and you pass the `department`=`engineering` session tag. `Department`
|
1860
|
+
# and `department` are not saved as separate tags, and the session tag
|
1861
|
+
# passed in the request takes precedence over the role tag.
|
1862
|
+
#
|
1863
|
+
#
|
1864
|
+
#
|
1865
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html
|
1866
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length
|
1867
|
+
#
|
1868
|
+
# @return [Types::GetFederationTokenResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1869
|
+
#
|
1870
|
+
# * {Types::GetFederationTokenResponse#credentials #credentials} => Types::Credentials
|
1871
|
+
# * {Types::GetFederationTokenResponse#federated_user #federated_user} => Types::FederatedUser
|
1872
|
+
# * {Types::GetFederationTokenResponse#packed_policy_size #packed_policy_size} => Integer
|
1873
|
+
#
|
1874
|
+
#
|
1875
|
+
# @example Example: To get temporary credentials for a role by using GetFederationToken
|
1876
|
+
#
|
1877
|
+
# resp = client.get_federation_token({
|
1878
|
+
# duration_seconds: 3600,
|
1879
|
+
# name: "testFedUserSession",
|
1880
|
+
# policy: "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Stmt1\",\"Effect\":\"Allow\",\"Action\":\"s3:ListAllMyBuckets\",\"Resource\":\"*\"}]}",
|
1881
|
+
# tags: [
|
1882
|
+
# {
|
1883
|
+
# key: "Project",
|
1884
|
+
# value: "Pegasus",
|
1885
|
+
# },
|
1886
|
+
# {
|
1887
|
+
# key: "Cost-Center",
|
1888
|
+
# value: "98765",
|
1889
|
+
# },
|
1890
|
+
# ],
|
1891
|
+
# })
|
1892
|
+
#
|
1893
|
+
# resp.to_h outputs the following:
|
1894
|
+
# {
|
1895
|
+
# credentials: {
|
1896
|
+
# access_key_id: "AKIAIOSFODNN7EXAMPLE",
|
1897
|
+
# expiration: Time.parse("2011-07-15T23:28:33.359Z"),
|
1898
|
+
# secret_access_key: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
|
1899
|
+
# session_token: "AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA==",
|
1900
|
+
# },
|
1901
|
+
# federated_user: {
|
1902
|
+
# arn: "arn:aws:sts::123456789012:federated-user/Bob",
|
1903
|
+
# federated_user_id: "123456789012:Bob",
|
1904
|
+
# },
|
1905
|
+
# packed_policy_size: 8,
|
1906
|
+
# }
|
1907
|
+
#
|
1908
|
+
# @example Request syntax with placeholder values
|
1909
|
+
#
|
1910
|
+
# resp = client.get_federation_token({
|
1911
|
+
# name: "userNameType", # required
|
1912
|
+
# policy: "sessionPolicyDocumentType",
|
1913
|
+
# policy_arns: [
|
1914
|
+
# {
|
1915
|
+
# arn: "arnType",
|
1916
|
+
# },
|
1917
|
+
# ],
|
1918
|
+
# duration_seconds: 1,
|
1919
|
+
# tags: [
|
1920
|
+
# {
|
1921
|
+
# key: "tagKeyType", # required
|
1922
|
+
# value: "tagValueType", # required
|
1923
|
+
# },
|
1924
|
+
# ],
|
1925
|
+
# })
|
1926
|
+
#
|
1927
|
+
# @example Response structure
|
1928
|
+
#
|
1929
|
+
# resp.credentials.access_key_id #=> String
|
1930
|
+
# resp.credentials.secret_access_key #=> String
|
1931
|
+
# resp.credentials.session_token #=> String
|
1932
|
+
# resp.credentials.expiration #=> Time
|
1933
|
+
# resp.federated_user.federated_user_id #=> String
|
1934
|
+
# resp.federated_user.arn #=> String
|
1935
|
+
# resp.packed_policy_size #=> Integer
|
1936
|
+
#
|
1937
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetFederationToken AWS API Documentation
|
1938
|
+
#
|
1939
|
+
# @overload get_federation_token(params = {})
|
1940
|
+
# @param [Hash] params ({})
|
1941
|
+
def get_federation_token(params = {}, options = {})
|
1942
|
+
req = build_request(:get_federation_token, params)
|
1943
|
+
req.send_request(options)
|
1944
|
+
end
|
1945
|
+
|
1946
|
+
# Returns a set of temporary credentials for an AWS account or IAM user.
|
1947
|
+
# The credentials consist of an access key ID, a secret access key, and
|
1948
|
+
# a security token. Typically, you use `GetSessionToken` if you want to
|
1949
|
+
# use MFA to protect programmatic calls to specific AWS API operations
|
1950
|
+
# like Amazon EC2 `StopInstances`. MFA-enabled IAM users would need to
|
1951
|
+
# call `GetSessionToken` and submit an MFA code that is associated with
|
1952
|
+
# their MFA device. Using the temporary security credentials that are
|
1953
|
+
# returned from the call, IAM users can then make programmatic calls to
|
1954
|
+
# API operations that require MFA authentication. If you do not supply a
|
1955
|
+
# correct MFA code, then the API returns an access denied error. For a
|
1956
|
+
# comparison of `GetSessionToken` with the other API operations that
|
1957
|
+
# produce temporary credentials, see [Requesting Temporary Security
|
1958
|
+
# Credentials][1] and [Comparing the AWS STS API operations][2] in the
|
1959
|
+
# *IAM User Guide*.
|
1960
|
+
#
|
1961
|
+
# **Session Duration**
|
1962
|
+
#
|
1963
|
+
# The `GetSessionToken` operation must be called by using the long-term
|
1964
|
+
# AWS security credentials of the AWS account root user or an IAM user.
|
1965
|
+
# Credentials that are created by IAM users are valid for the duration
|
1966
|
+
# that you specify. This duration can range from 900 seconds (15
|
1967
|
+
# minutes) up to a maximum of 129,600 seconds (36 hours), with a default
|
1968
|
+
# of 43,200 seconds (12 hours). Credentials based on account credentials
|
1969
|
+
# can range from 900 seconds (15 minutes) up to 3,600 seconds (1 hour),
|
1970
|
+
# with a default of 1 hour.
|
1971
|
+
#
|
1972
|
+
# **Permissions**
|
1973
|
+
#
|
1974
|
+
# The temporary security credentials created by `GetSessionToken` can be
|
1975
|
+
# used to make API calls to any AWS service with the following
|
1976
|
+
# exceptions:
|
1977
|
+
#
|
1978
|
+
# * You cannot call any IAM API operations unless MFA authentication
|
1979
|
+
# information is included in the request.
|
1980
|
+
#
|
1981
|
+
# * You cannot call any STS API *except* `AssumeRole` or
|
1982
|
+
# `GetCallerIdentity`.
|
1983
|
+
#
|
1984
|
+
# <note markdown="1"> We recommend that you do not call `GetSessionToken` with AWS account
|
1985
|
+
# root user credentials. Instead, follow our [best practices][3] by
|
1986
|
+
# creating one or more IAM users, giving them the necessary permissions,
|
1987
|
+
# and using IAM users for everyday interaction with AWS.
|
1988
|
+
#
|
1989
|
+
# </note>
|
1990
|
+
#
|
1991
|
+
# The credentials that are returned by `GetSessionToken` are based on
|
1992
|
+
# permissions associated with the user whose credentials were used to
|
1993
|
+
# call the operation. If `GetSessionToken` is called using AWS account
|
1994
|
+
# root user credentials, the temporary credentials have root user
|
1995
|
+
# permissions. Similarly, if `GetSessionToken` is called using the
|
1996
|
+
# credentials of an IAM user, the temporary credentials have the same
|
1997
|
+
# permissions as the IAM user.
|
1998
|
+
#
|
1999
|
+
# For more information about using `GetSessionToken` to create temporary
|
2000
|
+
# credentials, go to [Temporary Credentials for Users in Untrusted
|
2001
|
+
# Environments][4] in the *IAM User Guide*.
|
2002
|
+
#
|
2003
|
+
#
|
2004
|
+
#
|
2005
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html
|
2006
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison
|
2007
|
+
# [3]: https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#create-iam-users
|
2008
|
+
# [4]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_getsessiontoken
|
2009
|
+
#
|
2010
|
+
# @option params [Integer] :duration_seconds
|
2011
|
+
# The duration, in seconds, that the credentials should remain valid.
|
2012
|
+
# Acceptable durations for IAM user sessions range from 900 seconds (15
|
2013
|
+
# minutes) to 129,600 seconds (36 hours), with 43,200 seconds (12 hours)
|
2014
|
+
# as the default. Sessions for AWS account owners are restricted to a
|
2015
|
+
# maximum of 3,600 seconds (one hour). If the duration is longer than
|
2016
|
+
# one hour, the session for AWS account owners defaults to one hour.
|
2017
|
+
#
|
2018
|
+
# @option params [String] :serial_number
|
2019
|
+
# The identification number of the MFA device that is associated with
|
2020
|
+
# the IAM user who is making the `GetSessionToken` call. Specify this
|
2021
|
+
# value if the IAM user has a policy that requires MFA authentication.
|
2022
|
+
# The value is either the serial number for a hardware device (such as
|
2023
|
+
# `GAHT12345678`) or an Amazon Resource Name (ARN) for a virtual device
|
2024
|
+
# (such as `arn:aws:iam::123456789012:mfa/user`). You can find the
|
2025
|
+
# device for an IAM user by going to the AWS Management Console and
|
2026
|
+
# viewing the user's security credentials.
|
2027
|
+
#
|
2028
|
+
# The regex used to validate this parameter is a string of characters
|
2029
|
+
# consisting of upper- and lower-case alphanumeric characters with no
|
2030
|
+
# spaces. You can also include underscores or any of the following
|
2031
|
+
# characters: =,.@:/-
|
2032
|
+
#
|
2033
|
+
# @option params [String] :token_code
|
2034
|
+
# The value provided by the MFA device, if MFA is required. If any
|
2035
|
+
# policy requires the IAM user to submit an MFA code, specify this
|
2036
|
+
# value. If MFA authentication is required, the user must provide a code
|
2037
|
+
# when requesting a set of temporary security credentials. A user who
|
2038
|
+
# fails to provide the code receives an "access denied" response when
|
2039
|
+
# requesting resources that require MFA authentication.
|
2040
|
+
#
|
2041
|
+
# The format for this parameter, as described by its regex pattern, is a
|
2042
|
+
# sequence of six numeric digits.
|
2043
|
+
#
|
2044
|
+
# @return [Types::GetSessionTokenResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2045
|
+
#
|
2046
|
+
# * {Types::GetSessionTokenResponse#credentials #credentials} => Types::Credentials
|
2047
|
+
#
|
2048
|
+
#
|
2049
|
+
# @example Example: To get temporary credentials for an IAM user or an AWS account
|
2050
|
+
#
|
2051
|
+
# resp = client.get_session_token({
|
2052
|
+
# duration_seconds: 3600,
|
2053
|
+
# serial_number: "YourMFASerialNumber",
|
2054
|
+
# token_code: "123456",
|
2055
|
+
# })
|
2056
|
+
#
|
2057
|
+
# resp.to_h outputs the following:
|
2058
|
+
# {
|
2059
|
+
# credentials: {
|
2060
|
+
# access_key_id: "AKIAIOSFODNN7EXAMPLE",
|
2061
|
+
# expiration: Time.parse("2011-07-11T19:55:29.611Z"),
|
2062
|
+
# secret_access_key: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
|
2063
|
+
# session_token: "AQoEXAMPLEH4aoAH0gNCAPyJxz4BlCFFxWNE1OPTgk5TthT+FvwqnKwRcOIfrRh3c/LTo6UDdyJwOOvEVPvLXCrrrUtdnniCEXAMPLE/IvU1dYUg2RVAJBanLiHb4IgRmpRV3zrkuWJOgQs8IZZaIv2BXIa2R4OlgkBN9bkUDNCJiBeb/AXlzBBko7b15fjrBs2+cTQtpZ3CYWFXG8C5zqx37wnOE49mRl/+OtkIKGO7fAE",
|
2064
|
+
# },
|
2065
|
+
# }
|
2066
|
+
#
|
2067
|
+
# @example Request syntax with placeholder values
|
2068
|
+
#
|
2069
|
+
# resp = client.get_session_token({
|
2070
|
+
# duration_seconds: 1,
|
2071
|
+
# serial_number: "serialNumberType",
|
2072
|
+
# token_code: "tokenCodeType",
|
2073
|
+
# })
|
2074
|
+
#
|
2075
|
+
# @example Response structure
|
2076
|
+
#
|
2077
|
+
# resp.credentials.access_key_id #=> String
|
2078
|
+
# resp.credentials.secret_access_key #=> String
|
2079
|
+
# resp.credentials.session_token #=> String
|
2080
|
+
# resp.credentials.expiration #=> Time
|
2081
|
+
#
|
2082
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetSessionToken AWS API Documentation
|
2083
|
+
#
|
2084
|
+
# @overload get_session_token(params = {})
|
2085
|
+
# @param [Hash] params ({})
|
2086
|
+
def get_session_token(params = {}, options = {})
|
2087
|
+
req = build_request(:get_session_token, params)
|
2088
|
+
req.send_request(options)
|
2089
|
+
end
|
2090
|
+
|
2091
|
+
# @!endgroup
|
2092
|
+
|
2093
|
+
# @param params ({})
|
2094
|
+
# @api private
|
2095
|
+
def build_request(operation_name, params = {})
|
2096
|
+
handlers = @handlers.for(operation_name)
|
2097
|
+
context = Seahorse::Client::RequestContext.new(
|
2098
|
+
operation_name: operation_name,
|
2099
|
+
operation: config.api.operation(operation_name),
|
2100
|
+
client: self,
|
2101
|
+
params: params,
|
2102
|
+
config: config)
|
2103
|
+
context[:gem_name] = 'aws-sdk-core'
|
2104
|
+
context[:gem_version] = '3.86.0'
|
2105
|
+
Seahorse::Client::Request.new(handlers, context)
|
2106
|
+
end
|
2107
|
+
|
2108
|
+
# @api private
|
2109
|
+
# @deprecated
|
2110
|
+
def waiter_names
|
2111
|
+
[]
|
2112
|
+
end
|
2113
|
+
|
2114
|
+
class << self
|
2115
|
+
|
2116
|
+
# @api private
|
2117
|
+
attr_reader :identifier
|
2118
|
+
|
2119
|
+
# @api private
|
2120
|
+
def errors_module
|
2121
|
+
Errors
|
2122
|
+
end
|
2123
|
+
|
2124
|
+
end
|
2125
|
+
end
|
2126
|
+
end
|