aws-sdk-iam 1.34.0 → 1.39.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a04021cf135f23b1b20e2ca6223141d4ceb54d97
4
- data.tar.gz: 42ea296a22a37525890fa80fc38f8917f3e37734
2
+ SHA256:
3
+ metadata.gz: '086f8194faa4dda8254d6053c3c2606092a537a46624c9d6e5a159f5506431d5'
4
+ data.tar.gz: 62e40109086cdd1bb34a6cb886329219dc781e248ba791ac83d20a87ef0d8362
5
5
  SHA512:
6
- metadata.gz: ba460dc7dc24ab33a8487f24ef50ae7f074a5b1d94f173d2082ba0a5d8058b3acda4e39be64b4c9fc57db61664860545faafafa43064358b5639e0804cb30c74
7
- data.tar.gz: bb4b90cf05bbdbf1546684ed9b09745e60987cc44f8248d7b70b32e9be0ca942c4921c3c70735409c4881fc99a26240e697e9dae086133f6563f02e6b89cfc89
6
+ metadata.gz: 70434a577f415496951934e86db86a7653da7b5505d2f45d6532666155c1b2fc768e1eeadae1b9b35b1086c9115364b11c168b0b2d316ae3c06d560450933ba9
7
+ data.tar.gz: 284262a384e6dc7abee1508eb9604b42fe4d649b18e6c27b0b3130da0a78dcbc36307e6bf80597147169acf39dd74c766f6716fc5629a00c91d18754bb540957
@@ -67,6 +67,6 @@ require_relative 'aws-sdk-iam/customizations'
67
67
  # @service
68
68
  module Aws::IAM
69
69
 
70
- GEM_VERSION = '1.34.0'
70
+ GEM_VERSION = '1.39.0'
71
71
 
72
72
  end
@@ -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 remains unchanged
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) {|instance| instance.state.name == 'running' }
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 set
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
- # @yield param [Resource] resource to be used in the waiting condition
144
- #
145
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
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 encountered
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 remains unchanged
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) {|instance| instance.state.name == 'running' }
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 set
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
- # @yield param [Resource] resource to be used in the waiting condition
153
- #
154
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
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 encountered
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 remains unchanged
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) {|instance| instance.state.name == 'running' }
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 set
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
- # @yield param [Resource] resource to be used in the waiting condition
183
- #
184
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
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 encountered
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 remains unchanged
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) {|instance| instance.state.name == 'running' }
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 set
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
- # @yield param [Resource] resource to be used in the waiting condition
124
- #
125
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
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 encountered
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 remains unchanged
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) {|instance| instance.state.name == 'running' }
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 set
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
- # @yield param [Resource] resource to be used in the waiting condition
120
- #
121
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
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 encountered
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
  #
@@ -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
- # client = Aws::IAM::Client.new(
36
- # region: region_name,
37
- # credentials: credentials,
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).
@@ -105,7 +105,7 @@ module Aws::IAM
105
105
  # @option options [required, String] :region
106
106
  # The AWS region to connect to. The configured `:region` is
107
107
  # used to determine the service `:endpoint`. When not passed,
108
- # a default `:region` is search for in the following locations:
108
+ # a default `:region` is searched for in the following locations:
109
109
  #
110
110
  # * `Aws.config[:region]`
111
111
  # * `ENV['AWS_REGION']`
@@ -161,7 +161,7 @@ module Aws::IAM
161
161
  # @option options [String] :endpoint
162
162
  # The client endpoint is normally constructed from the `:region`
163
163
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be avalid HTTP(S) URI.
164
+ # to test endpoints. This should be a valid HTTP(S) URI.
165
165
  #
166
166
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
167
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -176,7 +176,7 @@ module Aws::IAM
176
176
  # requests fetching endpoints information. Defaults to 60 sec.
177
177
  #
178
178
  # @option options [Boolean] :endpoint_discovery (false)
179
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
179
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
180
180
  #
181
181
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
182
182
  # The log formatter.
