aws-sdk-core 3.121.1 → 3.174.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +491 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-defaults/default_configuration.rb +153 -0
  5. data/lib/aws-defaults/defaults_mode_config_resolver.rb +107 -0
  6. data/lib/aws-defaults.rb +3 -0
  7. data/lib/aws-sdk-core/arn.rb +13 -0
  8. data/lib/aws-sdk-core/assume_role_credentials.rb +21 -7
  9. data/lib/aws-sdk-core/assume_role_web_identity_credentials.rb +14 -10
  10. data/lib/aws-sdk-core/binary/encode_handler.rb +12 -1
  11. data/lib/aws-sdk-core/client_stubs.rb +5 -1
  12. data/lib/aws-sdk-core/credential_provider_chain.rb +8 -5
  13. data/lib/aws-sdk-core/ec2_metadata.rb +3 -2
  14. data/lib/aws-sdk-core/ecs_credentials.rb +121 -53
  15. data/lib/aws-sdk-core/endpoints/condition.rb +41 -0
  16. data/lib/aws-sdk-core/endpoints/endpoint.rb +17 -0
  17. data/lib/aws-sdk-core/endpoints/endpoint_rule.rb +75 -0
  18. data/lib/aws-sdk-core/endpoints/error_rule.rb +42 -0
  19. data/lib/aws-sdk-core/endpoints/function.rb +80 -0
  20. data/lib/aws-sdk-core/endpoints/matchers.rb +127 -0
  21. data/lib/aws-sdk-core/endpoints/reference.rb +31 -0
  22. data/lib/aws-sdk-core/endpoints/rule.rb +25 -0
  23. data/lib/aws-sdk-core/endpoints/rule_set.rb +52 -0
  24. data/lib/aws-sdk-core/endpoints/rules_provider.rb +37 -0
  25. data/lib/aws-sdk-core/endpoints/templater.rb +58 -0
  26. data/lib/aws-sdk-core/endpoints/tree_rule.rb +45 -0
  27. data/lib/aws-sdk-core/endpoints/url.rb +60 -0
  28. data/lib/aws-sdk-core/endpoints.rb +74 -0
  29. data/lib/aws-sdk-core/errors.rb +14 -1
  30. data/lib/aws-sdk-core/instance_profile_credentials.rb +85 -14
  31. data/lib/aws-sdk-core/json/error_handler.rb +20 -1
  32. data/lib/aws-sdk-core/log/formatter.rb +6 -0
  33. data/lib/aws-sdk-core/pageable_response.rb +81 -32
  34. data/lib/aws-sdk-core/plugins/bearer_authorization.rb +67 -0
  35. data/lib/aws-sdk-core/plugins/checksum_algorithm.rb +340 -0
  36. data/lib/aws-sdk-core/plugins/credentials_configuration.rb +27 -1
  37. data/lib/aws-sdk-core/plugins/defaults_mode.rb +40 -0
  38. data/lib/aws-sdk-core/plugins/endpoint_discovery.rb +6 -2
  39. data/lib/aws-sdk-core/plugins/http_checksum.rb +8 -1
  40. data/lib/aws-sdk-core/plugins/jsonvalue_converter.rb +34 -6
  41. data/lib/aws-sdk-core/plugins/protocols/api_gateway.rb +17 -0
  42. data/lib/aws-sdk-core/plugins/protocols/rest_json.rb +16 -1
  43. data/lib/aws-sdk-core/plugins/recursion_detection.rb +38 -0
  44. data/lib/aws-sdk-core/plugins/regional_endpoint.rb +52 -1
  45. data/lib/aws-sdk-core/plugins/response_paging.rb +1 -1
  46. data/lib/aws-sdk-core/plugins/retries/error_inspector.rb +7 -4
  47. data/lib/aws-sdk-core/plugins/retry_errors.rb +21 -5
  48. data/lib/aws-sdk-core/plugins/sign.rb +200 -0
  49. data/lib/aws-sdk-core/plugins/signature_v2.rb +1 -0
  50. data/lib/aws-sdk-core/plugins/signature_v4.rb +28 -31
  51. data/lib/aws-sdk-core/plugins/stub_responses.rb +5 -1
  52. data/lib/aws-sdk-core/plugins/user_agent.rb +117 -14
  53. data/lib/aws-sdk-core/process_credentials.rb +9 -11
  54. data/lib/aws-sdk-core/refreshing_credentials.rb +42 -11
  55. data/lib/aws-sdk-core/refreshing_token.rb +71 -0
  56. data/lib/aws-sdk-core/rest/handler.rb +1 -1
  57. data/lib/aws-sdk-core/rest/request/body.rb +19 -1
  58. data/lib/aws-sdk-core/rest/request/headers.rb +14 -6
  59. data/lib/aws-sdk-core/rest/response/headers.rb +3 -1
  60. data/lib/aws-sdk-core/shared_config.rb +82 -12
  61. data/lib/aws-sdk-core/sso_credentials.rb +91 -50
  62. data/lib/aws-sdk-core/sso_token_provider.rb +135 -0
  63. data/lib/aws-sdk-core/static_token_provider.rb +14 -0
  64. data/lib/aws-sdk-core/structure.rb +6 -4
  65. data/lib/aws-sdk-core/token.rb +31 -0
  66. data/lib/aws-sdk-core/token_provider.rb +15 -0
  67. data/lib/aws-sdk-core/token_provider_chain.rb +51 -0
  68. data/lib/aws-sdk-core/waiters/poller.rb +3 -1
  69. data/lib/aws-sdk-core/xml/error_handler.rb +7 -0
  70. data/lib/aws-sdk-core/xml/parser/engines/oga.rb +2 -0
  71. data/lib/aws-sdk-core/xml/parser/engines/ox.rb +1 -1
  72. data/lib/aws-sdk-core.rb +20 -0
  73. data/lib/aws-sdk-sso/client.rb +82 -15
  74. data/lib/aws-sdk-sso/endpoint_parameters.rb +66 -0
  75. data/lib/aws-sdk-sso/endpoint_provider.rb +51 -0
  76. data/lib/aws-sdk-sso/endpoints.rb +71 -0
  77. data/lib/aws-sdk-sso/plugins/endpoints.rb +76 -0
  78. data/lib/aws-sdk-sso/types.rb +8 -43
  79. data/lib/aws-sdk-sso.rb +5 -1
  80. data/lib/aws-sdk-ssooidc/client.rb +611 -0
  81. data/lib/aws-sdk-ssooidc/client_api.rb +216 -0
  82. data/lib/aws-sdk-ssooidc/customizations.rb +1 -0
  83. data/lib/aws-sdk-ssooidc/endpoint_parameters.rb +66 -0
  84. data/lib/aws-sdk-ssooidc/endpoint_provider.rb +51 -0
  85. data/lib/aws-sdk-ssooidc/endpoints.rb +57 -0
  86. data/lib/aws-sdk-ssooidc/errors.rb +290 -0
  87. data/lib/aws-sdk-ssooidc/plugins/endpoints.rb +74 -0
  88. data/lib/aws-sdk-ssooidc/resource.rb +26 -0
  89. data/lib/aws-sdk-ssooidc/types.rb +502 -0
  90. data/lib/aws-sdk-ssooidc.rb +59 -0
  91. data/lib/aws-sdk-sts/client.rb +377 -361
  92. data/lib/aws-sdk-sts/endpoint_parameters.rb +78 -0
  93. data/lib/aws-sdk-sts/endpoint_provider.rb +112 -0
  94. data/lib/aws-sdk-sts/endpoints.rb +135 -0
  95. data/lib/aws-sdk-sts/plugins/endpoints.rb +84 -0
  96. data/lib/aws-sdk-sts/plugins/sts_regional_endpoints.rb +5 -1
  97. data/lib/aws-sdk-sts/presigner.rb +13 -9
  98. data/lib/aws-sdk-sts/types.rb +127 -225
  99. data/lib/aws-sdk-sts.rb +5 -1
  100. data/lib/seahorse/client/async_base.rb +0 -1
  101. data/lib/seahorse/client/configuration.rb +6 -2
  102. data/lib/seahorse/client/h2/connection.rb +12 -11
  103. data/lib/seahorse/client/net_http/connection_pool.rb +7 -0
  104. data/lib/seahorse/client/net_http/handler.rb +15 -7
  105. data/lib/seahorse/client/net_http/patches.rb +16 -0
  106. data/lib/seahorse/client/plugins/content_length.rb +11 -5
  107. data/lib/seahorse/client/plugins/net_http.rb +33 -2
  108. data/lib/seahorse/client/plugins/request_callback.rb +9 -9
  109. data/lib/seahorse/model/operation.rb +3 -0
  110. data/lib/seahorse/util.rb +4 -0
  111. metadata +61 -9
  112. data/lib/aws-sdk-sso/plugins/content_type.rb +0 -25
