aws-sdk-iam 1.34.0 → 1.35.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-iam.rb +1 -1
- data/lib/aws-sdk-iam/access_key.rb +13 -11
- data/lib/aws-sdk-iam/access_key_pair.rb +13 -11
- data/lib/aws-sdk-iam/account_password_policy.rb +13 -11
- data/lib/aws-sdk-iam/account_summary.rb +13 -11
- data/lib/aws-sdk-iam/assume_role_policy.rb +13 -11
- data/lib/aws-sdk-iam/client.rb +107 -25
- data/lib/aws-sdk-iam/current_user.rb +13 -11
- data/lib/aws-sdk-iam/group.rb +13 -11
- data/lib/aws-sdk-iam/group_policy.rb +13 -11
- data/lib/aws-sdk-iam/instance_profile.rb +16 -12
- data/lib/aws-sdk-iam/login_profile.rb +13 -11
- data/lib/aws-sdk-iam/mfa_device.rb +13 -11
- data/lib/aws-sdk-iam/policy.rb +13 -11
- data/lib/aws-sdk-iam/policy_version.rb +13 -11
- data/lib/aws-sdk-iam/resource.rb +6 -1
- data/lib/aws-sdk-iam/role.rb +13 -11
- data/lib/aws-sdk-iam/role_policy.rb +13 -11
- data/lib/aws-sdk-iam/saml_provider.rb +13 -11
- data/lib/aws-sdk-iam/server_certificate.rb +13 -11
- data/lib/aws-sdk-iam/signing_certificate.rb +13 -11
- data/lib/aws-sdk-iam/types.rb +11 -5
- data/lib/aws-sdk-iam/user.rb +16 -12
- data/lib/aws-sdk-iam/user_policy.rb +13 -11
- data/lib/aws-sdk-iam/virtual_mfa_device.rb +13 -11
- data/lib/aws-sdk-iam/waiters.rb +64 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e320b9fa78cb719f143b3a4a2e3c905f083e166
|
4
|
+
data.tar.gz: 293403d80943fd009a9069ece2a01b2beb26cedf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25c89de0b6075f122da510fbba48c8a4b76860b9a4ee4881e4603090485fb89e408bc53b1468f2c2beb8ceb49b43233bc82372d803f13d48d739677b5756a699
|
7
|
+
data.tar.gz: a78d43a2cb5c9d1ca64dc305e8ae85b7bcd038fc015adb81452a5e7752b0f1909b731357fcaf46991e6bf2b7068fb44bff26fa926cca5512d4ac32fa9d5e3faf
|
data/lib/aws-sdk-iam.rb
CHANGED
@@ -89,7 +89,8 @@ module Aws::IAM
|
|
89
89
|
# Waiter polls an API operation until a resource enters a desired
|
90
90
|
# state.
|
91
91
|
#
|
92
|
-
# @note The waiting operation is performed on a copy. The original resource
|
92
|
+
# @note The waiting operation is performed on a copy. The original resource
|
93
|
+
# remains unchanged.
|
93
94
|
#
|
94
95
|
# ## Basic Usage
|
95
96
|
#
|
@@ -102,13 +103,15 @@ module Aws::IAM
|
|
102
103
|
#
|
103
104
|
# ## Example
|
104
105
|
#
|
105
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
106
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
107
|
+
# instance.state.name == 'running'
|
108
|
+
# end
|
106
109
|
#
|
107
110
|
# ## Configuration
|
108
111
|
#
|
109
112
|
# You can configure the maximum number of polling attempts, and the
|
110
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
111
|
-
# by passing a block to {#wait_until}:
|
113
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
114
|
+
# set by passing a block to {#wait_until}:
|
112
115
|
#
|
113
116
|
# # poll for ~25 seconds
|
114
117
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -139,17 +142,16 @@ module Aws::IAM
|
|
139
142
|
# # resource did not enter the desired state in time
|
140
143
|
# end
|
141
144
|
#
|
145
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
142
146
|
#
|
143
|
-
# @
|
144
|
-
#
|
145
|
-
#
|
146
|
-
# because the waiter has entered a state that it will not transition
|
147
|
-
# out of, preventing success.
|
147
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
148
|
+
# terminates because the waiter has entered a state that it will not
|
149
|
+
# transition out of, preventing success.
|
148
150
|
#
|
149
151
|
# yet successful.
|
150
152
|
#
|
151
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
152
|
-
# while polling for a resource that is not expected.
|
153
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
154
|
+
# encountered while polling for a resource that is not expected.
|
153
155
|
#
|
154
156
|
# @raise [NotImplementedError] Raised when the resource does not
|
155
157
|
#
|
@@ -98,7 +98,8 @@ module Aws::IAM
|
|
98
98
|
# Waiter polls an API operation until a resource enters a desired
|
99
99
|
# state.
|
100
100
|
#
|
101
|
-
# @note The waiting operation is performed on a copy. The original resource
|
101
|
+
# @note The waiting operation is performed on a copy. The original resource
|
102
|
+
# remains unchanged.
|
102
103
|
#
|
103
104
|
# ## Basic Usage
|
104
105
|
#
|
@@ -111,13 +112,15 @@ module Aws::IAM
|
|
111
112
|
#
|
112
113
|
# ## Example
|
113
114
|
#
|
114
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
115
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
116
|
+
# instance.state.name == 'running'
|
117
|
+
# end
|
115
118
|
#
|
116
119
|
# ## Configuration
|
117
120
|
#
|
118
121
|
# You can configure the maximum number of polling attempts, and the
|
119
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
120
|
-
# by passing a block to {#wait_until}:
|
122
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
123
|
+
# set by passing a block to {#wait_until}:
|
121
124
|
#
|
122
125
|
# # poll for ~25 seconds
|
123
126
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -148,17 +151,16 @@ module Aws::IAM
|
|
148
151
|
# # resource did not enter the desired state in time
|
149
152
|
# end
|
150
153
|
#
|
154
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
151
155
|
#
|
152
|
-
# @
|
153
|
-
#
|
154
|
-
#
|
155
|
-
# because the waiter has entered a state that it will not transition
|
156
|
-
# out of, preventing success.
|
156
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
157
|
+
# terminates because the waiter has entered a state that it will not
|
158
|
+
# transition out of, preventing success.
|
157
159
|
#
|
158
160
|
# yet successful.
|
159
161
|
#
|
160
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
161
|
-
# while polling for a resource that is not expected.
|
162
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
163
|
+
# encountered while polling for a resource that is not expected.
|
162
164
|
#
|
163
165
|
# @raise [NotImplementedError] Raised when the resource does not
|
164
166
|
#
|
@@ -128,7 +128,8 @@ module Aws::IAM
|
|
128
128
|
# Waiter polls an API operation until a resource enters a desired
|
129
129
|
# state.
|
130
130
|
#
|
131
|
-
# @note The waiting operation is performed on a copy. The original resource
|
131
|
+
# @note The waiting operation is performed on a copy. The original resource
|
132
|
+
# remains unchanged.
|
132
133
|
#
|
133
134
|
# ## Basic Usage
|
134
135
|
#
|
@@ -141,13 +142,15 @@ module Aws::IAM
|
|
141
142
|
#
|
142
143
|
# ## Example
|
143
144
|
#
|
144
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
145
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
146
|
+
# instance.state.name == 'running'
|
147
|
+
# end
|
145
148
|
#
|
146
149
|
# ## Configuration
|
147
150
|
#
|
148
151
|
# You can configure the maximum number of polling attempts, and the
|
149
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
150
|
-
# by passing a block to {#wait_until}:
|
152
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
153
|
+
# set by passing a block to {#wait_until}:
|
151
154
|
#
|
152
155
|
# # poll for ~25 seconds
|
153
156
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -178,17 +181,16 @@ module Aws::IAM
|
|
178
181
|
# # resource did not enter the desired state in time
|
179
182
|
# end
|
180
183
|
#
|
184
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
181
185
|
#
|
182
|
-
# @
|
183
|
-
#
|
184
|
-
#
|
185
|
-
# because the waiter has entered a state that it will not transition
|
186
|
-
# out of, preventing success.
|
186
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
187
|
+
# terminates because the waiter has entered a state that it will not
|
188
|
+
# transition out of, preventing success.
|
187
189
|
#
|
188
190
|
# yet successful.
|
189
191
|
#
|
190
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
191
|
-
# while polling for a resource that is not expected.
|
192
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
193
|
+
# encountered while polling for a resource that is not expected.
|
192
194
|
#
|
193
195
|
# @raise [NotImplementedError] Raised when the resource does not
|
194
196
|
#
|
@@ -69,7 +69,8 @@ module Aws::IAM
|
|
69
69
|
# Waiter polls an API operation until a resource enters a desired
|
70
70
|
# state.
|
71
71
|
#
|
72
|
-
# @note The waiting operation is performed on a copy. The original resource
|
72
|
+
# @note The waiting operation is performed on a copy. The original resource
|
73
|
+
# remains unchanged.
|
73
74
|
#
|
74
75
|
# ## Basic Usage
|
75
76
|
#
|
@@ -82,13 +83,15 @@ module Aws::IAM
|
|
82
83
|
#
|
83
84
|
# ## Example
|
84
85
|
#
|
85
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
86
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
87
|
+
# instance.state.name == 'running'
|
88
|
+
# end
|
86
89
|
#
|
87
90
|
# ## Configuration
|
88
91
|
#
|
89
92
|
# You can configure the maximum number of polling attempts, and the
|
90
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
91
|
-
# by passing a block to {#wait_until}:
|
93
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
94
|
+
# set by passing a block to {#wait_until}:
|
92
95
|
#
|
93
96
|
# # poll for ~25 seconds
|
94
97
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -119,17 +122,16 @@ module Aws::IAM
|
|
119
122
|
# # resource did not enter the desired state in time
|
120
123
|
# end
|
121
124
|
#
|
125
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
122
126
|
#
|
123
|
-
# @
|
124
|
-
#
|
125
|
-
#
|
126
|
-
# because the waiter has entered a state that it will not transition
|
127
|
-
# out of, preventing success.
|
127
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
128
|
+
# terminates because the waiter has entered a state that it will not
|
129
|
+
# transition out of, preventing success.
|
128
130
|
#
|
129
131
|
# yet successful.
|
130
132
|
#
|
131
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
132
|
-
# while polling for a resource that is not expected.
|
133
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
134
|
+
# encountered while polling for a resource that is not expected.
|
133
135
|
#
|
134
136
|
# @raise [NotImplementedError] Raised when the resource does not
|
135
137
|
#
|
@@ -65,7 +65,8 @@ module Aws::IAM
|
|
65
65
|
# Waiter polls an API operation until a resource enters a desired
|
66
66
|
# state.
|
67
67
|
#
|
68
|
-
# @note The waiting operation is performed on a copy. The original resource
|
68
|
+
# @note The waiting operation is performed on a copy. The original resource
|
69
|
+
# remains unchanged.
|
69
70
|
#
|
70
71
|
# ## Basic Usage
|
71
72
|
#
|
@@ -78,13 +79,15 @@ module Aws::IAM
|
|
78
79
|
#
|
79
80
|
# ## Example
|
80
81
|
#
|
81
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
82
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
83
|
+
# instance.state.name == 'running'
|
84
|
+
# end
|
82
85
|
#
|
83
86
|
# ## Configuration
|
84
87
|
#
|
85
88
|
# You can configure the maximum number of polling attempts, and the
|
86
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
87
|
-
# by passing a block to {#wait_until}:
|
89
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
90
|
+
# set by passing a block to {#wait_until}:
|
88
91
|
#
|
89
92
|
# # poll for ~25 seconds
|
90
93
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -115,17 +118,16 @@ module Aws::IAM
|
|
115
118
|
# # resource did not enter the desired state in time
|
116
119
|
# end
|
117
120
|
#
|
121
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
118
122
|
#
|
119
|
-
# @
|
120
|
-
#
|
121
|
-
#
|
122
|
-
# because the waiter has entered a state that it will not transition
|
123
|
-
# out of, preventing success.
|
123
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
124
|
+
# terminates because the waiter has entered a state that it will not
|
125
|
+
# transition out of, preventing success.
|
124
126
|
#
|
125
127
|
# yet successful.
|
126
128
|
#
|
127
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
128
|
-
# while polling for a resource that is not expected.
|
129
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
130
|
+
# encountered while polling for a resource that is not expected.
|
129
131
|
#
|
130
132
|
# @raise [NotImplementedError] Raised when the resource does not
|
131
133
|
#
|
data/lib/aws-sdk-iam/client.rb
CHANGED
@@ -32,11 +32,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:iam)
|
|
32
32
|
module Aws::IAM
|
33
33
|
# An API client for IAM. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
34
|
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
35
|
+
# client = Aws::IAM::Client.new(
|
36
|
+
# region: region_name,
|
37
|
+
# credentials: credentials,
|
38
|
+
# # ...
|
39
|
+
# )
|
40
40
|
#
|
41
41
|
# For details on configuring region and credentials see
|
42
42
|
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
@@ -229,15 +229,19 @@ module Aws::IAM
|
|
229
229
|
#
|
230
230
|
# @option options [String] :retry_mode ("legacy")
|
231
231
|
# Specifies which retry algorithm to use. Values are:
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
232
|
+
#
|
233
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
234
|
+
# no retry mode is provided.
|
235
|
+
#
|
236
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
237
|
+
# This includes support for retry quotas, which limit the number of
|
238
|
+
# unsuccessful retries a client can make.
|
239
|
+
#
|
240
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
241
|
+
# functionality of `standard` mode along with automatic client side
|
242
|
+
# throttling. This is a provisional mode that may change behavior
|
243
|
+
# in the future.
|
244
|
+
#
|
241
245
|
#
|
242
246
|
# @option options [String] :secret_access_key
|
243
247
|
#
|
@@ -265,8 +269,7 @@ module Aws::IAM
|
|
265
269
|
#
|
266
270
|
# @option options [Integer] :http_read_timeout (60) The default
|
267
271
|
# number of seconds to wait for response data. This value can
|
268
|
-
# safely be set
|
269
|
-
# per-request on the session yielded by {#session_for}.
|
272
|
+
# safely be set per-request on the session.
|
270
273
|
#
|
271
274
|
# @option options [Float] :http_idle_timeout (5) The number of
|
272
275
|
# seconds a connection is allowed to sit idle before it is
|
@@ -278,7 +281,7 @@ module Aws::IAM
|
|
278
281
|
# request body. This option has no effect unless the request has
|
279
282
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
280
283
|
# disables this behaviour. This value can safely be set per
|
281
|
-
# request on the session
|
284
|
+
# request on the session.
|
282
285
|
#
|
283
286
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
284
287
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -3764,6 +3767,10 @@ module Aws::IAM
|
|
3764
3767
|
# the response includes information about the most recent access
|
3765
3768
|
# attempt.
|
3766
3769
|
#
|
3770
|
+
# The `JobId` returned by `GenerateServiceLastAccessedDetail` must be
|
3771
|
+
# used by the same role within a session, or by the same user when
|
3772
|
+
# used to call `GetServiceLastAccessedDetail`.
|
3773
|
+
#
|
3767
3774
|
# * GetServiceLastAccessedDetailsWithEntities – Use this operation for
|
3768
3775
|
# groups and policies to list information about the associated
|
3769
3776
|
# entities (users or roles) that attempted to access a specific AWS
|
@@ -3938,6 +3945,8 @@ module Aws::IAM
|
|
3938
3945
|
# * {Types::GetAccountAuthorizationDetailsResponse#is_truncated #is_truncated} => Boolean
|
3939
3946
|
# * {Types::GetAccountAuthorizationDetailsResponse#marker #marker} => String
|
3940
3947
|
#
|
3948
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3949
|
+
#
|
3941
3950
|
# @example Request syntax with placeholder values
|
3942
3951
|
#
|
3943
3952
|
# resp = client.get_account_authorization_details({
|
@@ -4386,6 +4395,8 @@ module Aws::IAM
|
|
4386
4395
|
# * {Types::GetGroupResponse#is_truncated #is_truncated} => Boolean
|
4387
4396
|
# * {Types::GetGroupResponse#marker #marker} => String
|
4388
4397
|
#
|
4398
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
4399
|
+
#
|
4389
4400
|
# @example Request syntax with placeholder values
|
4390
4401
|
#
|
4391
4402
|
# resp = client.get_group({
|
@@ -4586,6 +4597,11 @@ module Aws::IAM
|
|
4586
4597
|
# resp.instance_profile.roles[0].role_last_used.last_used_date #=> Time
|
4587
4598
|
# resp.instance_profile.roles[0].role_last_used.region #=> String
|
4588
4599
|
#
|
4600
|
+
#
|
4601
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
4602
|
+
#
|
4603
|
+
# * instance_profile_exists
|
4604
|
+
#
|
4589
4605
|
# @see http://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetInstanceProfile AWS API Documentation
|
4590
4606
|
#
|
4591
4607
|
# @overload get_instance_profile(params = {})
|
@@ -4899,6 +4915,11 @@ module Aws::IAM
|
|
4899
4915
|
# resp.policy.create_date #=> Time
|
4900
4916
|
# resp.policy.update_date #=> Time
|
4901
4917
|
#
|
4918
|
+
#
|
4919
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
4920
|
+
#
|
4921
|
+
# * policy_exists
|
4922
|
+
#
|
4902
4923
|
# @see http://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetPolicy AWS API Documentation
|
4903
4924
|
#
|
4904
4925
|
# @overload get_policy(params = {})
|
@@ -5071,6 +5092,11 @@ module Aws::IAM
|
|
5071
5092
|
# resp.role.role_last_used.last_used_date #=> Time
|
5072
5093
|
# resp.role.role_last_used.region #=> String
|
5073
5094
|
#
|
5095
|
+
#
|
5096
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
5097
|
+
#
|
5098
|
+
# * role_exists
|
5099
|
+
#
|
5074
5100
|
# @see http://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetRole AWS API Documentation
|
5075
5101
|
#
|
5076
5102
|
# @overload get_role(params = {})
|
@@ -5384,7 +5410,10 @@ module Aws::IAM
|
|
5384
5410
|
#
|
5385
5411
|
# @option params [required, String] :job_id
|
5386
5412
|
# The ID of the request generated by the
|
5387
|
-
# GenerateServiceLastAccessedDetails operation.
|
5413
|
+
# GenerateServiceLastAccessedDetails operation. The `JobId` returned by
|
5414
|
+
# `GenerateServiceLastAccessedDetail` must be used by the same role
|
5415
|
+
# within a session, or by the same user when used to call
|
5416
|
+
# `GetServiceLastAccessedDetail`.
|
5388
5417
|
#
|
5389
5418
|
# @option params [Integer] :max_items
|
5390
5419
|
# Use this only when paginating results to indicate the maximum number
|
@@ -5730,6 +5759,11 @@ module Aws::IAM
|
|
5730
5759
|
# resp.user.tags[0].key #=> String
|
5731
5760
|
# resp.user.tags[0].value #=> String
|
5732
5761
|
#
|
5762
|
+
#
|
5763
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
5764
|
+
#
|
5765
|
+
# * user_exists
|
5766
|
+
#
|
5733
5767
|
# @see http://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetUser AWS API Documentation
|
5734
5768
|
#
|
5735
5769
|
# @overload get_user(params = {})
|
@@ -5868,6 +5902,8 @@ module Aws::IAM
|
|
5868
5902
|
# * {Types::ListAccessKeysResponse#is_truncated #is_truncated} => Boolean
|
5869
5903
|
# * {Types::ListAccessKeysResponse#marker #marker} => String
|
5870
5904
|
#
|
5905
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
5906
|
+
#
|
5871
5907
|
#
|
5872
5908
|
# @example Example: To list the access key IDs for an IAM user
|
5873
5909
|
#
|
@@ -5953,6 +5989,8 @@ module Aws::IAM
|
|
5953
5989
|
# * {Types::ListAccountAliasesResponse#is_truncated #is_truncated} => Boolean
|
5954
5990
|
# * {Types::ListAccountAliasesResponse#marker #marker} => String
|
5955
5991
|
#
|
5992
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
5993
|
+
#
|
5956
5994
|
#
|
5957
5995
|
# @example Example: To list account aliases
|
5958
5996
|
#
|
@@ -6061,6 +6099,8 @@ module Aws::IAM
|
|
6061
6099
|
# * {Types::ListAttachedGroupPoliciesResponse#is_truncated #is_truncated} => Boolean
|
6062
6100
|
# * {Types::ListAttachedGroupPoliciesResponse#marker #marker} => String
|
6063
6101
|
#
|
6102
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
6103
|
+
#
|
6064
6104
|
# @example Request syntax with placeholder values
|
6065
6105
|
#
|
6066
6106
|
# resp = client.list_attached_group_policies({
|
@@ -6157,6 +6197,8 @@ module Aws::IAM
|
|
6157
6197
|
# * {Types::ListAttachedRolePoliciesResponse#is_truncated #is_truncated} => Boolean
|
6158
6198
|
# * {Types::ListAttachedRolePoliciesResponse#marker #marker} => String
|
6159
6199
|
#
|
6200
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
6201
|
+
#
|
6160
6202
|
# @example Request syntax with placeholder values
|
6161
6203
|
#
|
6162
6204
|
# resp = client.list_attached_role_policies({
|
@@ -6253,6 +6295,8 @@ module Aws::IAM
|
|
6253
6295
|
# * {Types::ListAttachedUserPoliciesResponse#is_truncated #is_truncated} => Boolean
|
6254
6296
|
# * {Types::ListAttachedUserPoliciesResponse#marker #marker} => String
|
6255
6297
|
#
|
6298
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
6299
|
+
#
|
6256
6300
|
# @example Request syntax with placeholder values
|
6257
6301
|
#
|
6258
6302
|
# resp = client.list_attached_user_policies({
|
@@ -6362,6 +6406,8 @@ module Aws::IAM
|
|
6362
6406
|
# * {Types::ListEntitiesForPolicyResponse#is_truncated #is_truncated} => Boolean
|
6363
6407
|
# * {Types::ListEntitiesForPolicyResponse#marker #marker} => String
|
6364
6408
|
#
|
6409
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
6410
|
+
#
|
6365
6411
|
# @example Request syntax with placeholder values
|
6366
6412
|
#
|
6367
6413
|
# resp = client.list_entities_for_policy({
|
@@ -6447,6 +6493,8 @@ module Aws::IAM
|
|
6447
6493
|
# * {Types::ListGroupPoliciesResponse#is_truncated #is_truncated} => Boolean
|
6448
6494
|
# * {Types::ListGroupPoliciesResponse#marker #marker} => String
|
6449
6495
|
#
|
6496
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
6497
|
+
#
|
6450
6498
|
#
|
6451
6499
|
# @example Example: To list the in-line policies for an IAM group
|
6452
6500
|
#
|
@@ -6533,6 +6581,8 @@ module Aws::IAM
|
|
6533
6581
|
# * {Types::ListGroupsResponse#is_truncated #is_truncated} => Boolean
|
6534
6582
|
# * {Types::ListGroupsResponse#marker #marker} => String
|
6535
6583
|
#
|
6584
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
6585
|
+
#
|
6536
6586
|
#
|
6537
6587
|
# @example Example: To list the IAM groups for the current account
|
6538
6588
|
#
|
@@ -6636,6 +6686,8 @@ module Aws::IAM
|
|
6636
6686
|
# * {Types::ListGroupsForUserResponse#is_truncated #is_truncated} => Boolean
|
6637
6687
|
# * {Types::ListGroupsForUserResponse#marker #marker} => String
|
6638
6688
|
#
|
6689
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
6690
|
+
#
|
6639
6691
|
#
|
6640
6692
|
# @example Example: To list the groups that an IAM user belongs to
|
6641
6693
|
#
|
@@ -6746,6 +6798,8 @@ module Aws::IAM
|
|
6746
6798
|
# * {Types::ListInstanceProfilesResponse#is_truncated #is_truncated} => Boolean
|
6747
6799
|
# * {Types::ListInstanceProfilesResponse#marker #marker} => String
|
6748
6800
|
#
|
6801
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
6802
|
+
#
|
6749
6803
|
# @example Request syntax with placeholder values
|
6750
6804
|
#
|
6751
6805
|
# resp = client.list_instance_profiles({
|
@@ -6837,6 +6891,8 @@ module Aws::IAM
|
|
6837
6891
|
# * {Types::ListInstanceProfilesForRoleResponse#is_truncated #is_truncated} => Boolean
|
6838
6892
|
# * {Types::ListInstanceProfilesForRoleResponse#marker #marker} => String
|
6839
6893
|
#
|
6894
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
6895
|
+
#
|
6840
6896
|
# @example Request syntax with placeholder values
|
6841
6897
|
#
|
6842
6898
|
# resp = client.list_instance_profiles_for_role({
|
@@ -6925,6 +6981,8 @@ module Aws::IAM
|
|
6925
6981
|
# * {Types::ListMFADevicesResponse#is_truncated #is_truncated} => Boolean
|
6926
6982
|
# * {Types::ListMFADevicesResponse#marker #marker} => String
|
6927
6983
|
#
|
6984
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
6985
|
+
#
|
6928
6986
|
# @example Request syntax with placeholder values
|
6929
6987
|
#
|
6930
6988
|
# resp = client.list_mfa_devices({
|
@@ -7058,6 +7116,8 @@ module Aws::IAM
|
|
7058
7116
|
# * {Types::ListPoliciesResponse#is_truncated #is_truncated} => Boolean
|
7059
7117
|
# * {Types::ListPoliciesResponse#marker #marker} => String
|
7060
7118
|
#
|
7119
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
7120
|
+
#
|
7061
7121
|
# @example Request syntax with placeholder values
|
7062
7122
|
#
|
7063
7123
|
# resp = client.list_policies({
|
@@ -7293,6 +7353,8 @@ module Aws::IAM
|
|
7293
7353
|
# * {Types::ListPolicyVersionsResponse#is_truncated #is_truncated} => Boolean
|
7294
7354
|
# * {Types::ListPolicyVersionsResponse#marker #marker} => String
|
7295
7355
|
#
|
7356
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
7357
|
+
#
|
7296
7358
|
# @example Request syntax with placeholder values
|
7297
7359
|
#
|
7298
7360
|
# resp = client.list_policy_versions({
|
@@ -7371,6 +7433,8 @@ module Aws::IAM
|
|
7371
7433
|
# * {Types::ListRolePoliciesResponse#is_truncated #is_truncated} => Boolean
|
7372
7434
|
# * {Types::ListRolePoliciesResponse#marker #marker} => String
|
7373
7435
|
#
|
7436
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
7437
|
+
#
|
7374
7438
|
# @example Request syntax with placeholder values
|
7375
7439
|
#
|
7376
7440
|
# resp = client.list_role_policies({
|
@@ -7539,6 +7603,8 @@ module Aws::IAM
|
|
7539
7603
|
# * {Types::ListRolesResponse#is_truncated #is_truncated} => Boolean
|
7540
7604
|
# * {Types::ListRolesResponse#marker #marker} => String
|
7541
7605
|
#
|
7606
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
7607
|
+
#
|
7542
7608
|
# @example Request syntax with placeholder values
|
7543
7609
|
#
|
7544
7610
|
# resp = client.list_roles({
|
@@ -7662,6 +7728,8 @@ module Aws::IAM
|
|
7662
7728
|
# * {Types::ListSSHPublicKeysResponse#is_truncated #is_truncated} => Boolean
|
7663
7729
|
# * {Types::ListSSHPublicKeysResponse#marker #marker} => String
|
7664
7730
|
#
|
7731
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
7732
|
+
#
|
7665
7733
|
# @example Request syntax with placeholder values
|
7666
7734
|
#
|
7667
7735
|
# resp = client.list_ssh_public_keys({
|
@@ -7745,6 +7813,8 @@ module Aws::IAM
|
|
7745
7813
|
# * {Types::ListServerCertificatesResponse#is_truncated #is_truncated} => Boolean
|
7746
7814
|
# * {Types::ListServerCertificatesResponse#marker #marker} => String
|
7747
7815
|
#
|
7816
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
7817
|
+
#
|
7748
7818
|
# @example Request syntax with placeholder values
|
7749
7819
|
#
|
7750
7820
|
# resp = client.list_server_certificates({
|
@@ -7885,6 +7955,8 @@ module Aws::IAM
|
|
7885
7955
|
# * {Types::ListSigningCertificatesResponse#is_truncated #is_truncated} => Boolean
|
7886
7956
|
# * {Types::ListSigningCertificatesResponse#marker #marker} => String
|
7887
7957
|
#
|
7958
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
7959
|
+
#
|
7888
7960
|
#
|
7889
7961
|
# @example Example: To list the signing certificates for an IAM user
|
7890
7962
|
#
|
@@ -7986,6 +8058,8 @@ module Aws::IAM
|
|
7986
8058
|
# * {Types::ListUserPoliciesResponse#is_truncated #is_truncated} => Boolean
|
7987
8059
|
# * {Types::ListUserPoliciesResponse#marker #marker} => String
|
7988
8060
|
#
|
8061
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
8062
|
+
#
|
7989
8063
|
# @example Request syntax with placeholder values
|
7990
8064
|
#
|
7991
8065
|
# resp = client.list_user_policies({
|
@@ -8150,6 +8224,8 @@ module Aws::IAM
|
|
8150
8224
|
# * {Types::ListUsersResponse#is_truncated #is_truncated} => Boolean
|
8151
8225
|
# * {Types::ListUsersResponse#marker #marker} => String
|
8152
8226
|
#
|
8227
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
8228
|
+
#
|
8153
8229
|
#
|
8154
8230
|
# @example Example: To list IAM users
|
8155
8231
|
#
|
@@ -8250,6 +8326,8 @@ module Aws::IAM
|
|
8250
8326
|
# * {Types::ListVirtualMFADevicesResponse#is_truncated #is_truncated} => Boolean
|
8251
8327
|
# * {Types::ListVirtualMFADevicesResponse#marker #marker} => String
|
8252
8328
|
#
|
8329
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
8330
|
+
#
|
8253
8331
|
#
|
8254
8332
|
# @example Example: To list virtual MFA devices
|
8255
8333
|
#
|
@@ -9353,6 +9431,8 @@ module Aws::IAM
|
|
9353
9431
|
# * {Types::SimulatePolicyResponse#is_truncated #is_truncated} => Boolean
|
9354
9432
|
# * {Types::SimulatePolicyResponse#marker #marker} => String
|
9355
9433
|
#
|
9434
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
9435
|
+
#
|
9356
9436
|
# @example Request syntax with placeholder values
|
9357
9437
|
#
|
9358
9438
|
# resp = client.simulate_custom_policy({
|
@@ -9678,6 +9758,8 @@ module Aws::IAM
|
|
9678
9758
|
# * {Types::SimulatePolicyResponse#is_truncated #is_truncated} => Boolean
|
9679
9759
|
# * {Types::SimulatePolicyResponse#marker #marker} => String
|
9680
9760
|
#
|
9761
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
9762
|
+
#
|
9681
9763
|
# @example Request syntax with placeholder values
|
9682
9764
|
#
|
9683
9765
|
# resp = client.simulate_principal_policy({
|
@@ -11451,7 +11533,7 @@ module Aws::IAM
|
|
11451
11533
|
params: params,
|
11452
11534
|
config: config)
|
11453
11535
|
context[:gem_name] = 'aws-sdk-iam'
|
11454
|
-
context[:gem_version] = '1.
|
11536
|
+
context[:gem_version] = '1.35.0'
|
11455
11537
|
Seahorse::Client::Request.new(handlers, context)
|
11456
11538
|
end
|
11457
11539
|
|
@@ -11517,12 +11599,12 @@ module Aws::IAM
|
|
11517
11599
|
# The following table lists the valid waiter names, the operations they call,
|
11518
11600
|
# and the default `:delay` and `:max_attempts` values.
|
11519
11601
|
#
|
11520
|
-
# | waiter_name | params
|
11521
|
-
# | ----------------------- |
|
11522
|
-
# | instance_profile_exists | {#get_instance_profile} | 1 | 40 |
|
11523
|
-
# | policy_exists | {#get_policy} | 1 | 20 |
|
11524
|
-
# | role_exists | {#get_role} | 1 | 20 |
|
11525
|
-
# | user_exists | {#get_user} | 1 | 20 |
|
11602
|
+
# | waiter_name | params | :delay | :max_attempts |
|
11603
|
+
# | ----------------------- | ----------------------------- | -------- | ------------- |
|
11604
|
+
# | instance_profile_exists | {Client#get_instance_profile} | 1 | 40 |
|
11605
|
+
# | policy_exists | {Client#get_policy} | 1 | 20 |
|
11606
|
+
# | role_exists | {Client#get_role} | 1 | 20 |
|
11607
|
+
# | user_exists | {Client#get_user} | 1 | 20 |
|
11526
11608
|
#
|
11527
11609
|
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
11528
11610
|
# because the waiter has entered a state that it will not transition
|