aws-sdk-core 2.3.23 → 3.89.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (496) hide show
  1. checksums.yaml +5 -5
  2. data/VERSION +1 -0
  3. data/ca-bundle.crt +3615 -3541
  4. data/lib/aws-sdk-core.rb +106 -404
  5. data/lib/aws-sdk-core/arn.rb +77 -0
  6. data/lib/aws-sdk-core/arn_parser.rb +38 -0
  7. data/lib/aws-sdk-core/assume_role_web_identity_credentials.rb +101 -0
  8. data/lib/aws-sdk-core/async_client_stubs.rb +80 -0
  9. data/lib/aws-sdk-core/binary.rb +6 -0
  10. data/lib/aws-sdk-core/binary/decode_handler.rb +56 -0
  11. data/lib/aws-sdk-core/binary/encode_handler.rb +32 -0
  12. data/lib/aws-sdk-core/binary/event_builder.rb +122 -0
  13. data/lib/aws-sdk-core/binary/event_parser.rb +134 -0
  14. data/lib/aws-sdk-core/binary/event_stream_decoder.rb +62 -0
  15. data/lib/aws-sdk-core/binary/event_stream_encoder.rb +53 -0
  16. data/lib/aws-sdk-core/client_side_monitoring/publisher.rb +49 -0
  17. data/lib/aws-sdk-core/client_side_monitoring/request_metrics.rb +197 -0
  18. data/lib/aws-sdk-core/client_stubs.rb +73 -10
  19. data/lib/aws-sdk-core/credential_provider.rb +0 -29
  20. data/lib/aws-sdk-core/credential_provider_chain.rb +56 -6
  21. data/lib/aws-sdk-core/deprecations.rb +16 -10
  22. data/lib/aws-sdk-core/ecs_credentials.rb +14 -10
  23. data/lib/aws-sdk-core/endpoint_cache.rb +191 -0
  24. data/lib/aws-sdk-core/errors.rb +221 -11
  25. data/lib/aws-sdk-core/event_emitter.rb +62 -0
  26. data/lib/aws-sdk-core/ini_parser.rb +41 -0
  27. data/lib/aws-sdk-core/instance_profile_credentials.rb +133 -42
  28. data/lib/aws-sdk-core/json.rb +9 -10
  29. data/lib/aws-sdk-core/json/builder.rb +4 -2
  30. data/lib/aws-sdk-core/json/error_handler.rb +19 -2
  31. data/lib/aws-sdk-core/json/handler.rb +22 -3
  32. data/lib/aws-sdk-core/json/parser.rb +1 -1
  33. data/lib/aws-sdk-core/log/formatter.rb +7 -1
  34. data/lib/aws-sdk-core/log/param_filter.rb +4 -3
  35. data/lib/aws-sdk-core/pageable_response.rb +1 -0
  36. data/lib/aws-sdk-core/pager.rb +30 -25
  37. data/lib/aws-sdk-core/param_converter.rb +3 -3
  38. data/lib/aws-sdk-core/param_validator.rb +60 -26
  39. data/lib/aws-sdk-core/plugins/api_key.rb +52 -0
  40. data/lib/aws-sdk-core/plugins/apig_authorizer_token.rb +30 -0
  41. data/lib/aws-sdk-core/plugins/apig_credentials_configuration.rb +34 -0
  42. data/lib/aws-sdk-core/plugins/apig_user_agent.rb +37 -0
  43. data/lib/aws-sdk-core/plugins/client_metrics_plugin.rb +280 -0
  44. data/lib/aws-sdk-core/plugins/client_metrics_send_plugin.rb +84 -0
  45. data/lib/aws-sdk-core/plugins/credentials_configuration.rb +62 -0
  46. data/lib/aws-sdk-core/plugins/endpoint_discovery.rb +160 -0
  47. data/lib/aws-sdk-core/plugins/endpoint_pattern.rb +63 -0
  48. data/lib/aws-sdk-core/plugins/event_stream_configuration.rb +30 -0
  49. data/lib/aws-sdk-core/plugins/global_configuration.rb +19 -10
  50. data/lib/aws-sdk-core/plugins/helpful_socket_errors.rb +41 -0
  51. data/lib/aws-sdk-core/plugins/idempotency_token.rb +36 -0
  52. data/lib/aws-sdk-core/plugins/invocation_id.rb +33 -0
  53. data/lib/aws-sdk-core/plugins/jsonvalue_converter.rb +29 -0
  54. data/lib/aws-sdk-core/plugins/logging.rb +18 -18
  55. data/lib/aws-sdk-core/plugins/param_converter.rb +9 -5
  56. data/lib/aws-sdk-core/plugins/param_validator.rb +8 -5
  57. data/lib/aws-sdk-core/plugins/protocols/api_gateway.rb +10 -0
  58. data/lib/aws-sdk-core/plugins/protocols/ec2.rb +2 -1
  59. data/lib/aws-sdk-core/plugins/protocols/json_rpc.rb +13 -12
  60. data/lib/aws-sdk-core/plugins/protocols/query.rb +2 -2
  61. data/lib/aws-sdk-core/plugins/regional_endpoint.rb +48 -19
  62. data/lib/aws-sdk-core/plugins/response_paging.rb +5 -18
  63. data/lib/aws-sdk-core/plugins/retry_errors.rb +102 -24
  64. data/lib/aws-sdk-core/plugins/signature_v2.rb +51 -0
  65. data/lib/aws-sdk-core/plugins/signature_v4.rb +141 -0
  66. data/lib/aws-sdk-core/plugins/stub_responses.rb +35 -18
  67. data/lib/aws-sdk-core/plugins/transfer_encoding.rb +53 -0
  68. data/lib/aws-sdk-core/plugins/user_agent.rb +23 -10
  69. data/lib/aws-sdk-core/process_credentials.rb +80 -0
  70. data/lib/aws-sdk-core/query.rb +5 -0
  71. data/lib/aws-sdk-core/query/ec2_param_builder.rb +9 -3
  72. data/lib/aws-sdk-core/query/handler.rb +20 -16
  73. data/lib/aws-sdk-core/query/param_builder.rb +10 -4
  74. data/lib/aws-sdk-core/refreshing_credentials.rb +1 -1
  75. data/lib/aws-sdk-core/resources/collection.rb +121 -0
  76. data/lib/aws-sdk-core/rest.rb +10 -0
  77. data/lib/aws-sdk-core/rest/handler.rb +1 -0
  78. data/lib/aws-sdk-core/rest/request/builder.rb +2 -1
  79. data/lib/aws-sdk-core/rest/request/endpoint.rb +11 -66
  80. data/lib/aws-sdk-core/rest/request/headers.rb +20 -1
  81. data/lib/aws-sdk-core/rest/request/querystring_builder.rb +103 -0
  82. data/lib/aws-sdk-core/rest/response/body.rb +14 -1
  83. data/lib/aws-sdk-core/rest/response/headers.rb +9 -0
  84. data/lib/aws-sdk-core/rest/response/parser.rb +18 -14
  85. data/lib/aws-sdk-core/shared_config.rb +451 -0
  86. data/lib/aws-sdk-core/shared_credentials.rb +16 -53
  87. data/lib/aws-sdk-core/structure.rb +22 -13
  88. data/lib/aws-sdk-core/stubbing/data_applicator.rb +1 -1
  89. data/lib/aws-sdk-core/stubbing/empty_stub.rb +10 -3
  90. data/lib/aws-sdk-core/stubbing/protocols/api_gateway.rb +8 -0
  91. data/lib/aws-sdk-core/stubbing/protocols/ec2.rb +1 -1
  92. data/lib/aws-sdk-core/stubbing/protocols/rest.rb +99 -1
  93. data/lib/aws-sdk-core/stubbing/protocols/rest_json.rb +5 -1
  94. data/lib/aws-sdk-core/stubbing/protocols/rest_xml.rb +9 -5
  95. data/lib/aws-sdk-core/stubbing/stub_data.rb +16 -3
  96. data/lib/aws-sdk-core/util.rb +66 -0
  97. data/lib/aws-sdk-core/waiters.rb +3 -0
  98. data/lib/aws-sdk-core/waiters/poller.rb +5 -7
  99. data/lib/aws-sdk-core/waiters/waiter.rb +3 -2
  100. data/lib/aws-sdk-core/xml.rb +9 -0
  101. data/lib/aws-sdk-core/xml/builder.rb +11 -5
  102. data/lib/aws-sdk-core/xml/error_handler.rb +27 -5
  103. data/lib/aws-sdk-core/xml/parser.rb +1 -11
  104. data/lib/aws-sdk-core/xml/parser/engines/ox.rb +5 -1
  105. data/lib/aws-sdk-core/xml/parser/frame.rb +6 -6
  106. data/lib/aws-sdk-sts.rb +45 -0
  107. data/lib/aws-sdk-sts/client.rb +2156 -0
  108. data/lib/aws-sdk-sts/client_api.rb +336 -0
  109. data/lib/aws-sdk-sts/customizations.rb +2 -0
  110. data/lib/aws-sdk-sts/errors.rb +142 -0
  111. data/lib/aws-sdk-sts/plugins/sts_regional_endpoints.rb +32 -0
  112. data/lib/aws-sdk-sts/presigner.rb +67 -0
  113. data/lib/aws-sdk-sts/resource.rb +23 -0
  114. data/lib/aws-sdk-sts/types.rb +1504 -0
  115. data/lib/seahorse.rb +60 -60
  116. data/lib/seahorse/client/async_base.rb +50 -0
  117. data/lib/seahorse/client/async_response.rb +62 -0
  118. data/lib/seahorse/client/base.rb +5 -9
  119. data/lib/seahorse/client/configuration.rb +10 -2
  120. data/lib/seahorse/client/events.rb +1 -1
  121. data/lib/seahorse/client/h2/connection.rb +246 -0
  122. data/lib/seahorse/client/h2/handler.rb +151 -0
  123. data/lib/seahorse/client/handler_list_entry.rb +2 -2
  124. data/lib/seahorse/client/http/async_response.rb +42 -0
  125. data/lib/seahorse/client/http/response.rb +13 -8
  126. data/lib/seahorse/client/logging/formatter.rb +7 -1
  127. data/lib/seahorse/client/logging/handler.rb +2 -0
  128. data/lib/seahorse/client/net_http/connection_pool.rb +46 -28
  129. data/lib/seahorse/client/net_http/handler.rb +17 -3
  130. data/lib/seahorse/client/net_http/patches.rb +9 -1
  131. data/lib/seahorse/client/networking_error.rb +28 -0
  132. data/lib/seahorse/client/plugin.rb +67 -6
  133. data/lib/seahorse/client/plugin_list.rb +3 -1
  134. data/lib/seahorse/client/plugins/content_length.rb +7 -2
  135. data/lib/seahorse/client/plugins/endpoint.rb +14 -10
  136. data/lib/seahorse/client/plugins/h2.rb +64 -0
  137. data/lib/seahorse/client/plugins/logging.rb +17 -19
  138. data/lib/seahorse/client/plugins/net_http.rb +23 -15
  139. data/lib/seahorse/client/plugins/raise_response_errors.rb +4 -4
  140. data/lib/seahorse/client/plugins/response_target.rb +10 -1
  141. data/lib/seahorse/client/request_context.rb +5 -0
  142. data/lib/seahorse/client/response.rb +9 -20
  143. data/lib/seahorse/model/api.rb +37 -0
  144. data/lib/seahorse/model/authorizer.rb +21 -0
  145. data/lib/seahorse/model/operation.rb +20 -0
  146. data/lib/seahorse/model/shapes.rb +44 -2
  147. data/lib/seahorse/util.rb +1 -21
  148. metadata +127 -360
  149. data/apis/acm/2015-12-08/api-2.json +0 -495
  150. data/apis/acm/2015-12-08/examples-1.json +0 -5
  151. data/apis/acm/2015-12-08/paginators-1.json +0 -10
  152. data/apis/apigateway/2015-07-09/api-2.json +0 -3347
  153. data/apis/apigateway/2015-07-09/examples-1.json +0 -5
  154. data/apis/apigateway/2015-07-09/paginators-1.json +0 -52
  155. data/apis/application-autoscaling/2016-02-06/api-2.json +0 -502
  156. data/apis/application-autoscaling/2016-02-06/examples-1.json +0 -5
  157. data/apis/application-autoscaling/2016-02-06/paginators-1.json +0 -22
  158. data/apis/autoscaling/2011-01-01/api-2.json +0 -2038
  159. data/apis/autoscaling/2011-01-01/examples-1.json +0 -5
  160. data/apis/autoscaling/2011-01-01/paginators-1.json +0 -52
  161. data/apis/autoscaling/2011-01-01/resources-1.json +0 -1613
  162. data/apis/autoscaling/2011-01-01/waiters-2.json +0 -62
  163. data/apis/cloudformation/2010-05-15/api-2.json +0 -1299
  164. data/apis/cloudformation/2010-05-15/examples-1.json +0 -5
  165. data/apis/cloudformation/2010-05-15/paginators-1.json +0 -27
  166. data/apis/cloudformation/2010-05-15/resources-1.json +0 -202
  167. data/apis/cloudformation/2010-05-15/waiters-2.json +0 -235
  168. data/apis/cloudfront/2016-01-28/api-2.json +0 -2218
  169. data/apis/cloudfront/2016-01-28/examples-1.json +0 -5
  170. data/apis/cloudfront/2016-01-28/paginators-1.json +0 -32
  171. data/apis/cloudfront/2016-01-28/waiters-2.json +0 -47
  172. data/apis/cloudhsm/2014-05-30/api-2.json +0 -877
  173. data/apis/cloudhsm/2014-05-30/examples-1.json +0 -5
  174. data/apis/cloudsearch/2013-01-01/api-2.json +0 -2001
  175. data/apis/cloudsearch/2013-01-01/paginators-1.json +0 -20
  176. data/apis/cloudsearchdomain/2013-01-01/api-2.json +0 -373
  177. data/apis/cloudsearchdomain/2013-01-01/examples-1.json +0 -5
  178. data/apis/cloudtrail/2013-11-01/api-2.json +0 -801
  179. data/apis/cloudtrail/2013-11-01/examples-1.json +0 -5
  180. data/apis/cloudtrail/2013-11-01/paginators-1.json +0 -7
  181. data/apis/codecommit/2015-04-13/api-2.json +0 -916
  182. data/apis/codecommit/2015-04-13/examples-1.json +0 -5
  183. data/apis/codecommit/2015-04-13/paginators-1.json +0 -14
  184. data/apis/codedeploy/2014-10-06/api-2.json +0 -1954
  185. data/apis/codedeploy/2014-10-06/examples-1.json +0 -5
  186. data/apis/codedeploy/2014-10-06/paginators-1.json +0 -34
  187. data/apis/codepipeline/2015-07-09/api-2.json +0 -1633
  188. data/apis/codepipeline/2015-07-09/examples-1.json +0 -902
  189. data/apis/cognito-identity/2014-06-30/api-2.json +0 -859
  190. data/apis/cognito-identity/2014-06-30/examples-1.json +0 -5
  191. data/apis/cognito-idp/2016-04-18/api-2.json +0 -1657
  192. data/apis/cognito-idp/2016-04-18/examples-1.json +0 -5
  193. data/apis/cognito-sync/2014-06-30/api-2.json +0 -1874
  194. data/apis/config/2014-11-12/api-2.json +0 -1303
  195. data/apis/config/2014-11-12/examples-1.json +0 -5
  196. data/apis/config/2014-11-12/paginators-1.json +0 -10
  197. data/apis/datapipeline/2012-10-29/api-2.json +0 -1167
  198. data/apis/datapipeline/2012-10-29/paginators-1.json +0 -26
  199. data/apis/devicefarm/2015-06-23/api-2.json +0 -1819
  200. data/apis/devicefarm/2015-06-23/examples-1.json +0 -5
  201. data/apis/devicefarm/2015-06-23/paginators-1.json +0 -74
  202. data/apis/directconnect/2012-10-25/api-2.json +0 -793
  203. data/apis/directconnect/2012-10-25/examples-1.json +0 -5
  204. data/apis/directconnect/2012-10-25/paginators-1.json +0 -22
  205. data/apis/discovery/2015-11-01/api-2.json +0 -556
  206. data/apis/discovery/2015-11-01/examples-1.json +0 -5
  207. data/apis/dms/2016-01-01/api-2.json +0 -1469
  208. data/apis/dms/2016-01-01/examples-1.json +0 -5
  209. data/apis/ds/2015-04-16/api-2.json +0 -1674
  210. data/apis/ds/2015-04-16/examples-1.json +0 -5
  211. data/apis/dynamodb/2012-08-10/api-2.json +0 -1200
  212. data/apis/dynamodb/2012-08-10/examples-1.json +0 -5
  213. data/apis/dynamodb/2012-08-10/paginators-1.json +0 -26
  214. data/apis/dynamodb/2012-08-10/resources-1.json +0 -136
  215. data/apis/dynamodb/2012-08-10/waiters-2.json +0 -35
  216. data/apis/ec2/2015-10-01/api-2.json +0 -13759
  217. data/apis/ec2/2015-10-01/examples-1.json +0 -5
  218. data/apis/ec2/2015-10-01/paginators-1.json +0 -138
  219. data/apis/ec2/2015-10-01/resources-1.json +0 -2582
  220. data/apis/ec2/2015-10-01/waiters-2.json +0 -593
  221. data/apis/ec2/2016-04-01/api-2.json +0 -13842
  222. data/apis/ec2/2016-04-01/examples-1.json +0 -5
  223. data/apis/ec2/2016-04-01/paginators-1.json +0 -138
  224. data/apis/ec2/2016-04-01/resources-1.json +0 -2582
  225. data/apis/ec2/2016-04-01/waiters-2.json +0 -593
  226. data/apis/ecr/2015-09-21/api-2.json +0 -849
  227. data/apis/ecr/2015-09-21/examples-1.json +0 -5
  228. data/apis/ecs/2014-11-13/api-2.json +0 -1396
  229. data/apis/ecs/2014-11-13/examples-1.json +0 -5
  230. data/apis/ecs/2014-11-13/paginators-1.json +0 -40
  231. data/apis/ecs/2014-11-13/waiters-2.json +0 -93
  232. data/apis/elasticache/2015-02-02/api-2.json +0 -2426
  233. data/apis/elasticache/2015-02-02/examples-1.json +0 -5
  234. data/apis/elasticache/2015-02-02/paginators-1.json +0 -76
  235. data/apis/elasticache/2015-02-02/waiters-2.json +0 -143
  236. data/apis/elasticbeanstalk/2010-12-01/api-2.json +0 -1894
  237. data/apis/elasticbeanstalk/2010-12-01/examples-1.json +0 -1109
  238. data/apis/elasticbeanstalk/2010-12-01/paginators-1.json +0 -25
  239. data/apis/elasticfilesystem/2015-02-01/api-2.json +0 -713
  240. data/apis/elasticfilesystem/2015-02-01/examples-1.json +0 -5
  241. data/apis/elasticloadbalancing/2012-06-01/api-2.json +0 -2145
  242. data/apis/elasticloadbalancing/2012-06-01/paginators-1.json +0 -18
  243. data/apis/elasticloadbalancing/2012-06-01/waiters-2.json +0 -49
  244. data/apis/elasticmapreduce/2009-03-31/api-2.json +0 -1341
  245. data/apis/elasticmapreduce/2009-03-31/examples-1.json +0 -5
  246. data/apis/elasticmapreduce/2009-03-31/paginators-1.json +0 -32
  247. data/apis/elasticmapreduce/2009-03-31/waiters-2.json +0 -67
  248. data/apis/elastictranscoder/2012-09-25/api-2.json +0 -1807
  249. data/apis/elastictranscoder/2012-09-25/paginators-1.json +0 -24
  250. data/apis/elastictranscoder/2012-09-25/waiters-2.json +0 -30
  251. data/apis/email/2010-12-01/api-2.json +0 -1791
  252. data/apis/email/2010-12-01/examples-1.json +0 -5
  253. data/apis/email/2010-12-01/paginators-1.json +0 -13
  254. data/apis/email/2010-12-01/waiters-2.json +0 -18
  255. data/apis/es/2015-01-01/api-2.json +0 -764
  256. data/apis/events/2015-10-07/api-2.json +0 -643
  257. data/apis/events/2015-10-07/examples-1.json +0 -5
  258. data/apis/firehose/2015-08-04/api-2.json +0 -719
  259. data/apis/gamelift/2015-10-01/api-2.json +0 -2307
  260. data/apis/gamelift/2015-10-01/examples-1.json +0 -5
  261. data/apis/glacier/2012-06-01/api-2.json +0 -2144
  262. data/apis/glacier/2012-06-01/paginators-1.json +0 -28
  263. data/apis/glacier/2012-06-01/resources-1.json +0 -563
  264. data/apis/glacier/2012-06-01/waiters-2.json +0 -39
  265. data/apis/iam/2010-05-08/api-2.json +0 -4514
  266. data/apis/iam/2010-05-08/examples-1.json +0 -5
  267. data/apis/iam/2010-05-08/paginators-1.json +0 -198
  268. data/apis/iam/2010-05-08/resources-1.json +0 -1740
  269. data/apis/iam/2010-05-08/waiters-2.json +0 -39
  270. data/apis/importexport/2010-06-01/api-2.json +0 -666
  271. data/apis/importexport/2010-06-01/paginators-1.json +0 -11
  272. data/apis/inspector/2016-02-16/api-2.json +0 -1964
  273. data/apis/inspector/2016-02-16/examples-1.json +0 -5
  274. data/apis/iot-data/2015-05-28/api-2.json +0 -263
  275. data/apis/iot/2015-05-28/api-2.json +0 -3800
  276. data/apis/iot/2015-05-28/examples-1.json +0 -5
  277. data/apis/kinesis/2013-12-02/api-2.json +0 -822
  278. data/apis/kinesis/2013-12-02/examples-1.json +0 -5
  279. data/apis/kinesis/2013-12-02/paginators-1.json +0 -18
  280. data/apis/kinesis/2013-12-02/waiters-2.json +0 -18
  281. data/apis/kms/2014-11-01/api-2.json +0 -1209
  282. data/apis/kms/2014-11-01/examples-1.json +0 -5
  283. data/apis/kms/2014-11-01/paginators-1.json +0 -32
  284. data/apis/lambda/2014-11-11/api-2.json +0 -667
  285. data/apis/lambda/2014-11-11/paginators-1.json +0 -16
  286. data/apis/lambda/2015-03-31/api-2.json +0 -1342
  287. data/apis/lambda/2015-03-31/examples-1.json +0 -5
  288. data/apis/lambda/2015-03-31/paginators-1.json +0 -16
  289. data/apis/logs/2014-03-28/api-2.json +0 -1138
  290. data/apis/logs/2014-03-28/examples-1.json +0 -5
  291. data/apis/logs/2014-03-28/paginators-1.json +0 -49
  292. data/apis/machinelearning/2014-12-12/api-2.json +0 -1947
  293. data/apis/machinelearning/2014-12-12/paginators-1.json +0 -28
  294. data/apis/machinelearning/2014-12-12/waiters-2.json +0 -81
  295. data/apis/marketplacecommerceanalytics/2015-07-01/api-2.json +0 -120
  296. data/apis/marketplacecommerceanalytics/2015-07-01/examples-1.json +0 -5
  297. data/apis/meteringmarketplace/2016-01-14/api-2.json +0 -127
  298. data/apis/meteringmarketplace/2016-01-14/examples-1.json +0 -5
  299. data/apis/monitoring/2010-08-01/api-2.json +0 -790
  300. data/apis/monitoring/2010-08-01/examples-1.json +0 -5
  301. data/apis/monitoring/2010-08-01/paginators-1.json +0 -24
  302. data/apis/monitoring/2010-08-01/resources-1.json +0 -346
  303. data/apis/monitoring/2010-08-01/waiters-2.json +0 -18
  304. data/apis/opsworks/2013-02-18/api-2.json +0 -2606
  305. data/apis/opsworks/2013-02-18/examples-1.json +0 -5
  306. data/apis/opsworks/2013-02-18/paginators-1.json +0 -55
  307. data/apis/opsworks/2013-02-18/resources-1.json +0 -173
  308. data/apis/opsworks/2013-02-18/waiters-2.json +0 -295
  309. data/apis/rds/2014-10-31/api-2.json +0 -4757
  310. data/apis/rds/2014-10-31/examples-1.json +0 -5
  311. data/apis/rds/2014-10-31/paginators-1.json +0 -110
  312. data/apis/rds/2014-10-31/resources-1.json +0 -3272
  313. data/apis/rds/2014-10-31/waiters-2.json +0 -102
  314. data/apis/redshift/2012-12-01/api-2.json +0 -3768
  315. data/apis/redshift/2012-12-01/examples-1.json +0 -5
  316. data/apis/redshift/2012-12-01/paginators-1.json +0 -94
  317. data/apis/redshift/2012-12-01/waiters-2.json +0 -97
  318. data/apis/route53/2013-04-01/api-2.json +0 -3245
  319. data/apis/route53/2013-04-01/examples-1.json +0 -5
  320. data/apis/route53/2013-04-01/paginators-1.json +0 -33
  321. data/apis/route53/2013-04-01/waiters-2.json +0 -18
  322. data/apis/route53domains/2014-05-15/api-2.json +0 -1197
  323. data/apis/route53domains/2014-05-15/paginators-1.json +0 -17
  324. data/apis/s3/2006-03-01/api-2.json +0 -4517
  325. data/apis/s3/2006-03-01/examples-1.json +0 -5
  326. data/apis/s3/2006-03-01/paginators-1.json +0 -66
  327. data/apis/s3/2006-03-01/resources-1.json +0 -1176
  328. data/apis/s3/2006-03-01/waiters-2.json +0 -73
  329. data/apis/sdb/2009-04-15/api-2.json +0 -954
  330. data/apis/sdb/2009-04-15/paginators-1.json +0 -15
  331. data/apis/servicecatalog/2015-12-10/api-2.json +0 -749
  332. data/apis/servicecatalog/2015-12-10/examples-1.json +0 -5
  333. data/apis/sns/2010-03-31/api-2.json +0 -1139
  334. data/apis/sns/2010-03-31/paginators-1.json +0 -29
  335. data/apis/sns/2010-03-31/resources-1.json +0 -327
  336. data/apis/sqs/2012-11-05/api-2.json +0 -950
  337. data/apis/sqs/2012-11-05/examples-1.json +0 -44
  338. data/apis/sqs/2012-11-05/paginators-1.json +0 -7
  339. data/apis/ssm/2014-11-06/api-2.json +0 -1742
  340. data/apis/ssm/2014-11-06/examples-1.json +0 -5
  341. data/apis/ssm/2014-11-06/paginators-1.json +0 -34
  342. data/apis/storagegateway/2013-06-30/api-2.json +0 -2275
  343. data/apis/storagegateway/2013-06-30/examples-1.json +0 -5
  344. data/apis/storagegateway/2013-06-30/paginators-1.json +0 -52
  345. data/apis/streams.dynamodb/2012-08-10/api-2.json +0 -397
  346. data/apis/streams.dynamodb/2012-08-10/examples-1.json +0 -5
  347. data/apis/sts/2011-06-15/api-2.json +0 -521
  348. data/apis/sts/2011-06-15/examples-1.json +0 -5
  349. data/apis/support/2013-04-15/api-2.json +0 -869
  350. data/apis/support/2013-04-15/paginators-1.json +0 -25
  351. data/apis/swf/2012-01-25/api-2.json +0 -2838
  352. data/apis/swf/2012-01-25/paginators-1.json +0 -46
  353. data/apis/waf/2015-08-24/api-2.json +0 -1959
  354. data/apis/waf/2015-08-24/examples-1.json +0 -5
  355. data/apis/workspaces/2015-04-08/api-2.json +0 -632
  356. data/apis/workspaces/2015-04-08/examples-1.json +0 -5
  357. data/apis/workspaces/2015-04-08/paginators-1.json +0 -20
  358. data/bin/aws.rb +0 -180
  359. data/endpoints.json +0 -1460
  360. data/lib/aws-sdk-core/acm.rb +0 -6
  361. data/lib/aws-sdk-core/api/builder.rb +0 -106
  362. data/lib/aws-sdk-core/api/customizations.rb +0 -217
  363. data/lib/aws-sdk-core/api/docs/builder.rb +0 -220
  364. data/lib/aws-sdk-core/api/docs/client_type_documenter.rb +0 -109
  365. data/lib/aws-sdk-core/api/docs/docstring_provider.rb +0 -75
  366. data/lib/aws-sdk-core/api/docs/operation_documenter.rb +0 -138
  367. data/lib/aws-sdk-core/api/docs/param_formatter.rb +0 -163
  368. data/lib/aws-sdk-core/api/docs/request_syntax_example.rb +0 -22
  369. data/lib/aws-sdk-core/api/docs/response_structure_example.rb +0 -91
  370. data/lib/aws-sdk-core/api/docs/shared_example.rb +0 -100
  371. data/lib/aws-sdk-core/api/docs/utils.rb +0 -133
  372. data/lib/aws-sdk-core/api/shape_map.rb +0 -142
  373. data/lib/aws-sdk-core/apigateway.rb +0 -6
  374. data/lib/aws-sdk-core/applicationautoscaling.rb +0 -6
  375. data/lib/aws-sdk-core/applicationdiscoveryservice.rb +0 -5
  376. data/lib/aws-sdk-core/autoscaling.rb +0 -8
  377. data/lib/aws-sdk-core/checksums.rb +0 -51
  378. data/lib/aws-sdk-core/client.rb +0 -67
  379. data/lib/aws-sdk-core/client_waiters.rb +0 -120
  380. data/lib/aws-sdk-core/cloudformation.rb +0 -8
  381. data/lib/aws-sdk-core/cloudfront.rb +0 -15
  382. data/lib/aws-sdk-core/cloudfront/url_signer.rb +0 -167
  383. data/lib/aws-sdk-core/cloudhsm.rb +0 -5
  384. data/lib/aws-sdk-core/cloudsearch.rb +0 -5
  385. data/lib/aws-sdk-core/cloudsearchdomain.rb +0 -5
  386. data/lib/aws-sdk-core/cloudtrail.rb +0 -6
  387. data/lib/aws-sdk-core/cloudwatch.rb +0 -8
  388. data/lib/aws-sdk-core/cloudwatchevents.rb +0 -5
  389. data/lib/aws-sdk-core/cloudwatchlogs.rb +0 -6
  390. data/lib/aws-sdk-core/codecommit.rb +0 -6
  391. data/lib/aws-sdk-core/codedeploy.rb +0 -6
  392. data/lib/aws-sdk-core/codepipeline.rb +0 -5
  393. data/lib/aws-sdk-core/cognitoidentity.rb +0 -5
  394. data/lib/aws-sdk-core/cognitoidentityprovider.rb +0 -5
  395. data/lib/aws-sdk-core/cognitosync.rb +0 -4
  396. data/lib/aws-sdk-core/configservice.rb +0 -6
  397. data/lib/aws-sdk-core/databasemigrationservice.rb +0 -5
  398. data/lib/aws-sdk-core/datapipeline.rb +0 -5
  399. data/lib/aws-sdk-core/devicefarm.rb +0 -6
  400. data/lib/aws-sdk-core/directconnect.rb +0 -6
  401. data/lib/aws-sdk-core/directoryservice.rb +0 -5
  402. data/lib/aws-sdk-core/dynamodb.rb +0 -40
  403. data/lib/aws-sdk-core/dynamodb/attribute_value.rb +0 -108
  404. data/lib/aws-sdk-core/dynamodbstreams.rb +0 -5
  405. data/lib/aws-sdk-core/ec2.rb +0 -8
  406. data/lib/aws-sdk-core/ecr.rb +0 -5
  407. data/lib/aws-sdk-core/ecs.rb +0 -7
  408. data/lib/aws-sdk-core/efs.rb +0 -5
  409. data/lib/aws-sdk-core/elasticache.rb +0 -7
  410. data/lib/aws-sdk-core/elasticbeanstalk.rb +0 -6
  411. data/lib/aws-sdk-core/elasticloadbalancing.rb +0 -6
  412. data/lib/aws-sdk-core/elasticsearchservice.rb +0 -4
  413. data/lib/aws-sdk-core/elastictranscoder.rb +0 -6
  414. data/lib/aws-sdk-core/empty_structure.rb +0 -3
  415. data/lib/aws-sdk-core/emr.rb +0 -7
  416. data/lib/aws-sdk-core/endpoint_provider.rb +0 -95
  417. data/lib/aws-sdk-core/firehose.rb +0 -4
  418. data/lib/aws-sdk-core/gamelift.rb +0 -5
  419. data/lib/aws-sdk-core/glacier.rb +0 -7
  420. data/lib/aws-sdk-core/iam.rb +0 -8
  421. data/lib/aws-sdk-core/importexport.rb +0 -5
  422. data/lib/aws-sdk-core/inspector.rb +0 -5
  423. data/lib/aws-sdk-core/iot.rb +0 -5
  424. data/lib/aws-sdk-core/iotdataplane.rb +0 -4
  425. data/lib/aws-sdk-core/kinesis.rb +0 -7
  426. data/lib/aws-sdk-core/kms.rb +0 -6
  427. data/lib/aws-sdk-core/lambda.rb +0 -6
  428. data/lib/aws-sdk-core/lambdapreview.rb +0 -5
  429. data/lib/aws-sdk-core/machinelearning.rb +0 -6
  430. data/lib/aws-sdk-core/marketplacecommerceanalytics.rb +0 -5
  431. data/lib/aws-sdk-core/marketplacemetering.rb +0 -5
  432. data/lib/aws-sdk-core/opsworks.rb +0 -8
  433. data/lib/aws-sdk-core/partitions.rb +0 -174
  434. data/lib/aws-sdk-core/partitions/partition.rb +0 -95
  435. data/lib/aws-sdk-core/partitions/partition_list.rb +0 -60
  436. data/lib/aws-sdk-core/partitions/region.rb +0 -78
  437. data/lib/aws-sdk-core/partitions/service.rb +0 -84
  438. data/lib/aws-sdk-core/plugins/api_gateway_header.rb +0 -19
  439. data/lib/aws-sdk-core/plugins/csd_conditional_signing.rb +0 -30
  440. data/lib/aws-sdk-core/plugins/dynamodb_crc32_validation.rb +0 -52
  441. data/lib/aws-sdk-core/plugins/dynamodb_extended_retries.rb +0 -22
  442. data/lib/aws-sdk-core/plugins/dynamodb_simple_attributes.rb +0 -209
  443. data/lib/aws-sdk-core/plugins/ec2_copy_encrypted_snapshot.rb +0 -87
  444. data/lib/aws-sdk-core/plugins/ec2_region_validation.rb +0 -17
  445. data/lib/aws-sdk-core/plugins/glacier_account_id.rb +0 -19
  446. data/lib/aws-sdk-core/plugins/glacier_api_version.rb +0 -19
  447. data/lib/aws-sdk-core/plugins/glacier_checksums.rb +0 -87
  448. data/lib/aws-sdk-core/plugins/machine_learning_predict_endpoint.rb +0 -20
  449. data/lib/aws-sdk-core/plugins/request_signer.rb +0 -138
  450. data/lib/aws-sdk-core/plugins/route_53_id_fix.rb +0 -55
  451. data/lib/aws-sdk-core/plugins/s3_accelerate.rb +0 -73
  452. data/lib/aws-sdk-core/plugins/s3_bucket_dns.rb +0 -86
  453. data/lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb +0 -21
  454. data/lib/aws-sdk-core/plugins/s3_expect_100_continue.rb +0 -27
  455. data/lib/aws-sdk-core/plugins/s3_get_bucket_location_fix.rb +0 -21
  456. data/lib/aws-sdk-core/plugins/s3_http_200_errors.rb +0 -45
  457. data/lib/aws-sdk-core/plugins/s3_location_constraint.rb +0 -31
  458. data/lib/aws-sdk-core/plugins/s3_md5s.rb +0 -50
  459. data/lib/aws-sdk-core/plugins/s3_redirects.rb +0 -37
  460. data/lib/aws-sdk-core/plugins/s3_request_signer.rb +0 -166
  461. data/lib/aws-sdk-core/plugins/s3_sse_cpk.rb +0 -64
  462. data/lib/aws-sdk-core/plugins/s3_url_encoded_keys.rb +0 -92
  463. data/lib/aws-sdk-core/plugins/sqs_md5s.rb +0 -162
  464. data/lib/aws-sdk-core/plugins/sqs_queue_urls.rb +0 -34
  465. data/lib/aws-sdk-core/plugins/swf_read_timeouts.rb +0 -23
  466. data/lib/aws-sdk-core/rds.rb +0 -8
  467. data/lib/aws-sdk-core/redshift.rb +0 -7
  468. data/lib/aws-sdk-core/route53.rb +0 -7
  469. data/lib/aws-sdk-core/route53domains.rb +0 -5
  470. data/lib/aws-sdk-core/s3.rb +0 -26
  471. data/lib/aws-sdk-core/s3/bucket_region_cache.rb +0 -75
  472. data/lib/aws-sdk-core/s3/presigner.rb +0 -113
  473. data/lib/aws-sdk-core/service.rb +0 -4
  474. data/lib/aws-sdk-core/servicecatalog.rb +0 -5
  475. data/lib/aws-sdk-core/ses.rb +0 -7
  476. data/lib/aws-sdk-core/signers/base.rb +0 -31
  477. data/lib/aws-sdk-core/signers/s3.rb +0 -184
  478. data/lib/aws-sdk-core/signers/v2.rb +0 -51
  479. data/lib/aws-sdk-core/signers/v3.rb +0 -34
  480. data/lib/aws-sdk-core/signers/v4.rb +0 -233
  481. data/lib/aws-sdk-core/simpledb.rb +0 -5
  482. data/lib/aws-sdk-core/sns.rb +0 -6
  483. data/lib/aws-sdk-core/sqs.rb +0 -6
  484. data/lib/aws-sdk-core/ssm.rb +0 -6
  485. data/lib/aws-sdk-core/storagegateway.rb +0 -6
  486. data/lib/aws-sdk-core/sts.rb +0 -5
  487. data/lib/aws-sdk-core/support.rb +0 -5
  488. data/lib/aws-sdk-core/swf.rb +0 -5
  489. data/lib/aws-sdk-core/tree_hash.rb +0 -69
  490. data/lib/aws-sdk-core/version.rb +0 -3
  491. data/lib/aws-sdk-core/waf.rb +0 -5
  492. data/lib/aws-sdk-core/waiters/null_provider.rb +0 -12
  493. data/lib/aws-sdk-core/waiters/provider.rb +0 -35
  494. data/lib/aws-sdk-core/workspaces.rb +0 -6
  495. data/lib/seahorse/client/plugins/restful_bindings.rb +0 -127
  496. data/service-models.json +0 -285