@@ -10,32 +10,6 @@
10
10
  module Aws::STS
11
11
  module Types
12
12
 
13
- # @note When making an API call, you may pass AssumeRoleRequest
14
- # data as a hash:
15
- #
16
- # {
17
- # role_arn: "arnType", # required
18
- # role_session_name: "roleSessionNameType", # required
19
- # policy_arns: [
20
- # {
21
- # arn: "arnType",
22
- # },
23
- # ],
24
- # policy: "sessionPolicyDocumentType",
25
- # duration_seconds: 1,
26
- # tags: [
27
- # {
28
- # key: "tagKeyType", # required
29
- # value: "tagValueType", # required
30
- # },
31
- # ],
32
- # transitive_tag_keys: ["tagKeyType"],
33
- # external_id: "externalIdType",
34
- # serial_number: "serialNumberType",
35
- # token_code: "tokenCodeType",
36
- # source_identity: "sourceIdentityType",
37
- # }
38
- #
39
13
  # @!attribute [rw] role_arn
40
14
  # The Amazon Resource Name (ARN) of the role to assume.
41
15
  # @return [String]
@@ -70,12 +44,13 @@ module Aws::STS
70
44
  # Web Services Service Namespaces][1] in the Amazon Web Services
71
45
  # General Reference.
72
46
  #
