aws-sdk-cloudhsmv2 1.19.0 → 1.20.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 56fa60b034e577eab2fb8df2c76c05263ba8dde1
4
- data.tar.gz: 6d6770bfcd937c741b84143e658ad72730860a04
3
+ metadata.gz: 8596c3b790472914d401ad795ed434e7b748ac01
4
+ data.tar.gz: 21c05db0c22d84ceb96ee3bd28160189197cc406
5
5
  SHA512:
6
- metadata.gz: aad334ac32736545b8e02c5fb96390cdb0b336f744a2bd58b6077c897a8898ab2e41e48699567c1795df69dad3b1f6b0402efd73e530ce9e6333cff3d3dd5c1e
7
- data.tar.gz: a9e6764425fd5b2894f1bce42c041402153837a82d532805067aff06603128110ae08f60393f3628b1f59ff9c2f6ade1b2a3373d77748dec194140efab5a054b
6
+ metadata.gz: b8f64f183a7ccf7ffa2894426a41b2d8f980c8f06d0d8e7c38107cd20ebc480cdff1fa9a25394316f175a4339fee85a0cc208bfd3c0f1d5dbbc5c3c3acb24cf8
7
+ data.tar.gz: f50949e1cd267ea89bf8aadf79bfbb85513b9d197c75bd32c46752a063150c9b9a07b5a568656dbe16924ddb0488da32b7c67bcaa916d0a45ce9a5eefc88e5e4
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-cloudhsmv2/customizations'
42
42
  # @service
43
43
  module Aws::CloudHSMV2
44
44
 
45
- GEM_VERSION = '1.19.0'
45
+ GEM_VERSION = '1.20.0'
46
46
 
47
47
  end
@@ -272,6 +272,8 @@ module Aws::CloudHSMV2
272
272
  # @option params [required, String] :backup_id
273
273
  # The ID of the backup that will be copied to the destination region.
274
274
  #
275
+ # @option params [Array<Types::Tag>] :tag_list
276
+ #
275
277
  # @return [Types::CopyBackupToRegionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
276
278
  #
277
279
  # * {Types::CopyBackupToRegionResponse#destination_backup #destination_backup} => Types::DestinationBackup
@@ -281,6 +283,12 @@ module Aws::CloudHSMV2
281
283
  # resp = client.copy_backup_to_region({
282
284
  # destination_region: "Region", # required
283
285
  # backup_id: "BackupId", # required
286
+ # tag_list: [
287
+ # {
288
+ # key: "TagKey", # required
289
+ # value: "TagValue", # required
290
+ # },
291
+ # ],
284
292
  # })
285
293
  #
286
294
  # @example Response structure
@@ -319,6 +327,8 @@ module Aws::CloudHSMV2
319
327
  # to restore the cluster from a backup instead of creating a new
320
328
  # cluster. To find the backup ID, use DescribeBackups.
321
329
  #
330
+ # @option params [Array<Types::Tag>] :tag_list
331
+ #
322
332
  # @return [Types::CreateClusterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
323
333
  #
324
334
  # * {Types::CreateClusterResponse#cluster #cluster} => Types::Cluster
@@ -329,6 +339,12 @@ module Aws::CloudHSMV2
329
339
  # subnet_ids: ["SubnetId"], # required
330
340
  # hsm_type: "HsmType", # required
331
341
  # source_backup_id: "BackupId",
342
+ # tag_list: [
343
+ # {
344
+ # key: "TagKey", # required
345
+ # value: "TagValue", # required
346
+ # },
347
+ # ],
332
348
  # })
333
349
  #
334
350
  # @example Response structure
@@ -359,6 +375,9 @@ module Aws::CloudHSMV2
359
375
  # resp.cluster.certificates.aws_hardware_certificate #=> String
360
376
  # resp.cluster.certificates.manufacturer_hardware_certificate #=> String
361
377
  # resp.cluster.certificates.cluster_certificate #=> String
378
+ # resp.cluster.tag_list #=> Array
379
+ # resp.cluster.tag_list[0].key #=> String
380
+ # resp.cluster.tag_list[0].value #=> String
362
381
  #
363
382
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateCluster AWS API Documentation
364
383
  #
