aws-sdk-cloudhsmv2 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-cloudhsmv2/client.rb +39 -1
- data/lib/aws-sdk-cloudhsmv2/client_api.rb +36 -0
- data/lib/aws-sdk-cloudhsmv2/types.rb +77 -2
- data/lib/aws-sdk-cloudhsmv2.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4530976fc6bd1e3dff1b48188476dc803985ed4d
|
4
|
+
data.tar.gz: 2db5900678e2064647a4a2a2841216a1acfd8567
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 925ecae7247c6425a6a58406d49890a80f1d5543aa2af107d78a1e6057bfc34bcf894d74827ed9de987e5d210fbb252209f015acecd4e602dbdec678e765610e
|
7
|
+
data.tar.gz: 6762070b761ef52b816959e13d4ad61e6ed44024effdd44fa9e4fd39f02f493ed8524f7efdbf57625d1dff6b41ff4b0354ffeb14e8be2cbee15ad26d6154e18d
|
@@ -166,6 +166,37 @@ module Aws::CloudHSMV2
|
|
166
166
|
|
167
167
|
# @!group API Operations
|
168
168
|
|
169
|
+
# @option params [required, String] :destination_region
|
170
|
+
#
|
171
|
+
# @option params [required, String] :backup_id
|
172
|
+
#
|
173
|
+
# @return [Types::CopyBackupToRegionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
174
|
+
#
|
175
|
+
# * {Types::CopyBackupToRegionResponse#destination_backup #destination_backup} => Types::DestinationBackup
|
176
|
+
#
|
177
|
+
# @example Request syntax with placeholder values
|
178
|
+
#
|
179
|
+
# resp = client.copy_backup_to_region({
|
180
|
+
# destination_region: "Region", # required
|
181
|
+
# backup_id: "BackupId", # required
|
182
|
+
# })
|
183
|
+
#
|
184
|
+
# @example Response structure
|
185
|
+
#
|
186
|
+
# resp.destination_backup.create_timestamp #=> Time
|
187
|
+
# resp.destination_backup.source_region #=> String
|
188
|
+
# resp.destination_backup.source_backup #=> String
|
189
|
+
# resp.destination_backup.source_cluster #=> String
|
190
|
+
#
|
191
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CopyBackupToRegion AWS API Documentation
|
192
|
+
#
|
193
|
+
# @overload copy_backup_to_region(params = {})
|
194
|
+
# @param [Hash] params ({})
|
195
|
+
def copy_backup_to_region(params = {}, options = {})
|
196
|
+
req = build_request(:copy_backup_to_region, params)
|
197
|
+
req.send_request(options)
|
198
|
+
end
|
199
|
+
|
169
200
|
# Creates a new AWS CloudHSM cluster.
|
170
201
|
#
|
171
202
|
# @option params [required, Array<String>] :subnet_ids
|
@@ -418,6 +449,8 @@ module Aws::CloudHSMV2
|
|
418
449
|
# Use the `states` filter to return only backups that match the
|
419
450
|
# specified state.
|
420
451
|
#
|
452
|
+
# @option params [Boolean] :sort_ascending
|
453
|
+
#
|
421
454
|
# @return [Types::DescribeBackupsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
422
455
|
#
|
423
456
|
# * {Types::DescribeBackupsResponse#backups #backups} => Array<Types::Backup>
|
@@ -431,6 +464,7 @@ module Aws::CloudHSMV2
|
|
431
464
|
# filters: {
|
432
465
|
# "Field" => ["String"],
|
433
466
|
# },
|
467
|
+
# sort_ascending: false,
|
434
468
|
# })
|
435
469
|
#
|
436
470
|
# @example Response structure
|
@@ -440,6 +474,10 @@ module Aws::CloudHSMV2
|
|
440
474
|
# resp.backups[0].backup_state #=> String, one of "CREATE_IN_PROGRESS", "READY", "DELETED"
|
441
475
|
# resp.backups[0].cluster_id #=> String
|
442
476
|
# resp.backups[0].create_timestamp #=> Time
|
477
|
+
# resp.backups[0].copy_timestamp #=> Time
|
478
|
+
# resp.backups[0].source_region #=> String
|
479
|
+
# resp.backups[0].source_backup #=> String
|
480
|
+
# resp.backups[0].source_cluster #=> String
|
443
481
|
# resp.next_token #=> String
|
444
482
|
#
|
445
483
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeBackups AWS API Documentation
|
@@ -713,7 +751,7 @@ module Aws::CloudHSMV2
|
|
713
751
|
params: params,
|
714
752
|
config: config)
|
715
753
|
context[:gem_name] = 'aws-sdk-cloudhsmv2'
|
716
|
-
context[:gem_version] = '1.
|
754
|
+
context[:gem_version] = '1.3.0'
|
717
755
|
Seahorse::Client::Request.new(handlers, context)
|
718
756
|
end
|
719
757
|
|
@@ -16,6 +16,7 @@ module Aws::CloudHSMV2
|
|
16
16
|
BackupPolicy = Shapes::StringShape.new(name: 'BackupPolicy')
|
17
17
|
BackupState = Shapes::StringShape.new(name: 'BackupState')
|
18
18
|
Backups = Shapes::ListShape.new(name: 'Backups')
|
19
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
19
20
|
Cert = Shapes::StringShape.new(name: 'Cert')
|
20
21
|
Certificates = Shapes::StructureShape.new(name: 'Certificates')
|
21
22
|
CloudHsmAccessDeniedException = Shapes::StructureShape.new(name: 'CloudHsmAccessDeniedException')
|
@@ -27,6 +28,8 @@ module Aws::CloudHSMV2
|
|
27
28
|
ClusterId = Shapes::StringShape.new(name: 'ClusterId')
|
28
29
|
ClusterState = Shapes::StringShape.new(name: 'ClusterState')
|
29
30
|
Clusters = Shapes::ListShape.new(name: 'Clusters')
|
31
|
+
CopyBackupToRegionRequest = Shapes::StructureShape.new(name: 'CopyBackupToRegionRequest')
|
32
|
+
CopyBackupToRegionResponse = Shapes::StructureShape.new(name: 'CopyBackupToRegionResponse')
|
30
33
|
CreateClusterRequest = Shapes::StructureShape.new(name: 'CreateClusterRequest')
|
31
34
|
CreateClusterResponse = Shapes::StructureShape.new(name: 'CreateClusterResponse')
|
32
35
|
CreateHsmRequest = Shapes::StructureShape.new(name: 'CreateHsmRequest')
|
@@ -39,6 +42,7 @@ module Aws::CloudHSMV2
|
|
39
42
|
DescribeBackupsResponse = Shapes::StructureShape.new(name: 'DescribeBackupsResponse')
|
40
43
|
DescribeClustersRequest = Shapes::StructureShape.new(name: 'DescribeClustersRequest')
|
41
44
|
DescribeClustersResponse = Shapes::StructureShape.new(name: 'DescribeClustersResponse')
|
45
|
+
DestinationBackup = Shapes::StructureShape.new(name: 'DestinationBackup')
|
42
46
|
EniId = Shapes::StringShape.new(name: 'EniId')
|
43
47
|
ExternalAz = Shapes::StringShape.new(name: 'ExternalAz')
|
44
48
|
ExternalSubnetMapping = Shapes::MapShape.new(name: 'ExternalSubnetMapping')
|
@@ -57,6 +61,7 @@ module Aws::CloudHSMV2
|
|
57
61
|
MaxSize = Shapes::IntegerShape.new(name: 'MaxSize')
|
58
62
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
59
63
|
PreCoPassword = Shapes::StringShape.new(name: 'PreCoPassword')
|
64
|
+
Region = Shapes::StringShape.new(name: 'Region')
|
60
65
|
SecurityGroup = Shapes::StringShape.new(name: 'SecurityGroup')
|
61
66
|
StateMessage = Shapes::StringShape.new(name: 'StateMessage')
|
62
67
|
String = Shapes::StringShape.new(name: 'String')
|
@@ -80,6 +85,10 @@ module Aws::CloudHSMV2
|
|
80
85
|
Backup.add_member(:backup_state, Shapes::ShapeRef.new(shape: BackupState, location_name: "BackupState"))
|
81
86
|
Backup.add_member(:cluster_id, Shapes::ShapeRef.new(shape: ClusterId, location_name: "ClusterId"))
|
82
87
|
Backup.add_member(:create_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreateTimestamp"))
|
88
|
+
Backup.add_member(:copy_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CopyTimestamp"))
|
89
|
+
Backup.add_member(:source_region, Shapes::ShapeRef.new(shape: Region, location_name: "SourceRegion"))
|
90
|
+
Backup.add_member(:source_backup, Shapes::ShapeRef.new(shape: BackupId, location_name: "SourceBackup"))
|
91
|
+
Backup.add_member(:source_cluster, Shapes::ShapeRef.new(shape: ClusterId, location_name: "SourceCluster"))
|
83
92
|
Backup.struct_class = Types::Backup
|
84
93
|
|
85
94
|
Backups.member = Shapes::ShapeRef.new(shape: Backup)
|
@@ -108,6 +117,13 @@ module Aws::CloudHSMV2
|
|
108
117
|
|
109
118
|
Clusters.member = Shapes::ShapeRef.new(shape: Cluster)
|
110
119
|
|
120
|
+
CopyBackupToRegionRequest.add_member(:destination_region, Shapes::ShapeRef.new(shape: Region, required: true, location_name: "DestinationRegion"))
|
121
|
+
CopyBackupToRegionRequest.add_member(:backup_id, Shapes::ShapeRef.new(shape: BackupId, required: true, location_name: "BackupId"))
|
122
|
+
CopyBackupToRegionRequest.struct_class = Types::CopyBackupToRegionRequest
|
123
|
+
|
124
|
+
CopyBackupToRegionResponse.add_member(:destination_backup, Shapes::ShapeRef.new(shape: DestinationBackup, location_name: "DestinationBackup"))
|
125
|
+
CopyBackupToRegionResponse.struct_class = Types::CopyBackupToRegionResponse
|
126
|
+
|
111
127
|
CreateClusterRequest.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, required: true, location_name: "SubnetIds"))
|
112
128
|
CreateClusterRequest.add_member(:hsm_type, Shapes::ShapeRef.new(shape: HsmType, required: true, location_name: "HsmType"))
|
113
129
|
CreateClusterRequest.add_member(:source_backup_id, Shapes::ShapeRef.new(shape: BackupId, location_name: "SourceBackupId"))
|
@@ -142,6 +158,7 @@ module Aws::CloudHSMV2
|
|
142
158
|
DescribeBackupsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
143
159
|
DescribeBackupsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxSize, location_name: "MaxResults"))
|
144
160
|
DescribeBackupsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: Filters, location_name: "Filters"))
|
161
|
+
DescribeBackupsRequest.add_member(:sort_ascending, Shapes::ShapeRef.new(shape: Boolean, location_name: "SortAscending"))
|
145
162
|
DescribeBackupsRequest.struct_class = Types::DescribeBackupsRequest
|
146
163
|
|
147
164
|
DescribeBackupsResponse.add_member(:backups, Shapes::ShapeRef.new(shape: Backups, location_name: "Backups"))
|
@@ -157,6 +174,12 @@ module Aws::CloudHSMV2
|
|
157
174
|
DescribeClustersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
158
175
|
DescribeClustersResponse.struct_class = Types::DescribeClustersResponse
|
159
176
|
|
177
|
+
DestinationBackup.add_member(:create_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreateTimestamp"))
|
178
|
+
DestinationBackup.add_member(:source_region, Shapes::ShapeRef.new(shape: Region, location_name: "SourceRegion"))
|
179
|
+
DestinationBackup.add_member(:source_backup, Shapes::ShapeRef.new(shape: BackupId, location_name: "SourceBackup"))
|
180
|
+
DestinationBackup.add_member(:source_cluster, Shapes::ShapeRef.new(shape: ClusterId, location_name: "SourceCluster"))
|
181
|
+
DestinationBackup.struct_class = Types::DestinationBackup
|
182
|
+
|
160
183
|
ExternalSubnetMapping.key = Shapes::ShapeRef.new(shape: ExternalAz)
|
161
184
|
ExternalSubnetMapping.value = Shapes::ShapeRef.new(shape: SubnetId)
|
162
185
|
|
@@ -233,6 +256,19 @@ module Aws::CloudHSMV2
|
|
233
256
|
"targetPrefix" => "BaldrApiService",
|
234
257
|
}
|
235
258
|
|
259
|
+
api.add_operation(:copy_backup_to_region, Seahorse::Model::Operation.new.tap do |o|
|
260
|
+
o.name = "CopyBackupToRegion"
|
261
|
+
o.http_method = "POST"
|
262
|
+
o.http_request_uri = "/"
|
263
|
+
o.input = Shapes::ShapeRef.new(shape: CopyBackupToRegionRequest)
|
264
|
+
o.output = Shapes::ShapeRef.new(shape: CopyBackupToRegionResponse)
|
265
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
|
266
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
267
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
|
268
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
|
269
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
|
270
|
+
end)
|
271
|
+
|
236
272
|
api.add_operation(:create_cluster, Seahorse::Model::Operation.new.tap do |o|
|
237
273
|
o.name = "CreateCluster"
|
238
274
|
o.http_method = "POST"
|
@@ -26,13 +26,29 @@ module Aws::CloudHSMV2
|
|
26
26
|
# The date and time when the backup was created.
|
27
27
|
# @return [Time]
|
28
28
|
#
|
29
|
+
# @!attribute [rw] copy_timestamp
|
30
|
+
# @return [Time]
|
31
|
+
#
|
32
|
+
# @!attribute [rw] source_region
|
33
|
+
# @return [String]
|
34
|
+
#
|
35
|
+
# @!attribute [rw] source_backup
|
36
|
+
# @return [String]
|
37
|
+
#
|
38
|
+
# @!attribute [rw] source_cluster
|
39
|
+
# @return [String]
|
40
|
+
#
|
29
41
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/Backup AWS API Documentation
|
30
42
|
#
|
31
43
|
class Backup < Struct.new(
|
32
44
|
:backup_id,
|
33
45
|
:backup_state,
|
34
46
|
:cluster_id,
|
35
|
-
:create_timestamp
|
47
|
+
:create_timestamp,
|
48
|
+
:copy_timestamp,
|
49
|
+
:source_region,
|
50
|
+
:source_backup,
|
51
|
+
:source_cluster)
|
36
52
|
include Aws::Structure
|
37
53
|
end
|
38
54
|
|
@@ -151,6 +167,38 @@ module Aws::CloudHSMV2
|
|
151
167
|
include Aws::Structure
|
152
168
|
end
|
153
169
|
|
170
|
+
# @note When making an API call, you may pass CopyBackupToRegionRequest
|
171
|
+
# data as a hash:
|
172
|
+
#
|
173
|
+
# {
|
174
|
+
# destination_region: "Region", # required
|
175
|
+
# backup_id: "BackupId", # required
|
176
|
+
# }
|
177
|
+
#
|
178
|
+
# @!attribute [rw] destination_region
|
179
|
+
# @return [String]
|
180
|
+
#
|
181
|
+
# @!attribute [rw] backup_id
|
182
|
+
# @return [String]
|
183
|
+
#
|
184
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CopyBackupToRegionRequest AWS API Documentation
|
185
|
+
#
|
186
|
+
class CopyBackupToRegionRequest < Struct.new(
|
187
|
+
:destination_region,
|
188
|
+
:backup_id)
|
189
|
+
include Aws::Structure
|
190
|
+
end
|
191
|
+
|
192
|
+
# @!attribute [rw] destination_backup
|
193
|
+
# @return [Types::DestinationBackup]
|
194
|
+
#
|
195
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CopyBackupToRegionResponse AWS API Documentation
|
196
|
+
#
|
197
|
+
class CopyBackupToRegionResponse < Struct.new(
|
198
|
+
:destination_backup)
|
199
|
+
include Aws::Structure
|
200
|
+
end
|
201
|
+
|
154
202
|
# @note When making an API call, you may pass CreateClusterRequest
|
155
203
|
# data as a hash:
|
156
204
|
#
|
@@ -336,6 +384,7 @@ module Aws::CloudHSMV2
|
|
336
384
|
# filters: {
|
337
385
|
# "Field" => ["String"],
|
338
386
|
# },
|
387
|
+
# sort_ascending: false,
|
339
388
|
# }
|
340
389
|
#
|
341
390
|
# @!attribute [rw] next_token
|
@@ -363,12 +412,16 @@ module Aws::CloudHSMV2
|
|
363
412
|
# specified state.
|
364
413
|
# @return [Hash<String,Array<String>>]
|
365
414
|
#
|
415
|
+
# @!attribute [rw] sort_ascending
|
416
|
+
# @return [Boolean]
|
417
|
+
#
|
366
418
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeBackupsRequest AWS API Documentation
|
367
419
|
#
|
368
420
|
class DescribeBackupsRequest < Struct.new(
|
369
421
|
:next_token,
|
370
422
|
:max_results,
|
371
|
-
:filters
|
423
|
+
:filters,
|
424
|
+
:sort_ascending)
|
372
425
|
include Aws::Structure
|
373
426
|
end
|
374
427
|
|
@@ -453,6 +506,28 @@ module Aws::CloudHSMV2
|
|
453
506
|
include Aws::Structure
|
454
507
|
end
|
455
508
|
|
509
|
+
# @!attribute [rw] create_timestamp
|
510
|
+
# @return [Time]
|
511
|
+
#
|
512
|
+
# @!attribute [rw] source_region
|
513
|
+
# @return [String]
|
514
|
+
#
|
515
|
+
# @!attribute [rw] source_backup
|
516
|
+
# @return [String]
|
517
|
+
#
|
518
|
+
# @!attribute [rw] source_cluster
|
519
|
+
# @return [String]
|
520
|
+
#
|
521
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DestinationBackup AWS API Documentation
|
522
|
+
#
|
523
|
+
class DestinationBackup < Struct.new(
|
524
|
+
:create_timestamp,
|
525
|
+
:source_region,
|
526
|
+
:source_backup,
|
527
|
+
:source_cluster)
|
528
|
+
include Aws::Structure
|
529
|
+
end
|
530
|
+
|
456
531
|
# Contains information about a hardware security module (HSM) in an AWS
|
457
532
|
# CloudHSM cluster.
|
458
533
|
#
|
data/lib/aws-sdk-cloudhsmv2.rb
CHANGED
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.
|
4
|
+
version: 1.3.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-
|
11
|
+
date: 2018-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|