73
- # <note markdown="1"> An Amazon Web Services conversion compresses the passed session
74
- # policies and session tags into a packed binary format that has a
75
- # separate limit. Your request can fail for this limit even if your
76
- # plaintext meets the other requirements. The `PackedPolicySize`
77
- # response element indicates by percentage how close the policies and
78
- # tags for your request are to the upper size limit.
47
+ # <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
48
+ # session policy, managed policy ARNs, and session tags into a packed
49
+ # binary format that has a separate limit. Your request can fail for
50
+ # this limit even if your plaintext meets the other requirements. The
51
+ # `PackedPolicySize` response element indicates by percentage how
52
+ # close the policies and tags for your request are to the upper size
53
+ # limit.
79
54
  #
80
55
  # </note>
81
56
  #
@@ -116,12 +91,13 @@ module Aws::STS
116
91
  # include the tab (\\u0009), linefeed (\\u000A), and carriage return
117
92
  # (\\u000D) characters.
118
93
  #
119
- # <note markdown="1"> An Amazon Web Services conversion compresses the passed session
120
- # policies and session tags into a packed binary format that has a
121
- # separate limit. Your request can fail for this limit even if your
122
- # plaintext meets the other requirements. The `PackedPolicySize`
123
- # response element indicates by percentage how close the policies and
124
- # tags for your request are to the upper size limit.
94
+ # <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
95
+ # session policy, managed policy ARNs, and session tags into a packed
96
+ # binary format that has a separate limit. Your request can fail for
97
+ # this limit even if your plaintext meets the other requirements. The
98
+ # `PackedPolicySize` response element indicates by percentage how
99
+ # close the policies and tags for your request are to the upper size
100
+ # limit.
125
101
  #
126
102
  # </note>
127
103
  #
@@ -132,16 +108,25 @@ module Aws::STS
132
108
  #
133
109
  # @!attribute [rw] duration_seconds
134
110
  # The duration, in seconds, of the role session. The value specified
135
- # can can range from 900 seconds (15 minutes) up to the maximum
136
- # session duration that is set for the role. The maximum session
137
- # duration setting can have a value from 1 hour to 12 hours. If you
138
- # specify a value higher than this setting or the administrator
139
- # setting (whichever is lower), the operation fails. For example, if
140
- # you specify a session duration of 12 hours, but your administrator
141
- # set the maximum session duration to 6 hours, your operation fails.
142
- # To learn how to view the maximum value for your role, see [View the
143
- # Maximum Session Duration Setting for a Role][1] in the *IAM User
144
- # Guide*.
111
+ # can range from 900 seconds (15 minutes) up to the maximum session
112
+ # duration set for the role. The maximum session duration setting can
113
+ # have a value from 1 hour to 12 hours. If you specify a value higher
114
+ # than this setting or the administrator setting (whichever is lower),
115
+ # the operation fails. For example, if you specify a session duration
116
+ # of 12 hours, but your administrator set the maximum session duration
117
+ # to 6 hours, your operation fails.
118
+ #
119
+ # Role chaining limits your Amazon Web Services CLI or Amazon Web
120
+ # Services API role session to a maximum of one hour. When you use the
121
+ # `AssumeRole` API operation to assume a role, you can specify the
122
+ # duration of your role session with the `DurationSeconds` parameter.
123
+ # You can specify a parameter value of up to 43200 seconds (12 hours),
124
+ # depending on the maximum session duration setting for your role.
125
+ # However, if you assume a role using role chaining and provide a
126
+ # `DurationSeconds` parameter value greater than one hour, the
127
+ # operation fails. To learn how to view the maximum value for your
128
+ # role, see [View the Maximum Session Duration Setting for a Role][1]
129
+ # in the *IAM User Guide*.
145
130
  #
146
131
  # By default, the value is set to `3600` seconds.
147
132
  #
@@ -150,8 +135,8 @@ module Aws::STS
150
135
  # credentials. The request to the federation endpoint for a console
151
136
  # sign-in token takes a `SessionDuration` parameter that specifies the
152
137
  # maximum length of the console session. For more information, see
153
- # [Creating a URL that Enables Federated Users to Access the
154
- # Management Console][2] in the *IAM User Guide*.
138
+ # [Creating a URL that Enables Federated Users to Access the Amazon
139
+ # Web Services Management Console][2] in the *IAM User Guide*.
155
140
  #
156
141
  # </note>
157
142
  #
@@ -164,20 +149,21 @@ module Aws::STS
164
149
  # @!attribute [rw] tags