@@ -419,8 +438,8 @@ module Aws::CloudHSMV2
419
438
  end
420
439
 
421
440
  # Deletes a specified AWS CloudHSM backup. A backup can be restored up
422
- # to 7 days after the DeleteBackup request. For more information on
423
- # restoring a backup, see RestoreBackup
441
+ # to 7 days after the DeleteBackup request is made. For more information
442
+ # on restoring a backup, see RestoreBackup.
424
443
  #
425
444
  # @option params [required, String] :backup_id
426
445
  # The ID of the backup to be deleted. To find the ID of a backup, use
@@ -447,6 +466,9 @@ module Aws::CloudHSMV2
447
466
  # resp.backup.source_backup #=> String
448
467
  # resp.backup.source_cluster #=> String
449
468
  # resp.backup.delete_timestamp #=> Time
469
+ # resp.backup.tag_list #=> Array
470
+ # resp.backup.tag_list[0].key #=> String
471
+ # resp.backup.tag_list[0].value #=> String
450
472
  #
451
473
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteBackup AWS API Documentation
452
474
  #
@@ -504,6 +526,9 @@ module Aws::CloudHSMV2
504
526
  # resp.cluster.certificates.aws_hardware_certificate #=> String
505
527
  # resp.cluster.certificates.manufacturer_hardware_certificate #=> String
506
528
  # resp.cluster.certificates.cluster_certificate #=> String
529
+ # resp.cluster.tag_list #=> Array
530
+ # resp.cluster.tag_list[0].key #=> String
531
+ # resp.cluster.tag_list[0].value #=> String
507
532
  #
508
533
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteCluster AWS API Documentation
509
534
  #
@@ -595,6 +620,8 @@ module Aws::CloudHSMV2
595
620
  # specified state.
596
621
  #
597
622
  # @option params [Boolean] :sort_ascending
623
+ # Designates whether or not to sort the return backups by ascending
624
+ # chronological order of generation.
598
625
  #
599
626
  # @return [Types::DescribeBackupsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
600
627
  #
@@ -624,6 +651,9 @@ module Aws::CloudHSMV2
624
651
  # resp.backups[0].source_backup #=> String
625
652
  # resp.backups[0].source_cluster #=> String
626
653
  # resp.backups[0].delete_timestamp #=> Time
654
+ # resp.backups[0].tag_list #=> Array
655
+ # resp.backups[0].tag_list[0].key #=> String
656
+ # resp.backups[0].tag_list[0].value #=> String
627
657
  # resp.next_token #=> String
628
658
  #
629
659
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeBackups AWS API Documentation
@@ -710,6 +740,9 @@ module Aws::CloudHSMV2
710
740
  # resp.clusters[0].certificates.aws_hardware_certificate #=> String
711
741
  # resp.clusters[0].certificates.manufacturer_hardware_certificate #=> String
712
742
  # resp.clusters[0].certificates.cluster_certificate #=> String
743
+ # resp.clusters[0].tag_list #=> Array
744
+ # resp.clusters[0].tag_list[0].key #=> String
745
+ # resp.clusters[0].tag_list[0].value #=> String
713
746
  # resp.next_token #=> String
714
747
  #
715
748
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeClusters AWS API Documentation
@@ -738,11 +771,10 @@ module Aws::CloudHSMV2
738
771
  #
739
772
  # @option params [required, String] :trust_anchor
740
773
  # The issuing certificate of the issuing certificate authority (CA) that
741
- # issued (signed) the cluster certificate. This can be a root
742
- # (self-signed) certificate or a certificate chain that begins with the
743
- # certificate that issued the cluster certificate and ends with a root
744
- # certificate. The certificate or certificate chain must be in PEM
745
- # format and can contain a maximum of 5000 characters.
774
+ # issued (signed) the cluster certificate. You must use a self-signed
775
+ # certificate. The certificate used to sign the HSM CSR must be directly
776
+ # available, and thus must be the root certificate. The certificate must
777
+ # be in PEM format and can contain a maximum of 5000 characters.
746
778
  #
747
779
  # @return [Types::InitializeClusterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
748
780
  #
@@ -801,7 +833,7 @@ module Aws::CloudHSMV2
801
833
  # @example Request syntax with placeholder values
802
834
  #
803
835
  # resp = client.list_tags({
