aws-sdk-iam 1.77.0 → 1.79.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
2
  SHA256:
3
- metadata.gz: b6ce94b2ea301bdc2df69a02f4190203b9f88ea9279a8598289a42ff81277711
4
- data.tar.gz: 15ad7eb027c1c421741a3f8dbbbda7527bcfc67d3698bd3aa8a173b1262c0c06
3
+ metadata.gz: 277e503c518515b6302d90ff175f2b55f941f1914e0a143cffea1109d900e0c7
4
+ data.tar.gz: fb4f5d0488eca761e987182e153b9a33e9d84f2b5de9949ed8c11650d33db637
5
5
  SHA512:
6
- metadata.gz: 0c6f1ac932a388b2a80c7bfe54b16d3a86bf331b507f58339a3c70fcc78784c6f774c7156ac600e4b75c99725f880ae4ff6f93733db230483aac1049f31f389c
7
- data.tar.gz: c73b9bfbfe2b57b4a01da06c8d3a010da444885b929993d1e7268fb824c053ed0488f4e6956048efab0258bec452cec3fec775054e577a7ccefaa356cf667cca
6
+ metadata.gz: 17ae19639349cdfbda4d87289bc868376db482a89e8610b3f4241c7270df44757c5a21a9640d4b26efc3bcfbc9c94a46ff3a291e9f495ad1509d16e6d2bbdd6b
7
+ data.tar.gz: 6b11711cf6a6d79d62d334ed7ad342bc012be3aa95ca02c0072194265277cbedbd22db87752839ad3fde526b1f6ee467dea982561f9eb66c44f050654be6b3ee
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.79.0 (2023-06-06)
5
+ ------------------
6
+
7
+ * Feature - This release updates the AccountAlias regex pattern with the same length restrictions enforced by the length constraint.
8
+
9
+ 1.78.0 (2023-05-31)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.77.0 (2023-03-22)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.77.0
1
+ 1.79.0
@@ -180,7 +180,9 @@ module Aws::IAM
180
180
  :retry
181
181
  end
182
182
  end
183
- Aws::Waiters::Waiter.new(options).wait({})
183
+ Aws::Plugins::UserAgent.feature('resource') do
184
+ Aws::Waiters::Waiter.new(options).wait({})
185
+ end
184
186
  end
185
187
 
186
188
  # @!group Actions
@@ -196,7 +198,9 @@ module Aws::IAM
196
198
  access_key_id: @id,
197
199
  status: "Active"
198
200
  )
199
- resp = @client.update_access_key(options)
201
+ resp = Aws::Plugins::UserAgent.feature('resource') do
202
+ @client.update_access_key(options)
203
+ end
200
204
  resp.data
201
205
  end
202
206
 
@@ -211,7 +215,9 @@ module Aws::IAM
211
215
  access_key_id: @id,
212
216
  status: "Inactive"
213
217
  )
214
- resp = @client.update_access_key(options)
218
+ resp = Aws::Plugins::UserAgent.feature('resource') do
219
+ @client.update_access_key(options)
220
+ end
215
221
  resp.data
216
222
  end
217
223
 
@@ -225,7 +231,9 @@ module Aws::IAM
225
231
  user_name: @user_name,
226
232
  access_key_id: @id
227
233
  )
228
- resp = @client.delete_access_key(options)
234
+ resp = Aws::Plugins::UserAgent.feature('resource') do
235
+ @client.delete_access_key(options)
236
+ end
229
237
  resp.data
230
238
  end
231
239
 
@@ -189,7 +189,9 @@ module Aws::IAM
189
189
  :retry
190
190
  end
191
191
  end
192
- Aws::Waiters::Waiter.new(options).wait({})
192
+ Aws::Plugins::UserAgent.feature('resource') do
193
+ Aws::Waiters::Waiter.new(options).wait({})
194
+ end
193
195
  end
194
196
 
195
197
  # @!group Actions
@@ -205,7 +207,9 @@ module Aws::IAM
205
207
  access_key_id: @id,