165
150
  # A list of session tags that you want to pass. Each session tag
166
151
  # consists of a key name and an associated value. For more information
167
- # about session tags, see [Tagging STS Sessions][1] in the *IAM User
168
- # Guide*.
152
+ # about session tags, see [Tagging Amazon Web Services STS
153
+ # Sessions][1] in the *IAM User Guide*.
169
154
  #
170
155
  # This parameter is optional. You can pass up to 50 session tags. The
171
156
  # plaintext session tag keys can’t exceed 128 characters, and the
172
157
  # values can’t exceed 256 characters. For these and additional limits,
173
158
  # see [IAM and STS Character Limits][2] in the *IAM User Guide*.
174
159
  #
175
- # <note markdown="1"> An Amazon Web Services conversion compresses the passed session
176
- # policies and session tags into a packed binary format that has a
177
- # separate limit. Your request can fail for this limit even if your
178
- # plaintext meets the other requirements. The `PackedPolicySize`
179
- # response element indicates by percentage how close the policies and
180
- # tags for your request are to the upper size limit.
160
+ # <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
161
+ # session policy, managed policy ARNs, and session tags into a packed
162
+ # binary format that has a separate limit. Your request can fail for
163
+ # this limit even if your plaintext meets the other requirements. The
164
+ # `PackedPolicySize` response element indicates by percentage how
165
+ # close the policies and tags for your request are to the upper size
166
+ # limit.
181
167
  #
182
168
  # </note>
183
169
  #
@@ -204,7 +190,7 @@ module Aws::STS
204
190
  #
205
191
  # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html
206
192
  # [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length
207
- # [3]: https://docs.aws.amazon.com/IAM/latest/UserGuide/session-tags.html#id_session-tags_ctlogs
193
+ # [3]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_ctlogs
208
194
  # @return [Array<Types::Tag>]
209
195
  #
210
196
  # @!attribute [rw] transitive_tag_keys
@@ -385,22 +371,6 @@ module Aws::STS
385
371
  include Aws::Structure
386
372
  end
387
373
 
388
- # @note When making an API call, you may pass AssumeRoleWithSAMLRequest
389
- # data as a hash:
390
- #
391
- # {
392
- # role_arn: "arnType", # required
393
- # principal_arn: "arnType", # required
394
- # saml_assertion: "SAMLAssertionType", # required
395
- # policy_arns: [
396
- # {
397
- # arn: "arnType",
398
- # },
399
- # ],
400
- # policy: "sessionPolicyDocumentType",
401
- # duration_seconds: 1,
402
- # }
403
- #
404
374
  # @!attribute [rw] role_arn
405
375
  # The Amazon Resource Name (ARN) of the role that the caller is
406
376
  # assuming.
@@ -434,12 +404,13 @@ module Aws::STS
434
404
  # Web Services Service Namespaces][1] in the Amazon Web Services
435
405
  # General Reference.
436
406
  #
437
- # <note markdown="1"> An Amazon Web Services conversion compresses the passed session
438
- # policies and session tags into a packed binary format that has a
439
- # separate limit. Your request can fail for this limit even if your
440
- # plaintext meets the other requirements. The `PackedPolicySize`
441
- # response element indicates by percentage how close the policies and
442
- # tags for your request are to the upper size limit.
407
+ # <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
408
+ # session policy, managed policy ARNs, and session tags into a packed
409
+ # binary format that has a separate limit. Your request can fail for
410
+ # this limit even if your plaintext meets the other requirements. The
411
+ # `PackedPolicySize` response element indicates by percentage how
412
+ # close the policies and tags for your request are to the upper size
413
+ # limit.
443
414
  #
444
415
  # </note>
445
416
  #
@@ -480,12 +451,13 @@ module Aws::STS
480
451
  # include the tab (\\u0009), linefeed (\\u000A), and carriage return
481
452
  # (\\u000D) characters.
482
453
  #
483
- # <note markdown="1"> An Amazon Web Services conversion compresses the passed session
484
- # policies and session tags into a packed binary format that has a
485
- # separate limit. Your request can fail for this limit even if your
486
- # plaintext meets the other requirements. The `PackedPolicySize`
487
- # response element indicates by percentage how close the policies and
488
- # tags for your request are to the upper size limit.
454
+ # <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
455
+ # session policy, managed policy ARNs, and session tags into a packed
456
+ # binary format that has a separate limit. Your request can fail for
457
+ # this limit even if your plaintext meets the other requirements. The
458
+ # `PackedPolicySize` response element indicates by percentage how
459
+ # close the policies and tags for your request are to the upper size
460
+ # limit.
489
461
  #
490
462
  # </note>
491
463
  #
@@ -516,8 +488,8 @@ module Aws::STS
516
488
  # credentials. The request to the federation endpoint for a console
517
489
  # sign-in token takes a `SessionDuration` parameter that specifies the
518
490
  # maximum length of the console session. For more information, see
