aws-sdk-cloudhsmv2 1.5.0 → 1.6.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
  SHA1:
3
- metadata.gz: e734a35947a3b45713c3c12b71c32d4b3eb0c6dc
4
- data.tar.gz: 683c1f5332c914ac6ae1c4183c17b7e08fa1941b
3
+ metadata.gz: 3e8afb31a829005e2b0c031e14f5c5b1dbef7695
4
+ data.tar.gz: d3205c89f53df165b2d310ebeeefa54c81d078ac
5
5
  SHA512:
6
- metadata.gz: 1a76ee632e42f290c48d3b23418b64b09d9d946b78564145129f27d48a66e5f75edbd9530f79978837ef40814e7137eba6598fa2b829b97f7a49aa7d7c3fc6b4
7
- data.tar.gz: b00e5ad8c9fd38b1219994a7d2ddf3a44e4af185505dcabc9a1c29762240ff1608a861621a9f3dd02eefc5d8c2380620dd65b526ea9ae4a173d79ad7c9b0c7ee
6
+ metadata.gz: 89700acc65e8ec3e037729f599513b37586f99e43a1529591a0b119eb5c03362401827b708ec161017199b04b28849452f111c439436c819d9fa15cc9d56863b
7
+ data.tar.gz: 6a940bda88fe42471be389bfd9c4f0569eecef84646e44c06280c0ee3b1d9f8ab4110cd025fa090e70079b62508f802d9a39bd6b4ae1bdbc53049f3000838481
@@ -186,9 +186,13 @@ module Aws::CloudHSMV2
186
186
 
187
187
  # @!group API Operations
188
188
 
189
+ # Copy an AWS CloudHSM cluster backup to a different region.
190
+ #
189
191
  # @option params [required, String] :destination_region
192
+ # The AWS region that will contain your copied CloudHSM cluster backup.
190
193
  #
191
194
  # @option params [required, String] :backup_id
195
+ # The ID of the backup that will be copied to the destination region.
192
196
  #
193
197
  # @return [Types::CopyBackupToRegionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
194
198
  #
@@ -336,6 +340,45 @@ module Aws::CloudHSMV2
336
340
  req.send_request(options)
337
341
  end
338
342
 
343
+ # Deletes a specified AWS CloudHSM backup. A backup can be restored up
344
+ # to 7 days after the DeleteBackup request. For more information on
345
+ # restoring a backup, see RestoreBackup
346
+ #
347
+ # @option params [required, String] :backup_id
348
+ # The ID of the backup to be deleted. To find the ID of a backup, use
349
+ # the DescribeBackups operation.
350
+ #
351
+ # @return [Types::DeleteBackupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
352
+ #
353
+ # * {Types::DeleteBackupResponse#backup #backup} => Types::Backup
354
+ #
355
+ # @example Request syntax with placeholder values
356
+ #
357
+ # resp = client.delete_backup({
358
+ # backup_id: "BackupId", # required
359
+ # })
360
+ #
361
+ # @example Response structure
362
+ #
363
+ # resp.backup.backup_id #=> String
364
+ # resp.backup.backup_state #=> String, one of "CREATE_IN_PROGRESS", "READY", "DELETED", "PENDING_DELETION"
365
+ # resp.backup.cluster_id #=> String
366
+ # resp.backup.create_timestamp #=> Time
367
+ # resp.backup.copy_timestamp #=> Time
368
+ # resp.backup.source_region #=> String
369
+ # resp.backup.source_backup #=> String
370
+ # resp.backup.source_cluster #=> String
371
+ # resp.backup.delete_timestamp #=> Time
372
+ #
373
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteBackup AWS API Documentation
374
+ #
375
+ # @overload delete_backup(params = {})
376
+ # @param [Hash] params ({})
377
+ def delete_backup(params = {}, options = {})
378
+ req = build_request(:delete_backup, params)
379
+ req.send_request(options)
380
+ end
381
+
339
382
  # Deletes the specified AWS CloudHSM cluster. Before you can delete a