804
- # resource_id: "ClusterId", # required
836
+ # resource_id: "ResourceId", # required
805
837
  # next_token: "NextToken",
806
838
  # max_results: 1,
807
839
  # })
@@ -823,7 +855,7 @@ module Aws::CloudHSMV2
823
855
  end
824
856
 
825
857
  # Restores a specified AWS CloudHSM backup that is in the
826
- # `PENDING_DELETION` state. For more information on deleting a backup,
858
+ # `PENDING_DELETION` state. For mor information on deleting a backup,
827
859
  # see DeleteBackup.
828
860
  #
829
861
  # @option params [required, String] :backup_id
@@ -851,6 +883,9 @@ module Aws::CloudHSMV2
851
883
  # resp.backup.source_backup #=> String
852
884
  # resp.backup.source_cluster #=> String
853
885
  # resp.backup.delete_timestamp #=> Time
886
+ # resp.backup.tag_list #=> Array
887
+ # resp.backup.tag_list[0].key #=> String
888
+ # resp.backup.tag_list[0].value #=> String
854
889
  #
855
890
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/RestoreBackup AWS API Documentation
856
891
  #
@@ -876,7 +911,7 @@ module Aws::CloudHSMV2
876
911
  # @example Request syntax with placeholder values
877
912
  #
878
913
  # resp = client.tag_resource({
879
- # resource_id: "ClusterId", # required
914
+ # resource_id: "ResourceId", # required
880
915
  # tag_list: [ # required
881
916
  # {
882
917
  # key: "TagKey", # required
@@ -910,7 +945,7 @@ module Aws::CloudHSMV2
910
945
  # @example Request syntax with placeholder values
911
946
  #
912
947
  # resp = client.untag_resource({
913
- # resource_id: "ClusterId", # required
948
+ # resource_id: "ResourceId", # required
914
949
  # tag_key_list: ["TagKey"], # required
915
950
  # })
916
951
  #
@@ -936,7 +971,7 @@ module Aws::CloudHSMV2
936
971
  params: params,
937
972
  config: config)
938
973
  context[:gem_name] = 'aws-sdk-cloudhsmv2'
939
- context[:gem_version] = '1.19.0'
974
+ context[:gem_version] = '1.20.0'
940
975
  Seahorse::Client::Request.new(handlers, context)
941
976
  end
942
977
 
@@ -24,6 +24,7 @@ module Aws::CloudHSMV2
24
24
  CloudHsmInvalidRequestException = Shapes::StructureShape.new(name: 'CloudHsmInvalidRequestException')
25
25
  CloudHsmResourceNotFoundException = Shapes::StructureShape.new(name: 'CloudHsmResourceNotFoundException')
26
26
  CloudHsmServiceException = Shapes::StructureShape.new(name: 'CloudHsmServiceException')
27
+ CloudHsmTagException = Shapes::StructureShape.new(name: 'CloudHsmTagException')
27
28
  Cluster = Shapes::StructureShape.new(name: 'Cluster')
28
29
  ClusterId = Shapes::StringShape.new(name: 'ClusterId')
29
30
  ClusterState = Shapes::StringShape.new(name: 'ClusterState')
@@ -64,6 +65,7 @@ module Aws::CloudHSMV2
64
65
  NextToken = Shapes::StringShape.new(name: 'NextToken')
65
66
  PreCoPassword = Shapes::StringShape.new(name: 'PreCoPassword')
66
67
  Region = Shapes::StringShape.new(name: 'Region')
68
+ ResourceId = Shapes::StringShape.new(name: 'ResourceId')
67
69
  RestoreBackupRequest = Shapes::StructureShape.new(name: 'RestoreBackupRequest')
68
70
  RestoreBackupResponse = Shapes::StructureShape.new(name: 'RestoreBackupResponse')
69
71
  SecurityGroup = Shapes::StringShape.new(name: 'SecurityGroup')
@@ -94,6 +96,7 @@ module Aws::CloudHSMV2
94
96
  Backup.add_member(:source_backup, Shapes::ShapeRef.new(shape: BackupId, location_name: "SourceBackup"))
95
97
  Backup.add_member(:source_cluster, Shapes::ShapeRef.new(shape: ClusterId, location_name: "SourceCluster"))