206
208
  status: "Active"
207
209
  )
208
- resp = @client.update_access_key(options)
210
+ resp = Aws::Plugins::UserAgent.feature('resource') do
211
+ @client.update_access_key(options)
212
+ end
209
213
  resp.data
210
214
  end
211
215
 
@@ -220,7 +224,9 @@ module Aws::IAM
220
224
  access_key_id: @id,
221
225
  status: "Inactive"
222
226
  )
223
- resp = @client.update_access_key(options)
227
+ resp = Aws::Plugins::UserAgent.feature('resource') do
228
+ @client.update_access_key(options)
229
+ end
224
230
  resp.data
225
231
  end
226
232
 
@@ -234,7 +240,9 @@ module Aws::IAM
234
240
  user_name: @user_name,
235
241
  access_key_id: @id
236
242
  )
237
- resp = @client.delete_access_key(options)
243
+ resp = Aws::Plugins::UserAgent.feature('resource') do
244
+ @client.delete_access_key(options)
245
+ end
238
246
  resp.data
239
247
  end
240
248
 
@@ -116,7 +116,9 @@ module Aws::IAM
116
116
  #
117
117
  # @return [self]
118
118
  def load
119
- resp = @client.get_account_password_policy
119
+ resp = Aws::Plugins::UserAgent.feature('resource') do
120
+ @client.get_account_password_policy
121
+ end
120
122
  @data = resp.password_policy
121
123
  self
122
124
  end
@@ -231,7 +233,9 @@ module Aws::IAM
231
233
  :retry
232
234
  end
233
235
  end
234
- Aws::Waiters::Waiter.new(options).wait({})
236
+ Aws::Plugins::UserAgent.feature('resource') do
237
+ Aws::Waiters::Waiter.new(options).wait({})
238
+ end
235
239
  end
236
240
 
237
241
  # @!group Actions
@@ -242,7 +246,9 @@ module Aws::IAM
242
246
  # @param [Hash] options ({})
243
247
  # @return [EmptyStructure]
244
248
  def delete(options = {})
245
- resp = @client.delete_account_password_policy(options)
249
+ resp = Aws::Plugins::UserAgent.feature('resource') do
250
+ @client.delete_account_password_policy(options)
251
+ end
246
252
  resp.data
247
253
  end
248
254
 
@@ -345,7 +351,9 @@ module Aws::IAM
345
351
  # </note>
346
352
  # @return [EmptyStructure]
347
353
  def update(options = {})
348
- resp = @client.update_account_password_policy(options)
354
+ resp = Aws::Plugins::UserAgent.feature('resource') do
355
+ @client.update_account_password_policy(options)
356
+ end
349
357
  resp.data
350
358
  end
351
359
 
@@ -45,7 +45,9 @@ module Aws::IAM
45
45
  #
46
46
  # @return [self]
47
47
  def load
48
- resp = @client.get_account_summary
48
+ resp = Aws::Plugins::UserAgent.feature('resource') do
49
+ @client.get_account_summary
50
+ end
49
51
  @data = resp.data
50
52
  self
51
53
  end
@@ -160,7 +162,9 @@ module Aws::IAM
160
162
  :retry
161
163
  end
162
164
  end
163
- Aws::Waiters::Waiter.new(options).wait({})
165
+ Aws::Plugins::UserAgent.feature('resource') do
166
+ Aws::Waiters::Waiter.new(options).wait({})
167
+ end
164
168
  end
165
169
 
166
170
  # @deprecated
@@ -156,7 +156,9 @@ module Aws::IAM
156
156
  :retry
157
157
  end
158
158
  end
159
- Aws::Waiters::Waiter.new(options).wait({})
159
+ Aws::Plugins::UserAgent.feature('resource') do
160
+ Aws::Waiters::Waiter.new(options).wait({})
161
+ end
160
162
  end
161
163
 
162
164
  # @!group Actions
