aws-sdk-iam 1.33.0 → 1.38.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.
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::IAM
9
+
9
10
  class SamlProvider
10
11
 
11
12
  extend Aws::Deprecations
@@ -90,7 +91,8 @@ module Aws::IAM
90
91
  # Waiter polls an API operation until a resource enters a desired
91
92
  # state.
92
93
  #
93
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
94
+ # @note The waiting operation is performed on a copy. The original resource
95
+ # remains unchanged.
94
96
  #
95
97
  # ## Basic Usage
96
98
  #
@@ -103,13 +105,15 @@ module Aws::IAM
103
105
  #
104
106
  # ## Example
105
107
  #
106
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
108
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
109
+ # instance.state.name == 'running'
110
+ # end
107
111
  #
108
112
  # ## Configuration
109
113
  #
110
114
  # You can configure the maximum number of polling attempts, and the
111
- # delay (in seconds) between each polling attempt. The waiting condition is set
112
- # by passing a block to {#wait_until}:
115
+ # delay (in seconds) between each polling attempt. The waiting condition is
116
+ # set by passing a block to {#wait_until}:
113
117
  #
114
118
  # # poll for ~25 seconds
115
119
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -140,17 +144,16 @@ module Aws::IAM
140
144
  # # resource did not enter the desired state in time
141
145
  # end
142
146
  #
147
+ # @yieldparam [Resource] resource to be used in the waiting condition.
143
148
  #
144
- # @yield param [Resource] resource to be used in the waiting condition
145
- #
146
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
147
- # because the waiter has entered a state that it will not transition
148
- # out of, preventing success.
149
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
150
+ # terminates because the waiter has entered a state that it will not
151
+ # transition out of, preventing success.
149
152
  #
150
153
  # yet successful.
151
154
  #
152
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
153
- # while polling for a resource that is not expected.
155
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
156
+ # encountered while polling for a resource that is not expected.
154
157
  #
155
158
  # @raise [NotImplementedError] Raised when the resource does not
156
159
  #
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::IAM
9
+
9
10
  class ServerCertificate
10
11
 
11
12
  extend Aws::Deprecations
@@ -90,7 +91,8 @@ module Aws::IAM
90
91
  # Waiter polls an API operation until a resource enters a desired
91
92
  # state.
92
93
  #
93
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
94
+ # @note The waiting operation is performed on a copy. The original resource
95
+ # remains unchanged.
94
96
  #
95
97
  # ## Basic Usage
96
98
  #
@@ -103,13 +105,15 @@ module Aws::IAM
103
105
  #
104
106
  # ## Example
105
107
  #
106
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
108
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
109
+ # instance.state.name == 'running'
110
+ # end
107
111
  #
108
112
  # ## Configuration
109
113
  #
110
114
  # You can configure the maximum number of polling attempts, and the
111
- # delay (in seconds) between each polling attempt. The waiting condition is set
112
- # by passing a block to {#wait_until}:
115
+ # delay (in seconds) between each polling attempt. The waiting condition is
116
+ # set by passing a block to {#wait_until}:
113
117
  #
114
118
  # # poll for ~25 seconds
115
119
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -140,17 +144,16 @@ module Aws::IAM
140
144
  # # resource did not enter the desired state in time
141
145
  # end
142
146
  #
147
+ # @yieldparam [Resource] resource to be used in the waiting condition.
143
148
  #
144
- # @yield param [Resource] resource to be used in the waiting condition
145
- #
146
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
147
- # because the waiter has entered a state that it will not transition
148
- # out of, preventing success.
149
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
150
+ # terminates because the waiter has entered a state that it will not
151
+ # transition out of, preventing success.
149
152
  #
150
153
  # yet successful.
151
154
  #
152
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
153
- # while polling for a resource that is not expected.
155
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
156
+ # encountered while polling for a resource that is not expected.
154
157
  #
155
158
  # @raise [NotImplementedError] Raised when the resource does not
156
159
  #
@@ -230,7 +233,7 @@ module Aws::IAM
230
233
  # @return [ServerCertificate]
231
234
  def update(options = {})