519
- # [Creating a URL that Enables Federated Users to Access the
520
- # Management Console][2] in the *IAM User Guide*.
491
+ # [Creating a URL that Enables Federated Users to Access the Amazon
492
+ # Web Services Management Console][2] in the *IAM User Guide*.
521
493
  #
522
494
  # </note>
523
495
  #
@@ -536,7 +508,7 @@ module Aws::STS
536
508
  :policy_arns,
537
509
  :policy,
538
510
  :duration_seconds)
539
- SENSITIVE = []
511
+ SENSITIVE = [:saml_assertion]
540
512
  include Aws::Structure
541
513
  end
542
514
 
@@ -604,7 +576,7 @@ module Aws::STS
604
576
  # in IAM.
605
577
  #
606
578
  # The combination of `NameQualifier` and `Subject` can be used to
607
- # uniquely identify a federated user.
579
+ # uniquely identify a user.
608
580
  #
609
581
  # The following pseudocode shows how the hash value is calculated:
610
582
  #
@@ -656,23 +628,6 @@ module Aws::STS
656
628
  include Aws::Structure
657
629
  end
658
630
 
659
- # @note When making an API call, you may pass AssumeRoleWithWebIdentityRequest
660
- # data as a hash:
661
- #
662
- # {
663
- # role_arn: "arnType", # required
664
- # role_session_name: "roleSessionNameType", # required
665
- # web_identity_token: "clientTokenType", # required
666
- # provider_id: "urlType",
667
- # policy_arns: [
668
- # {
669
- # arn: "arnType",
670
- # },
671
- # ],
672
- # policy: "sessionPolicyDocumentType",
673
- # duration_seconds: 1,
674
- # }
675
- #
676
631
  # @!attribute [rw] role_arn
677
632
  # The Amazon Resource Name (ARN) of the role that the caller is
678
633
  # assuming.
@@ -701,13 +656,13 @@ module Aws::STS
701
656
  # @return [String]
702
657
  #
703
658
  # @!attribute [rw] provider_id
704
- # The fully qualified host component of the domain name of the
705
- # identity provider.
659
+ # The fully qualified host component of the domain name of the OAuth
660
+ # 2.0 identity provider. Do not specify this value for an OpenID
661
+ # Connect identity provider.
706
662
  #
707
- # Specify this value only for OAuth 2.0 access tokens. Currently
708
- # `www.amazon.com` and `graph.facebook.com` are the only supported
709
- # identity providers for OAuth 2.0 access tokens. Do not include URL
710
- # schemes and port numbers.
663
+ # Currently `www.amazon.com` and `graph.facebook.com` are the only
664
+ # supported identity providers for OAuth 2.0 access tokens. Do not
665
+ # include URL schemes and port numbers.
711
666
  #
712
667
  # Do not specify this value for OpenID Connect ID tokens.
713
668
  # @return [String]
@@ -724,12 +679,13 @@ module Aws::STS
724
679
  # Web Services Service Namespaces][1] in the Amazon Web Services
725
680
  # General Reference.
726
681
  #
727
- # <note markdown="1"> An Amazon Web Services conversion compresses the passed session
728
- # policies and session tags into a packed binary format that has a
729
- # separate limit. Your request can fail for this limit even if your
730
- # plaintext meets the other requirements. The `PackedPolicySize`
731
- # response element indicates by percentage how close the policies and
732
- # tags for your request are to the upper size limit.
682
+ # <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
683
+ # session policy, managed policy ARNs, and session tags into a packed
684
+ # binary format that has a separate limit. Your request can fail for
685
+ # this limit even if your plaintext meets the other requirements. The
686
+ # `PackedPolicySize` response element indicates by percentage how
687
+ # close the policies and tags for your request are to the upper size
688
+ # limit.
733
689
  #
734
690
  # </note>
735
691
  #
@@ -770,12 +726,13 @@ module Aws::STS
770
726
  # include the tab (\\u0009), linefeed (\\u000A), and carriage return
771
727
  # (\\u000D) characters.
772
728
  #
773
- # <note markdown="1"> An Amazon Web Services conversion compresses the passed session
774
- # policies and session tags into a packed binary format that has a
775
- # separate limit. Your request can fail for this limit even if your
776
- # plaintext meets the other requirements. The `PackedPolicySize`
777
- # response element indicates by percentage how close the policies and
778
- # tags for your request are to the upper size limit.
729
+ # <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
730
+ # session policy, managed policy ARNs, and session tags into a packed
731
+ # binary format that has a separate limit. Your request can fail for
732
+ # this limit even if your plaintext meets the other requirements. The
733
+ # `PackedPolicySize` response element indicates by percentage how
734
+ # close the policies and tags for your request are to the upper size
735
+ # limit.
779
736
  #
780
737
  # </note>
781
738
  #
@@ -802,8 +759,8 @@ module Aws::STS
802
759
  # credentials. The request to the federation endpoint for a console
803
760
  # sign-in token takes a `SessionDuration` parameter that specifies the