340
383
  # cluster, you must delete all HSMs in the cluster. To see if the
341
384
  # cluster contains any HSMs, use DescribeClusters. To delete an HSM, use
@@ -463,6 +506,10 @@ module Aws::CloudHSMV2
463
506
  # Use the `backupIds` filter to return only the specified backups.
464
507
  # Specify backups by their backup identifier (ID).
465
508
  #
509
+ # Use the `sourceBackupIds` filter to return only the backups created
510
+ # from a source backup. The `sourceBackupID` of a source backup is
511
+ # returned by the CopyBackupToRegion operation.
512
+ #
466
513
  # Use the `clusterIds` filter to return only the backups for the
467
514
  # specified clusters. Specify clusters by their cluster identifier (ID).
468
515
  #
@@ -491,13 +538,14 @@ module Aws::CloudHSMV2
491
538
  #
492
539
  # resp.backups #=> Array
493
540
  # resp.backups[0].backup_id #=> String
494
- # resp.backups[0].backup_state #=> String, one of "CREATE_IN_PROGRESS", "READY", "DELETED"
541
+ # resp.backups[0].backup_state #=> String, one of "CREATE_IN_PROGRESS", "READY", "DELETED", "PENDING_DELETION"
495
542
  # resp.backups[0].cluster_id #=> String
496
543
  # resp.backups[0].create_timestamp #=> Time
497
544
  # resp.backups[0].copy_timestamp #=> Time
498
545
  # resp.backups[0].source_region #=> String
499
546
  # resp.backups[0].source_backup #=> String
500
547
  # resp.backups[0].source_cluster #=> String
548
+ # resp.backups[0].delete_timestamp #=> Time
501
549
  # resp.next_token #=> String
502
550
  #
503
551
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeBackups AWS API Documentation
@@ -696,6 +744,45 @@ module Aws::CloudHSMV2
696
744
  req.send_request(options)
697
745
  end
698
746
 
747
+ # Restores a specified AWS CloudHSM backup that is in the
748
+ # `PENDING_DELETION` state. For more information on deleting a backup,
749
+ # see DeleteBackup.
750
+ #
751
+ # @option params [required, String] :backup_id
752
+ # The ID of the backup to be restored. To find the ID of a backup, use
753
+ # the DescribeBackups operation.
754
+ #
755
+ # @return [Types::RestoreBackupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
756
+ #
757
+ # * {Types::RestoreBackupResponse#backup #backup} => Types::Backup
758
+ #
759
+ # @example Request syntax with placeholder values
760
+ #
761
+ # resp = client.restore_backup({
762
+ # backup_id: "BackupId", # required
763
+ # })
764
+ #
765
+ # @example Response structure
766
+ #
767
+ # resp.backup.backup_id #=> String
768
+ # resp.backup.backup_state #=> String, one of "CREATE_IN_PROGRESS", "READY", "DELETED", "PENDING_DELETION"
769
+ # resp.backup.cluster_id #=> String
770
+ # resp.backup.create_timestamp #=> Time
771
+ # resp.backup.copy_timestamp #=> Time
772
+ # resp.backup.source_region #=> String
773
+ # resp.backup.source_backup #=> String
774
+ # resp.backup.source_cluster #=> String
775
+ # resp.backup.delete_timestamp #=> Time
776
+ #
777
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/RestoreBackup AWS API Documentation
778
+ #
779
+ # @overload restore_backup(params = {})
780
+ # @param [Hash] params ({})
781
+ def restore_backup(params = {}, options = {})
782
+ req = build_request(:restore_backup, params)
783
+ req.send_request(options)
784
+ end
785
+
699
786
  # Adds or overwrites one or more tags for the specified AWS CloudHSM
700
787
  # cluster.
701
788
  #
@@ -771,7 +858,7 @@ module Aws::CloudHSMV2
771
858
  params: params,
772
859
  config: config)
