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