@@ -193,7 +195,9 @@ module Aws::IAM
193
195
  # @return [EmptyStructure]
194
196
  def update(options = {})
195
197
  options = options.merge(role_name: @role_name)
196
- resp = @client.update_assume_role_policy(options)
198
+ resp = Aws::Plugins::UserAgent.feature('resource') do
199
+ @client.update_assume_role_policy(options)
200
+ end
197
201
  resp.data
198
202
  end
199
203
 
@@ -275,6 +275,11 @@ module Aws::IAM
275
275
  # in the future.
276
276
  #
277
277
  #
278
+ # @option options [String] :sdk_ua_app_id
279
+ # A unique and opaque application ID that is appended to the
280
+ # User-Agent header as app/<sdk_ua_app_id>. It should have a
281
+ # maximum length of 50.
282
+ #
278
283
  # @option options [String] :secret_access_key
279
284
  #
280
285
  # @option options [String] :session_token
@@ -901,12 +906,13 @@ module Aws::IAM
901
906
  end
902
907
 
903
908
  # Creates an alias for your Amazon Web Services account. For information
904
- # about using an Amazon Web Services account alias, see [Using an alias
905
- # for your Amazon Web Services account ID][1] in the *IAM User Guide*.
909
+ # about using an Amazon Web Services account alias, see [Creating,
910
+ # deleting, and listing an Amazon Web Services account alias][1] in the
911
+ # *Amazon Web Services Sign-In User Guide*.
906
912
  #
907
913
  #
908
914
  #
909
- # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/AccountAlias.html
915
+ # [1]: https://docs.aws.amazon.com/signin/latest/userguide/CreateAccountAlias.html
910
916
  #
911
917
  # @option params [required, String] :account_alias
912
918
  # The account alias to create.
@@ -2536,12 +2542,12 @@ module Aws::IAM
2536
2542
 
2537
2543
  # Deletes the specified Amazon Web Services account alias. For
2538
2544
  # information about using an Amazon Web Services account alias, see
2539
- # [Using an alias for your Amazon Web Services account ID][1] in the
2540
- # *IAM User Guide*.
2545
+ # [Creating, deleting, and listing an Amazon Web Services account
2546
+ # alias][1] in the *Amazon Web Services Sign-In User Guide*.
2541
2547
  #
2542
2548
  #
2543
2549
  #
2544
- # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/AccountAlias.html
2550
+ # [1]: https://docs.aws.amazon.com/signin/latest/userguide/CreateAccountAlias.html
2545
2551
  #
2546
2552
  # @option params [required, String] :account_alias
2547
2553
  # The name of the account alias to delete.
@@ -6354,12 +6360,13 @@ module Aws::IAM
6354
6360
 
6355
6361
  # Lists the account alias associated with the Amazon Web Services
6356
6362
  # account (Note: you can have only one). For information about using an
6357
- # Amazon Web Services account alias, see [Using an alias for your Amazon
6358
- # Web Services account ID][1] in the *IAM User Guide*.
6363
+ # Amazon Web Services account alias, see [Creating, deleting, and
6364
+ # listing an Amazon Web Services account alias][1] in the *Amazon Web
6365
+ # Services Sign-In User Guide*.
6359
6366
  #
6360
6367
  #
6361
6368
  #
6362
- # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/AccountAlias.html
6369
+ # [1]: https://docs.aws.amazon.com/signin/latest/userguide/CreateAccountAlias.html
6363
6370
  #
6364
6371
  # @option params [String] :marker
6365
6372
  # Use this parameter only when paginating results and only after you
@@ -13348,7 +13355,7 @@ module Aws::IAM
13348
13355
  params: params,
13349
13356
  config: config)
13350
13357
  context[:gem_name] = 'aws-sdk-iam'
13351
- context[:gem_version] = '1.77.0'
13358
+ context[:gem_version] = '1.79.0'
13352
13359
  Seahorse::Client::Request.new(handlers, context)
13353
13360
  end
13354
13361
 
