aws-sdk-cloudhsm 1.46.0 → 1.47.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudhsm/client.rb +1 -1
- data/lib/aws-sdk-cloudhsm/client_api.rb +20 -0
- data/lib/aws-sdk-cloudhsm/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-cloudhsm.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12141b1f2220dd0fc373b66a42b34dbd0bfffd42a969bf17b6457417c9aa63de
|
4
|
+
data.tar.gz: b55f5df3a5cdb97822d04f0c1850310f0706d90361590275b0ce0d47d4da9c6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c11e6bdcb713f2d1915a3c72b97b2a5f66a13e9a0a80102c90787eb465a4c0c846dd241255b4e0be0bb63120021d26424f8cdd1c57ce6f6661bc8929a6e3374
|
7
|
+
data.tar.gz: 742d4691b80d5f322f7917e7dab66d363f6a05e0115e3178269cc4d908833198713516d61aaa5425023a2231bcc5947c44fd4fc5b4af014571d5ed2d9a50454b
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.47.0
|
@@ -1577,7 +1577,7 @@ module Aws::CloudHSM
|
|
1577
1577
|
params: params,
|
1578
1578
|
config: config)
|
1579
1579
|
context[:gem_name] = 'aws-sdk-cloudhsm'
|
1580
|
-
context[:gem_version] = '1.
|
1580
|
+
context[:gem_version] = '1.47.0'
|
1581
1581
|
Seahorse::Client::Request.new(handlers, context)
|
1582
1582
|
end
|
1583
1583
|
|
@@ -324,6 +324,7 @@ module Aws::CloudHSM
|
|
324
324
|
o.name = "AddTagsToResource"
|
325
325
|
o.http_method = "POST"
|
326
326
|
o.http_request_uri = "/"
|
327
|
+
o.deprecated = true
|
327
328
|
o.input = Shapes::ShapeRef.new(shape: AddTagsToResourceRequest)
|
328
329
|
o.output = Shapes::ShapeRef.new(shape: AddTagsToResourceResponse)
|
329
330
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -335,6 +336,7 @@ module Aws::CloudHSM
|
|
335
336
|
o.name = "CreateHapg"
|
336
337
|
o.http_method = "POST"
|
337
338
|
o.http_request_uri = "/"
|
339
|
+
o.deprecated = true
|
338
340
|
o.input = Shapes::ShapeRef.new(shape: CreateHapgRequest)
|
339
341
|
o.output = Shapes::ShapeRef.new(shape: CreateHapgResponse)
|
340
342
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -346,6 +348,7 @@ module Aws::CloudHSM
|
|
346
348
|
o.name = "CreateHsm"
|
347
349
|
o.http_method = "POST"
|
348
350
|
o.http_request_uri = "/"
|
351
|
+
o.deprecated = true
|
349
352
|
o.input = Shapes::ShapeRef.new(shape: CreateHsmRequest)
|
350
353
|
o.output = Shapes::ShapeRef.new(shape: CreateHsmResponse)
|
351
354
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -357,6 +360,7 @@ module Aws::CloudHSM
|
|
357
360
|
o.name = "CreateLunaClient"
|
358
361
|
o.http_method = "POST"
|
359
362
|
o.http_request_uri = "/"
|
363
|
+
o.deprecated = true
|
360
364
|
o.input = Shapes::ShapeRef.new(shape: CreateLunaClientRequest)
|
361
365
|
o.output = Shapes::ShapeRef.new(shape: CreateLunaClientResponse)
|
362
366
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -368,6 +372,7 @@ module Aws::CloudHSM
|
|
368
372
|
o.name = "DeleteHapg"
|
369
373
|
o.http_method = "POST"
|
370
374
|
o.http_request_uri = "/"
|
375
|
+
o.deprecated = true
|
371
376
|
o.input = Shapes::ShapeRef.new(shape: DeleteHapgRequest)
|
372
377
|
o.output = Shapes::ShapeRef.new(shape: DeleteHapgResponse)
|
373
378
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -379,6 +384,7 @@ module Aws::CloudHSM
|
|
379
384
|
o.name = "DeleteHsm"
|
380
385
|
o.http_method = "POST"
|
381
386
|
o.http_request_uri = "/"
|
387
|
+
o.deprecated = true
|
382
388
|
o.input = Shapes::ShapeRef.new(shape: DeleteHsmRequest)
|
383
389
|
o.output = Shapes::ShapeRef.new(shape: DeleteHsmResponse)
|
384
390
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -390,6 +396,7 @@ module Aws::CloudHSM
|
|
390
396
|
o.name = "DeleteLunaClient"
|
391
397
|
o.http_method = "POST"
|
392
398
|
o.http_request_uri = "/"
|
399
|
+
o.deprecated = true
|
393
400
|
o.input = Shapes::ShapeRef.new(shape: DeleteLunaClientRequest)
|
394
401
|
o.output = Shapes::ShapeRef.new(shape: DeleteLunaClientResponse)
|
395
402
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -401,6 +408,7 @@ module Aws::CloudHSM
|
|
401
408
|
o.name = "DescribeHapg"
|
402
409
|
o.http_method = "POST"
|
403
410
|
o.http_request_uri = "/"
|
411
|
+
o.deprecated = true
|
404
412
|
o.input = Shapes::ShapeRef.new(shape: DescribeHapgRequest)
|
405
413
|
o.output = Shapes::ShapeRef.new(shape: DescribeHapgResponse)
|
406
414
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -412,6 +420,7 @@ module Aws::CloudHSM
|
|
412
420
|
o.name = "DescribeHsm"
|
413
421
|
o.http_method = "POST"
|
414
422
|
o.http_request_uri = "/"
|
423
|
+
o.deprecated = true
|
415
424
|
o.input = Shapes::ShapeRef.new(shape: DescribeHsmRequest)
|
416
425
|
o.output = Shapes::ShapeRef.new(shape: DescribeHsmResponse)
|
417
426
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -423,6 +432,7 @@ module Aws::CloudHSM
|
|
423
432
|
o.name = "DescribeLunaClient"
|
424
433
|
o.http_method = "POST"
|
425
434
|
o.http_request_uri = "/"
|
435
|
+
o.deprecated = true
|
426
436
|
o.input = Shapes::ShapeRef.new(shape: DescribeLunaClientRequest)
|
427
437
|
o.output = Shapes::ShapeRef.new(shape: DescribeLunaClientResponse)
|
428
438
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -434,6 +444,7 @@ module Aws::CloudHSM
|
|
434
444
|
o.name = "GetConfig"
|
435
445
|
o.http_method = "POST"
|
436
446
|
o.http_request_uri = "/"
|
447
|
+
o.deprecated = true
|
437
448
|
o.input = Shapes::ShapeRef.new(shape: GetConfigRequest)
|
438
449
|
o.output = Shapes::ShapeRef.new(shape: GetConfigResponse)
|
439
450
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -445,6 +456,7 @@ module Aws::CloudHSM
|
|
445
456
|
o.name = "ListAvailableZones"
|
446
457
|
o.http_method = "POST"
|
447
458
|
o.http_request_uri = "/"
|
459
|
+
o.deprecated = true
|
448
460
|
o.input = Shapes::ShapeRef.new(shape: ListAvailableZonesRequest)
|
449
461
|
o.output = Shapes::ShapeRef.new(shape: ListAvailableZonesResponse)
|
450
462
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -456,6 +468,7 @@ module Aws::CloudHSM
|
|
456
468
|
o.name = "ListHapgs"
|
457
469
|
o.http_method = "POST"
|
458
470
|
o.http_request_uri = "/"
|
471
|
+
o.deprecated = true
|
459
472
|
o.input = Shapes::ShapeRef.new(shape: ListHapgsRequest)
|
460
473
|
o.output = Shapes::ShapeRef.new(shape: ListHapgsResponse)
|
461
474
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -467,6 +480,7 @@ module Aws::CloudHSM
|
|
467
480
|
o.name = "ListHsms"
|
468
481
|
o.http_method = "POST"
|
469
482
|
o.http_request_uri = "/"
|
483
|
+
o.deprecated = true
|
470
484
|
o.input = Shapes::ShapeRef.new(shape: ListHsmsRequest)
|
471
485
|
o.output = Shapes::ShapeRef.new(shape: ListHsmsResponse)
|
472
486
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -478,6 +492,7 @@ module Aws::CloudHSM
|
|
478
492
|
o.name = "ListLunaClients"
|
479
493
|
o.http_method = "POST"
|
480
494
|
o.http_request_uri = "/"
|
495
|
+
o.deprecated = true
|
481
496
|
o.input = Shapes::ShapeRef.new(shape: ListLunaClientsRequest)
|
482
497
|
o.output = Shapes::ShapeRef.new(shape: ListLunaClientsResponse)
|
483
498
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -489,6 +504,7 @@ module Aws::CloudHSM
|
|
489
504
|
o.name = "ListTagsForResource"
|
490
505
|
o.http_method = "POST"
|
491
506
|
o.http_request_uri = "/"
|
507
|
+
o.deprecated = true
|
492
508
|
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
493
509
|
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
494
510
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -500,6 +516,7 @@ module Aws::CloudHSM
|
|
500
516
|
o.name = "ModifyHapg"
|
501
517
|
o.http_method = "POST"
|
502
518
|
o.http_request_uri = "/"
|
519
|
+
o.deprecated = true
|
503
520
|
o.input = Shapes::ShapeRef.new(shape: ModifyHapgRequest)
|
504
521
|
o.output = Shapes::ShapeRef.new(shape: ModifyHapgResponse)
|
505
522
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -511,6 +528,7 @@ module Aws::CloudHSM
|
|
511
528
|
o.name = "ModifyHsm"
|
512
529
|
o.http_method = "POST"
|
513
530
|
o.http_request_uri = "/"
|
531
|
+
o.deprecated = true
|
514
532
|
o.input = Shapes::ShapeRef.new(shape: ModifyHsmRequest)
|
515
533
|
o.output = Shapes::ShapeRef.new(shape: ModifyHsmResponse)
|
516
534
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -522,6 +540,7 @@ module Aws::CloudHSM
|
|
522
540
|
o.name = "ModifyLunaClient"
|
523
541
|
o.http_method = "POST"
|
524
542
|
o.http_request_uri = "/"
|
543
|
+
o.deprecated = true
|
525
544
|
o.input = Shapes::ShapeRef.new(shape: ModifyLunaClientRequest)
|
526
545
|
o.output = Shapes::ShapeRef.new(shape: ModifyLunaClientResponse)
|
527
546
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -531,6 +550,7 @@ module Aws::CloudHSM
|
|
531
550
|
o.name = "RemoveTagsFromResource"
|
532
551
|
o.http_method = "POST"
|
533
552
|
o.http_request_uri = "/"
|
553
|
+
o.deprecated = true
|
534
554
|
o.input = Shapes::ShapeRef.new(shape: RemoveTagsFromResourceRequest)
|
535
555
|
o.output = Shapes::ShapeRef.new(shape: RemoveTagsFromResourceResponse)
|
536
556
|
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
@@ -14,36 +14,39 @@ module Aws::CloudHSM
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
|
19
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
-
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
-
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"))
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://cloudhsm-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
-
end
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://cloudhsm-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
-
end
|
37
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
38
20
|
end
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
-
|
41
|
-
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
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"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cloudhsm-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cloudhsm-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cloudhsm.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
42
45
|
end
|
43
|
-
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cloudhsm.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
47
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://cloudhsm.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
48
|
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
47
50
|
raise ArgumentError, 'No endpoint could be resolved'
|
48
51
|
|
49
52
|
end
|
data/lib/aws-sdk-cloudhsm.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-cloudhsm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.47.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|