96
98
  Backup.add_member(:delete_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "DeleteTimestamp"))
99
+ Backup.add_member(:tag_list, Shapes::ShapeRef.new(shape: TagList, location_name: "TagList"))
97
100
  Backup.struct_class = Types::Backup
98
101
 
99
102
  Backups.member = Shapes::ShapeRef.new(shape: Backup)
@@ -120,6 +123,9 @@ module Aws::CloudHSMV2
120
123
  CloudHsmServiceException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "Message"))
121
124
  CloudHsmServiceException.struct_class = Types::CloudHsmServiceException
122
125
 
126
+ CloudHsmTagException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "Message"))
127
+ CloudHsmTagException.struct_class = Types::CloudHsmTagException
128
+
123
129
  Cluster.add_member(:backup_policy, Shapes::ShapeRef.new(shape: BackupPolicy, location_name: "BackupPolicy"))
124
130
  Cluster.add_member(:cluster_id, Shapes::ShapeRef.new(shape: ClusterId, location_name: "ClusterId"))
125
131
  Cluster.add_member(:create_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreateTimestamp"))
@@ -133,12 +139,14 @@ module Aws::CloudHSMV2
133
139
  Cluster.add_member(:subnet_mapping, Shapes::ShapeRef.new(shape: ExternalSubnetMapping, location_name: "SubnetMapping"))
134
140
  Cluster.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, location_name: "VpcId"))
135
141
  Cluster.add_member(:certificates, Shapes::ShapeRef.new(shape: Certificates, location_name: "Certificates"))
142
+ Cluster.add_member(:tag_list, Shapes::ShapeRef.new(shape: TagList, location_name: "TagList"))
136
143
  Cluster.struct_class = Types::Cluster
137
144
 
138
145
  Clusters.member = Shapes::ShapeRef.new(shape: Cluster)
139
146
 
140
147
  CopyBackupToRegionRequest.add_member(:destination_region, Shapes::ShapeRef.new(shape: Region, required: true, location_name: "DestinationRegion"))
141
148
  CopyBackupToRegionRequest.add_member(:backup_id, Shapes::ShapeRef.new(shape: BackupId, required: true, location_name: "BackupId"))
149
+ CopyBackupToRegionRequest.add_member(:tag_list, Shapes::ShapeRef.new(shape: TagList, location_name: "TagList"))
142
150
  CopyBackupToRegionRequest.struct_class = Types::CopyBackupToRegionRequest
143
151
 
144
152
  CopyBackupToRegionResponse.add_member(:destination_backup, Shapes::ShapeRef.new(shape: DestinationBackup, location_name: "DestinationBackup"))
@@ -147,6 +155,7 @@ module Aws::CloudHSMV2
147
155
  CreateClusterRequest.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, required: true, location_name: "SubnetIds"))
148
156
  CreateClusterRequest.add_member(:hsm_type, Shapes::ShapeRef.new(shape: HsmType, required: true, location_name: "HsmType"))
149
157
  CreateClusterRequest.add_member(:source_backup_id, Shapes::ShapeRef.new(shape: BackupId, location_name: "SourceBackupId"))
158
+ CreateClusterRequest.add_member(:tag_list, Shapes::ShapeRef.new(shape: TagList, location_name: "TagList"))
150
159
  CreateClusterRequest.struct_class = Types::CreateClusterRequest
151
160
 
152
161
  CreateClusterResponse.add_member(:cluster, Shapes::ShapeRef.new(shape: Cluster, location_name: "Cluster"))
@@ -233,7 +242,7 @@ module Aws::CloudHSMV2
233
242
  InitializeClusterResponse.add_member(:state_message, Shapes::ShapeRef.new(shape: StateMessage, location_name: "StateMessage"))
234
243
  InitializeClusterResponse.struct_class = Types::InitializeClusterResponse
235
244
 
236
- ListTagsRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ClusterId, required: true, location_name: "ResourceId"))
245
+ ListTagsRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "ResourceId"))
237
246
  ListTagsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
238
247
  ListTagsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxSize, location_name: "MaxResults"))
239
248
  ListTagsRequest.struct_class = Types::ListTagsRequest
@@ -260,13 +269,13 @@ module Aws::CloudHSMV2
260
269
 