804
761
  # maximum length of the console session. For more information, see
805
- # [Creating a URL that Enables Federated Users to Access the
806
- # Management Console][2] in the *IAM User Guide*.
762
+ # [Creating a URL that Enables Federated Users to Access the Amazon
763
+ # Web Services Management Console][2] in the *IAM User Guide*.
807
764
  #
808
765
  # </note>
809
766
  #
@@ -823,7 +780,7 @@ module Aws::STS
823
780
  :policy_arns,
824
781
  :policy,
825
782
  :duration_seconds)
826
- SENSITIVE = []
783
+ SENSITIVE = [:web_identity_token]
827
784
  include Aws::Structure
828
785
  end
829
786
 
@@ -984,17 +941,10 @@ module Aws::STS
984
941
  :secret_access_key,
985
942
  :session_token,
986
943
  :expiration)
987
- SENSITIVE = []
944
+ SENSITIVE = [:secret_access_key]
988
945
  include Aws::Structure
989
946
  end
990
947
 
991
- # @note When making an API call, you may pass DecodeAuthorizationMessageRequest
992
- # data as a hash:
993
- #
994
- # {
995
- # encoded_message: "encodedMessageType", # required
996
- # }
997
- #
998
948
  # @!attribute [rw] encoded_message
999
949
  # The encoded message that was returned with the response.
1000
950
  # @return [String]
@@ -1012,7 +962,7 @@ module Aws::STS
1012
962
  # returned in response to an Amazon Web Services request.
1013
963
  #
1014
964
  # @!attribute [rw] decoded_message
1015
- # An XML document that contains the decoded message.
965
+ # The API returns a response with the decoded message.
1016
966
  # @return [String]
1017
967
  #
1018
968
  # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/DecodeAuthorizationMessageResponse AWS API Documentation
@@ -1065,13 +1015,6 @@ module Aws::STS
1065
1015
  include Aws::Structure
1066
1016
  end
1067
1017
 
1068
- # @note When making an API call, you may pass GetAccessKeyInfoRequest
1069
- # data as a hash:
1070
- #
1071
- # {
1072
- # access_key_id: "accessKeyIdType", # required
1073
- # }
1074
- #
1075
1018
  # @!attribute [rw] access_key_id
1076
1019
  # The identifier of an access key.
1077
1020
  #
@@ -1140,26 +1083,6 @@ module Aws::STS
1140
1083
  include Aws::Structure
1141
1084
  end
1142
1085
 
1143
- # @note When making an API call, you may pass GetFederationTokenRequest
1144
- # data as a hash:
1145
- #
1146
- # {
1147
- # name: "userNameType", # required
1148
- # policy: "sessionPolicyDocumentType",
1149
- # policy_arns: [
1150
- # {
1151
- # arn: "arnType",
1152
- # },
1153
- # ],
1154
- # duration_seconds: 1,
1155
- # tags: [
1156
- # {
1157
- # key: "tagKeyType", # required
1158
- # value: "tagValueType", # required
1159
- # },
1160
- # ],
1161
- # }
1162
- #
1163
1086
  # @!attribute [rw] name
1164
1087
  # The name of the federated user. The name is used as an identifier
1165
1088
  # for the temporary security credentials (such as `Bob`). For example,
@@ -1178,8 +1101,8 @@ module Aws::STS
1178
1101
  #
1179
1102
  # You must pass an inline or managed [session policy][1] to this
1180
1103
  # operation. You can pass a single JSON policy document to use as an
1181
- # inline session policy. You can also specify up to 10 managed
1182
- # policies to use as managed session policies.
1104
+ # inline session policy. You can also specify up to 10 managed policy
1105
+ # Amazon Resource Names (ARNs) to use as managed session policies.
1183
1106
  #
1184
1107
  # This parameter is optional. However, if you do not pass any session
1185
1108
  # policies, then the resulting federated user session has no
@@ -1207,12 +1130,13 @@ module Aws::STS
1207
1130
  # include the tab (\\u0009), linefeed (\\u000A), and carriage return
1208
1131
  # (\\u000D) characters.
1209
1132
  #
1210
- # <note markdown="1"> An Amazon Web Services conversion compresses the passed session
1211
- # policies and session tags into a packed binary format that has a
1212
- # separate limit. Your request can fail for this limit even if your
1213
- # plaintext meets the other requirements. The `PackedPolicySize`
1214
- # response element indicates by percentage how close the policies and
1215
- # tags for your request are to the upper size limit.
1133
+ # <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
1134
+ # session policy, managed policy ARNs, and session tags into a packed
1135
+ # binary format that has a separate limit. Your request can fail for
1136
+ # this limit even if your plaintext meets the other requirements. The
1137
+ # `PackedPolicySize` response element indicates by percentage how
1138
+ # close the policies and tags for your request are to the upper size
1139
+ # limit.
1216
1140
  #
1217
1141
  # </note>