773
860
  context[:gem_name] = 'aws-sdk-cloudhsmv2'
774
- context[:gem_version] = '1.5.0'
861
+ context[:gem_version] = '1.6.0'
775
862
  Seahorse::Client::Request.new(handlers, context)
776
863
  end
777
864
 
@@ -34,6 +34,8 @@ module Aws::CloudHSMV2
34
34
  CreateClusterResponse = Shapes::StructureShape.new(name: 'CreateClusterResponse')
35
35
  CreateHsmRequest = Shapes::StructureShape.new(name: 'CreateHsmRequest')
36
36
  CreateHsmResponse = Shapes::StructureShape.new(name: 'CreateHsmResponse')
37
+ DeleteBackupRequest = Shapes::StructureShape.new(name: 'DeleteBackupRequest')
38
+ DeleteBackupResponse = Shapes::StructureShape.new(name: 'DeleteBackupResponse')
37
39
  DeleteClusterRequest = Shapes::StructureShape.new(name: 'DeleteClusterRequest')
38
40
  DeleteClusterResponse = Shapes::StructureShape.new(name: 'DeleteClusterResponse')
39
41
  DeleteHsmRequest = Shapes::StructureShape.new(name: 'DeleteHsmRequest')
@@ -62,6 +64,8 @@ module Aws::CloudHSMV2
62
64
  NextToken = Shapes::StringShape.new(name: 'NextToken')
63
65
  PreCoPassword = Shapes::StringShape.new(name: 'PreCoPassword')
64
66
  Region = Shapes::StringShape.new(name: 'Region')
67
+ RestoreBackupRequest = Shapes::StructureShape.new(name: 'RestoreBackupRequest')
68
+ RestoreBackupResponse = Shapes::StructureShape.new(name: 'RestoreBackupResponse')
65
69
  SecurityGroup = Shapes::StringShape.new(name: 'SecurityGroup')
66
70
  StateMessage = Shapes::StringShape.new(name: 'StateMessage')
67
71
  String = Shapes::StringShape.new(name: 'String')
@@ -89,6 +93,7 @@ module Aws::CloudHSMV2
89
93
  Backup.add_member(:source_region, Shapes::ShapeRef.new(shape: Region, location_name: "SourceRegion"))
90
94
  Backup.add_member(:source_backup, Shapes::ShapeRef.new(shape: BackupId, location_name: "SourceBackup"))
91
95
  Backup.add_member(:source_cluster, Shapes::ShapeRef.new(shape: ClusterId, location_name: "SourceCluster"))
96
+ Backup.add_member(:delete_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "DeleteTimestamp"))
92
97
  Backup.struct_class = Types::Backup
93
98
 
94
99
  Backups.member = Shapes::ShapeRef.new(shape: Backup)
@@ -140,6 +145,12 @@ module Aws::CloudHSMV2
140
145
  CreateHsmResponse.add_member(:hsm, Shapes::ShapeRef.new(shape: Hsm, location_name: "Hsm"))
141
146
  CreateHsmResponse.struct_class = Types::CreateHsmResponse
142
147
 
148
+ DeleteBackupRequest.add_member(:backup_id, Shapes::ShapeRef.new(shape: BackupId, required: true, location_name: "BackupId"))
149
+ DeleteBackupRequest.struct_class = Types::DeleteBackupRequest
150
+
151
+ DeleteBackupResponse.add_member(:backup, Shapes::ShapeRef.new(shape: Backup, location_name: "Backup"))
152
+ DeleteBackupResponse.struct_class = Types::DeleteBackupResponse
153
+
143
154
  DeleteClusterRequest.add_member(:cluster_id, Shapes::ShapeRef.new(shape: ClusterId, required: true, location_name: "ClusterId"))
144
155
  DeleteClusterRequest.struct_class = Types::DeleteClusterRequest
145
156
 
@@ -216,6 +227,12 @@ module Aws::CloudHSMV2
216
227
  ListTagsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