@@ -2217,6 +2217,7 @@ module Aws::IAM
2217
2217
  o.http_request_uri = "/"
2218
2218
  o.input = Shapes::ShapeRef.new(shape: CreateAccountAliasRequest)
2219
2219
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2220
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
2220
2221
  o.errors << Shapes::ShapeRef.new(shape: EntityAlreadyExistsException)
2221
2222
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
2222
2223
  o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
@@ -2387,6 +2388,7 @@ module Aws::IAM
2387
2388
  o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
2388
2389
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
2389
2390
  o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
2391
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
2390
2392
  end)
2391
2393
 
2392
2394
  api.add_operation(:delete_access_key, Seahorse::Model::Operation.new.tap do |o|
@@ -2406,6 +2408,7 @@ module Aws::IAM
2406
2408
  o.http_request_uri = "/"
2407
2409
  o.input = Shapes::ShapeRef.new(shape: DeleteAccountAliasRequest)
2408
2410
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2411
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
2409
2412
  o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
2410
2413
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
2411
2414
  o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
@@ -2604,6 +2607,7 @@ module Aws::IAM
2604
2607
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2605
2608
  o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
2606
2609
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
2610
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
2607
2611
  o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
2608
2612
  end)
2609
2613
 
@@ -2651,6 +2655,7 @@ module Aws::IAM
2651
2655
  o.errors << Shapes::ShapeRef.new(shape: DeleteConflictException)
2652
2656
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
2653
2657
  o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
2658
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
2654
2659
  end)
2655
2660
 
2656
2661
  api.add_operation(:detach_group_policy, Seahorse::Model::Operation.new.tap do |o|
@@ -2702,6 +2707,7 @@ module Aws::IAM
2702
2707
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
2703
2708
  o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
2704
2709
  o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
2710
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
2705
2711
  end)
2706
2712
 
2707
2713
  api.add_operation(:generate_credential_report, Seahorse::Model::Operation.new.tap do |o|
@@ -3612,6 +3618,7 @@ module Aws::IAM
3612
3618
  o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
3613
3619
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
3614
3620
  o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
3621
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
3615
3622
  end)
3616
3623
 
3617
3624
  api.add_operation(:set_default_policy_version, Seahorse::Model::Operation.new.tap do |o|
@@ -4069,6 +4076,7 @@ module Aws::IAM
4069
4076
  o.errors << Shapes::ShapeRef.new(shape: InvalidCertificateException)
4070
4077
  o.errors << Shapes::ShapeRef.new(shape: DuplicateCertificateException)
4071
4078
  o.errors << Shapes::ShapeRef.new(shape: NoSuchEntityException)
4079
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
4072
4080
  o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
4073
4081
  end)
4074
4082
  end
@@ -145,7 +145,9 @@ module Aws::IAM
145
145
  #
146
146
  # @return [self]
147
147
  def load
148
- resp = @client.get_user
148
+ resp = Aws::Plugins::UserAgent.feature('resource') do
149
+ @client.get_user
150
+ end
149
151
  @data = resp.user
150
152
  self
151
153
  end
@@ -260,7 +262,9 @@ module Aws::IAM
260
262
  :retry
261
263
  end
262
264
  end
263
- Aws::Waiters::Waiter.new(options).wait({})
265
+ Aws::Plugins::UserAgent.feature('resource') do
266
+ Aws::Waiters::Waiter.new(options).wait({})
267
+ end
264
268
  end
265
269
 
266
270
  # @!group Associations
@@ -285,7 +289,9 @@ module Aws::IAM
285
289
  # @return [AccessKey::Collection]
286
290
  def access_keys(options = {})
287
291
  batches = Enumerator.new do |y|
288
- resp = @client.list_access_keys(options)
292
+ resp = Aws::Plugins::UserAgent.feature('resource') do
293
+ @client.list_access_keys(options)
294
+ end
289
295
  resp.each_page do |page|
290
296
  batch = []
291
297
  page.data.access_key_metadata.each do |a|