@@ -0,0 +1,32 @@
1
+ module Aws
2
+ module STS
3
+ module Plugins
4
+
5
+ class STSRegionalEndpoints < Seahorse::Client::Plugin
6
+
7
+ option(:sts_regional_endpoints,
8
+ default: 'legacy',
9
+ doc_type: String,
10
+ docstring: <<-DOCS) do |cfg|
11
+ Passing in 'regional' to enable regional endpoint for STS for all supported
12
+ regions (except 'aws-global'), defaults to 'legacy' mode, using global endpoint
13
+ for legacy regions.
14
+ DOCS
15
+ resolve_sts_regional_endpoints(cfg)
16
+ end
17
+
18
+ private
19
+
20
+ def self.resolve_sts_regional_endpoints(cfg)
21
+ env_mode = ENV['AWS_STS_REGIONAL_ENDPOINTS']
22
+ env_mode = nil if env_mode == ''
23
+ cfg_mode = Aws.shared_config.sts_regional_endpoints(
24
+ profile: cfg.profile)
25
+ env_mode || cfg_mode || 'legacy'
26
+ end
27
+
28
+ end
29
+
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,67 @@
1
+ require 'aws-sigv4'
2
+
3
+ module Aws
4
+ module STS
5
+ # Allows you to create presigned URLs for STS operations.
6
+ #
7
+ # @example
8
+ #
9
+ # signer = Aws::STS::Presigner.new
10
+ # url = signer.get_caller_identity_presigned_url(
11
+ # headers: {"X-K8s-Aws-Id" => 'my-eks-cluster'}
12
+ # )
13
+ class Presigner
14
+ # @option options [Client] :client Optionally provide an existing
15
+ # STS client
16
+ def initialize(options = {})
17
+ @client = options[:client] || Aws::STS::Client.new
18
+ end
19
+
20
+ # Returns a presigned url for get_caller_identity.
21
+ #
22
+ # @option options [Hash] :headers
23
+ # Headers that should be signed and sent along with the request. All
24
+ # x-amz-* headers must be present during signing. Other headers are
25
+ # optional.
26
+ #
27
+ # @return [String] A presigned url string.
28
+ #
29
+ # @example
30
+ #
31
+ # url = signer.get_caller_identity_presigned_url(
32
+ # headers: {"X-K8s-Aws-Id" => 'my-eks-cluster'},
33
+ # )
34
+ #
35
+ # This can be easily converted to a token used by the EKS service:
36
+ # {https://ruby-doc.org/stdlib-2.3.1/libdoc/base64/rdoc/Base64.html#method-i-encode64}
37
+ # "k8s-aws-v1." + Base64.urlsafe_encode64(url).chomp("==")
38
+ def get_caller_identity_presigned_url(options = {})
39
+ req = @client.build_request(:get_session_token, {})
40
+
41
+ param_list = Aws::Query::ParamList.new
42
+ param_list.set('Action', 'GetCallerIdentity')
43
+ param_list.set('Version', req.context.config.api.version)
44
+ Aws::Query::EC2ParamBuilder.new(param_list)
45
+ .apply(req.context.operation.input, {})
46
+
47
+ signer = Aws::Sigv4::Signer.new(
48
+ service: 'sts',
49
+ region: req.context.config.region,
50
+ credentials_provider: req.context.config.credentials
51
+ )
52
+
53
+ url = Aws::Partitions::EndpointProvider.resolve(
54
+ req.context.config.region, 'sts', 'regional'
55
+ )
56
+ url += "/?#{param_list}"
57
+
58
+ signer.presign_url(
59
+ http_method: 'GET',
60
+ url: url,
61
+ body: '',
62
+ headers: options[:headers]
63
+ ).to_s
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,23 @@
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
+ module Aws::STS
9
+ class Resource
10
+
11
+ # @param options ({})
12
+ # @option options [Client] :client
13
+ def initialize(options = {})
14
+ @client = options[:client] || Client.new(options)
15
+ end
16
+
17
+ # @return [Client]
18
+ def client
19
+ @client
20
+ end
21
+
22
+ end
23
+ end
@@ -0,0 +1,1504 @@
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
+ module Aws::STS
9
+ module Types
10
+
11
+ # @note When making an API call, you may pass AssumeRoleRequest
12
+ # data as a hash:
13
+ #
14
+ # {
15
+ # role_arn: "arnType", # required
16
+ # role_session_name: "roleSessionNameType", # required
17
+ # policy_arns: [
18
+ # {
19
+ # arn: "arnType",
20
+ # },
21
+ # ],
22
+ # policy: "sessionPolicyDocumentType",
23
+ # duration_seconds: 1,
24
+ # tags: [
25
+ # {
26
+ # key: "tagKeyType", # required
27
+ # value: "tagValueType", # required
28
+ # },
29
+ # ],
30
+ # transitive_tag_keys: ["tagKeyType"],
31
+ # external_id: "externalIdType",
32
+ # serial_number: "serialNumberType",
33
+ # token_code: "tokenCodeType",
34
+ # }
35
+ #
36
+ # @!attribute [rw] role_arn
37
+ # The Amazon Resource Name (ARN) of the role to assume.
38
+ # @return [String]
39
+ #
40
+ # @!attribute [rw] role_session_name
41
+ # An identifier for the assumed role session.
42
+ #
43
+ # Use the role session name to uniquely identify a session when the
44
+ # same role is assumed by different principals or for different
45
+ # reasons. In cross-account scenarios, the role session name is
46
+ # visible to, and can be logged by the account that owns the role. The
47
+ # role session name is also used in the ARN of the assumed role
48
+ # principal. This means that subsequent cross-account API requests
49
+ # that use the temporary security credentials will expose the role
50
+ # session name to the external account in their AWS CloudTrail logs.
51
+ #
52
+ # The regex used to validate this parameter is a string of characters
53
+ # consisting of upper- and lower-case alphanumeric characters with no
54
+ # spaces. You can also include underscores or any of the following
55
+ # characters: =,.@-
56
+ # @return [String]
57
+ #
58
+ # @!attribute [rw] policy_arns
59
+ # The Amazon Resource Names (ARNs) of the IAM managed policies that
60
+ # you want to use as managed session policies. The policies must exist
61
+ # in the same account as the role.
62
+ #
63
+ # This parameter is optional. You can provide up to 10 managed policy
64
+ # ARNs. However, the plain text that you use for both inline and
65
+ # managed session policies can't exceed 2,048 characters. For more
66
+ # information about ARNs, see [Amazon Resource Names (ARNs) and AWS
67
+ # Service Namespaces][1] in the AWS General Reference.
68
+ #
69
+ # <note markdown="1"> An AWS conversion compresses the passed session policies and session
70
+ # tags into a packed binary format that has a separate limit. Your
71
+ # request can fail for this limit even if your plain text meets the
72
+ # other requirements. The `PackedPolicySize` response element
73
+ # indicates by percentage how close the policies and tags for your
74
+ # request are to the upper size limit.
75
+ #
76
+ # </note>
77
+ #
78
+ # Passing policies to this operation returns new temporary
79
+ # credentials. The resulting session's permissions are the
80
+ # intersection of the role's identity-based policy and the session
81
+ # policies. You can use the role's temporary credentials in
82
+ # subsequent AWS API calls to access resources in the account that
83
+ # owns the role. You cannot use session policies to grant more
84
+ # permissions than those allowed by the identity-based policy of the
85
+ # role that is being assumed. For more information, see [Session
86
+ # Policies][2] in the *IAM User Guide*.
87
+ #
88
+ #
89
+ #
90
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
91
+ # [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
92
+ # @return [Array<Types::PolicyDescriptorType>]
93
+ #
94
+ # @!attribute [rw] policy
95
+ # An IAM policy in JSON format that you want to use as an inline
96
+ # session policy.
97
+ #
98
+ # This parameter is optional. Passing policies to this operation
99
+ # returns new temporary credentials. The resulting session's
100
+ # permissions are the intersection of the role's identity-based
101
+ # policy and the session policies. You can use the role's temporary
102
+ # credentials in subsequent AWS API calls to access resources in the
103
+ # account that owns the role. You cannot use session policies to grant
104
+ # more permissions than those allowed by the identity-based policy of
105
+ # the role that is being assumed. For more information, see [Session
106
+ # Policies][1] in the *IAM User Guide*.
107
+ #
108
+ # The plain text that you use for both inline and managed session
109
+ # policies can't exceed 2,048 characters. The JSON policy characters
110
+ # can be any ASCII character from the space character to the end of
111
+ # the valid character list (\\u0020 through \\u00FF). It can also
112
+ # include the tab (\\u0009), linefeed (\\u000A), and carriage return
113
+ # (\\u000D) characters.
114
+ #
115
+ # <note markdown="1"> An AWS conversion compresses the passed session policies and session
116
+ # tags into a packed binary format that has a separate limit. Your
117
+ # request can fail for this limit even if your plain text meets the
118
+ # other requirements. The `PackedPolicySize` response element
119
+ # indicates by percentage how close the policies and tags for your
120
+ # request are to the upper size limit.
121
+ #
122
+ # </note>
123
+ #
124
+ #
125
+ #
126
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
127
+ # @return [String]
128
+ #
129
+ # @!attribute [rw] duration_seconds
130
+ # The duration, in seconds, of the role session. The value can range
131
+ # from 900 seconds (15 minutes) up to the maximum session duration
132
+ # setting for the role. This setting can have a value from 1 hour to
133
+ # 12 hours. If you specify a value higher than this setting, the
134
+ # operation fails. For example, if you specify a session duration of
135
+ # 12 hours, but your administrator set the maximum session duration to
136
+ # 6 hours, your operation fails. To learn how to view the maximum
137
+ # value for your role, see [View the Maximum Session Duration Setting
138
+ # for a Role][1] in the *IAM User Guide*.
139
+ #
140
+ # By default, the value is set to `3600` seconds.
141
+ #
142
+ # <note markdown="1"> The `DurationSeconds` parameter is separate from the duration of a
143
+ # console session that you might request using the returned
144
+ # credentials. The request to the federation endpoint for a console
145
+ # sign-in token takes a `SessionDuration` parameter that specifies the
146
+ # maximum length of the console session. For more information, see
147
+ # [Creating a URL that Enables Federated Users to Access the AWS
148
+ # Management Console][2] in the *IAM User Guide*.
149
+ #
150
+ # </note>
151
+ #
152
+ #
153
+ #
154
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session
155
+ # [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html
156
+ # @return [Integer]
157
+ #
158
+ # @!attribute [rw] tags
159
+ # A list of session tags that you want to pass. Each session tag
160
+ # consists of a key name and an associated value. For more information
161
+ # about session tags, see [Tagging AWS STS Sessions][1] in the *IAM
162
+ # User Guide*.
163
+ #
164
+ # This parameter is optional. You can pass up to 50 session tags. The
165
+ # plain text session tag keys can’t exceed 128 characters, and the
166
+ # values can’t exceed 256 characters. For these and additional limits,
167
+ # see [IAM and STS Character Limits][2] in the *IAM User Guide*.
168
+ #
169
+ # <note markdown="1"> An AWS conversion compresses the passed session policies and session
170
+ # tags into a packed binary format that has a separate limit. Your
171
+ # request can fail for this limit even if your plain text meets the
172
+ # other requirements. The `PackedPolicySize` response element
173
+ # indicates by percentage how close the policies and tags for your
174
+ # request are to the upper size limit.
175
+ #
176
+ # </note>
177
+ #
178
+ # You can pass a session tag with the same key as a tag that is
179
+ # already attached to the role. When you do, session tags override a
180
+ # role tag with the same key.
181
+ #
182
+ # Tag key–value pairs are not case sensitive, but case is preserved.
183
+ # This means that you cannot have separate `Department` and
184
+ # `department` tag keys. Assume that the role has the
185
+ # `Department`=`Marketing` tag and you pass the
186
+ # `department`=`engineering` session tag. `Department` and
187
+ # `department` are not saved as separate tags, and the session tag
188
+ # passed in the request takes precedence over the role tag.
189
+ #
190
+ # Additionally, if you used temporary credentials to perform this
191
+ # operation, the new session inherits any transitive session tags from
192
+ # the calling session. If you pass a session tag with the same key as
193
+ # an inherited tag, the operation fails. To view the inherited tags
194
+ # for a session, see the AWS CloudTrail logs. For more information,
195
+ # see [Viewing Session Tags in CloudTrail][3] in the *IAM User Guide*.
196
+ #
197
+ #
198
+ #
199
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html
200
+ # [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length
201
+ # [3]: https://docs.aws.amazon.com/IAM/latest/UserGuide/session-tags.html#id_session-tags_ctlogs
202
+ # @return [Array<Types::Tag>]
203
+ #
204
+ # @!attribute [rw] transitive_tag_keys
205
+ # A list of keys for session tags that you want to set as transitive.
206
+ # If you set a tag key as transitive, the corresponding key and value
207
+ # passes to subsequent sessions in a role chain. For more information,
208
+ # see [Chaining Roles with Session Tags][1] in the *IAM User Guide*.
209
+ #
210
+ # This parameter is optional. When you set session tags as transitive,
211
+ # the session policy and session tags packed binary limit is not
212
+ # affected.
213
+ #
214
+ # If you choose not to specify a transitive tag key, then no tags are
215
+ # passed from this session to any subsequent sessions.
216
+ #
217
+ #
218
+ #
219
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining
220
+ # @return [Array<String>]
221
+ #
222
+ # @!attribute [rw] external_id
223
+ # A unique identifier that might be required when you assume a role in
224
+ # another account. If the administrator of the account to which the
225
+ # role belongs provided you with an external ID, then provide that
226
+ # value in the `ExternalId` parameter. This value can be any string,
227
+ # such as a passphrase or account number. A cross-account role is
228
+ # usually set up to trust everyone in an account. Therefore, the
229
+ # administrator of the trusting account might send an external ID to
230
+ # the administrator of the trusted account. That way, only someone
231
+ # with the ID can assume the role, rather than everyone in the
232
+ # account. For more information about the external ID, see [How to Use
233
+ # an External ID When Granting Access to Your AWS Resources to a Third
234
+ # Party][1] in the *IAM User Guide*.
235
+ #
236
+ # The regex used to validate this parameter is a string of characters
237
+ # consisting of upper- and lower-case alphanumeric characters with no
238
+ # spaces. You can also include underscores or any of the following
239
+ # characters: =,.@:/-
240
+ #
241
+ #
242
+ #
243
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html
244
+ # @return [String]
245
+ #
246
+ # @!attribute [rw] serial_number
247
+ # The identification number of the MFA device that is associated with
248
+ # the user who is making the `AssumeRole` call. Specify this value if
249
+ # the trust policy of the role being assumed includes a condition that
250
+ # requires MFA authentication. The value is either the serial number
251
+ # for a hardware device (such as `GAHT12345678`) or an Amazon Resource
252
+ # Name (ARN) for a virtual device (such as
253
+ # `arn:aws:iam::123456789012:mfa/user`).
254
+ #
255
+ # The regex used to validate this parameter is a string of characters
256
+ # consisting of upper- and lower-case alphanumeric characters with no
257
+ # spaces. You can also include underscores or any of the following
258
+ # characters: =,.@-
259
+ # @return [String]
260
+ #
261
+ # @!attribute [rw] token_code
262
+ # The value provided by the MFA device, if the trust policy of the
263
+ # role being assumed requires MFA (that is, if the policy includes a
264
+ # condition that tests for MFA). If the role being assumed requires
265
+ # MFA and if the `TokenCode` value is missing or expired, the
266
+ # `AssumeRole` call returns an "access denied" error.
267
+ #
268
+ # The format for this parameter, as described by its regex pattern, is
269
+ # a sequence of six numeric digits.
270
+ # @return [String]
271
+ #
272
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleRequest AWS API Documentation
273
+ #
274
+ class AssumeRoleRequest < Struct.new(
275
+ :role_arn,
276
+ :role_session_name,
277
+ :policy_arns,
278
+ :policy,
279
+ :duration_seconds,
280
+ :tags,
281
+ :transitive_tag_keys,
282
+ :external_id,
283
+ :serial_number,
284
+ :token_code)
285
+ include Aws::Structure
286
+ end
287
+
288
+ # Contains the response to a successful AssumeRole request, including
289
+ # temporary AWS credentials that can be used to make AWS requests.
290
+ #
291
+ # @!attribute [rw] credentials
292
+ # The temporary security credentials, which include an access key ID,
293
+ # a secret access key, and a security (or session) token.
294
+ #
295
+ # <note markdown="1"> The size of the security token that STS API operations return is not
296
+ # fixed. We strongly recommend that you make no assumptions about the
297
+ # maximum size.
298
+ #
299
+ # </note>
300
+ # @return [Types::Credentials]
301
+ #
302
+ # @!attribute [rw] assumed_role_user
303
+ # The Amazon Resource Name (ARN) and the assumed role ID, which are
304
+ # identifiers that you can use to refer to the resulting temporary
305
+ # security credentials. For example, you can reference these
306
+ # credentials as a principal in a resource-based policy by using the
307
+ # ARN or assumed role ID. The ARN and ID include the `RoleSessionName`
308
+ # that you specified when you called `AssumeRole`.
309
+ # @return [Types::AssumedRoleUser]
310
+ #
311
+ # @!attribute [rw] packed_policy_size
312
+ # A percentage value that indicates the packed size of the session
313
+ # policies and session tags combined passed in the request. The
314
+ # request fails if the packed size is greater than 100 percent, which
315
+ # means the policies and tags exceeded the allowed space.
316
+ # @return [Integer]
317
+ #
318
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleResponse AWS API Documentation
319
+ #
320
+ class AssumeRoleResponse < Struct.new(
321
+ :credentials,
322
+ :assumed_role_user,
323
+ :packed_policy_size)
324
+ include Aws::Structure
325
+ end
326
+
327
+ # @note When making an API call, you may pass AssumeRoleWithSAMLRequest
328
+ # data as a hash:
329
+ #
330
+ # {
331
+ # role_arn: "arnType", # required
332
+ # principal_arn: "arnType", # required
333
+ # saml_assertion: "SAMLAssertionType", # required
334
+ # policy_arns: [
335
+ # {
336
+ # arn: "arnType",
337
+ # },
338
+ # ],
339
+ # policy: "sessionPolicyDocumentType",
340
+ # duration_seconds: 1,
341
+ # }
342
+ #
343
+ # @!attribute [rw] role_arn
344
+ # The Amazon Resource Name (ARN) of the role that the caller is
345
+ # assuming.
346
+ # @return [String]
347
+ #
348
+ # @!attribute [rw] principal_arn
349
+ # The Amazon Resource Name (ARN) of the SAML provider in IAM that
350
+ # describes the IdP.
351
+ # @return [String]
352
+ #
353
+ # @!attribute [rw] saml_assertion
354
+ # The base-64 encoded SAML authentication response provided by the
355
+ # IdP.
356
+ #
357
+ # For more information, see [Configuring a Relying Party and Adding
358
+ # Claims][1] in the *IAM User Guide*.
359
+ #
360
+ #
361
+ #
362
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/create-role-saml-IdP-tasks.html
363
+ # @return [String]
364
+ #
365
+ # @!attribute [rw] policy_arns
366
+ # The Amazon Resource Names (ARNs) of the IAM managed policies that
367
+ # you want to use as managed session policies. The policies must exist
368
+ # in the same account as the role.
369
+ #
370
+ # This parameter is optional. You can provide up to 10 managed policy
371
+ # ARNs. However, the plain text that you use for both inline and
372
+ # managed session policies can't exceed 2,048 characters. For more
373
+ # information about ARNs, see [Amazon Resource Names (ARNs) and AWS
374
+ # Service Namespaces][1] in the AWS General Reference.
375
+ #
376
+ # <note markdown="1"> An AWS conversion compresses the passed session policies and session
377
+ # tags into a packed binary format that has a separate limit. Your
378
+ # request can fail for this limit even if your plain text meets the
379
+ # other requirements. The `PackedPolicySize` response element
380
+ # indicates by percentage how close the policies and tags for your
381
+ # request are to the upper size limit.
382
+ #
383
+ # </note>
384
+ #
385
+ # Passing policies to this operation returns new temporary
386
+ # credentials. The resulting session's permissions are the
387
+ # intersection of the role's identity-based policy and the session
388
+ # policies. You can use the role's temporary credentials in
389
+ # subsequent AWS API calls to access resources in the account that
390
+ # owns the role. You cannot use session policies to grant more
391
+ # permissions than those allowed by the identity-based policy of the
392
+ # role that is being assumed. For more information, see [Session
393
+ # Policies][2] in the *IAM User Guide*.
394
+ #
395
+ #
396
+ #
397
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
398
+ # [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
399
+ # @return [Array<Types::PolicyDescriptorType>]
400
+ #
401
+ # @!attribute [rw] policy
402
+ # An IAM policy in JSON format that you want to use as an inline
403
+ # session policy.
404
+ #
405
+ # This parameter is optional. Passing policies to this operation
406
+ # returns new temporary credentials. The resulting session's
407
+ # permissions are the intersection of the role's identity-based
408
+ # policy and the session policies. You can use the role's temporary
409
+ # credentials in subsequent AWS API calls to access resources in the
410
+ # account that owns the role. You cannot use session policies to grant
411
+ # more permissions than those allowed by the identity-based policy of
412
+ # the role that is being assumed. For more information, see [Session
413
+ # Policies][1] in the *IAM User Guide*.
414
+ #
415
+ # The plain text that you use for both inline and managed session
416
+ # policies can't exceed 2,048 characters. The JSON policy characters
417
+ # can be any ASCII character from the space character to the end of
418
+ # the valid character list (\\u0020 through \\u00FF). It can also
419
+ # include the tab (\\u0009), linefeed (\\u000A), and carriage return
420
+ # (\\u000D) characters.
421
+ #
422
+ # <note markdown="1"> An AWS conversion compresses the passed session policies and session
423
+ # tags into a packed binary format that has a separate limit. Your
424
+ # request can fail for this limit even if your plain text meets the
425
+ # other requirements. The `PackedPolicySize` response element
426
+ # indicates by percentage how close the policies and tags for your
427
+ # request are to the upper size limit.
428
+ #
429
+ # </note>
430
+ #
431
+ #
432
+ #
433
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
434
+ # @return [String]
435
+ #
436
+ # @!attribute [rw] duration_seconds
437
+ # The duration, in seconds, of the role session. Your role session
438
+ # lasts for the duration that you specify for the `DurationSeconds`
439
+ # parameter, or until the time specified in the SAML authentication
440
+ # response's `SessionNotOnOrAfter` value, whichever is shorter. You
441
+ # can provide a `DurationSeconds` value from 900 seconds (15 minutes)
442
+ # up to the maximum session duration setting for the role. This
443
+ # setting can have a value from 1 hour to 12 hours. If you specify a
444
+ # value higher than this setting, the operation fails. For example, if
445
+ # you specify a session duration of 12 hours, but your administrator
446
+ # set the maximum session duration to 6 hours, your operation fails.
447
+ # To learn how to view the maximum value for your role, see [View the
448
+ # Maximum Session Duration Setting for a Role][1] in the *IAM User
449
+ # Guide*.
450
+ #
451
+ # By default, the value is set to `3600` seconds.
452
+ #
453
+ # <note markdown="1"> The `DurationSeconds` parameter is separate from the duration of a
454
+ # console session that you might request using the returned
455
+ # credentials. The request to the federation endpoint for a console
456
+ # sign-in token takes a `SessionDuration` parameter that specifies the
457
+ # maximum length of the console session. For more information, see
458
+ # [Creating a URL that Enables Federated Users to Access the AWS
459
+ # Management Console][2] in the *IAM User Guide*.
460
+ #
461
+ # </note>
462
+ #
463
+ #
464
+ #
465
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session
466
+ # [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html
467
+ # @return [Integer]
468
+ #
469
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithSAMLRequest AWS API Documentation
470
+ #
471
+ class AssumeRoleWithSAMLRequest < Struct.new(
472
+ :role_arn,
473
+ :principal_arn,
474
+ :saml_assertion,
475
+ :policy_arns,
476
+ :policy,
477
+ :duration_seconds)
478
+ include Aws::Structure
479
+ end
480
+
481
+ # Contains the response to a successful AssumeRoleWithSAML request,
482
+ # including temporary AWS credentials that can be used to make AWS
483
+ # requests.
484
+ #
485
+ # @!attribute [rw] credentials
486
+ # The temporary security credentials, which include an access key ID,
487
+ # a secret access key, and a security (or session) token.
488
+ #
489
+ # <note markdown="1"> The size of the security token that STS API operations return is not
490
+ # fixed. We strongly recommend that you make no assumptions about the
491
+ # maximum size.
492
+ #
493
+ # </note>
494
+ # @return [Types::Credentials]
495
+ #
496
+ # @!attribute [rw] assumed_role_user
497
+ # The identifiers for the temporary security credentials that the
498
+ # operation returns.
499
+ # @return [Types::AssumedRoleUser]
500
+ #
501
+ # @!attribute [rw] packed_policy_size
502
+ # A percentage value that indicates the packed size of the session
503
+ # policies and session tags combined passed in the request. The
504
+ # request fails if the packed size is greater than 100 percent, which
505
+ # means the policies and tags exceeded the allowed space.
506
+ # @return [Integer]
507
+ #
508
+ # @!attribute [rw] subject
509
+ # The value of the `NameID` element in the `Subject` element of the
510
+ # SAML assertion.
511
+ # @return [String]
512
+ #
513
+ # @!attribute [rw] subject_type
514
+ # The format of the name ID, as defined by the `Format` attribute in
515
+ # the `NameID` element of the SAML assertion. Typical examples of the
516
+ # format are `transient` or `persistent`.
517
+ #
518
+ # If the format includes the prefix
519
+ # `urn:oasis:names:tc:SAML:2.0:nameid-format`, that prefix is removed.
520
+ # For example, `urn:oasis:names:tc:SAML:2.0:nameid-format:transient`
521
+ # is returned as `transient`. If the format includes any other prefix,
522
+ # the format is returned with no modifications.
523
+ # @return [String]
524
+ #
525
+ # @!attribute [rw] issuer
526
+ # The value of the `Issuer` element of the SAML assertion.
527
+ # @return [String]
528
+ #
529
+ # @!attribute [rw] audience
530
+ # The value of the `Recipient` attribute of the
531
+ # `SubjectConfirmationData` element of the SAML assertion.
532
+ # @return [String]
533
+ #
534
+ # @!attribute [rw] name_qualifier
535
+ # A hash value based on the concatenation of the `Issuer` response
536
+ # value, the AWS account ID, and the friendly name (the last part of
537
+ # the ARN) of the SAML provider in IAM. The combination of
538
+ # `NameQualifier` and `Subject` can be used to uniquely identify a
539
+ # federated user.
540
+ #
541
+ # The following pseudocode shows how the hash value is calculated:
542
+ #
543
+ # `BASE64 ( SHA1 ( "https://example.com/saml" + "123456789012" +
544
+ # "/MySAMLIdP" ) )`
545
+ # @return [String]
546
+ #
547
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithSAMLResponse AWS API Documentation
548
+ #
549
+ class AssumeRoleWithSAMLResponse < Struct.new(
550
+ :credentials,
551
+ :assumed_role_user,
552
+ :packed_policy_size,
553
+ :subject,
554
+ :subject_type,
555
+ :issuer,
556
+ :audience,
557
+ :name_qualifier)
558
+ include Aws::Structure
559
+ end
560
+
561
+ # @note When making an API call, you may pass AssumeRoleWithWebIdentityRequest
562
+ # data as a hash:
563
+ #
564
+ # {
565
+ # role_arn: "arnType", # required
566
+ # role_session_name: "roleSessionNameType", # required
567
+ # web_identity_token: "clientTokenType", # required
568
+ # provider_id: "urlType",
569
+ # policy_arns: [
570
+ # {
571
+ # arn: "arnType",
572
+ # },
573
+ # ],
574
+ # policy: "sessionPolicyDocumentType",
575
+ # duration_seconds: 1,
576
+ # }
577
+ #
578
+ # @!attribute [rw] role_arn
579
+ # The Amazon Resource Name (ARN) of the role that the caller is
580
+ # assuming.
581
+ # @return [String]
582
+ #
583
+ # @!attribute [rw] role_session_name
584
+ # An identifier for the assumed role session. Typically, you pass the
585
+ # name or identifier that is associated with the user who is using
586
+ # your application. That way, the temporary security credentials that
587
+ # your application will use are associated with that user. This
588
+ # session name is included as part of the ARN and assumed role ID in
589
+ # the `AssumedRoleUser` response element.
590
+ #
591
+ # The regex used to validate this parameter is a string of characters
592
+ # consisting of upper- and lower-case alphanumeric characters with no
593
+ # spaces. You can also include underscores or any of the following
594
+ # characters: =,.@-
595
+ # @return [String]
596
+ #
597
+ # @!attribute [rw] web_identity_token
598
+ # The OAuth 2.0 access token or OpenID Connect ID token that is
599
+ # provided by the identity provider. Your application must get this
600
+ # token by authenticating the user who is using your application with
601
+ # a web identity provider before the application makes an
602
+ # `AssumeRoleWithWebIdentity` call.
603
+ # @return [String]
604
+ #
605
+ # @!attribute [rw] provider_id
606
+ # The fully qualified host component of the domain name of the
607
+ # identity provider.
608
+ #
609
+ # Specify this value only for OAuth 2.0 access tokens. Currently
610
+ # `www.amazon.com` and `graph.facebook.com` are the only supported
611
+ # identity providers for OAuth 2.0 access tokens. Do not include URL
612
+ # schemes and port numbers.
613
+ #
614
+ # Do not specify this value for OpenID Connect ID tokens.
615
+ # @return [String]
616
+ #
617
+ # @!attribute [rw] policy_arns
618
+ # The Amazon Resource Names (ARNs) of the IAM managed policies that
619
+ # you want to use as managed session policies. The policies must exist
620
+ # in the same account as the role.
621
+ #
622
+ # This parameter is optional. You can provide up to 10 managed policy
623
+ # ARNs. However, the plain text that you use for both inline and
624
+ # managed session policies can't exceed 2,048 characters. For more
625
+ # information about ARNs, see [Amazon Resource Names (ARNs) and AWS
626
+ # Service Namespaces][1] in the AWS General Reference.
627
+ #
628
+ # <note markdown="1"> An AWS conversion compresses the passed session policies and session
629
+ # tags into a packed binary format that has a separate limit. Your
630
+ # request can fail for this limit even if your plain text meets the
631
+ # other requirements. The `PackedPolicySize` response element
632
+ # indicates by percentage how close the policies and tags for your
633
+ # request are to the upper size limit.
634
+ #
635
+ # </note>
636
+ #
637
+ # Passing policies to this operation returns new temporary
638
+ # credentials. The resulting session's permissions are the
639
+ # intersection of the role's identity-based policy and the session
640
+ # policies. You can use the role's temporary credentials in
641
+ # subsequent AWS API calls to access resources in the account that
642
+ # owns the role. You cannot use session policies to grant more
643
+ # permissions than those allowed by the identity-based policy of the
644
+ # role that is being assumed. For more information, see [Session
645
+ # Policies][2] in the *IAM User Guide*.
646
+ #
647
+ #
648
+ #
649
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
650
+ # [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
651
+ # @return [Array<Types::PolicyDescriptorType>]
652
+ #
653
+ # @!attribute [rw] policy
654
+ # An IAM policy in JSON format that you want to use as an inline
655
+ # session policy.
656
+ #
657
+ # This parameter is optional. Passing policies to this operation
658
+ # returns new temporary credentials. The resulting session's
659
+ # permissions are the intersection of the role's identity-based
660
+ # policy and the session policies. You can use the role's temporary
661
+ # credentials in subsequent AWS API calls to access resources in the
662
+ # account that owns the role. You cannot use session policies to grant
663
+ # more permissions than those allowed by the identity-based policy of
664
+ # the role that is being assumed. For more information, see [Session
665
+ # Policies][1] in the *IAM User Guide*.
666
+ #
667
+ # The plain text that you use for both inline and managed session
668
+ # policies can't exceed 2,048 characters. The JSON policy characters
669
+ # can be any ASCII character from the space character to the end of
670
+ # the valid character list (\\u0020 through \\u00FF). It can also
671
+ # include the tab (\\u0009), linefeed (\\u000A), and carriage return
672
+ # (\\u000D) characters.
673
+ #
674
+ # <note markdown="1"> An AWS conversion compresses the passed session policies and session
675
+ # tags into a packed binary format that has a separate limit. Your
676
+ # request can fail for this limit even if your plain text meets the
677
+ # other requirements. The `PackedPolicySize` response element
678
+ # indicates by percentage how close the policies and tags for your
679
+ # request are to the upper size limit.
680
+ #
681
+ # </note>
682
+ #
683
+ #
684
+ #
685
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
686
+ # @return [String]
687
+ #
688
+ # @!attribute [rw] duration_seconds
689
+ # The duration, in seconds, of the role session. The value can range
690
+ # from 900 seconds (15 minutes) up to the maximum session duration
691
+ # setting for the role. This setting can have a value from 1 hour to
692
+ # 12 hours. If you specify a value higher than this setting, the
693
+ # operation fails. For example, if you specify a session duration of
694
+ # 12 hours, but your administrator set the maximum session duration to
695
+ # 6 hours, your operation fails. To learn how to view the maximum
696
+ # value for your role, see [View the Maximum Session Duration Setting
697
+ # for a Role][1] in the *IAM User Guide*.
698
+ #
699
+ # By default, the value is set to `3600` seconds.
700
+ #
701
+ # <note markdown="1"> The `DurationSeconds` parameter is separate from the duration of a
702
+ # console session that you might request using the returned
703
+ # credentials. The request to the federation endpoint for a console
704
+ # sign-in token takes a `SessionDuration` parameter that specifies the
705
+ # maximum length of the console session. For more information, see
706
+ # [Creating a URL that Enables Federated Users to Access the AWS
707
+ # Management Console][2] in the *IAM User Guide*.
708
+ #
709
+ # </note>
710
+ #
711
+ #
712
+ #
713
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session
714
+ # [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html
715
+ # @return [Integer]
716
+ #
717
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithWebIdentityRequest AWS API Documentation
718
+ #
719
+ class AssumeRoleWithWebIdentityRequest < Struct.new(
720
+ :role_arn,
721
+ :role_session_name,
722
+ :web_identity_token,
723
+ :provider_id,
724
+ :policy_arns,
725
+ :policy,
726
+ :duration_seconds)
727
+ include Aws::Structure
728
+ end
729
+
730
+ # Contains the response to a successful AssumeRoleWithWebIdentity
731
+ # request, including temporary AWS credentials that can be used to make
732
+ # AWS requests.
733
+ #
734
+ # @!attribute [rw] credentials
735
+ # The temporary security credentials, which include an access key ID,
736
+ # a secret access key, and a security token.
737
+ #
738
+ # <note markdown="1"> The size of the security token that STS API operations return is not
739
+ # fixed. We strongly recommend that you make no assumptions about the
740
+ # maximum size.
741
+ #
742
+ # </note>
743
+ # @return [Types::Credentials]
744
+ #
745
+ # @!attribute [rw] subject_from_web_identity_token
746
+ # The unique user identifier that is returned by the identity
747
+ # provider. This identifier is associated with the `WebIdentityToken`
748
+ # that was submitted with the `AssumeRoleWithWebIdentity` call. The
749
+ # identifier is typically unique to the user and the application that
750
+ # acquired the `WebIdentityToken` (pairwise identifier). For OpenID
751
+ # Connect ID tokens, this field contains the value returned by the
752
+ # identity provider as the token's `sub` (Subject) claim.
753
+ # @return [String]
754
+ #
755
+ # @!attribute [rw] assumed_role_user
756
+ # The Amazon Resource Name (ARN) and the assumed role ID, which are
757
+ # identifiers that you can use to refer to the resulting temporary
758
+ # security credentials. For example, you can reference these
759
+ # credentials as a principal in a resource-based policy by using the
760
+ # ARN or assumed role ID. The ARN and ID include the `RoleSessionName`
761
+ # that you specified when you called `AssumeRole`.
762
+ # @return [Types::AssumedRoleUser]
763
+ #
764
+ # @!attribute [rw] packed_policy_size
765
+ # A percentage value that indicates the packed size of the session
766
+ # policies and session tags combined passed in the request. The
767
+ # request fails if the packed size is greater than 100 percent, which
768
+ # means the policies and tags exceeded the allowed space.
769
+ # @return [Integer]
770
+ #
771
+ # @!attribute [rw] provider
772
+ # The issuing authority of the web identity token presented. For
773
+ # OpenID Connect ID tokens, this contains the value of the `iss`
774
+ # field. For OAuth 2.0 access tokens, this contains the value of the
775
+ # `ProviderId` parameter that was passed in the
776
+ # `AssumeRoleWithWebIdentity` request.
777
+ # @return [String]
778
+ #
779
+ # @!attribute [rw] audience
780
+ # The intended audience (also known as client ID) of the web identity
781
+ # token. This is traditionally the client identifier issued to the
782
+ # application that requested the web identity token.
783
+ # @return [String]
784
+ #
785
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithWebIdentityResponse AWS API Documentation
786
+ #
787
+ class AssumeRoleWithWebIdentityResponse < Struct.new(
788
+ :credentials,
789
+ :subject_from_web_identity_token,
790
+ :assumed_role_user,
791
+ :packed_policy_size,
792
+ :provider,
793
+ :audience)
794
+ include Aws::Structure
795
+ end
796
+
797
+ # The identifiers for the temporary security credentials that the
798
+ # operation returns.
799
+ #
800
+ # @!attribute [rw] assumed_role_id
801
+ # A unique identifier that contains the role ID and the role session
802
+ # name of the role that is being assumed. The role ID is generated by
803
+ # AWS when the role is created.
804
+ # @return [String]
805
+ #
806
+ # @!attribute [rw] arn
807
+ # The ARN of the temporary security credentials that are returned from
808
+ # the AssumeRole action. For more information about ARNs and how to
809
+ # use them in policies, see [IAM Identifiers][1] in the *IAM User
810
+ # Guide*.
811
+ #
812
+ #
813
+ #
814
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html
815
+ # @return [String]
816
+ #
817
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumedRoleUser AWS API Documentation
818
+ #
819
+ class AssumedRoleUser < Struct.new(
820
+ :assumed_role_id,
821
+ :arn)
822
+ include Aws::Structure
823
+ end
824
+
825
+ # AWS credentials for API authentication.
826
+ #
827
+ # @!attribute [rw] access_key_id
828
+ # The access key ID that identifies the temporary security
829
+ # credentials.
830
+ # @return [String]
831
+ #
832
+ # @!attribute [rw] secret_access_key
833
+ # The secret access key that can be used to sign requests.
834
+ # @return [String]
835
+ #
836
+ # @!attribute [rw] session_token
837
+ # The token that users must pass to the service API to use the
838
+ # temporary credentials.
839
+ # @return [String]
840
+ #
841
+ # @!attribute [rw] expiration
842
+ # The date on which the current credentials expire.
843
+ # @return [Time]
844
+ #
845
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/Credentials AWS API Documentation
846
+ #
847
+ class Credentials < Struct.new(
848
+ :access_key_id,
849
+ :secret_access_key,
850
+ :session_token,
851
+ :expiration)
852
+ include Aws::Structure
853
+ end
854
+
855
+ # @note When making an API call, you may pass DecodeAuthorizationMessageRequest
856
+ # data as a hash:
857
+ #
858
+ # {
859
+ # encoded_message: "encodedMessageType", # required
860
+ # }
861
+ #
862
+ # @!attribute [rw] encoded_message
863
+ # The encoded message that was returned with the response.
864
+ # @return [String]
865
+ #
866
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/DecodeAuthorizationMessageRequest AWS API Documentation
867
+ #
868
+ class DecodeAuthorizationMessageRequest < Struct.new(
869
+ :encoded_message)
870
+ include Aws::Structure
871
+ end
872
+
873
+ # A document that contains additional information about the
874
+ # authorization status of a request from an encoded message that is
875
+ # returned in response to an AWS request.
876
+ #
877
+ # @!attribute [rw] decoded_message
878
+ # An XML document that contains the decoded message.
879
+ # @return [String]
880
+ #
881
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/DecodeAuthorizationMessageResponse AWS API Documentation
882
+ #
883
+ class DecodeAuthorizationMessageResponse < Struct.new(
884
+ :decoded_message)
885
+ include Aws::Structure
886
+ end
887
+
888
+ # The web identity token that was passed is expired or is not valid. Get
889
+ # a new identity token from the identity provider and then retry the
890
+ # request.
891
+ #
892
+ # @!attribute [rw] message
893
+ # @return [String]
894
+ #
895
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/ExpiredTokenException AWS API Documentation
896
+ #
897
+ class ExpiredTokenException < Struct.new(
898
+ :message)
899
+ include Aws::Structure
900
+ end
901
+
902
+ # Identifiers for the federated user that is associated with the
903
+ # credentials.
904
+ #
905
+ # @!attribute [rw] federated_user_id
906
+ # The string that identifies the federated user associated with the
907
+ # credentials, similar to the unique ID of an IAM user.
908
+ # @return [String]
909
+ #
910
+ # @!attribute [rw] arn
911
+ # The ARN that specifies the federated user that is associated with
912
+ # the credentials. For more information about ARNs and how to use them
913
+ # in policies, see [IAM Identifiers][1] in the *IAM User Guide*.
914
+ #
915
+ #
916
+ #
917
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html
918
+ # @return [String]
919
+ #
920
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/FederatedUser AWS API Documentation
921
+ #
922
+ class FederatedUser < Struct.new(
923
+ :federated_user_id,
924
+ :arn)
925
+ include Aws::Structure
926
+ end
927
+
928
+ # @note When making an API call, you may pass GetAccessKeyInfoRequest
929
+ # data as a hash:
930
+ #
931
+ # {
932
+ # access_key_id: "accessKeyIdType", # required
933
+ # }
934
+ #
935
+ # @!attribute [rw] access_key_id
936
+ # The identifier of an access key.
937
+ #
938
+ # This parameter allows (through its regex pattern) a string of
939
+ # characters that can consist of any upper- or lowercase letter or
940
+ # digit.
941
+ # @return [String]
942
+ #
943
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetAccessKeyInfoRequest AWS API Documentation
944
+ #
945
+ class GetAccessKeyInfoRequest < Struct.new(
946
+ :access_key_id)
947
+ include Aws::Structure
948
+ end
949
+
950
+ # @!attribute [rw] account
951
+ # The number used to identify the AWS account.
952
+ # @return [String]
953
+ #
954
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetAccessKeyInfoResponse AWS API Documentation
955
+ #
956
+ class GetAccessKeyInfoResponse < Struct.new(
957
+ :account)
958
+ include Aws::Structure
959
+ end
960
+
961
+ # @api private
962
+ #
963
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetCallerIdentityRequest AWS API Documentation
964
+ #
965
+ class GetCallerIdentityRequest < Aws::EmptyStructure; end
966
+
967
+ # Contains the response to a successful GetCallerIdentity request,
968
+ # including information about the entity making the request.
969
+ #
970
+ # @!attribute [rw] user_id
971
+ # The unique identifier of the calling entity. The exact value depends
972
+ # on the type of entity that is making the call. The values returned
973
+ # are those listed in the **aws:userid** column in the [Principal
974
+ # table][1] found on the **Policy Variables** reference page in the
975
+ # *IAM User Guide*.
976
+ #
977
+ #
978
+ #
979
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_variables.html#principaltable
980
+ # @return [String]
981
+ #
982
+ # @!attribute [rw] account
983
+ # The AWS account ID number of the account that owns or contains the
984
+ # calling entity.
985
+ # @return [String]
986
+ #
987
+ # @!attribute [rw] arn
988
+ # The AWS ARN associated with the calling entity.
989
+ # @return [String]
990
+ #
991
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetCallerIdentityResponse AWS API Documentation
992
+ #
993
+ class GetCallerIdentityResponse < Struct.new(
994
+ :user_id,
995
+ :account,
996
+ :arn)
997
+ include Aws::Structure
998
+ end
999
+
1000
+ # @note When making an API call, you may pass GetFederationTokenRequest
1001
+ # data as a hash:
1002
+ #
1003
+ # {
1004
+ # name: "userNameType", # required
1005
+ # policy: "sessionPolicyDocumentType",
1006
+ # policy_arns: [
1007
+ # {
1008
+ # arn: "arnType",
1009
+ # },
1010
+ # ],
1011
+ # duration_seconds: 1,
1012
+ # tags: [
1013
+ # {
1014
+ # key: "tagKeyType", # required
1015
+ # value: "tagValueType", # required
1016
+ # },
1017
+ # ],
1018
+ # }
1019
+ #
1020
+ # @!attribute [rw] name
1021
+ # The name of the federated user. The name is used as an identifier
1022
+ # for the temporary security credentials (such as `Bob`). For example,
1023
+ # you can reference the federated user name in a resource-based
1024
+ # policy, such as in an Amazon S3 bucket policy.
1025
+ #
1026
+ # The regex used to validate this parameter is a string of characters
1027
+ # consisting of upper- and lower-case alphanumeric characters with no
1028
+ # spaces. You can also include underscores or any of the following
1029
+ # characters: =,.@-
1030
+ # @return [String]
1031
+ #
1032
+ # @!attribute [rw] policy
1033
+ # An IAM policy in JSON format that you want to use as an inline
1034
+ # session policy.
1035
+ #
1036
+ # You must pass an inline or managed [session policy][1] to this
1037
+ # operation. You can pass a single JSON policy document to use as an
1038
+ # inline session policy. You can also specify up to 10 managed
1039
+ # policies to use as managed session policies.
1040
+ #
1041
+ # This parameter is optional. However, if you do not pass any session
1042
+ # policies, then the resulting federated user session has no
1043
+ # permissions.
1044
+ #
1045
+ # When you pass session policies, the session permissions are the
1046
+ # intersection of the IAM user policies and the session policies that
1047
+ # you pass. This gives you a way to further restrict the permissions
1048
+ # for a federated user. You cannot use session policies to grant more
1049
+ # permissions than those that are defined in the permissions policy of
1050
+ # the IAM user. For more information, see [Session Policies][1] in the
1051
+ # *IAM User Guide*.
1052
+ #
1053
+ # The resulting credentials can be used to access a resource that has
1054
+ # a resource-based policy. If that policy specifically references the
1055
+ # federated user session in the `Principal` element of the policy, the
1056
+ # session has the permissions allowed by the policy. These permissions
1057
+ # are granted in addition to the permissions that are granted by the
1058
+ # session policies.
1059
+ #
1060
+ # The plain text that you use for both inline and managed session
1061
+ # policies can't exceed 2,048 characters. The JSON policy characters
1062
+ # can be any ASCII character from the space character to the end of
1063
+ # the valid character list (\\u0020 through \\u00FF). It can also
1064
+ # include the tab (\\u0009), linefeed (\\u000A), and carriage return
1065
+ # (\\u000D) characters.
1066
+ #
1067
+ # <note markdown="1"> An AWS conversion compresses the passed session policies and session
1068
+ # tags into a packed binary format that has a separate limit. Your
1069
+ # request can fail for this limit even if your plain text meets the
1070
+ # other requirements. The `PackedPolicySize` response element
1071
+ # indicates by percentage how close the policies and tags for your
1072
+ # request are to the upper size limit.
1073
+ #
1074
+ # </note>
1075
+ #
1076
+ #
1077
+ #
1078
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
1079
+ # @return [String]
1080
+ #
1081
+ # @!attribute [rw] policy_arns
1082
+ # The Amazon Resource Names (ARNs) of the IAM managed policies that
1083
+ # you want to use as a managed session policy. The policies must exist
1084
+ # in the same account as the IAM user that is requesting federated
1085
+ # access.
1086
+ #
1087
+ # You must pass an inline or managed [session policy][1] to this
1088
+ # operation. You can pass a single JSON policy document to use as an
1089
+ # inline session policy. You can also specify up to 10 managed
1090
+ # policies to use as managed session policies. The plain text that you
1091
+ # use for both inline and managed session policies can't exceed 2,048
1092
+ # characters. You can provide up to 10 managed policy ARNs. For more
1093
+ # information about ARNs, see [Amazon Resource Names (ARNs) and AWS
1094
+ # Service Namespaces][2] in the AWS General Reference.
1095
+ #
1096
+ # This parameter is optional. However, if you do not pass any session
1097
+ # policies, then the resulting federated user session has no
1098
+ # permissions.
1099
+ #
1100
+ # When you pass session policies, the session permissions are the
1101
+ # intersection of the IAM user policies and the session policies that
1102
+ # you pass. This gives you a way to further restrict the permissions
1103
+ # for a federated user. You cannot use session policies to grant more
1104
+ # permissions than those that are defined in the permissions policy of
1105
+ # the IAM user. For more information, see [Session Policies][1] in the
1106
+ # *IAM User Guide*.
1107
+ #
1108
+ # The resulting credentials can be used to access a resource that has
1109
+ # a resource-based policy. If that policy specifically references the
1110
+ # federated user session in the `Principal` element of the policy, the
1111
+ # session has the permissions allowed by the policy. These permissions
1112
+ # are granted in addition to the permissions that are granted by the
1113
+ # session policies.
1114
+ #
1115
+ # <note markdown="1"> An AWS conversion compresses the passed session policies and session
1116
+ # tags into a packed binary format that has a separate limit. Your
1117
+ # request can fail for this limit even if your plain text meets the
1118
+ # other requirements. The `PackedPolicySize` response element
1119
+ # indicates by percentage how close the policies and tags for your
1120
+ # request are to the upper size limit.
1121
+ #
1122
+ # </note>
1123
+ #
1124
+ #
1125
+ #
1126
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
1127
+ # [2]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
1128
+ # @return [Array<Types::PolicyDescriptorType>]
1129
+ #
1130
+ # @!attribute [rw] duration_seconds
1131
+ # The duration, in seconds, that the session should last. Acceptable
1132
+ # durations for federation sessions range from 900 seconds (15
1133
+ # minutes) to 129,600 seconds (36 hours), with 43,200 seconds (12
1134
+ # hours) as the default. Sessions obtained using AWS account root user
1135
+ # credentials are restricted to a maximum of 3,600 seconds (one hour).
1136
+ # If the specified duration is longer than one hour, the session
1137
+ # obtained by using root user credentials defaults to one hour.
1138
+ # @return [Integer]
1139
+ #
1140
+ # @!attribute [rw] tags
1141
+ # A list of session tags. Each session tag consists of a key name and
1142
+ # an associated value. For more information about session tags, see
1143
+ # [Passing Session Tags in STS][1] in the *IAM User Guide*.
1144
+ #
1145
+ # This parameter is optional. You can pass up to 50 session tags. The
1146
+ # plain text session tag keys can’t exceed 128 characters and the
1147
+ # values can’t exceed 256 characters. For these and additional limits,
1148
+ # see [IAM and STS Character Limits][2] in the *IAM User Guide*.
1149
+ #
1150
+ # <note markdown="1"> An AWS conversion compresses the passed session policies and session
1151
+ # tags into a packed binary format that has a separate limit. Your
1152
+ # request can fail for this limit even if your plain text meets the
1153
+ # other requirements. The `PackedPolicySize` response element
1154
+ # indicates by percentage how close the policies and tags for your
1155
+ # request are to the upper size limit.
1156
+ #
1157
+ # </note>
1158
+ #
1159
+ # You can pass a session tag with the same key as a tag that is
1160
+ # already attached to the user you are federating. When you do,
1161
+ # session tags override a user tag with the same key.
1162
+ #
1163
+ # Tag key–value pairs are not case sensitive, but case is preserved.
1164
+ # This means that you cannot have separate `Department` and
1165
+ # `department` tag keys. Assume that the role has the
1166
+ # `Department`=`Marketing` tag and you pass the
1167
+ # `department`=`engineering` session tag. `Department` and
1168
+ # `department` are not saved as separate tags, and the session tag
1169
+ # passed in the request takes precedence over the role tag.
1170
+ #
1171
+ #
1172
+ #
1173
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html
1174
+ # [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length
1175
+ # @return [Array<Types::Tag>]
1176
+ #
1177
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetFederationTokenRequest AWS API Documentation
1178
+ #
1179
+ class GetFederationTokenRequest < Struct.new(
1180
+ :name,
1181
+ :policy,
1182
+ :policy_arns,
1183
+ :duration_seconds,
1184
+ :tags)
1185
+ include Aws::Structure
1186
+ end
1187
+
1188
+ # Contains the response to a successful GetFederationToken request,
1189
+ # including temporary AWS credentials that can be used to make AWS
1190
+ # requests.
1191
+ #
1192
+ # @!attribute [rw] credentials
1193
+ # The temporary security credentials, which include an access key ID,
1194
+ # a secret access key, and a security (or session) token.
1195
+ #
1196
+ # <note markdown="1"> The size of the security token that STS API operations return is not
1197
+ # fixed. We strongly recommend that you make no assumptions about the
1198
+ # maximum size.
1199
+ #
1200
+ # </note>
1201
+ # @return [Types::Credentials]
1202
+ #
1203
+ # @!attribute [rw] federated_user
1204
+ # Identifiers for the federated user associated with the credentials
1205
+ # (such as `arn:aws:sts::123456789012:federated-user/Bob` or
1206
+ # `123456789012:Bob`). You can use the federated user's ARN in your
1207
+ # resource-based policies, such as an Amazon S3 bucket policy.
1208
+ # @return [Types::FederatedUser]
1209
+ #
1210
+ # @!attribute [rw] packed_policy_size
1211
+ # A percentage value that indicates the packed size of the session
1212
+ # policies and session tags combined passed in the request. The
1213
+ # request fails if the packed size is greater than 100 percent, which
1214
+ # means the policies and tags exceeded the allowed space.
1215
+ # @return [Integer]
1216
+ #
1217
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetFederationTokenResponse AWS API Documentation
1218
+ #
1219
+ class GetFederationTokenResponse < Struct.new(
1220
+ :credentials,
1221
+ :federated_user,
1222
+ :packed_policy_size)
1223
+ include Aws::Structure
1224
+ end
1225
+
1226
+ # @note When making an API call, you may pass GetSessionTokenRequest
1227
+ # data as a hash:
1228
+ #
1229
+ # {
1230
+ # duration_seconds: 1,
1231
+ # serial_number: "serialNumberType",
1232
+ # token_code: "tokenCodeType",
1233
+ # }
1234
+ #
1235
+ # @!attribute [rw] duration_seconds
1236
+ # The duration, in seconds, that the credentials should remain valid.
1237
+ # Acceptable durations for IAM user sessions range from 900 seconds
1238
+ # (15 minutes) to 129,600 seconds (36 hours), with 43,200 seconds (12
1239
+ # hours) as the default. Sessions for AWS account owners are
1240
+ # restricted to a maximum of 3,600 seconds (one hour). If the duration
1241
+ # is longer than one hour, the session for AWS account owners defaults
1242
+ # to one hour.
1243
+ # @return [Integer]
1244
+ #
1245
+ # @!attribute [rw] serial_number
1246
+ # The identification number of the MFA device that is associated with
1247
+ # the IAM user who is making the `GetSessionToken` call. Specify this
1248
+ # value if the IAM user has a policy that requires MFA authentication.
1249
+ # The value is either the serial number for a hardware device (such as
1250
+ # `GAHT12345678`) or an Amazon Resource Name (ARN) for a virtual
1251
+ # device (such as `arn:aws:iam::123456789012:mfa/user`). You can find
1252
+ # the device for an IAM user by going to the AWS Management Console
1253
+ # and viewing the user's security credentials.
1254
+ #
1255
+ # The regex used to validate this parameter is a string of characters
1256
+ # consisting of upper- and lower-case alphanumeric characters with no
1257
+ # spaces. You can also include underscores or any of the following
1258
+ # characters: =,.@:/-
1259
+ # @return [String]
1260
+ #
1261
+ # @!attribute [rw] token_code
1262
+ # The value provided by the MFA device, if MFA is required. If any
1263
+ # policy requires the IAM user to submit an MFA code, specify this
1264
+ # value. If MFA authentication is required, the user must provide a
1265
+ # code when requesting a set of temporary security credentials. A user
1266
+ # who fails to provide the code receives an "access denied" response
1267
+ # when requesting resources that require MFA authentication.
1268
+ #
1269
+ # The format for this parameter, as described by its regex pattern, is
1270
+ # a sequence of six numeric digits.
1271
+ # @return [String]
1272
+ #
1273
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetSessionTokenRequest AWS API Documentation
1274
+ #
1275
+ class GetSessionTokenRequest < Struct.new(
1276
+ :duration_seconds,
1277
+ :serial_number,
1278
+ :token_code)
1279
+ include Aws::Structure
1280
+ end
1281
+
1282
+ # Contains the response to a successful GetSessionToken request,
1283
+ # including temporary AWS credentials that can be used to make AWS
1284
+ # requests.
1285
+ #
1286
+ # @!attribute [rw] credentials
1287
+ # The temporary security credentials, which include an access key ID,
1288
+ # a secret access key, and a security (or session) token.
1289
+ #
1290
+ # <note markdown="1"> The size of the security token that STS API operations return is not
1291
+ # fixed. We strongly recommend that you make no assumptions about the
1292
+ # maximum size.
1293
+ #
1294
+ # </note>
1295
+ # @return [Types::Credentials]
1296
+ #
1297
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetSessionTokenResponse AWS API Documentation
1298
+ #
1299
+ class GetSessionTokenResponse < Struct.new(
1300
+ :credentials)
1301
+ include Aws::Structure
1302
+ end
1303
+
1304
+ # The request could not be fulfilled because the identity provider (IDP)
1305
+ # that was asked to verify the incoming identity token could not be
1306
+ # reached. This is often a transient error caused by network conditions.
1307
+ # Retry the request a limited number of times so that you don't exceed
1308
+ # the request rate. If the error persists, the identity provider might
1309
+ # be down or not responding.
1310
+ #
1311
+ # @!attribute [rw] message
1312
+ # @return [String]
1313
+ #
1314
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/IDPCommunicationErrorException AWS API Documentation
1315
+ #
1316
+ class IDPCommunicationErrorException < Struct.new(
1317
+ :message)
1318
+ include Aws::Structure
1319
+ end
1320
+
1321
+ # The identity provider (IdP) reported that authentication failed. This
1322
+ # might be because the claim is invalid.
1323
+ #
1324
+ # If this error is returned for the `AssumeRoleWithWebIdentity`
1325
+ # operation, it can also mean that the claim has expired or has been
1326
+ # explicitly revoked.
1327
+ #
1328
+ # @!attribute [rw] message
1329
+ # @return [String]
1330
+ #
1331
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/IDPRejectedClaimException AWS API Documentation
1332
+ #
1333
+ class IDPRejectedClaimException < Struct.new(
1334
+ :message)
1335
+ include Aws::Structure
1336
+ end
1337
+
1338
+ # The error returned if the message passed to
1339
+ # `DecodeAuthorizationMessage` was invalid. This can happen if the token
1340
+ # contains invalid characters, such as linebreaks.
1341
+ #
1342
+ # @!attribute [rw] message
1343
+ # @return [String]
1344
+ #
1345
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/InvalidAuthorizationMessageException AWS API Documentation
1346
+ #
1347
+ class InvalidAuthorizationMessageException < Struct.new(
1348
+ :message)
1349
+ include Aws::Structure
1350
+ end
1351
+
1352
+ # The web identity token that was passed could not be validated by AWS.
1353
+ # Get a new identity token from the identity provider and then retry the
1354
+ # request.
1355
+ #
1356
+ # @!attribute [rw] message
1357
+ # @return [String]
1358
+ #
1359
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/InvalidIdentityTokenException AWS API Documentation
1360
+ #
1361
+ class InvalidIdentityTokenException < Struct.new(
1362
+ :message)
1363
+ include Aws::Structure
1364
+ end
1365
+
1366
+ # The request was rejected because the policy document was malformed.
1367
+ # The error message describes the specific error.
1368
+ #
1369
+ # @!attribute [rw] message
1370
+ # @return [String]
1371
+ #
1372
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/MalformedPolicyDocumentException AWS API Documentation
1373
+ #
1374
+ class MalformedPolicyDocumentException < Struct.new(
1375
+ :message)
1376
+ include Aws::Structure
1377
+ end
1378
+
1379
+ # The request was rejected because the total packed size of the session
1380
+ # policies and session tags combined was too large. An AWS conversion
1381
+ # compresses the session policy document, session policy ARNs, and
1382
+ # session tags into a packed binary format that has a separate limit.
1383
+ # The error message indicates by percentage how close the policies and
1384
+ # tags are to the upper size limit. For more information, see [Passing
1385
+ # Session Tags in STS][1] in the *IAM User Guide*.
1386
+ #
1387
+ # You could receive this error even though you meet other defined
1388
+ # session policy and session tag limits. For more information, see [IAM
1389
+ # and STS Entity Character Limits][2] in the *IAM User Guide*.
1390
+ #
1391
+ #
1392
+ #
1393
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html
1394
+ # [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html
1395
+ #
1396
+ # @!attribute [rw] message
1397
+ # @return [String]
1398
+ #
1399
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/PackedPolicyTooLargeException AWS API Documentation
1400
+ #
1401
+ class PackedPolicyTooLargeException < Struct.new(
1402
+ :message)
1403
+ include Aws::Structure
1404
+ end
1405
+
1406
+ # A reference to the IAM managed policy that is passed as a session
1407
+ # policy for a role session or a federated user session.
1408
+ #
1409
+ # @note When making an API call, you may pass PolicyDescriptorType
1410
+ # data as a hash:
1411
+ #
1412
+ # {
1413
+ # arn: "arnType",
1414
+ # }
1415
+ #
1416
+ # @!attribute [rw] arn
1417
+ # The Amazon Resource Name (ARN) of the IAM managed policy to use as a
1418
+ # session policy for the role. For more information about ARNs, see
1419
+ # [Amazon Resource Names (ARNs) and AWS Service Namespaces][1] in the
1420
+ # *AWS General Reference*.
1421
+ #
1422
+ #
1423
+ #
1424
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
1425
+ # @return [String]
1426
+ #
1427
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/PolicyDescriptorType AWS API Documentation
1428
+ #
1429
+ class PolicyDescriptorType < Struct.new(
1430
+ :arn)
1431
+ include Aws::Structure
1432
+ end
1433
+
1434
+ # STS is not activated in the requested region for the account that is
1435
+ # being asked to generate credentials. The account administrator must
1436
+ # use the IAM console to activate STS in that region. For more
1437
+ # information, see [Activating and Deactivating AWS STS in an AWS
1438
+ # Region][1] in the *IAM User Guide*.
1439
+ #
1440
+ #
1441
+ #
1442
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html
1443
+ #
1444
+ # @!attribute [rw] message
1445
+ # @return [String]
1446
+ #
1447
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/RegionDisabledException AWS API Documentation
1448
+ #
1449
+ class RegionDisabledException < Struct.new(
1450
+ :message)
1451
+ include Aws::Structure
1452
+ end
1453
+
1454
+ # You can pass custom key-value pair attributes when you assume a role
1455
+ # or federate a user. These are called session tags. You can then use
1456
+ # the session tags to control access to resources. For more information,
1457
+ # see [Tagging AWS STS Sessions][1] in the *IAM User Guide*.
1458
+ #
1459
+ #
1460
+ #
1461
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html
1462
+ #
1463
+ # @note When making an API call, you may pass Tag
1464
+ # data as a hash:
1465
+ #
1466
+ # {
1467
+ # key: "tagKeyType", # required
1468
+ # value: "tagValueType", # required
1469
+ # }
1470
+ #
1471
+ # @!attribute [rw] key
1472
+ # The key for a session tag.
1473
+ #
1474
+ # You can pass up to 50 session tags. The plain text session tag keys
1475
+ # can’t exceed 128 characters. For these and additional limits, see
1476
+ # [IAM and STS Character Limits][1] in the *IAM User Guide*.
1477
+ #
1478
+ #
1479
+ #
1480
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length
1481
+ # @return [String]
1482
+ #
1483
+ # @!attribute [rw] value
1484
+ # The value for a session tag.
1485
+ #
1486
+ # You can pass up to 50 session tags. The plain text session tag
1487
+ # values can’t exceed 256 characters. For these and additional limits,
1488
+ # see [IAM and STS Character Limits][1] in the *IAM User Guide*.
1489
+ #
1490
+ #
1491
+ #
1492
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length
1493
+ # @return [String]
1494
+ #
1495
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/Tag AWS API Documentation
1496
+ #
1497
+ class Tag < Struct.new(
1498
+ :key,
1499
+ :value)
1500
+ include Aws::Structure
1501
+ end
1502
+
1503
+ end
1504
+ end