217
228
  ListTagsResponse.struct_class = Types::ListTagsResponse
218
229
 
230
+ RestoreBackupRequest.add_member(:backup_id, Shapes::ShapeRef.new(shape: BackupId, required: true, location_name: "BackupId"))
231
+ RestoreBackupRequest.struct_class = Types::RestoreBackupRequest
232
+
233
+ RestoreBackupResponse.add_member(:backup, Shapes::ShapeRef.new(shape: Backup, location_name: "Backup"))
234
+ RestoreBackupResponse.struct_class = Types::RestoreBackupResponse
235
+
219
236
  Strings.member = Shapes::ShapeRef.new(shape: String)
220
237
 
221
238
  SubnetIds.member = Shapes::ShapeRef.new(shape: SubnetId)
@@ -299,6 +316,19 @@ module Aws::CloudHSMV2
299
316
  o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
300
317
  end)
301
318
 
319
+ api.add_operation(:delete_backup, Seahorse::Model::Operation.new.tap do |o|
320
+ o.name = "DeleteBackup"
321
+ o.http_method = "POST"
322
+ o.http_request_uri = "/"
323
+ o.input = Shapes::ShapeRef.new(shape: DeleteBackupRequest)
324
+ o.output = Shapes::ShapeRef.new(shape: DeleteBackupResponse)
325
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
326
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
327
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
328
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
329
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
330
+ end)
331
+
302
332
  api.add_operation(:delete_cluster, Seahorse::Model::Operation.new.tap do |o|
303
333
  o.name = "DeleteCluster"
304
334
  o.http_method = "POST"
@@ -394,6 +424,19 @@ module Aws::CloudHSMV2
394
424
  )
395
425
  end)
396
426
 
427
+ api.add_operation(:restore_backup, Seahorse::Model::Operation.new.tap do |o|
428
+ o.name = "RestoreBackup"
429
+ o.http_method = "POST"
430
+ o.http_request_uri = "/"
431
+ o.input = Shapes::ShapeRef.new(shape: RestoreBackupRequest)
432
+ o.output = Shapes::ShapeRef.new(shape: RestoreBackupResponse)
433
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
434
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
435
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
436
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
437
+ o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
438
+ end)
439
+
397
440
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
398
441
  o.name = "TagResource"
399
442
  o.http_method = "POST"
@@ -38,6 +38,10 @@ module Aws::CloudHSMV2
38
38
  # @!attribute [rw] source_cluster
39
39
  # @return [String]
40
40
  #
41
+ # @!attribute [rw] delete_timestamp
42
+ # The date and time when the backup will be permanently deleted.
43
+ # @return [Time]
44
+ #
41
45
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/Backup AWS API Documentation
42
46
  #
43
47
  class Backup < Struct.new(
@@ -48,7 +52,8 @@ module Aws::CloudHSMV2
48
52
  :copy_timestamp,
49
53
  :source_region,
50
54
  :source_backup,
51
- :source_cluster)
55
+ :source_cluster,
56
+ :delete_timestamp)
52
57
  include Aws::Structure
53
58
  end
54
59
 
@@ -176,9 +181,12 @@ module Aws::CloudHSMV2
176
181
  # }
177
182
  #
178
183
  # @!attribute [rw] destination_region
184
+ # The AWS region that will contain your copied CloudHSM cluster
185
+ # backup.
179
186
  # @return [String]
180
187
  #
181
188
  # @!attribute [rw] backup_id
189
+ # The ID of the backup that will be copied to the destination region.
182
190
  # @return [String]
183
191
  #
184
192
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CopyBackupToRegionRequest AWS API Documentation
@@ -190,6 +198,14 @@ module Aws::CloudHSMV2
190
198
  end
191
199
 
192
200
  # @!attribute [rw] destination_backup