@@ -322,7 +328,9 @@ module Aws::IAM
322
328
  # @return [MfaDevice::Collection]
323
329
  def mfa_devices(options = {})
324
330
  batches = Enumerator.new do |y|
325
- resp = @client.list_mfa_devices(options)
331
+ resp = Aws::Plugins::UserAgent.feature('resource') do
332
+ @client.list_mfa_devices(options)
333
+ end
326
334
  resp.each_page do |page|
327
335
  batch = []
328
336
  page.data.mfa_devices.each do |m|
@@ -360,7 +368,9 @@ module Aws::IAM
360
368
  # @return [SigningCertificate::Collection]
361
369
  def signing_certificates(options = {})
362
370
  batches = Enumerator.new do |y|
363
- resp = @client.list_signing_certificates(options)
371
+ resp = Aws::Plugins::UserAgent.feature('resource') do
372
+ @client.list_signing_certificates(options)
373
+ end
364
374
  resp.each_page do |page|
365
375
  batch = []
366
376
  page.data.certificates.each do |c|
@@ -9,10 +9,12 @@ module Aws
9
9
  # Returns `false` if this account had no alias to remove.
10
10
  # @see Client#delete_account_alias
11
11
  def delete_account_alias
12
- if name = @client.list_account_aliases.account_aliases.first
13
- @client.delete_account_alias(account_alias: name)
14
- else
15
- false
12
+ Aws::Plugins::UserAgent.feature('resource') do
13
+ if name = @client.list_account_aliases.account_aliases.first
14
+ @client.delete_account_alias(account_alias: name)
15
+ else
16
+ false
17
+ end
16
18
  end
17
19
  end
18
20
 
@@ -25,85 +25,25 @@ module Aws::IAM
25
25
  end
26
26
  if Aws::Endpoints::Matchers.set?(region)
27
27
  if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")
29
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
30
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
31
- return Aws::Endpoints::Endpoint.new(url: "https://iam-fips.#{region}.api.aws", headers: {}, properties: {})
32
- end
33
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
34
- end
35
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
36
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
37
- return Aws::Endpoints::Endpoint.new(url: "https://iam-fips.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"iam", "signingRegion"=>"us-east-1"}]})
38
- end
39
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
40
- end
41
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
42
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
43
- return Aws::Endpoints::Endpoint.new(url: "https://iam.#{region}.api.aws", headers: {}, properties: {})
44
- end
45
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
- end
28
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false)
47
29
  return Aws::Endpoints::Endpoint.new(url: "https://iam.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"iam", "signingRegion"=>"us-east-1"}]})
48
30
  end
49
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn")
50
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
51
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
52
- return Aws::Endpoints::Endpoint.new(url: "https://iam-fips.#{region}.api.amazonwebservices.com.cn", headers: {}, properties: {})
53
- end
54
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
55
- end
56
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
57
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
58
- return Aws::Endpoints::Endpoint.new(url: "https://iam-fips.#{region}.amazonaws.com.cn", headers: {}, properties: {})
59
- end
60
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
61
- end
62
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
63
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
64
- return Aws::Endpoints::Endpoint.new(url: "https://iam.#{region}.api.amazonwebservices.com.cn", headers: {}, properties: {})
65
- end
66
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
67
- end
31
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false)
32
+ return Aws::Endpoints::Endpoint.new(url: "https://iam-fips.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"iam", "signingRegion"=>"us-east-1"}]})
33
+ end
34
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false)
68
35
  return Aws::Endpoints::Endpoint.new(url: "https://iam.cn-north-1.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"iam", "signingRegion"=>"cn-north-1"}]})
69
36
  end
70
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
71
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
72
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
73
- return Aws::Endpoints::Endpoint.new(url: "https://iam-fips.#{region}.api.aws", headers: {}, properties: {})
74
- end
75
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
76
- end
77
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
78
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
79
- return Aws::Endpoints::Endpoint.new(url: "https://iam.us-gov.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"iam", "signingRegion"=>"us-gov-west-1"}]})
80
- end
81
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
82
- end
83
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
84
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
85
- return Aws::Endpoints::Endpoint.new(url: "https://iam.#{region}.api.aws", headers: {}, properties: {})
86
- end
87
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
88
- end
37
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false)
89
38
  return Aws::Endpoints::Endpoint.new(url: "https://iam.us-gov.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"iam", "signingRegion"=>"us-gov-west-1"}]})
90
39
  end
91
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso")
92
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
93
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
94
- return Aws::Endpoints::Endpoint.new(url: "https://iam-fips.#{region}.c2s.ic.gov", headers: {}, properties: {})
95
- end
96
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
97
- end
40
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false)
41
+ return Aws::Endpoints::Endpoint.new(url: "https://iam.us-gov.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"iam", "signingRegion"=>"us-gov-west-1"}]})
42
+ end
43
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false)
98
44
  return Aws::Endpoints::Endpoint.new(url: "https://iam.us-iso-east-1.c2s.ic.gov", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"iam", "signingRegion"=>"us-iso-east-1"}]})