1218
1142
  #
@@ -1229,13 +1153,13 @@ module Aws::STS
1229
1153
  #
1230
1154
  # You must pass an inline or managed [session policy][1] to this
1231
1155
  # operation. You can pass a single JSON policy document to use as an
1232
- # inline session policy. You can also specify up to 10 managed
1233
- # policies to use as managed session policies. The plaintext that you
1234
- # use for both inline and managed session policies can't exceed 2,048
1235
- # characters. You can provide up to 10 managed policy ARNs. For more
1236
- # information about ARNs, see [Amazon Resource Names (ARNs) and Amazon
1237
- # Web Services Service Namespaces][2] in the Amazon Web Services
1238
- # General Reference.
1156
+ # inline session policy. You can also specify up to 10 managed policy
1157
+ # Amazon Resource Names (ARNs) to use as managed session policies. The
1158
+ # plaintext that you use for both inline and managed session policies
1159
+ # can't exceed 2,048 characters. You can provide up to 10 managed
1160
+ # policy ARNs. For more information about ARNs, see [Amazon Resource
1161
+ # Names (ARNs) and Amazon Web Services Service Namespaces][2] in the
1162
+ # Amazon Web Services General Reference.
1239
1163
  #
1240
1164
  # This parameter is optional. However, if you do not pass any session
1241
1165
  # policies, then the resulting federated user session has no
@@ -1256,12 +1180,13 @@ module Aws::STS
1256
1180
  # are granted in addition to the permissions that are granted by the
1257
1181
  # session policies.
1258
1182
  #
1259
- # <note markdown="1"> An Amazon Web Services conversion compresses the passed session
1260
- # policies and session tags into a packed binary format that has a
1261
- # separate limit. Your request can fail for this limit even if your
1262
- # plaintext meets the other requirements. The `PackedPolicySize`
1263
- # response element indicates by percentage how close the policies and
1264
- # tags for your request are to the upper size limit.
1183
+ # <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
1184
+ # session policy, managed policy ARNs, and session tags into a packed
1185
+ # binary format that has a separate limit. Your request can fail for
1186
+ # this limit even if your plaintext meets the other requirements. The
1187
+ # `PackedPolicySize` response element indicates by percentage how
1188
+ # close the policies and tags for your request are to the upper size
1189
+ # limit.
1265
1190
  #
1266
1191
  # </note>
1267
1192
  #
@@ -1275,11 +1200,10 @@ module Aws::STS
1275
1200
  # The duration, in seconds, that the session should last. Acceptable
1276
1201
  # durations for federation sessions range from 900 seconds (15
1277
1202
  # minutes) to 129,600 seconds (36 hours), with 43,200 seconds (12
1278
- # hours) as the default. Sessions obtained using Amazon Web Services
1279
- # account root user credentials are restricted to a maximum of 3,600
1280
- # seconds (one hour). If the specified duration is longer than one
1281
- # hour, the session obtained by using root user credentials defaults
1282
- # to one hour.
1203
+ # hours) as the default. Sessions obtained using root user credentials
1204
+ # are restricted to a maximum of 3,600 seconds (one hour). If the
1205
+ # specified duration is longer than one hour, the session obtained by
1206
+ # using root user credentials defaults to one hour.
1283
1207
  # @return [Integer]
1284
1208
  #
1285
1209
  # @!attribute [rw] tags
@@ -1292,12 +1216,13 @@ module Aws::STS
1292
1216
  # values can’t exceed 256 characters. For these and additional limits,
1293
1217
  # see [IAM and STS Character Limits][2] in the *IAM User Guide*.
1294
1218
  #
1295
- # <note markdown="1"> An Amazon Web Services conversion compresses the passed session
1296
- # policies and session tags into a packed binary format that has a
1297
- # separate limit. Your request can fail for this limit even if your
1298
- # plaintext meets the other requirements. The `PackedPolicySize`
1299
- # response element indicates by percentage how close the policies and
1300
- # tags for your request are to the upper size limit.
1219
+ # <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
1220
+ # session policy, managed policy ARNs, and session tags into a packed
1221
+ # binary format that has a separate limit. Your request can fail for
1222
+ # this limit even if your plaintext meets the other requirements. The
1223
+ # `PackedPolicySize` response element indicates by percentage how
1224
+ # close the policies and tags for your request are to the upper size
1225
+ # limit.
1301
1226
  #
1302
1227
  # </note>
1303
1228
  #
@@ -1370,15 +1295,6 @@ module Aws::STS
1370
1295
  include Aws::Structure
1371
1296
  end
1372
1297
 
1373
- # @note When making an API call, you may pass GetSessionTokenRequest
1374
- # data as a hash:
1375
- #
1376
- # {
1377
- # duration_seconds: 1,
1378
- # serial_number: "serialNumberType",
1379
- # token_code: "tokenCodeType",
1380
- # }
1381
- #
1382
1298
  # @!attribute [rw] duration_seconds