201
+ # Information on the backup that will be copied to the destination
202
+ # region, including CreateTimestamp, SourceBackup, SourceCluster, and
203
+ # Source Region. CreateTimestamp of the destination backup will be the
204
+ # same as that of the source backup.
205
+ #
206
+ # You will need to use the `sourceBackupID` returned in this operation
207
+ # to use the DescribeBackups operation on the backup that will be
208
+ # copied to the destination region.
193
209
  # @return [Types::DestinationBackup]
194
210
  #
195
211
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CopyBackupToRegionResponse AWS API Documentation
@@ -295,6 +311,36 @@ module Aws::CloudHSMV2
295
311
  include Aws::Structure
296
312
  end
297
313
 
314
+ # @note When making an API call, you may pass DeleteBackupRequest
315
+ # data as a hash:
316
+ #
317
+ # {
318
+ # backup_id: "BackupId", # required
319
+ # }
320
+ #
321
+ # @!attribute [rw] backup_id
322
+ # The ID of the backup to be deleted. To find the ID of a backup, use
323
+ # the DescribeBackups operation.
324
+ # @return [String]
325
+ #
326
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteBackupRequest AWS API Documentation
327
+ #
328
+ class DeleteBackupRequest < Struct.new(
329
+ :backup_id)
330
+ include Aws::Structure
331
+ end
332
+
333
+ # @!attribute [rw] backup
334
+ # Information on the `Backup` object deleted.
335
+ # @return [Types::Backup]
336
+ #
337
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteBackupResponse AWS API Documentation
338
+ #
339
+ class DeleteBackupResponse < Struct.new(
340
+ :backup)
341
+ include Aws::Structure
342
+ end
343
+
298
344
  # @note When making an API call, you may pass DeleteClusterRequest
299
345
  # data as a hash:
300
346
  #
@@ -404,6 +450,10 @@ module Aws::CloudHSMV2
404
450
  # Use the `backupIds` filter to return only the specified backups.
405
451
  # Specify backups by their backup identifier (ID).
406
452
  #
453
+ # Use the `sourceBackupIds` filter to return only the backups created
454
+ # from a source backup. The `sourceBackupID` of a source backup is
455
+ # returned by the CopyBackupToRegion operation.
456
+ #
407
457
  # Use the `clusterIds` filter to return only the backups for the
408
458
  # specified clusters. Specify clusters by their cluster identifier
409
459
  # (ID).
@@ -683,6 +733,36 @@ module Aws::CloudHSMV2
683
733
  include Aws::Structure
684
734
  end
685
735
 
736
+ # @note When making an API call, you may pass RestoreBackupRequest
737
+ # data as a hash:
738
+ #
739
+ # {
740
+ # backup_id: "BackupId", # required
741
+ # }
742
+ #
743
+ # @!attribute [rw] backup_id
744
+ # The ID of the backup to be restored. To find the ID of a backup, use
745
+ # the DescribeBackups operation.
746
+ # @return [String]
747
+ #
748
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/RestoreBackupRequest AWS API Documentation
749
+ #
750
+ class RestoreBackupRequest < Struct.new(
751
+ :backup_id)
752
+ include Aws::Structure
753
+ end
754
+
755
+ # @!attribute [rw] backup
756
+ # Information on the `Backup` object created.
757
+ # @return [Types::Backup]
758
+ #
759
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/RestoreBackupResponse AWS API Documentation
760
+ #
761
+ class RestoreBackupResponse < Struct.new(
762
+ :backup)
763
+ include Aws::Structure
764
+ end
765
+
686
766
  # Contains a tag. A tag is a key-value pair.
687
767
  #
688
768
  # @note When making an API call, you may pass Tag
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-cloudhsmv2/customizations'
42
42
  # @service
43
43
  module Aws::CloudHSMV2
44
44
 
45
- GEM_VERSION = '1.5.0'
45
+ GEM_VERSION = '1.6.0'
46
46
 
47
47
  end
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.5.0
4
+ version: 1.6.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: 2018-09-06 00:00:00.000000000 Z
11
+ date: 2018-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core