261
270
  TagList.member = Shapes::ShapeRef.new(shape: Tag)
262
271
 
263
- TagResourceRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ClusterId, required: true, location_name: "ResourceId"))
272
+ TagResourceRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "ResourceId"))
264
273
  TagResourceRequest.add_member(:tag_list, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "TagList"))
265
274
  TagResourceRequest.struct_class = Types::TagResourceRequest
266
275
 
267
276
  TagResourceResponse.struct_class = Types::TagResourceResponse
268
277
 
269
- UntagResourceRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ClusterId, required: true, location_name: "ResourceId"))
278
+ UntagResourceRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "ResourceId"))
270
279
  UntagResourceRequest.add_member(:tag_key_list, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeyList"))
271
280
  UntagResourceRequest.struct_class = Types::UntagResourceRequest
272
281
 
@@ -298,11 +307,12 @@ module Aws::CloudHSMV2
298
307
  o.http_request_uri = "/"
299
308
  o.input = Shapes::ShapeRef.new(shape: CopyBackupToRegionRequest)
300
309
  o.output = Shapes::ShapeRef.new(shape: CopyBackupToRegionResponse)
310
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
301
311
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
302
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
303
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
304
312
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
305
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
313
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
314
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
315
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmTagException)
306
316
  end)
307
317
 
308
318
  api.add_operation(:create_cluster, Seahorse::Model::Operation.new.tap do |o|
@@ -311,11 +321,12 @@ module Aws::CloudHSMV2
311
321
  o.http_request_uri = "/"
312
322
  o.input = Shapes::ShapeRef.new(shape: CreateClusterRequest)
313
323
  o.output = Shapes::ShapeRef.new(shape: CreateClusterResponse)
324
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
314
325
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
315
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
316
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
317
326
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
318
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
327
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
328
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
329
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmTagException)
319
330
  end)
320
331
 
321
332
  api.add_operation(:create_hsm, Seahorse::Model::Operation.new.tap do |o|
@@ -337,11 +348,11 @@ module Aws::CloudHSMV2
337
348
  o.http_request_uri = "/"
338
349
  o.input = Shapes::ShapeRef.new(shape: DeleteBackupRequest)
339
350
  o.output = Shapes::ShapeRef.new(shape: DeleteBackupResponse)
351
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
340
352
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
341
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
342
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
343
353
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
344
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
354
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
355
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
345
356
  end)
346
357
 
347
358
  api.add_operation(:delete_cluster, Seahorse::Model::Operation.new.tap do |o|
@@ -350,11 +361,12 @@ module Aws::CloudHSMV2
350
361
  o.http_request_uri = "/"
351
362
  o.input = Shapes::ShapeRef.new(shape: DeleteClusterRequest)
352
363
  o.output = Shapes::ShapeRef.new(shape: DeleteClusterResponse)
364
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
353
365
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
354
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
355
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
356
366
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
357
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
367
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
368
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
369
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmTagException)
358
370
  end)
359
371
 