1383
1299
  # The duration, in seconds, that the credentials should remain valid.
1384
1300
  # Acceptable durations for IAM user sessions range from 900 seconds
@@ -1396,8 +1312,8 @@ module Aws::STS
1396
1312
  # The value is either the serial number for a hardware device (such as
1397
1313
  # `GAHT12345678`) or an Amazon Resource Name (ARN) for a virtual
1398
1314
  # device (such as `arn:aws:iam::123456789012:mfa/user`). You can find
1399
- # the device for an IAM user by going to the Management Console and
1400
- # viewing the user's security credentials.
1315
+ # the device for an IAM user by going to the Amazon Web Services
1316
+ # Management Console and viewing the user's security credentials.
1401
1317
  #
1402
1318
  # The regex used to validate this parameter is a string of characters
1403
1319
  # consisting of upper- and lower-case alphanumeric characters with no
@@ -1546,7 +1462,7 @@ module Aws::STS
1546
1462
  #
1547
1463
  #
1548
1464
  # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html
1549
- # [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html
1465
+ # [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-limits-entity-length
1550
1466
  #
1551
1467
  # @!attribute [rw] message
1552
1468
  # @return [String]
@@ -1562,13 +1478,6 @@ module Aws::STS
1562
1478
  # A reference to the IAM managed policy that is passed as a session
1563
1479
  # policy for a role session or a federated user session.
1564
1480
  #
1565
- # @note When making an API call, you may pass PolicyDescriptorType
1566
- # data as a hash:
1567
- #
1568
- # {
1569
- # arn: "arnType",
1570
- # }
1571
- #
1572
1481
  # @!attribute [rw] arn
1573
1482
  # The Amazon Resource Name (ARN) of the IAM managed policy to use as a
1574
1483
  # session policy for the role. For more information about ARNs, see
@@ -1612,20 +1521,13 @@ module Aws::STS
1612
1521
  # You can pass custom key-value pair attributes when you assume a role
1613
1522
  # or federate a user. These are called session tags. You can then use
1614
1523
  # the session tags to control access to resources. For more information,
1615
- # see [Tagging STS Sessions][1] in the *IAM User Guide*.
1524
+ # see [Tagging Amazon Web Services STS Sessions][1] in the *IAM User
1525
+ # Guide*.
1616
1526
  #
1617
1527
  #
1618
1528
  #
1619
1529
  # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html
1620
1530
  #
1621
- # @note When making an API call, you may pass Tag
1622
- # data as a hash:
1623
- #
1624
- # {
1625
- # key: "tagKeyType", # required
1626
- # value: "tagValueType", # required
1627
- # }
1628
- #
1629
1531
  # @!attribute [rw] key
1630
1532
  # The key for a session tag.
1631
1533
  #
data/lib/aws-sdk-sts.rb CHANGED
@@ -15,9 +15,13 @@ end
15
15
 
16
16
  require_relative 'aws-sdk-sts/types'
17
17
  require_relative 'aws-sdk-sts/client_api'
18
+ require_relative 'aws-sdk-sts/plugins/endpoints.rb'
18
19
  require_relative 'aws-sdk-sts/client'
19
20
  require_relative 'aws-sdk-sts/errors'
20
21
  require_relative 'aws-sdk-sts/resource'
22
+ require_relative 'aws-sdk-sts/endpoint_parameters'
23
+ require_relative 'aws-sdk-sts/endpoint_provider'
24
+ require_relative 'aws-sdk-sts/endpoints'
21
25
  require_relative 'aws-sdk-sts/customizations'
22
26
 
23
27
  # This module provides support for AWS Security Token Service. This module is available in the
@@ -50,6 +54,6 @@ require_relative 'aws-sdk-sts/customizations'
50
54
  # @!group service
51
55
  module Aws::STS
52
56
 
53
- GEM_VERSION = '3.121.1'
57
+ GEM_VERSION = '3.174.0'
54
58
 
55
59
  end
@@ -49,4 +49,3 @@ module Seahorse
49
49
  end
50
50
  end
51
51
  end
52
-
@@ -68,7 +68,7 @@ module Seahorse
68
68
  @block = block
69
69
  end
70
70
 
71
- def call(*args)
71
+ def call(*args)
72
72
  @block.call(*args)
73
73
  end
74
74
  end
@@ -195,12 +195,16 @@ module Seahorse
195
195
  @members.include?(method_name) or super
196
196
  end
197
197
 
198
+ def override_config(k, v)
199
+ @struct[k] = v
200
+ end
201
+
198
202
  private
199
203
 
200
204
  def value_at(opt_name)
201
205
  value = @struct[opt_name]
202
206
  if value.is_a?(Defaults)
203
- # this config value is used by endpoint discovery
207
+ # Legacy endpoints must continue to exist.
204
208
  if opt_name == :endpoint && @struct.members.include?(:regional_endpoint)
205
209
  @struct[:regional_endpoint] = true
206
210
  end