@@ -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
- # * `legacy` - The pre-existing retry behavior. This is default value if
233
- # no retry mode is provided.
234
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
235
- # This includes support for retry quotas, which limit the number of
236
- # unsuccessful retries a client can make.
237
- # * `adaptive` - An experimental retry mode that includes all the
238
- # functionality of `standard` mode along with automatic client side
239
- # throttling. This is a provisional mode that may change behavior
240
- # in the future.
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 yielded by {#session_for}.
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
@@ -3787,8 +3794,9 @@ module Aws::IAM
3787
3794
  #
3788
3795
  # </note>
3789
3796
  #
3790
- # For more information about service last accessed data, see [Reducing
3791
- # Policy Scope by Viewing User Activity][4] in the *IAM User Guide*.
3797
+ # For more information about service and action last accessed data, see
3798
+ # [Reducing Permissions Using Service Last Accessed Data][4] in the *IAM
3799
+ # User Guide*.
3792
3800
  #
3793
3801
  #
3794
3802
  #
@@ -3802,6 +3810,14 @@ module Aws::IAM
3802
3810
  # used to generate information about when the resource was last used in
3803
3811
  # an attempt to access an AWS service.
3804
3812
  #
3813
+ # @option params [String] :granularity
3814
+ # The level of detail that you want to generate. You can specify whether
3815
+ # you want to generate information about the last attempt to access
3816
+ # services or actions. If you specify service-level granularity, this
3817
+ # operation generates only service data. If you specify action-level
3818
+ # granularity, it generates service and action data. If you don't
3819
+ # include this optional parameter, the operation generates service data.
3820
+ #
3805
3821
  # @return [Types::GenerateServiceLastAccessedDetailsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3806
3822
  #
3807
3823
  # * {Types::GenerateServiceLastAccessedDetailsResponse#job_id #job_id} => String
@@ -3824,6 +3840,7 @@ module Aws::IAM
3824
3840
  #
3825
3841
  # resp = client.generate_service_last_accessed_details({
3826
3842
  # arn: "arnType", # required
3843
+ # granularity: "SERVICE_LEVEL", # accepts SERVICE_LEVEL, ACTION_LEVEL
3827
3844
  # })
3828
3845
  #
3829
3846
  # @example Response structure
@@ -3938,6 +3955,8 @@ module Aws::IAM
3938
3955
  # * {Types::GetAccountAuthorizationDetailsResponse#is_truncated #is_truncated} => Boolean
3939
3956
  # * {Types::GetAccountAuthorizationDetailsResponse#marker #marker} => String
3940
3957
  #
3958
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3959
+ #
3941
3960
  # @example Request syntax with placeholder values
3942
3961
  #
3943
3962
  # resp = client.get_account_authorization_details({
@@ -4386,6 +4405,8 @@ module Aws::IAM
4386
4405
  # * {Types::GetGroupResponse#is_truncated #is_truncated} => Boolean
4387
4406
  # * {Types::GetGroupResponse#marker #marker} => String
4388
4407
  #
4408
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4409
+ #
4389
4410
  # @example Request syntax with placeholder values
4390
4411
  #
4391
4412
  # resp = client.get_group({
@@ -4586,6 +4607,11 @@ module Aws::IAM
4586
4607
  # resp.instance_profile.roles[0].role_last_used.last_used_date #=> Time
4587
4608
  # resp.instance_profile.roles[0].role_last_used.region #=> String
4588
4609
  #
4610
+ #
4611
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
4612
+ #
4613
+ # * instance_profile_exists
4614
+ #
4589
4615
  # @see http://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetInstanceProfile AWS API Documentation
4590
4616
  #
4591
4617
  # @overload get_instance_profile(params = {})
@@ -4899,6 +4925,11 @@ module Aws::IAM
4899
4925
  # resp.policy.create_date #=> Time
4900
4926
  # resp.policy.update_date #=> Time
4901
4927
  #
4928
+ #
4929
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
4930
+ #
4931
+ # * policy_exists
4932
+ #
4902
4933
  # @see http://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetPolicy AWS API Documentation
4903
4934
  #
4904
4935
  # @overload get_policy(params = {})
@@ -5071,6 +5102,11 @@ module Aws::IAM
5071
5102
  # resp.role.role_last_used.last_used_date #=> Time
5072
5103
  # resp.role.role_last_used.region #=> String
5073
5104
  #
5105
+ #
5106
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
5107
+ #
5108
+ # * role_exists
5109
+ #
5074
5110
  # @see http://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetRole AWS API Documentation
5075
5111
  #
5076
5112
  # @overload get_role(params = {})
@@ -5378,13 +5414,26 @@ module Aws::IAM
5378
5414
  #
5379
5415
  # By default, the list is sorted by service namespace.
5380
5416
  #
5417
+ # If you specified `ACTION_LEVEL` granularity when you generated the
5418
+ # report, this operation returns service and action last accessed data.
5419
+ # This includes the most recent access attempt for each tracked action
5420
+ # within a service. Otherwise, this operation returns only service data.
5421
+ #
5422
+ # For more information about service and action last accessed data, see
5423
+ # [Reducing Permissions Using Service Last Accessed Data][2] in the *IAM
5424
+ # User Guide*.
5425
+ #
5381
5426
  #
5382
5427
  #
5383
5428
  # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html#policy-eval-basics
5429
+ # [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html
5384
5430
  #
5385
5431
  # @option params [required, String] :job_id
5386
5432
  # The ID of the request generated by the
5387
- # GenerateServiceLastAccessedDetails operation.
5433
+ # GenerateServiceLastAccessedDetails operation. The `JobId` returned by
5434
+ # `GenerateServiceLastAccessedDetail` must be used by the same role
5435
+ # within a session, or by the same user when used to call
5436
+ # `GetServiceLastAccessedDetail`.
5388
5437
  #
5389
5438
  # @option params [Integer] :max_items
5390
5439
  # Use this only when paginating results to indicate the maximum number
@@ -5406,6 +5455,7 @@ module Aws::IAM
5406
5455
  # @return [Types::GetServiceLastAccessedDetailsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5407
5456
  #
5408
5457
  # * {Types::GetServiceLastAccessedDetailsResponse#job_status #job_status} => String
5458
+ # * {Types::GetServiceLastAccessedDetailsResponse#job_type #job_type} => String
5409
5459
  # * {Types::GetServiceLastAccessedDetailsResponse#job_creation_date #job_creation_date} => Time
5410
5460
  # * {Types::GetServiceLastAccessedDetailsResponse#services_last_accessed #services_last_accessed} => Array&lt;Types::ServiceLastAccessed&gt;
5411
5461
  # * {Types::GetServiceLastAccessedDetailsResponse#job_completion_date #job_completion_date} => Time
@@ -5455,13 +5505,20 @@ module Aws::IAM
5455
5505
  # @example Response structure
5456
5506
  #
5457
5507
  # resp.job_status #=> String, one of "IN_PROGRESS", "COMPLETED", "FAILED"
5508
+ # resp.job_type #=> String, one of "SERVICE_LEVEL", "ACTION_LEVEL"
5458
5509
  # resp.job_creation_date #=> Time
5459
5510
  # resp.services_last_accessed #=> Array
5460
5511
  # resp.services_last_accessed[0].service_name #=> String
5461
5512
  # resp.services_last_accessed[0].last_authenticated #=> Time
5462
5513
  # resp.services_last_accessed[0].service_namespace #=> String
5463
5514
  # resp.services_last_accessed[0].last_authenticated_entity #=> String
5515
+ # resp.services_last_accessed[0].last_authenticated_region #=> String
5464
5516
  # resp.services_last_accessed[0].total_authenticated_entities #=> Integer
5517
+ # resp.services_last_accessed[0].tracked_actions_last_accessed #=> Array
5518
+ # resp.services_last_accessed[0].tracked_actions_last_accessed[0].action_name #=> String
5519
+ # resp.services_last_accessed[0].tracked_actions_last_accessed[0].last_accessed_entity #=> String
5520
+ # resp.services_last_accessed[0].tracked_actions_last_accessed[0].last_accessed_time #=> Time
5521
+ # resp.services_last_accessed[0].tracked_actions_last_accessed[0].last_accessed_region #=> String
5465
5522
  # resp.job_completion_date #=> Time
5466
5523
  # resp.is_truncated #=> Boolean
5467
5524
  # resp.marker #=> String
@@ -5730,6 +5787,11 @@ module Aws::IAM
5730
5787
  # resp.user.tags[0].key #=> String
5731
5788
  # resp.user.tags[0].value #=> String
5732
5789
  #
5790
+ #
5791
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
5792
+ #
5793
+ # * user_exists
5794
+ #
5733
5795
  # @see http://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetUser AWS API Documentation
5734
5796
  #
5735
5797
  # @overload get_user(params = {})
@@ -5868,6 +5930,8 @@ module Aws::IAM
5868
5930
  # * {Types::ListAccessKeysResponse#is_truncated #is_truncated} => Boolean
5869
5931
  # * {Types::ListAccessKeysResponse#marker #marker} => String
5870
5932
  #
5933
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
5934
+ #
5871
5935
  #
5872
5936
  # @example Example: To list the access key IDs for an IAM user
5873
5937
  #
@@ -5953,6 +6017,8 @@ module Aws::IAM
5953
6017
  # * {Types::ListAccountAliasesResponse#is_truncated #is_truncated} => Boolean
5954
6018
  # * {Types::ListAccountAliasesResponse#marker #marker} => String
5955
6019
  #
6020
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6021
+ #
5956
6022
  #
5957
6023
  # @example Example: To list account aliases
5958
6024
  #
@@ -6061,6 +6127,8 @@ module Aws::IAM
6061
6127
  # * {Types::ListAttachedGroupPoliciesResponse#is_truncated #is_truncated} => Boolean
6062
6128
  # * {Types::ListAttachedGroupPoliciesResponse#marker #marker} => String
6063
6129
  #
6130
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6131
+ #
6064
6132
  # @example Request syntax with placeholder values
6065
6133
  #
6066
6134
  # resp = client.list_attached_group_policies({
@@ -6157,6 +6225,8 @@ module Aws::IAM
6157
6225
  # * {Types::ListAttachedRolePoliciesResponse#is_truncated #is_truncated} => Boolean
6158
6226
  # * {Types::ListAttachedRolePoliciesResponse#marker #marker} => String
6159
6227
  #
6228
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6229
+ #
6160
6230
  # @example Request syntax with placeholder values
6161
6231
  #
6162
6232
  # resp = client.list_attached_role_policies({
@@ -6253,6 +6323,8 @@ module Aws::IAM
6253
6323
  # * {Types::ListAttachedUserPoliciesResponse#is_truncated #is_truncated} => Boolean
6254
6324
  # * {Types::ListAttachedUserPoliciesResponse#marker #marker} => String
6255
6325
  #
6326
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6327
+ #
6256
6328
  # @example Request syntax with placeholder values
6257
6329
  #
6258
6330
  # resp = client.list_attached_user_policies({
@@ -6362,6 +6434,8 @@ module Aws::IAM
6362
6434
  # * {Types::ListEntitiesForPolicyResponse#is_truncated #is_truncated} => Boolean
6363
6435
  # * {Types::ListEntitiesForPolicyResponse#marker #marker} => String
6364
6436
  #
6437
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6438
+ #
6365
6439
  # @example Request syntax with placeholder values
6366
6440
  #
6367
6441
  # resp = client.list_entities_for_policy({
@@ -6447,6 +6521,8 @@ module Aws::IAM
6447
6521
  # * {Types::ListGroupPoliciesResponse#is_truncated #is_truncated} => Boolean
6448
6522
  # * {Types::ListGroupPoliciesResponse#marker #marker} => String
6449
6523
  #
6524
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6525
+ #
6450
6526
  #
6451
6527
  # @example Example: To list the in-line policies for an IAM group
6452
6528
  #
@@ -6533,6 +6609,8 @@ module Aws::IAM
6533
6609
  # * {Types::ListGroupsResponse#is_truncated #is_truncated} => Boolean
6534
6610
  # * {Types::ListGroupsResponse#marker #marker} => String
6535
6611
  #
6612
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6613
+ #
6536
6614
  #
6537
6615
  # @example Example: To list the IAM groups for the current account
6538
6616
  #
@@ -6636,6 +6714,8 @@ module Aws::IAM
6636
6714
  # * {Types::ListGroupsForUserResponse#is_truncated #is_truncated} => Boolean
6637
6715
  # * {Types::ListGroupsForUserResponse#marker #marker} => String
6638
6716
  #
6717
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6718
+ #
6639
6719
  #
6640
6720
  # @example Example: To list the groups that an IAM user belongs to
6641
6721
  #
@@ -6746,6 +6826,8 @@ module Aws::IAM
6746
6826
  # * {Types::ListInstanceProfilesResponse#is_truncated #is_truncated} => Boolean
6747
6827
  # * {Types::ListInstanceProfilesResponse#marker #marker} => String
6748
6828
  #
6829
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6830
+ #
6749
6831
  # @example Request syntax with placeholder values
6750
6832
  #
6751
6833
  # resp = client.list_instance_profiles({
@@ -6837,6 +6919,8 @@ module Aws::IAM
6837
6919
  # * {Types::ListInstanceProfilesForRoleResponse#is_truncated #is_truncated} => Boolean
6838
6920
  # * {Types::ListInstanceProfilesForRoleResponse#marker #marker} => String
6839
6921
  #
6922
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6923
+ #
6840
6924
  # @example Request syntax with placeholder values
6841
6925
  #
6842
6926
  # resp = client.list_instance_profiles_for_role({
@@ -6925,6 +7009,8 @@ module Aws::IAM
6925
7009
  # * {Types::ListMFADevicesResponse#is_truncated #is_truncated} => Boolean
6926
7010
  # * {Types::ListMFADevicesResponse#marker #marker} => String
6927
7011
  #
7012
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7013
+ #
6928
7014
  # @example Request syntax with placeholder values
6929
7015
  #
6930
7016
  # resp = client.list_mfa_devices({
@@ -7058,6 +7144,8 @@ module Aws::IAM
7058
7144
  # * {Types::ListPoliciesResponse#is_truncated #is_truncated} => Boolean
7059
7145
  # * {Types::ListPoliciesResponse#marker #marker} => String
7060
7146
  #
7147
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7148
+ #
7061
7149
  # @example Request syntax with placeholder values
7062
7150
  #
7063
7151
  # resp = client.list_policies({
@@ -7293,6 +7381,8 @@ module Aws::IAM
7293
7381
  # * {Types::ListPolicyVersionsResponse#is_truncated #is_truncated} => Boolean
7294
7382
  # * {Types::ListPolicyVersionsResponse#marker #marker} => String
7295
7383
  #
7384
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7385
+ #
7296
7386
  # @example Request syntax with placeholder values
7297
7387
  #
7298
7388
  # resp = client.list_policy_versions({
@@ -7371,6 +7461,8 @@ module Aws::IAM
7371
7461
  # * {Types::ListRolePoliciesResponse#is_truncated #is_truncated} => Boolean
7372
7462
  # * {Types::ListRolePoliciesResponse#marker #marker} => String
7373
7463
  #
7464
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7465
+ #
7374
7466
  # @example Request syntax with placeholder values
7375
7467
  #
7376
7468
  # resp = client.list_role_policies({
@@ -7539,6 +7631,8 @@ module Aws::IAM
7539
7631
  # * {Types::ListRolesResponse#is_truncated #is_truncated} => Boolean
7540
7632
  # * {Types::ListRolesResponse#marker #marker} => String
7541
7633
  #
7634
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7635
+ #
7542
7636
  # @example Request syntax with placeholder values
7543
7637
  #
7544
7638
  # resp = client.list_roles({
@@ -7662,6 +7756,8 @@ module Aws::IAM
7662
7756
  # * {Types::ListSSHPublicKeysResponse#is_truncated #is_truncated} => Boolean
7663
7757
  # * {Types::ListSSHPublicKeysResponse#marker #marker} => String
7664
7758
  #
7759
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7760
+ #
7665
7761
  # @example Request syntax with placeholder values
7666
7762
  #
7667
7763
  # resp = client.list_ssh_public_keys({
@@ -7745,6 +7841,8 @@ module Aws::IAM
7745
7841
  # * {Types::ListServerCertificatesResponse#is_truncated #is_truncated} => Boolean
7746
7842
  # * {Types::ListServerCertificatesResponse#marker #marker} => String
7747
7843
  #
7844
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7845
+ #
7748
7846
  # @example Request syntax with placeholder values
7749
7847
  #
7750
7848
  # resp = client.list_server_certificates({
@@ -7885,6 +7983,8 @@ module Aws::IAM
7885
7983
  # * {Types::ListSigningCertificatesResponse#is_truncated #is_truncated} => Boolean
7886
7984
  # * {Types::ListSigningCertificatesResponse#marker #marker} => String
7887
7985
  #
7986
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7987
+ #
7888
7988
  #
7889
7989
  # @example Example: To list the signing certificates for an IAM user
7890
7990
  #
@@ -7986,6 +8086,8 @@ module Aws::IAM
7986
8086
  # * {Types::ListUserPoliciesResponse#is_truncated #is_truncated} => Boolean
7987
8087
  # * {Types::ListUserPoliciesResponse#marker #marker} => String
7988
8088
  #
8089
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
8090
+ #
7989
8091
  # @example Request syntax with placeholder values
7990
8092
  #
7991
8093
  # resp = client.list_user_policies({
@@ -8150,6 +8252,8 @@ module Aws::IAM
8150
8252
  # * {Types::ListUsersResponse#is_truncated #is_truncated} => Boolean
8151
8253
  # * {Types::ListUsersResponse#marker #marker} => String
8152
8254
  #
8255
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
8256
+ #
8153
8257
  #
8154
8258
  # @example Example: To list IAM users
8155
8259
  #
@@ -8250,6 +8354,8 @@ module Aws::IAM
8250
8354
  # * {Types::ListVirtualMFADevicesResponse#is_truncated #is_truncated} => Boolean
8251
8355
  # * {Types::ListVirtualMFADevicesResponse#marker #marker} => String
8252
8356
  #
8357
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
8358
+ #
8253
8359
  #
8254
8360
  # @example Example: To list virtual MFA devices
8255
8361
  #
@@ -9353,6 +9459,8 @@ module Aws::IAM
9353
9459
  # * {Types::SimulatePolicyResponse#is_truncated #is_truncated} => Boolean
9354
9460
  # * {Types::SimulatePolicyResponse#marker #marker} => String
9355
9461
  #
9462
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
9463
+ #
9356
9464
  # @example Request syntax with placeholder values
9357
9465
  #
9358
9466
  # resp = client.simulate_custom_policy({
@@ -9497,7 +9605,7 @@ module Aws::IAM
9497
9605
  # operation. An IAM entity can only have one permissions boundary in
9498
9606
  # effect at a time. For example, if a permissions boundary is attached
9499
9607
  # to an entity and you pass in a different permissions boundary policy
9500
- # using this parameter, then the new permission boundary policy is used
9608
+ # using this parameter, then the new permissions boundary policy is used
9501
9609
  # for the simulation. For more information about permissions boundaries,
9502
9610
  # see [Permissions Boundaries for IAM Entities][1] in the *IAM User
9503
9611
  # Guide*. The policy input is specified as a string containing the
@@ -9678,6 +9786,8 @@ module Aws::IAM
9678
9786
  # * {Types::SimulatePolicyResponse#is_truncated #is_truncated} => Boolean
9679
9787
  # * {Types::SimulatePolicyResponse#marker #marker} => String
9680
9788
  #
9789
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
9790
+ #
9681
9791
  # @example Request syntax with placeholder values
9682
9792
  #
9683
9793
  # resp = client.simulate_principal_policy({
@@ -11451,7 +11561,7 @@ module Aws::IAM
11451
11561
  params: params,
11452
11562
  config: config)
11453
11563
  context[:gem_name] = 'aws-sdk-iam'
11454
- context[:gem_version] = '1.34.0'
11564
+ context[:gem_version] = '1.39.0'
11455
11565
  Seahorse::Client::Request.new(handlers, context)
11456
11566
  end
11457
11567
 
@@ -11517,12 +11627,12 @@ module Aws::IAM
11517
11627
  # The following table lists the valid waiter names, the operations they call,
11518
11628
  # and the default `:delay` and `:max_attempts` values.
11519
11629
  #
11520
- # | waiter_name | params | :delay | :max_attempts |
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 |
11630
+ # | waiter_name | params | :delay | :max_attempts |
11631
+ # | ----------------------- | ----------------------------- | -------- | ------------- |
11632
+ # | instance_profile_exists | {Client#get_instance_profile} | 1 | 40 |
11633
+ # | policy_exists | {Client#get_policy} | 1 | 20 |
11634
+ # | role_exists | {Client#get_role} | 1 | 20 |
11635
+ # | user_exists | {Client#get_user} | 1 | 20 |
11526
11636
  #
11527
11637
  # @raise [Errors::FailureStateError] Raised when the waiter terminates
11528
11638
  # because the waiter has entered a state that it will not transition