360
372
  api.add_operation(:delete_hsm, Seahorse::Model::Operation.new.tap do |o|
@@ -376,11 +388,12 @@ module Aws::CloudHSMV2
376
388
  o.http_request_uri = "/"
377
389
  o.input = Shapes::ShapeRef.new(shape: DescribeBackupsRequest)
378
390
  o.output = Shapes::ShapeRef.new(shape: DescribeBackupsResponse)
391
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
379
392
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
380
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
381
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
382
393
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
383
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
394
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
395
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
396
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmTagException)
384
397
  o[:pager] = Aws::Pager.new(
385
398
  limit_key: "max_results",
386
399
  tokens: {
@@ -395,10 +408,11 @@ module Aws::CloudHSMV2
395
408
  o.http_request_uri = "/"
396
409
  o.input = Shapes::ShapeRef.new(shape: DescribeClustersRequest)
397
410
  o.output = Shapes::ShapeRef.new(shape: DescribeClustersResponse)
411
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
398
412
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
399
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
400
413
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
401
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
414
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
415
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmTagException)
402
416
  o[:pager] = Aws::Pager.new(
403
417
  limit_key: "max_results",
404
418
  tokens: {
@@ -413,11 +427,11 @@ module Aws::CloudHSMV2
413
427
  o.http_request_uri = "/"
414
428
  o.input = Shapes::ShapeRef.new(shape: InitializeClusterRequest)
415
429
  o.output = Shapes::ShapeRef.new(shape: InitializeClusterResponse)
430
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
416
431
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
417
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
418
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
419
432
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
420
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
433
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
434
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
421
435
  end)
422
436
 
423
437
  api.add_operation(:list_tags, Seahorse::Model::Operation.new.tap do |o|
@@ -426,11 +440,12 @@ module Aws::CloudHSMV2
426
440
  o.http_request_uri = "/"
427
441
  o.input = Shapes::ShapeRef.new(shape: ListTagsRequest)
428
442
  o.output = Shapes::ShapeRef.new(shape: ListTagsResponse)
443
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
429
444
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
430
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
431
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
432
445
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
433
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
446
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
447
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
448
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmTagException)
434
449
  o[:pager] = Aws::Pager.new(
435
450
  limit_key: "max_results",
436
451
  tokens: {
@@ -445,11 +460,11 @@ module Aws::CloudHSMV2
445
460
  o.http_request_uri = "/"
446
461
  o.input = Shapes::ShapeRef.new(shape: RestoreBackupRequest)
447
462
  o.output = Shapes::ShapeRef.new(shape: RestoreBackupResponse)
463
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
448
464
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
449
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
450
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
451
465
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
452
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
466
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
467
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
453
468
  end)
454
469
 
455
470
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -458,11 +473,12 @@ module Aws::CloudHSMV2
458
473
  o.http_request_uri = "/"
459
474
  o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
460
475
  o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
476
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
461
477
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
462
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
463
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
464
478
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
465
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
479
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
480
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
481
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmTagException)
466
482
  end)
467
483
 
468
484
  api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -471,11 +487,12 @@ module Aws::CloudHSMV2
471
487
  o.http_request_uri = "/"
472
488
  o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
473
489
  o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
490
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
474
491
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
475
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
476
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
477
492
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
478
- o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
493
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
494
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
495
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmTagException)
479
496
  end)
480
497
  end
481
498
 
@@ -90,5 +90,21 @@ module Aws::CloudHSMV2
90
90
 
91
91
  end
92
92
 
93
+ class CloudHsmTagException < ServiceError
94
+
95
+ # @param [Seahorse::Client::RequestContext] context
96
+ # @param [String] message
97
+ # @param [Aws::CloudHSMV2::Types::CloudHsmTagException] data
98
+ def initialize(context, message, data = Aws::EmptyStructure.new)
99
+ super(context, message, data)
100
+ end
101
+
102
+ # @return [String]
103
+ def message
104
+ @message || @data[:message]
105
+ end
106
+
107
+ end
108
+
93
109
  end
94
110
  end
@@ -8,7 +8,12 @@
8
8
  module Aws::CloudHSMV2
9
9
  module Types
10
10
 
11
- # Contains information about a backup of an AWS CloudHSM cluster.
11
+ # Contains information about a backup of an AWS CloudHSM cluster. All
12
+ # backup objects contain the BackupId, BackupState, ClusterId, and
13
+ # CreateTimestamp parameters. Backups that were copied into a
14
+ # destination region additionally contain the CopyTimestamp,
15
+ # SourceBackup, SourceCluster, and SourceRegion paramters. A backup that
16
+ # is pending deletion will include the DeleteTimestamp parameter.
12
17
  #
13
18
  # @!attribute [rw] backup_id
14
19
  # The identifier (ID) of the backup.
@@ -27,21 +32,31 @@ module Aws::CloudHSMV2
27
32
  # @return [Time]
28
33
  #
29
34
  # @!attribute [rw] copy_timestamp
35
+ # The date and time when the backup was copied from a source backup.
30
36
  # @return [Time]
31
37
  #
32
38
  # @!attribute [rw] source_region
39
+ # The AWS region that contains the source backup from which the new
40
+ # backup was copied.
33
41
  # @return [String]
34
42
  #
35
43
  # @!attribute [rw] source_backup
44
+ # The identifier (ID) of the source backup from which the new backup
45
+ # was copied.
36
46
  # @return [String]
37
47
  #