232
235
  options = options.merge(server_certificate_name: @name)
233
- resp = @client.update_server_certificate(options)
236
+ @client.update_server_certificate(options)
234
237
  ServerCertificate.new(
235
238
  name: options[:new_server_certificate_name],
236
239
  client: @client
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::IAM
9
+
9
10
  class SigningCertificate
10
11
 
11
12
  extend Aws::Deprecations
@@ -94,7 +95,8 @@ module Aws::IAM
94
95
  # Waiter polls an API operation until a resource enters a desired
95
96
  # state.
96
97
  #
97
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
98
+ # @note The waiting operation is performed on a copy. The original resource
99
+ # remains unchanged.
98
100
  #
99
101
  # ## Basic Usage
100
102
  #
@@ -107,13 +109,15 @@ module Aws::IAM
107
109
  #
108
110
  # ## Example
109
111
  #
110
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
112
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
113
+ # instance.state.name == 'running'
114
+ # end
111
115
  #
112
116
  # ## Configuration
113
117
  #
114
118
  # You can configure the maximum number of polling attempts, and the
115
- # delay (in seconds) between each polling attempt. The waiting condition is set
116
- # by passing a block to {#wait_until}:
119
+ # delay (in seconds) between each polling attempt. The waiting condition is
120
+ # set by passing a block to {#wait_until}:
117
121
  #
118
122
  # # poll for ~25 seconds
119
123
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -144,17 +148,16 @@ module Aws::IAM
144
148
  # # resource did not enter the desired state in time
145
149
  # end
146
150
  #
151
+ # @yieldparam [Resource] resource to be used in the waiting condition.
147
152
  #
148
- # @yield param [Resource] resource to be used in the waiting condition
149
- #
150
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
151
- # because the waiter has entered a state that it will not transition
152
- # out of, preventing success.
153
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
154
+ # terminates because the waiter has entered a state that it will not
155
+ # transition out of, preventing success.
153
156
  #
154
157
  # yet successful.
155
158
  #
156
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
157
- # while polling for a resource that is not expected.
159
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
160
+ # encountered while polling for a resource that is not expected.
158
161
  #
159
162
  # @raise [NotImplementedError] Raised when the resource does not
160
163
  #
@@ -600,8 +600,8 @@ module Aws::IAM
600
600
  # is used when evaluating the `Condition` elements of the input
601
601
  # policies.
602
602
  #
603
- # This data type is used as an input parameter to ` SimulateCustomPolicy
604
- # ` and ` SimulatePrincipalPolicy `.
603
+ # This data type is used as an input parameter to SimulateCustomPolicy
604
+ # and SimulatePrincipalPolicy.
605
605
  #
606
606
  # @note When making an API call, you may pass ContextEntry
607
607
  # data as a hash:
@@ -3021,8 +3021,11 @@ module Aws::IAM
3021
3021
  end
3022
3022
 
3023
3023
  # @!attribute [rw] job_id
3024
- # The job ID that you can use in the GetServiceLastAccessedDetails or
3025
- # GetServiceLastAccessedDetailsWithEntities operations.
3024
+ # The `JobId` that you can use in the GetServiceLastAccessedDetails or
3025
+ # GetServiceLastAccessedDetailsWithEntities operations. The `JobId`
3026
+ # returned by `GenerateServiceLastAccessedDetail` must be used by the
3027
+ # same role within a session, or by the same user when used to call
3028
+ # `GetServiceLastAccessedDetail`.
3026
3029
  # @return [String]
3027
3030
  #
3028
3031
  # @see http://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GenerateServiceLastAccessedDetailsResponse AWS API Documentation
@@ -4134,7 +4137,10 @@ module Aws::IAM
4134
4137
  #
4135
4138
  # @!attribute [rw] job_id
4136
4139
  # The ID of the request generated by the
4137
- # GenerateServiceLastAccessedDetails operation.
4140
+ # GenerateServiceLastAccessedDetails operation. The `JobId` returned
4141
+ # by `GenerateServiceLastAccessedDetail` must be used by the same role
4142
+ # within a session, or by the same user when used to call
4143
+ # `GetServiceLastAccessedDetail`.
4138
4144
  # @return [String]
4139
4145
  #
4140
4146
  # @!attribute [rw] max_items
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::IAM
9
+
9
10
  class User
10
11
 
11
12
  extend Aws::Deprecations
@@ -204,7 +205,8 @@ module Aws::IAM
204
205
  # Waiter polls an API operation until a resource enters a desired
205
206
  # state.
206
207
  #
207
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
208
+ # @note The waiting operation is performed on a copy. The original resource
209
+ # remains unchanged.
208
210
  #
209
211
  # ## Basic Usage
210
212
  #
@@ -217,13 +219,15 @@ module Aws::IAM
217
219
  #
218
220
  # ## Example
219
221
  #
220
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
222
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
223
+ # instance.state.name == 'running'
224
+ # end
221
225
  #
222
226
  # ## Configuration
223
227
  #
224
228
  # You can configure the maximum number of polling attempts, and the
225
- # delay (in seconds) between each polling attempt. The waiting condition is set
226
- # by passing a block to {#wait_until}:
229
+ # delay (in seconds) between each polling attempt. The waiting condition is
230
+ # set by passing a block to {#wait_until}:
227
231
  #
228
232
  # # poll for ~25 seconds
229
233
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -254,17 +258,16 @@ module Aws::IAM
254
258
  # # resource did not enter the desired state in time
255
259
  # end
256
260
  #
261
+ # @yieldparam [Resource] resource to be used in the waiting condition.
257
262
  #
258
- # @yield param [Resource] resource to be used in the waiting condition
259
- #
260
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
261
- # because the waiter has entered a state that it will not transition
262
- # out of, preventing success.
263
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
264
+ # terminates because the waiter has entered a state that it will not
265
+ # transition out of, preventing success.
263
266
  #
264
267
  # yet successful.
265
268
  #
266
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
267
- # while polling for a resource that is not expected.
269
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
270
+ # encountered while polling for a resource that is not expected.
268
271
  #
269
272
  # @raise [NotImplementedError] Raised when the resource does not
270
273
  #
@@ -499,7 +502,7 @@ module Aws::IAM
499
502
  # @return [UserPolicy]
500
503
  def create_policy(options = {})
501
504
  options = options.merge(user_name: @name)
502
- resp = @client.put_user_policy(options)
505
+ @client.put_user_policy(options)
503
506
  UserPolicy.new(
504
507
  user_name: @name,
505
508
  name: options[:policy_name],
@@ -593,7 +596,7 @@ module Aws::IAM
593
596
  # @return [MfaDevice]
594
597
  def enable_mfa(options = {})
595
598
  options = options.merge(user_name: @name)
596
- resp = @client.enable_mfa_device(options)
599
+ @client.enable_mfa_device(options)
597
600
  MfaDevice.new(
598
601
  user_name: @name,
599
602
  serial_number: options[:serial_number],
@@ -656,7 +659,7 @@ module Aws::IAM
656
659
  # @return [User]
657
660
  def update(options = {})
658
661
  options = options.merge(user_name: @name)
659
- resp = @client.update_user(options)
662
+ @client.update_user(options)
660
663
  User.new(
661
664
  name: options[:new_user_name],
662
665
  client: @client
@@ -898,8 +901,8 @@ module Aws::IAM
898
901
 
899
902
  def yield_waiter_and_warn(waiter, &block)
900
903
  if !@waiter_block_warned
901
- msg = "pass options to configure the waiter; "
902
- msg << "yielding the waiter is deprecated"
904
+ msg = "pass options to configure the waiter; "\
905
+ "yielding the waiter is deprecated"
903
906
  warn(msg)
904
907
  @waiter_block_warned = true
905
908
  end
@@ -907,7 +910,9 @@ module Aws::IAM
907
910
  end
908
911
 
909
912
  def separate_params_and_options(options)
910
- opts = Set.new([:client, :max_attempts, :delay, :before_attempt, :before_wait])
913
+ opts = Set.new(
914
+ [:client, :max_attempts, :delay, :before_attempt, :before_wait]
915
+ )
911
916
  waiter_opts = {}
912
917
  waiter_params = {}
913
918
  options.each_pair do |key, value|
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::IAM
9
+
9
10
  class UserPolicy
10
11
 
11
12
  extend Aws::Deprecations
@@ -94,7 +95,8 @@ module Aws::IAM
94
95
  # Waiter polls an API operation until a resource enters a desired
95
96
  # state.
96
97
  #
97
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
98
+ # @note The waiting operation is performed on a copy. The original resource
99
+ # remains unchanged.
98
100
  #
99
101
  # ## Basic Usage
100
102
  #
@@ -107,13 +109,15 @@ module Aws::IAM
107
109
  #
108
110
  # ## Example
109
111
  #
110
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
112
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
113
+ # instance.state.name == 'running'
114
+ # end
111
115
  #
112
116
  # ## Configuration
113
117
  #
114
118
  # You can configure the maximum number of polling attempts, and the
115
- # delay (in seconds) between each polling attempt. The waiting condition is set
116
- # by passing a block to {#wait_until}:
119
+ # delay (in seconds) between each polling attempt. The waiting condition is
120
+ # set by passing a block to {#wait_until}:
117
121
  #
118
122
  # # poll for ~25 seconds
119
123
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -144,17 +148,16 @@ module Aws::IAM
144
148
  # # resource did not enter the desired state in time
145
149
  # end
146
150
  #
151
+ # @yieldparam [Resource] resource to be used in the waiting condition.
147
152
  #
148
- # @yield param [Resource] resource to be used in the waiting condition
149
- #
150
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
151
- # because the waiter has entered a state that it will not transition
152
- # out of, preventing success.
153
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
154
+ # terminates because the waiter has entered a state that it will not
155
+ # transition out of, preventing success.
153
156
  #
154
157
  # yet successful.
155
158
  #
156
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
157
- # while polling for a resource that is not expected.
159
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
160
+ # encountered while polling for a resource that is not expected.
158
161
  #
159
162
  # @raise [NotImplementedError] Raised when the resource does not
160
163
  #
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::IAM
9
+
9
10
  class VirtualMfaDevice
10
11
 
11
12
  extend Aws::Deprecations
@@ -94,7 +95,8 @@ module Aws::IAM
94
95
  # Waiter polls an API operation until a resource enters a desired
95
96
  # state.
96
97
  #
97
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
98
+ # @note The waiting operation is performed on a copy. The original resource
99
+ # remains unchanged.
98
100
  #
99
101
  # ## Basic Usage
100
102
  #
@@ -107,13 +109,15 @@ module Aws::IAM
107
109
  #
108
110
  # ## Example
109
111
  #
110
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
112
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
113
+ # instance.state.name == 'running'
114
+ # end
111
115
  #
112
116
  # ## Configuration
113
117
  #
114
118
  # You can configure the maximum number of polling attempts, and the
115
- # delay (in seconds) between each polling attempt. The waiting condition is set
116
- # by passing a block to {#wait_until}:
119
+ # delay (in seconds) between each polling attempt. The waiting condition is
120
+ # set by passing a block to {#wait_until}:
117
121
  #
118
122
  # # poll for ~25 seconds
119
123
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -144,17 +148,16 @@ module Aws::IAM
144
148
  # # resource did not enter the desired state in time
145
149
  # end
146
150
  #
151
+ # @yieldparam [Resource] resource to be used in the waiting condition.
147
152
  #
148
- # @yield param [Resource] resource to be used in the waiting condition
149
- #
150
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
151
- # because the waiter has entered a state that it will not transition
152
- # out of, preventing success.
153
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
154
+ # terminates because the waiter has entered a state that it will not
155
+ # transition out of, preventing success.
153
156
  #
154
157
  # yet successful.
155
158
  #
156
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
157
- # while polling for a resource that is not expected.
159
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
160
+ # encountered while polling for a resource that is not expected.
158
161
  #
159
162
  # @raise [NotImplementedError] Raised when the resource does not
160
163
  #