99
45
  end
100
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-b")
101
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
102
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
103
- return Aws::Endpoints::Endpoint.new(url: "https://iam-fips.#{region}.sc2s.sgov.gov", headers: {}, properties: {})
104
- end
105
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
106
- end
46
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-b") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false)
107
47
  return Aws::Endpoints::Endpoint.new(url: "https://iam.us-isob-east-1.sc2s.sgov.gov", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"iam", "signingRegion"=>"us-isob-east-1"}]})
108
48
  end
109
49
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
@@ -114,12 +54,6 @@ module Aws::IAM
114
54
  end
115
55
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
116
56
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
117
- if Aws::Endpoints::Matchers.string_equals?(region, "aws-global")
118
- return Aws::Endpoints::Endpoint.new(url: "https://iam-fips.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"iam", "signingRegion"=>"us-east-1"}]})
119
- end
120
- if Aws::Endpoints::Matchers.string_equals?(region, "aws-us-gov-global")
121
- return Aws::Endpoints::Endpoint.new(url: "https://iam.us-gov.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"iam", "signingRegion"=>"us-gov-west-1"}]})
122
- end
123
57
  return Aws::Endpoints::Endpoint.new(url: "https://iam-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
124
58
  end
125
59
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
@@ -130,21 +64,6 @@ module Aws::IAM
130
64
  end
131
65
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
132
66
  end
133
- if Aws::Endpoints::Matchers.string_equals?(region, "aws-global")
134
- return Aws::Endpoints::Endpoint.new(url: "https://iam.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"iam", "signingRegion"=>"us-east-1"}]})
135
- end
136
- if Aws::Endpoints::Matchers.string_equals?(region, "aws-cn-global")
137
- return Aws::Endpoints::Endpoint.new(url: "https://iam.cn-north-1.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"iam", "signingRegion"=>"cn-north-1"}]})
138
- end
139
- if Aws::Endpoints::Matchers.string_equals?(region, "aws-us-gov-global")
140
- return Aws::Endpoints::Endpoint.new(url: "https://iam.us-gov.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"iam", "signingRegion"=>"us-gov-west-1"}]})
141
- end
142
- if Aws::Endpoints::Matchers.string_equals?(region, "aws-iso-global")
143
- return Aws::Endpoints::Endpoint.new(url: "https://iam.us-iso-east-1.c2s.ic.gov", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"iam", "signingRegion"=>"us-iso-east-1"}]})
144
- end
145
- if Aws::Endpoints::Matchers.string_equals?(region, "aws-iso-b-global")
146
- return Aws::Endpoints::Endpoint.new(url: "https://iam.us-isob-east-1.sc2s.sgov.gov", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"iam", "signingRegion"=>"us-isob-east-1"}]})
147
- end
148
67
  return Aws::Endpoints::Endpoint.new(url: "https://iam.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
149
68
  end
150
69
  end