38
48
  # @!attribute [rw] source_cluster
49
+ # The identifier (ID) of the cluster containing the source backup from
50
+ # which the new backup was copied. .
39
51
  # @return [String]
40
52
  #
41
53
  # @!attribute [rw] delete_timestamp
42
54
  # The date and time when the backup will be permanently deleted.
43
55
  # @return [Time]
44
56
  #
57
+ # @!attribute [rw] tag_list
58
+ # @return [Array<Types::Tag>]
59
+ #
45
60
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/Backup AWS API Documentation
46
61
  #
47
62
  class Backup < Struct.new(
@@ -53,7 +68,8 @@ module Aws::CloudHSMV2
53
68
  :source_region,
54
69
  :source_backup,
55
70
  :source_cluster,
56
- :delete_timestamp)
71
+ :delete_timestamp,
72
+ :tag_list)
57
73
  include Aws::Structure
58
74
  end
59
75
 
@@ -157,6 +173,16 @@ module Aws::CloudHSMV2
157
173
  include Aws::Structure
158
174
  end
159
175
 
176
+ # @!attribute [rw] message
177
+ # @return [String]
178
+ #
179
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CloudHsmTagException AWS API Documentation
180
+ #
181
+ class CloudHsmTagException < Struct.new(
182
+ :message)
183
+ include Aws::Structure
184
+ end
185
+
160
186
  # Contains information about an AWS CloudHSM cluster.
161
187
  #
162
188
  # @!attribute [rw] backup_policy
@@ -202,8 +228,8 @@ module Aws::CloudHSMV2
202
228
  # @return [String]
203
229
  #
204
230
  # @!attribute [rw] subnet_mapping
205
- # A map of the cluster's subnets and their corresponding Availability
206
- # Zones.
231
+ # A map from availability zone to the clusters subnet in that
232
+ # availability zone.
207
233
  # @return [Hash<String,String>]
208
234
  #
209
235
  # @!attribute [rw] vpc_id
@@ -216,6 +242,9 @@ module Aws::CloudHSMV2
216
242
  # (CSR).
217
243
  # @return [Types::Certificates]
218
244
  #
245
+ # @!attribute [rw] tag_list
246
+ # @return [Array<Types::Tag>]
247
+ #
219
248
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/Cluster AWS API Documentation
220
249
  #
221
250
  class Cluster < Struct.new(
@@ -231,7 +260,8 @@ module Aws::CloudHSMV2
231
260
  :state_message,
232
261
  :subnet_mapping,
233
262
  :vpc_id,
234
- :certificates)
263
+ :certificates,
264
+ :tag_list)
235
265
  include Aws::Structure
236
266
  end
237
267
 
@@ -241,6 +271,12 @@ module Aws::CloudHSMV2
241
271
  # {
242
272
  # destination_region: "Region", # required
243
273
  # backup_id: "BackupId", # required
274
+ # tag_list: [
275
+ # {
276
+ # key: "TagKey", # required
277
+ # value: "TagValue", # required
278
+ # },
279
+ # ],
244
280
  # }
245
281
  #
246
282
  # @!attribute [rw] destination_region
@@ -252,11 +288,15 @@ module Aws::CloudHSMV2
252
288
  # The ID of the backup that will be copied to the destination region.
253
289
  # @return [String]
254
290
  #
291
+ # @!attribute [rw] tag_list
292
+ # @return [Array<Types::Tag>]
293
+ #
255
294
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CopyBackupToRegionRequest AWS API Documentation
256
295
  #
257
296
  class CopyBackupToRegionRequest < Struct.new(
258
297
  :destination_region,
259
- :backup_id)
298
+ :backup_id,
299
+ :tag_list)
260
300
  include Aws::Structure
261
301
  end
262
302
 
@@ -285,6 +325,12 @@ module Aws::CloudHSMV2
285
325
  # subnet_ids: ["SubnetId"], # required
286
326
  # hsm_type: "HsmType", # required
287
327
  # source_backup_id: "BackupId",
328
+ # tag_list: [
329
+ # {
330
+ # key: "TagKey", # required
331
+ # value: "TagValue", # required
332
+ # },
333
+ # ],
288
334
  # }
289
335
  #
290
336
  # @!attribute [rw] subnet_ids
@@ -308,12 +354,16 @@ module Aws::CloudHSMV2
308
354
  # cluster. To find the backup ID, use DescribeBackups.
309
355
  # @return [String]
310
356
  #
357
+ # @!attribute [rw] tag_list
358
+ # @return [Array<Types::Tag>]
359
+ #
311
360
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateClusterRequest AWS API Documentation
312
361
  #
313
362
  class CreateClusterRequest < Struct.new(
314
363
  :subnet_ids,
315
364
  :hsm_type,
316
- :source_backup_id)
365
+ :source_backup_id,
366
+ :tag_list)
317
367
  include Aws::Structure
318
368
  end
319
369
 
@@ -526,6 +576,8 @@ module Aws::CloudHSMV2
526
576
  # @return [Hash<String,Array<String>>]
527
577
  #
528
578
  # @!attribute [rw] sort_ascending
579
+ # Designates whether or not to sort the return backups by ascending
580
+ # chronological order of generation.
529
581
  # @return [Boolean]
530
582
  #
531
583
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeBackupsRequest AWS API Documentation
@@ -619,16 +671,26 @@ module Aws::CloudHSMV2
619
671
  include Aws::Structure
620
672
  end
621
673
 
674
+ # Contains information about the backup that will be copied and created
675
+ # by the CopyBackupToRegion operation.
676
+ #
622
677
  # @!attribute [rw] create_timestamp
678
+ # The date and time when both the source backup was created.
623
679
  # @return [Time]
624
680
  #
625
681
  # @!attribute [rw] source_region
682
+ # The AWS region that contains the source backup from which the new
683
+ # backup was copied.
626
684
  # @return [String]
627
685
  #
628
686
  # @!attribute [rw] source_backup
687
+ # The identifier (ID) of the source backup from which the new backup
688
+ # was copied.
629
689
  # @return [String]
630
690
  #
631
691
  # @!attribute [rw] source_cluster
692
+ # The identifier (ID) of the cluster containing the source backup from
693
+ # which the new backup was copied.
632
694
  # @return [String]
633
695
  #
634
696
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DestinationBackup AWS API Documentation
@@ -712,11 +774,11 @@ module Aws::CloudHSMV2
712
774
  #
713
775
  # @!attribute [rw] trust_anchor
714
776
  # The issuing certificate of the issuing certificate authority (CA)
715
- # that issued (signed) the cluster certificate. This can be a root
716
- # (self-signed) certificate or a certificate chain that begins with
717
- # the certificate that issued the cluster certificate and ends with a
718
- # root certificate. The certificate or certificate chain must be in
719
- # PEM format and can contain a maximum of 5000 characters.
777
+ # that issued (signed) the cluster certificate. You must use a
778
+ # self-signed certificate. The certificate used to sign the HSM CSR
779
+ # must be directly available, and thus must be the root certificate.
780
+ # The certificate must be in PEM format and can contain a maximum of
781
+ # 5000 characters.
720
782
  # @return [String]
721
783
  #
722
784
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/InitializeClusterRequest AWS API Documentation
@@ -748,7 +810,7 @@ module Aws::CloudHSMV2
748
810
  # data as a hash:
749
811
  #
750
812
  # {
751
- # resource_id: "ClusterId", # required
813
+ # resource_id: "ResourceId", # required
752
814
  # next_token: "NextToken",
753
815
  # max_results: 1,
754
816
  # }
@@ -856,7 +918,7 @@ module Aws::CloudHSMV2
856
918
  # data as a hash:
857
919
  #
858
920
  # {
859
- # resource_id: "ClusterId", # required
921
+ # resource_id: "ResourceId", # required
860
922
  # tag_list: [ # required
861
923
  # {
862
924
  # key: "TagKey", # required
@@ -890,7 +952,7 @@ module Aws::CloudHSMV2
890
952
  # data as a hash:
891
953
  #
892
954
  # {
893
- # resource_id: "ClusterId", # required
955
+ # resource_id: "ResourceId", # required
894
956
  # tag_key_list: ["TagKey"], # required
895
957
  # }
896
958
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudhsmv2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.0
4
+ version: 1.20.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: 2019-10-23 00:00:00.000000000 Z
11
+ date: 2020-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core