aws-sdk-cloudhsmv2 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-cloudhsmv2.rb +47 -0
- data/lib/aws-sdk-cloudhsmv2/client.rb +726 -0
- data/lib/aws-sdk-cloudhsmv2/client_api.rb +385 -0
- data/lib/aws-sdk-cloudhsmv2/customizations.rb +0 -0
- data/lib/aws-sdk-cloudhsmv2/errors.rb +14 -0
- data/lib/aws-sdk-cloudhsmv2/resource.rb +23 -0
- data/lib/aws-sdk-cloudhsmv2/types.rb +701 -0
- metadata +80 -0
@@ -0,0 +1,385 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::CloudHSMV2
|
9
|
+
# @api private
|
10
|
+
module ClientApi
|
11
|
+
|
12
|
+
include Seahorse::Model
|
13
|
+
|
14
|
+
Backup = Shapes::StructureShape.new(name: 'Backup')
|
15
|
+
BackupId = Shapes::StringShape.new(name: 'BackupId')
|
16
|
+
BackupPolicy = Shapes::StringShape.new(name: 'BackupPolicy')
|
17
|
+
BackupState = Shapes::StringShape.new(name: 'BackupState')
|
18
|
+
Backups = Shapes::ListShape.new(name: 'Backups')
|
19
|
+
Cert = Shapes::StringShape.new(name: 'Cert')
|
20
|
+
Certificates = Shapes::StructureShape.new(name: 'Certificates')
|
21
|
+
CloudHsmAccessDeniedException = Shapes::StructureShape.new(name: 'CloudHsmAccessDeniedException')
|
22
|
+
CloudHsmInternalFailureException = Shapes::StructureShape.new(name: 'CloudHsmInternalFailureException')
|
23
|
+
CloudHsmInvalidRequestException = Shapes::StructureShape.new(name: 'CloudHsmInvalidRequestException')
|
24
|
+
CloudHsmResourceNotFoundException = Shapes::StructureShape.new(name: 'CloudHsmResourceNotFoundException')
|
25
|
+
CloudHsmServiceException = Shapes::StructureShape.new(name: 'CloudHsmServiceException')
|
26
|
+
Cluster = Shapes::StructureShape.new(name: 'Cluster')
|
27
|
+
ClusterId = Shapes::StringShape.new(name: 'ClusterId')
|
28
|
+
ClusterState = Shapes::StringShape.new(name: 'ClusterState')
|
29
|
+
Clusters = Shapes::ListShape.new(name: 'Clusters')
|
30
|
+
CreateClusterRequest = Shapes::StructureShape.new(name: 'CreateClusterRequest')
|
31
|
+
CreateClusterResponse = Shapes::StructureShape.new(name: 'CreateClusterResponse')
|
32
|
+
CreateHsmRequest = Shapes::StructureShape.new(name: 'CreateHsmRequest')
|
33
|
+
CreateHsmResponse = Shapes::StructureShape.new(name: 'CreateHsmResponse')
|
34
|
+
DeleteClusterRequest = Shapes::StructureShape.new(name: 'DeleteClusterRequest')
|
35
|
+
DeleteClusterResponse = Shapes::StructureShape.new(name: 'DeleteClusterResponse')
|
36
|
+
DeleteHsmRequest = Shapes::StructureShape.new(name: 'DeleteHsmRequest')
|
37
|
+
DeleteHsmResponse = Shapes::StructureShape.new(name: 'DeleteHsmResponse')
|
38
|
+
DescribeBackupsRequest = Shapes::StructureShape.new(name: 'DescribeBackupsRequest')
|
39
|
+
DescribeBackupsResponse = Shapes::StructureShape.new(name: 'DescribeBackupsResponse')
|
40
|
+
DescribeClustersRequest = Shapes::StructureShape.new(name: 'DescribeClustersRequest')
|
41
|
+
DescribeClustersResponse = Shapes::StructureShape.new(name: 'DescribeClustersResponse')
|
42
|
+
EniId = Shapes::StringShape.new(name: 'EniId')
|
43
|
+
ExternalAz = Shapes::StringShape.new(name: 'ExternalAz')
|
44
|
+
ExternalSubnetMapping = Shapes::MapShape.new(name: 'ExternalSubnetMapping')
|
45
|
+
Field = Shapes::StringShape.new(name: 'Field')
|
46
|
+
Filters = Shapes::MapShape.new(name: 'Filters')
|
47
|
+
Hsm = Shapes::StructureShape.new(name: 'Hsm')
|
48
|
+
HsmId = Shapes::StringShape.new(name: 'HsmId')
|
49
|
+
HsmState = Shapes::StringShape.new(name: 'HsmState')
|
50
|
+
HsmType = Shapes::StringShape.new(name: 'HsmType')
|
51
|
+
Hsms = Shapes::ListShape.new(name: 'Hsms')
|
52
|
+
InitializeClusterRequest = Shapes::StructureShape.new(name: 'InitializeClusterRequest')
|
53
|
+
InitializeClusterResponse = Shapes::StructureShape.new(name: 'InitializeClusterResponse')
|
54
|
+
IpAddress = Shapes::StringShape.new(name: 'IpAddress')
|
55
|
+
ListTagsRequest = Shapes::StructureShape.new(name: 'ListTagsRequest')
|
56
|
+
ListTagsResponse = Shapes::StructureShape.new(name: 'ListTagsResponse')
|
57
|
+
MaxSize = Shapes::IntegerShape.new(name: 'MaxSize')
|
58
|
+
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
59
|
+
PreCoPassword = Shapes::StringShape.new(name: 'PreCoPassword')
|
60
|
+
SecurityGroup = Shapes::StringShape.new(name: 'SecurityGroup')
|
61
|
+
StateMessage = Shapes::StringShape.new(name: 'StateMessage')
|
62
|
+
String = Shapes::StringShape.new(name: 'String')
|
63
|
+
Strings = Shapes::ListShape.new(name: 'Strings')
|
64
|
+
SubnetId = Shapes::StringShape.new(name: 'SubnetId')
|
65
|
+
SubnetIds = Shapes::ListShape.new(name: 'SubnetIds')
|
66
|
+
Tag = Shapes::StructureShape.new(name: 'Tag')
|
67
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
68
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
69
|
+
TagList = Shapes::ListShape.new(name: 'TagList')
|
70
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
71
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
72
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
73
|
+
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
74
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
75
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
76
|
+
VpcId = Shapes::StringShape.new(name: 'VpcId')
|
77
|
+
errorMessage = Shapes::StringShape.new(name: 'errorMessage')
|
78
|
+
|
79
|
+
Backup.add_member(:backup_id, Shapes::ShapeRef.new(shape: BackupId, required: true, location_name: "BackupId"))
|
80
|
+
Backup.add_member(:backup_state, Shapes::ShapeRef.new(shape: BackupState, location_name: "BackupState"))
|
81
|
+
Backup.add_member(:cluster_id, Shapes::ShapeRef.new(shape: ClusterId, location_name: "ClusterId"))
|
82
|
+
Backup.add_member(:create_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreateTimestamp"))
|
83
|
+
Backup.struct_class = Types::Backup
|
84
|
+
|
85
|
+
Backups.member = Shapes::ShapeRef.new(shape: Backup)
|
86
|
+
|
87
|
+
Certificates.add_member(:cluster_csr, Shapes::ShapeRef.new(shape: Cert, location_name: "ClusterCsr"))
|
88
|
+
Certificates.add_member(:hsm_certificate, Shapes::ShapeRef.new(shape: Cert, location_name: "HsmCertificate"))
|
89
|
+
Certificates.add_member(:aws_hardware_certificate, Shapes::ShapeRef.new(shape: Cert, location_name: "AwsHardwareCertificate"))
|
90
|
+
Certificates.add_member(:manufacturer_hardware_certificate, Shapes::ShapeRef.new(shape: Cert, location_name: "ManufacturerHardwareCertificate"))
|
91
|
+
Certificates.add_member(:cluster_certificate, Shapes::ShapeRef.new(shape: Cert, location_name: "ClusterCertificate"))
|
92
|
+
Certificates.struct_class = Types::Certificates
|
93
|
+
|
94
|
+
Cluster.add_member(:backup_policy, Shapes::ShapeRef.new(shape: BackupPolicy, location_name: "BackupPolicy"))
|
95
|
+
Cluster.add_member(:cluster_id, Shapes::ShapeRef.new(shape: ClusterId, location_name: "ClusterId"))
|
96
|
+
Cluster.add_member(:create_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreateTimestamp"))
|
97
|
+
Cluster.add_member(:hsms, Shapes::ShapeRef.new(shape: Hsms, location_name: "Hsms"))
|
98
|
+
Cluster.add_member(:hsm_type, Shapes::ShapeRef.new(shape: HsmType, location_name: "HsmType"))
|
99
|
+
Cluster.add_member(:pre_co_password, Shapes::ShapeRef.new(shape: PreCoPassword, location_name: "PreCoPassword"))
|
100
|
+
Cluster.add_member(:security_group, Shapes::ShapeRef.new(shape: SecurityGroup, location_name: "SecurityGroup"))
|
101
|
+
Cluster.add_member(:source_backup_id, Shapes::ShapeRef.new(shape: BackupId, location_name: "SourceBackupId"))
|
102
|
+
Cluster.add_member(:state, Shapes::ShapeRef.new(shape: ClusterState, location_name: "State"))
|
103
|
+
Cluster.add_member(:state_message, Shapes::ShapeRef.new(shape: StateMessage, location_name: "StateMessage"))
|
104
|
+
Cluster.add_member(:subnet_mapping, Shapes::ShapeRef.new(shape: ExternalSubnetMapping, location_name: "SubnetMapping"))
|
105
|
+
Cluster.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, location_name: "VpcId"))
|
106
|
+
Cluster.add_member(:certificates, Shapes::ShapeRef.new(shape: Certificates, location_name: "Certificates"))
|
107
|
+
Cluster.struct_class = Types::Cluster
|
108
|
+
|
109
|
+
Clusters.member = Shapes::ShapeRef.new(shape: Cluster)
|
110
|
+
|
111
|
+
CreateClusterRequest.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, required: true, location_name: "SubnetIds"))
|
112
|
+
CreateClusterRequest.add_member(:hsm_type, Shapes::ShapeRef.new(shape: HsmType, required: true, location_name: "HsmType"))
|
113
|
+
CreateClusterRequest.add_member(:source_backup_id, Shapes::ShapeRef.new(shape: BackupId, location_name: "SourceBackupId"))
|
114
|
+
CreateClusterRequest.struct_class = Types::CreateClusterRequest
|
115
|
+
|
116
|
+
CreateClusterResponse.add_member(:cluster, Shapes::ShapeRef.new(shape: Cluster, location_name: "Cluster"))
|
117
|
+
CreateClusterResponse.struct_class = Types::CreateClusterResponse
|
118
|
+
|
119
|
+
CreateHsmRequest.add_member(:cluster_id, Shapes::ShapeRef.new(shape: ClusterId, required: true, location_name: "ClusterId"))
|
120
|
+
CreateHsmRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape: ExternalAz, required: true, location_name: "AvailabilityZone"))
|
121
|
+
CreateHsmRequest.add_member(:ip_address, Shapes::ShapeRef.new(shape: IpAddress, location_name: "IpAddress"))
|
122
|
+
CreateHsmRequest.struct_class = Types::CreateHsmRequest
|
123
|
+
|
124
|
+
CreateHsmResponse.add_member(:hsm, Shapes::ShapeRef.new(shape: Hsm, location_name: "Hsm"))
|
125
|
+
CreateHsmResponse.struct_class = Types::CreateHsmResponse
|
126
|
+
|
127
|
+
DeleteClusterRequest.add_member(:cluster_id, Shapes::ShapeRef.new(shape: ClusterId, required: true, location_name: "ClusterId"))
|
128
|
+
DeleteClusterRequest.struct_class = Types::DeleteClusterRequest
|
129
|
+
|
130
|
+
DeleteClusterResponse.add_member(:cluster, Shapes::ShapeRef.new(shape: Cluster, location_name: "Cluster"))
|
131
|
+
DeleteClusterResponse.struct_class = Types::DeleteClusterResponse
|
132
|
+
|
133
|
+
DeleteHsmRequest.add_member(:cluster_id, Shapes::ShapeRef.new(shape: ClusterId, required: true, location_name: "ClusterId"))
|
134
|
+
DeleteHsmRequest.add_member(:hsm_id, Shapes::ShapeRef.new(shape: HsmId, location_name: "HsmId"))
|
135
|
+
DeleteHsmRequest.add_member(:eni_id, Shapes::ShapeRef.new(shape: EniId, location_name: "EniId"))
|
136
|
+
DeleteHsmRequest.add_member(:eni_ip, Shapes::ShapeRef.new(shape: IpAddress, location_name: "EniIp"))
|
137
|
+
DeleteHsmRequest.struct_class = Types::DeleteHsmRequest
|
138
|
+
|
139
|
+
DeleteHsmResponse.add_member(:hsm_id, Shapes::ShapeRef.new(shape: HsmId, location_name: "HsmId"))
|
140
|
+
DeleteHsmResponse.struct_class = Types::DeleteHsmResponse
|
141
|
+
|
142
|
+
DescribeBackupsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
143
|
+
DescribeBackupsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxSize, location_name: "MaxResults"))
|
144
|
+
DescribeBackupsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: Filters, location_name: "Filters"))
|
145
|
+
DescribeBackupsRequest.struct_class = Types::DescribeBackupsRequest
|
146
|
+
|
147
|
+
DescribeBackupsResponse.add_member(:backups, Shapes::ShapeRef.new(shape: Backups, location_name: "Backups"))
|
148
|
+
DescribeBackupsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
149
|
+
DescribeBackupsResponse.struct_class = Types::DescribeBackupsResponse
|
150
|
+
|
151
|
+
DescribeClustersRequest.add_member(:filters, Shapes::ShapeRef.new(shape: Filters, location_name: "Filters"))
|
152
|
+
DescribeClustersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
153
|
+
DescribeClustersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxSize, location_name: "MaxResults"))
|
154
|
+
DescribeClustersRequest.struct_class = Types::DescribeClustersRequest
|
155
|
+
|
156
|
+
DescribeClustersResponse.add_member(:clusters, Shapes::ShapeRef.new(shape: Clusters, location_name: "Clusters"))
|
157
|
+
DescribeClustersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
158
|
+
DescribeClustersResponse.struct_class = Types::DescribeClustersResponse
|
159
|
+
|
160
|
+
ExternalSubnetMapping.key = Shapes::ShapeRef.new(shape: ExternalAz)
|
161
|
+
ExternalSubnetMapping.value = Shapes::ShapeRef.new(shape: SubnetId)
|
162
|
+
|
163
|
+
Filters.key = Shapes::ShapeRef.new(shape: Field)
|
164
|
+
Filters.value = Shapes::ShapeRef.new(shape: Strings)
|
165
|
+
|
166
|
+
Hsm.add_member(:availability_zone, Shapes::ShapeRef.new(shape: ExternalAz, location_name: "AvailabilityZone"))
|
167
|
+
Hsm.add_member(:cluster_id, Shapes::ShapeRef.new(shape: ClusterId, location_name: "ClusterId"))
|
168
|
+
Hsm.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, location_name: "SubnetId"))
|
169
|
+
Hsm.add_member(:eni_id, Shapes::ShapeRef.new(shape: EniId, location_name: "EniId"))
|
170
|
+
Hsm.add_member(:eni_ip, Shapes::ShapeRef.new(shape: IpAddress, location_name: "EniIp"))
|
171
|
+
Hsm.add_member(:hsm_id, Shapes::ShapeRef.new(shape: HsmId, required: true, location_name: "HsmId"))
|
172
|
+
Hsm.add_member(:state, Shapes::ShapeRef.new(shape: HsmState, location_name: "State"))
|
173
|
+
Hsm.add_member(:state_message, Shapes::ShapeRef.new(shape: String, location_name: "StateMessage"))
|
174
|
+
Hsm.struct_class = Types::Hsm
|
175
|
+
|
176
|
+
Hsms.member = Shapes::ShapeRef.new(shape: Hsm)
|
177
|
+
|
178
|
+
InitializeClusterRequest.add_member(:cluster_id, Shapes::ShapeRef.new(shape: ClusterId, required: true, location_name: "ClusterId"))
|
179
|
+
InitializeClusterRequest.add_member(:signed_cert, Shapes::ShapeRef.new(shape: Cert, required: true, location_name: "SignedCert"))
|
180
|
+
InitializeClusterRequest.add_member(:trust_anchor, Shapes::ShapeRef.new(shape: Cert, required: true, location_name: "TrustAnchor"))
|
181
|
+
InitializeClusterRequest.struct_class = Types::InitializeClusterRequest
|
182
|
+
|
183
|
+
InitializeClusterResponse.add_member(:state, Shapes::ShapeRef.new(shape: ClusterState, location_name: "State"))
|
184
|
+
InitializeClusterResponse.add_member(:state_message, Shapes::ShapeRef.new(shape: StateMessage, location_name: "StateMessage"))
|
185
|
+
InitializeClusterResponse.struct_class = Types::InitializeClusterResponse
|
186
|
+
|
187
|
+
ListTagsRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ClusterId, required: true, location_name: "ResourceId"))
|
188
|
+
ListTagsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
189
|
+
ListTagsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxSize, location_name: "MaxResults"))
|
190
|
+
ListTagsRequest.struct_class = Types::ListTagsRequest
|
191
|
+
|
192
|
+
ListTagsResponse.add_member(:tag_list, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "TagList"))
|
193
|
+
ListTagsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
194
|
+
ListTagsResponse.struct_class = Types::ListTagsResponse
|
195
|
+
|
196
|
+
Strings.member = Shapes::ShapeRef.new(shape: String)
|
197
|
+
|
198
|
+
SubnetIds.member = Shapes::ShapeRef.new(shape: SubnetId)
|
199
|
+
|
200
|
+
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
|
201
|
+
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
|
202
|
+
Tag.struct_class = Types::Tag
|
203
|
+
|
204
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
205
|
+
|
206
|
+
TagList.member = Shapes::ShapeRef.new(shape: Tag)
|
207
|
+
|
208
|
+
TagResourceRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ClusterId, required: true, location_name: "ResourceId"))
|
209
|
+
TagResourceRequest.add_member(:tag_list, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "TagList"))
|
210
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
211
|
+
|
212
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
213
|
+
|
214
|
+
UntagResourceRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ClusterId, required: true, location_name: "ResourceId"))
|
215
|
+
UntagResourceRequest.add_member(:tag_key_list, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeyList"))
|
216
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
217
|
+
|
218
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
219
|
+
|
220
|
+
|
221
|
+
# @api private
|
222
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
223
|
+
|
224
|
+
api.version = "2017-04-28"
|
225
|
+
|
226
|
+
api.metadata = {
|
227
|
+
"endpointPrefix" => "cloudhsmv2",
|
228
|
+
"jsonVersion" => "1.1",
|
229
|
+
"protocol" => "json",
|
230
|
+
"serviceFullName" => "AWS CloudHSM V2",
|
231
|
+
"signatureVersion" => "v4",
|
232
|
+
"signingName" => "cloudhsm",
|
233
|
+
"targetPrefix" => "BaldrApiService",
|
234
|
+
}
|
235
|
+
|
236
|
+
api.add_operation(:create_cluster, Seahorse::Model::Operation.new.tap do |o|
|
237
|
+
o.name = "CreateCluster"
|
238
|
+
o.http_method = "POST"
|
239
|
+
o.http_request_uri = "/"
|
240
|
+
o.input = Shapes::ShapeRef.new(shape: CreateClusterRequest)
|
241
|
+
o.output = Shapes::ShapeRef.new(shape: CreateClusterResponse)
|
242
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
|
243
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
244
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
|
245
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
|
246
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
|
247
|
+
end)
|
248
|
+
|
249
|
+
api.add_operation(:create_hsm, Seahorse::Model::Operation.new.tap do |o|
|
250
|
+
o.name = "CreateHsm"
|
251
|
+
o.http_method = "POST"
|
252
|
+
o.http_request_uri = "/"
|
253
|
+
o.input = Shapes::ShapeRef.new(shape: CreateHsmRequest)
|
254
|
+
o.output = Shapes::ShapeRef.new(shape: CreateHsmResponse)
|
255
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
|
256
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
257
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
|
258
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
|
259
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
|
260
|
+
end)
|
261
|
+
|
262
|
+
api.add_operation(:delete_cluster, Seahorse::Model::Operation.new.tap do |o|
|
263
|
+
o.name = "DeleteCluster"
|
264
|
+
o.http_method = "POST"
|
265
|
+
o.http_request_uri = "/"
|
266
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteClusterRequest)
|
267
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteClusterResponse)
|
268
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
|
269
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
270
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
|
271
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
|
272
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
|
273
|
+
end)
|
274
|
+
|
275
|
+
api.add_operation(:delete_hsm, Seahorse::Model::Operation.new.tap do |o|
|
276
|
+
o.name = "DeleteHsm"
|
277
|
+
o.http_method = "POST"
|
278
|
+
o.http_request_uri = "/"
|
279
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteHsmRequest)
|
280
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteHsmResponse)
|
281
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
|
282
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
283
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
|
284
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
|
285
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
|
286
|
+
end)
|
287
|
+
|
288
|
+
api.add_operation(:describe_backups, Seahorse::Model::Operation.new.tap do |o|
|
289
|
+
o.name = "DescribeBackups"
|
290
|
+
o.http_method = "POST"
|
291
|
+
o.http_request_uri = "/"
|
292
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeBackupsRequest)
|
293
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeBackupsResponse)
|
294
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
|
295
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
296
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
|
297
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
|
298
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
|
299
|
+
o[:pager] = Aws::Pager.new(
|
300
|
+
limit_key: "max_results",
|
301
|
+
tokens: {
|
302
|
+
"next_token" => "next_token"
|
303
|
+
}
|
304
|
+
)
|
305
|
+
end)
|
306
|
+
|
307
|
+
api.add_operation(:describe_clusters, Seahorse::Model::Operation.new.tap do |o|
|
308
|
+
o.name = "DescribeClusters"
|
309
|
+
o.http_method = "POST"
|
310
|
+
o.http_request_uri = "/"
|
311
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeClustersRequest)
|
312
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeClustersResponse)
|
313
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
|
314
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
315
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
|
316
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
|
317
|
+
o[:pager] = Aws::Pager.new(
|
318
|
+
limit_key: "max_results",
|
319
|
+
tokens: {
|
320
|
+
"next_token" => "next_token"
|
321
|
+
}
|
322
|
+
)
|
323
|
+
end)
|
324
|
+
|
325
|
+
api.add_operation(:initialize_cluster, Seahorse::Model::Operation.new.tap do |o|
|
326
|
+
o.name = "InitializeCluster"
|
327
|
+
o.http_method = "POST"
|
328
|
+
o.http_request_uri = "/"
|
329
|
+
o.input = Shapes::ShapeRef.new(shape: InitializeClusterRequest)
|
330
|
+
o.output = Shapes::ShapeRef.new(shape: InitializeClusterResponse)
|
331
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
|
332
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
333
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
|
334
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
|
335
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
|
336
|
+
end)
|
337
|
+
|
338
|
+
api.add_operation(:list_tags, Seahorse::Model::Operation.new.tap do |o|
|
339
|
+
o.name = "ListTags"
|
340
|
+
o.http_method = "POST"
|
341
|
+
o.http_request_uri = "/"
|
342
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsRequest)
|
343
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsResponse)
|
344
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
|
345
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
346
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
|
347
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
|
348
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
|
349
|
+
o[:pager] = Aws::Pager.new(
|
350
|
+
limit_key: "max_results",
|
351
|
+
tokens: {
|
352
|
+
"next_token" => "next_token"
|
353
|
+
}
|
354
|
+
)
|
355
|
+
end)
|
356
|
+
|
357
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
358
|
+
o.name = "TagResource"
|
359
|
+
o.http_method = "POST"
|
360
|
+
o.http_request_uri = "/"
|
361
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
362
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
363
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
|
364
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
365
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
|
366
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
|
367
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
|
368
|
+
end)
|
369
|
+
|
370
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
371
|
+
o.name = "UntagResource"
|
372
|
+
o.http_method = "POST"
|
373
|
+
o.http_request_uri = "/"
|
374
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
375
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
376
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInternalFailureException)
|
377
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmServiceException)
|
378
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmResourceNotFoundException)
|
379
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmInvalidRequestException)
|
380
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudHsmAccessDeniedException)
|
381
|
+
end)
|
382
|
+
end
|
383
|
+
|
384
|
+
end
|
385
|
+
end
|
File without changes
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::CloudHSMV2
|
9
|
+
module Errors
|
10
|
+
|
11
|
+
extend Aws::Errors::DynamicErrors
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::CloudHSMV2
|
9
|
+
class Resource
|
10
|
+
|
11
|
+
# @param options ({})
|
12
|
+
# @option options [Client] :client
|
13
|
+
def initialize(options = {})
|
14
|
+
@client = options[:client] || Client.new(options)
|
15
|
+
end
|
16
|
+
|
17
|
+
# @return [Client]
|
18
|
+
def client
|
19
|
+
@client
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,701 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::CloudHSMV2
|
9
|
+
module Types
|
10
|
+
|
11
|
+
# Contains information about a backup of an AWS CloudHSM cluster.
|
12
|
+
#
|
13
|
+
# @!attribute [rw] backup_id
|
14
|
+
# The identifier (ID) of the backup.
|
15
|
+
# @return [String]
|
16
|
+
#
|
17
|
+
# @!attribute [rw] backup_state
|
18
|
+
# The state of the backup.
|
19
|
+
# @return [String]
|
20
|
+
#
|
21
|
+
# @!attribute [rw] cluster_id
|
22
|
+
# The identifier (ID) of the cluster that was backed up.
|
23
|
+
# @return [String]
|
24
|
+
#
|
25
|
+
# @!attribute [rw] create_timestamp
|
26
|
+
# The date and time when the backup was created.
|
27
|
+
# @return [Time]
|
28
|
+
#
|
29
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/Backup AWS API Documentation
|
30
|
+
#
|
31
|
+
class Backup < Struct.new(
|
32
|
+
:backup_id,
|
33
|
+
:backup_state,
|
34
|
+
:cluster_id,
|
35
|
+
:create_timestamp)
|
36
|
+
include Aws::Structure
|
37
|
+
end
|
38
|
+
|
39
|
+
# Contains one or more certificates or a certificate signing request
|
40
|
+
# (CSR).
|
41
|
+
#
|
42
|
+
# @!attribute [rw] cluster_csr
|
43
|
+
# The cluster's certificate signing request (CSR). The CSR exists
|
44
|
+
# only when the cluster's state is `UNINITIALIZED`.
|
45
|
+
# @return [String]
|
46
|
+
#
|
47
|
+
# @!attribute [rw] hsm_certificate
|
48
|
+
# The HSM certificate issued (signed) by the HSM hardware.
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
# @!attribute [rw] aws_hardware_certificate
|
52
|
+
# The HSM hardware certificate issued (signed) by AWS CloudHSM.
|
53
|
+
# @return [String]
|
54
|
+
#
|
55
|
+
# @!attribute [rw] manufacturer_hardware_certificate
|
56
|
+
# The HSM hardware certificate issued (signed) by the hardware
|
57
|
+
# manufacturer.
|
58
|
+
# @return [String]
|
59
|
+
#
|
60
|
+
# @!attribute [rw] cluster_certificate
|
61
|
+
# The cluster certificate issued (signed) by the issuing certificate
|
62
|
+
# authority (CA) of the cluster's owner.
|
63
|
+
# @return [String]
|
64
|
+
#
|
65
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/Certificates AWS API Documentation
|
66
|
+
#
|
67
|
+
class Certificates < Struct.new(
|
68
|
+
:cluster_csr,
|
69
|
+
:hsm_certificate,
|
70
|
+
:aws_hardware_certificate,
|
71
|
+
:manufacturer_hardware_certificate,
|
72
|
+
:cluster_certificate)
|
73
|
+
include Aws::Structure
|
74
|
+
end
|
75
|
+
|
76
|
+
# Contains information about an AWS CloudHSM cluster.
|
77
|
+
#
|
78
|
+
# @!attribute [rw] backup_policy
|
79
|
+
# The cluster's backup policy.
|
80
|
+
# @return [String]
|
81
|
+
#
|
82
|
+
# @!attribute [rw] cluster_id
|
83
|
+
# The cluster's identifier (ID).
|
84
|
+
# @return [String]
|
85
|
+
#
|
86
|
+
# @!attribute [rw] create_timestamp
|
87
|
+
# The date and time when the cluster was created.
|
88
|
+
# @return [Time]
|
89
|
+
#
|
90
|
+
# @!attribute [rw] hsms
|
91
|
+
# Contains information about the HSMs in the cluster.
|
92
|
+
# @return [Array<Types::Hsm>]
|
93
|
+
#
|
94
|
+
# @!attribute [rw] hsm_type
|
95
|
+
# The type of HSM that the cluster contains.
|
96
|
+
# @return [String]
|
97
|
+
#
|
98
|
+
# @!attribute [rw] pre_co_password
|
99
|
+
# The default password for the cluster's Pre-Crypto Officer (PRECO)
|
100
|
+
# user.
|
101
|
+
# @return [String]
|
102
|
+
#
|
103
|
+
# @!attribute [rw] security_group
|
104
|
+
# The identifier (ID) of the cluster's security group.
|
105
|
+
# @return [String]
|
106
|
+
#
|
107
|
+
# @!attribute [rw] source_backup_id
|
108
|
+
# The identifier (ID) of the backup used to create the cluster. This
|
109
|
+
# value exists only when the cluster was created from a backup.
|
110
|
+
# @return [String]
|
111
|
+
#
|
112
|
+
# @!attribute [rw] state
|
113
|
+
# The cluster's state.
|
114
|
+
# @return [String]
|
115
|
+
#
|
116
|
+
# @!attribute [rw] state_message
|
117
|
+
# A description of the cluster's state.
|
118
|
+
# @return [String]
|
119
|
+
#
|
120
|
+
# @!attribute [rw] subnet_mapping
|
121
|
+
# A map of the cluster's subnets and their corresponding Availability
|
122
|
+
# Zones.
|
123
|
+
# @return [Hash<String,String>]
|
124
|
+
#
|
125
|
+
# @!attribute [rw] vpc_id
|
126
|
+
# The identifier (ID) of the virtual private cloud (VPC) that contains
|
127
|
+
# the cluster.
|
128
|
+
# @return [String]
|
129
|
+
#
|
130
|
+
# @!attribute [rw] certificates
|
131
|
+
# Contains one or more certificates or a certificate signing request
|
132
|
+
# (CSR).
|
133
|
+
# @return [Types::Certificates]
|
134
|
+
#
|
135
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/Cluster AWS API Documentation
|
136
|
+
#
|
137
|
+
class Cluster < Struct.new(
|
138
|
+
:backup_policy,
|
139
|
+
:cluster_id,
|
140
|
+
:create_timestamp,
|
141
|
+
:hsms,
|
142
|
+
:hsm_type,
|
143
|
+
:pre_co_password,
|
144
|
+
:security_group,
|
145
|
+
:source_backup_id,
|
146
|
+
:state,
|
147
|
+
:state_message,
|
148
|
+
:subnet_mapping,
|
149
|
+
:vpc_id,
|
150
|
+
:certificates)
|
151
|
+
include Aws::Structure
|
152
|
+
end
|
153
|
+
|
154
|
+
# @note When making an API call, you may pass CreateClusterRequest
|
155
|
+
# data as a hash:
|
156
|
+
#
|
157
|
+
# {
|
158
|
+
# subnet_ids: ["SubnetId"], # required
|
159
|
+
# hsm_type: "HsmType", # required
|
160
|
+
# source_backup_id: "BackupId",
|
161
|
+
# }
|
162
|
+
#
|
163
|
+
# @!attribute [rw] subnet_ids
|
164
|
+
# The identifiers (IDs) of the subnets where you are creating the
|
165
|
+
# cluster. You must specify at least one subnet. If you specify
|
166
|
+
# multiple subnets, they must meet the following criteria:
|
167
|
+
#
|
168
|
+
# * All subnets must be in the same virtual private cloud (VPC).
|
169
|
+
#
|
170
|
+
# * You can specify only one subnet per Availability Zone.
|
171
|
+
# @return [Array<String>]
|
172
|
+
#
|
173
|
+
# @!attribute [rw] hsm_type
|
174
|
+
# The type of HSM to use in the cluster. Currently the only allowed
|
175
|
+
# value is `hsm1.medium`.
|
176
|
+
# @return [String]
|
177
|
+
#
|
178
|
+
# @!attribute [rw] source_backup_id
|
179
|
+
# The identifier (ID) of the cluster backup to restore. Use this value
|
180
|
+
# to restore the cluster from a backup instead of creating a new
|
181
|
+
# cluster. To find the backup ID, use DescribeBackups.
|
182
|
+
# @return [String]
|
183
|
+
#
|
184
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateClusterRequest AWS API Documentation
|
185
|
+
#
|
186
|
+
class CreateClusterRequest < Struct.new(
|
187
|
+
:subnet_ids,
|
188
|
+
:hsm_type,
|
189
|
+
:source_backup_id)
|
190
|
+
include Aws::Structure
|
191
|
+
end
|
192
|
+
|
193
|
+
# @!attribute [rw] cluster
|
194
|
+
# Information about the cluster that was created.
|
195
|
+
# @return [Types::Cluster]
|
196
|
+
#
|
197
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateClusterResponse AWS API Documentation
|
198
|
+
#
|
199
|
+
class CreateClusterResponse < Struct.new(
|
200
|
+
:cluster)
|
201
|
+
include Aws::Structure
|
202
|
+
end
|
203
|
+
|
204
|
+
# @note When making an API call, you may pass CreateHsmRequest
|
205
|
+
# data as a hash:
|
206
|
+
#
|
207
|
+
# {
|
208
|
+
# cluster_id: "ClusterId", # required
|
209
|
+
# availability_zone: "ExternalAz", # required
|
210
|
+
# ip_address: "IpAddress",
|
211
|
+
# }
|
212
|
+
#
|
213
|
+
# @!attribute [rw] cluster_id
|
214
|
+
# The identifier (ID) of the HSM's cluster. To find the cluster ID,
|
215
|
+
# use DescribeClusters.
|
216
|
+
# @return [String]
|
217
|
+
#
|
218
|
+
# @!attribute [rw] availability_zone
|
219
|
+
# The Availability Zone where you are creating the HSM. To find the
|
220
|
+
# cluster's Availability Zones, use DescribeClusters.
|
221
|
+
# @return [String]
|
222
|
+
#
|
223
|
+
# @!attribute [rw] ip_address
|
224
|
+
# The HSM's IP address. If you specify an IP address, use an
|
225
|
+
# available address from the subnet that maps to the Availability Zone
|
226
|
+
# where you are creating the HSM. If you don't specify an IP address,
|
227
|
+
# one is chosen for you from that subnet.
|
228
|
+
# @return [String]
|
229
|
+
#
|
230
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateHsmRequest AWS API Documentation
|
231
|
+
#
|
232
|
+
class CreateHsmRequest < Struct.new(
|
233
|
+
:cluster_id,
|
234
|
+
:availability_zone,
|
235
|
+
:ip_address)
|
236
|
+
include Aws::Structure
|
237
|
+
end
|
238
|
+
|
239
|
+
# @!attribute [rw] hsm
|
240
|
+
# Information about the HSM that was created.
|
241
|
+
# @return [Types::Hsm]
|
242
|
+
#
|
243
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateHsmResponse AWS API Documentation
|
244
|
+
#
|
245
|
+
class CreateHsmResponse < Struct.new(
|
246
|
+
:hsm)
|
247
|
+
include Aws::Structure
|
248
|
+
end
|
249
|
+
|
250
|
+
# @note When making an API call, you may pass DeleteClusterRequest
|
251
|
+
# data as a hash:
|
252
|
+
#
|
253
|
+
# {
|
254
|
+
# cluster_id: "ClusterId", # required
|
255
|
+
# }
|
256
|
+
#
|
257
|
+
# @!attribute [rw] cluster_id
|
258
|
+
# The identifier (ID) of the cluster that you are deleting. To find
|
259
|
+
# the cluster ID, use DescribeClusters.
|
260
|
+
# @return [String]
|
261
|
+
#
|
262
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteClusterRequest AWS API Documentation
|
263
|
+
#
|
264
|
+
class DeleteClusterRequest < Struct.new(
|
265
|
+
:cluster_id)
|
266
|
+
include Aws::Structure
|
267
|
+
end
|
268
|
+
|
269
|
+
# @!attribute [rw] cluster
|
270
|
+
# Information about the cluster that was deleted.
|
271
|
+
# @return [Types::Cluster]
|
272
|
+
#
|
273
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteClusterResponse AWS API Documentation
|
274
|
+
#
|
275
|
+
class DeleteClusterResponse < Struct.new(
|
276
|
+
:cluster)
|
277
|
+
include Aws::Structure
|
278
|
+
end
|
279
|
+
|
280
|
+
# @note When making an API call, you may pass DeleteHsmRequest
|
281
|
+
# data as a hash:
|
282
|
+
#
|
283
|
+
# {
|
284
|
+
# cluster_id: "ClusterId", # required
|
285
|
+
# hsm_id: "HsmId",
|
286
|
+
# eni_id: "EniId",
|
287
|
+
# eni_ip: "IpAddress",
|
288
|
+
# }
|
289
|
+
#
|
290
|
+
# @!attribute [rw] cluster_id
|
291
|
+
# The identifier (ID) of the cluster that contains the HSM that you
|
292
|
+
# are deleting.
|
293
|
+
# @return [String]
|
294
|
+
#
|
295
|
+
# @!attribute [rw] hsm_id
|
296
|
+
# The identifier (ID) of the HSM that you are deleting.
|
297
|
+
# @return [String]
|
298
|
+
#
|
299
|
+
# @!attribute [rw] eni_id
|
300
|
+
# The identifier (ID) of the elastic network interface (ENI) of the
|
301
|
+
# HSM that you are deleting.
|
302
|
+
# @return [String]
|
303
|
+
#
|
304
|
+
# @!attribute [rw] eni_ip
|
305
|
+
# The IP address of the elastic network interface (ENI) of the HSM
|
306
|
+
# that you are deleting.
|
307
|
+
# @return [String]
|
308
|
+
#
|
309
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteHsmRequest AWS API Documentation
|
310
|
+
#
|
311
|
+
class DeleteHsmRequest < Struct.new(
|
312
|
+
:cluster_id,
|
313
|
+
:hsm_id,
|
314
|
+
:eni_id,
|
315
|
+
:eni_ip)
|
316
|
+
include Aws::Structure
|
317
|
+
end
|
318
|
+
|
319
|
+
# @!attribute [rw] hsm_id
|
320
|
+
# The identifier (ID) of the HSM that was deleted.
|
321
|
+
# @return [String]
|
322
|
+
#
|
323
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DeleteHsmResponse AWS API Documentation
|
324
|
+
#
|
325
|
+
class DeleteHsmResponse < Struct.new(
|
326
|
+
:hsm_id)
|
327
|
+
include Aws::Structure
|
328
|
+
end
|
329
|
+
|
330
|
+
# @note When making an API call, you may pass DescribeBackupsRequest
|
331
|
+
# data as a hash:
|
332
|
+
#
|
333
|
+
# {
|
334
|
+
# next_token: "NextToken",
|
335
|
+
# max_results: 1,
|
336
|
+
# filters: {
|
337
|
+
# "Field" => ["String"],
|
338
|
+
# },
|
339
|
+
# }
|
340
|
+
#
|
341
|
+
# @!attribute [rw] next_token
|
342
|
+
# The `NextToken` value that you received in the previous response.
|
343
|
+
# Use this value to get more backups.
|
344
|
+
# @return [String]
|
345
|
+
#
|
346
|
+
# @!attribute [rw] max_results
|
347
|
+
# The maximum number of backups to return in the response. When there
|
348
|
+
# are more backups than the number you specify, the response contains
|
349
|
+
# a `NextToken` value.
|
350
|
+
# @return [Integer]
|
351
|
+
#
|
352
|
+
# @!attribute [rw] filters
|
353
|
+
# One or more filters to limit the items returned in the response.
|
354
|
+
#
|
355
|
+
# Use the `backupIds` filter to return only the specified backups.
|
356
|
+
# Specify backups by their backup identifier (ID).
|
357
|
+
#
|
358
|
+
# Use the `clusterIds` filter to return only the backups for the
|
359
|
+
# specified clusters. Specify clusters by their cluster identifier
|
360
|
+
# (ID).
|
361
|
+
#
|
362
|
+
# Use the `states` filter to return only backups that match the
|
363
|
+
# specified state.
|
364
|
+
# @return [Hash<String,Array<String>>]
|
365
|
+
#
|
366
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeBackupsRequest AWS API Documentation
|
367
|
+
#
|
368
|
+
class DescribeBackupsRequest < Struct.new(
|
369
|
+
:next_token,
|
370
|
+
:max_results,
|
371
|
+
:filters)
|
372
|
+
include Aws::Structure
|
373
|
+
end
|
374
|
+
|
375
|
+
# @!attribute [rw] backups
|
376
|
+
# A list of backups.
|
377
|
+
# @return [Array<Types::Backup>]
|
378
|
+
#
|
379
|
+
# @!attribute [rw] next_token
|
380
|
+
# An opaque string that indicates that the response contains only a
|
381
|
+
# subset of backups. Use this value in a subsequent `DescribeBackups`
|
382
|
+
# request to get more backups.
|
383
|
+
# @return [String]
|
384
|
+
#
|
385
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeBackupsResponse AWS API Documentation
|
386
|
+
#
|
387
|
+
class DescribeBackupsResponse < Struct.new(
|
388
|
+
:backups,
|
389
|
+
:next_token)
|
390
|
+
include Aws::Structure
|
391
|
+
end
|
392
|
+
|
393
|
+
# @note When making an API call, you may pass DescribeClustersRequest
|
394
|
+
# data as a hash:
|
395
|
+
#
|
396
|
+
# {
|
397
|
+
# filters: {
|
398
|
+
# "Field" => ["String"],
|
399
|
+
# },
|
400
|
+
# next_token: "NextToken",
|
401
|
+
# max_results: 1,
|
402
|
+
# }
|
403
|
+
#
|
404
|
+
# @!attribute [rw] filters
|
405
|
+
# One or more filters to limit the items returned in the response.
|
406
|
+
#
|
407
|
+
# Use the `clusterIds` filter to return only the specified clusters.
|
408
|
+
# Specify clusters by their cluster identifier (ID).
|
409
|
+
#
|
410
|
+
# Use the `vpcIds` filter to return only the clusters in the specified
|
411
|
+
# virtual private clouds (VPCs). Specify VPCs by their VPC identifier
|
412
|
+
# (ID).
|
413
|
+
#
|
414
|
+
# Use the `states` filter to return only clusters that match the
|
415
|
+
# specified state.
|
416
|
+
# @return [Hash<String,Array<String>>]
|
417
|
+
#
|
418
|
+
# @!attribute [rw] next_token
|
419
|
+
# The `NextToken` value that you received in the previous response.
|
420
|
+
# Use this value to get more clusters.
|
421
|
+
# @return [String]
|
422
|
+
#
|
423
|
+
# @!attribute [rw] max_results
|
424
|
+
# The maximum number of clusters to return in the response. When there
|
425
|
+
# are more clusters than the number you specify, the response contains
|
426
|
+
# a `NextToken` value.
|
427
|
+
# @return [Integer]
|
428
|
+
#
|
429
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeClustersRequest AWS API Documentation
|
430
|
+
#
|
431
|
+
class DescribeClustersRequest < Struct.new(
|
432
|
+
:filters,
|
433
|
+
:next_token,
|
434
|
+
:max_results)
|
435
|
+
include Aws::Structure
|
436
|
+
end
|
437
|
+
|
438
|
+
# @!attribute [rw] clusters
|
439
|
+
# A list of clusters.
|
440
|
+
# @return [Array<Types::Cluster>]
|
441
|
+
#
|
442
|
+
# @!attribute [rw] next_token
|
443
|
+
# An opaque string that indicates that the response contains only a
|
444
|
+
# subset of clusters. Use this value in a subsequent
|
445
|
+
# `DescribeClusters` request to get more clusters.
|
446
|
+
# @return [String]
|
447
|
+
#
|
448
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/DescribeClustersResponse AWS API Documentation
|
449
|
+
#
|
450
|
+
class DescribeClustersResponse < Struct.new(
|
451
|
+
:clusters,
|
452
|
+
:next_token)
|
453
|
+
include Aws::Structure
|
454
|
+
end
|
455
|
+
|
456
|
+
# Contains information about a hardware security module (HSM) in an AWS
|
457
|
+
# CloudHSM cluster.
|
458
|
+
#
|
459
|
+
# @!attribute [rw] availability_zone
|
460
|
+
# The Availability Zone that contains the HSM.
|
461
|
+
# @return [String]
|
462
|
+
#
|
463
|
+
# @!attribute [rw] cluster_id
|
464
|
+
# The identifier (ID) of the cluster that contains the HSM.
|
465
|
+
# @return [String]
|
466
|
+
#
|
467
|
+
# @!attribute [rw] subnet_id
|
468
|
+
# The subnet that contains the HSM's elastic network interface (ENI).
|
469
|
+
# @return [String]
|
470
|
+
#
|
471
|
+
# @!attribute [rw] eni_id
|
472
|
+
# The identifier (ID) of the HSM's elastic network interface (ENI).
|
473
|
+
# @return [String]
|
474
|
+
#
|
475
|
+
# @!attribute [rw] eni_ip
|
476
|
+
# The IP address of the HSM's elastic network interface (ENI).
|
477
|
+
# @return [String]
|
478
|
+
#
|
479
|
+
# @!attribute [rw] hsm_id
|
480
|
+
# The HSM's identifier (ID).
|
481
|
+
# @return [String]
|
482
|
+
#
|
483
|
+
# @!attribute [rw] state
|
484
|
+
# The HSM's state.
|
485
|
+
# @return [String]
|
486
|
+
#
|
487
|
+
# @!attribute [rw] state_message
|
488
|
+
# A description of the HSM's state.
|
489
|
+
# @return [String]
|
490
|
+
#
|
491
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/Hsm AWS API Documentation
|
492
|
+
#
|
493
|
+
class Hsm < Struct.new(
|
494
|
+
:availability_zone,
|
495
|
+
:cluster_id,
|
496
|
+
:subnet_id,
|
497
|
+
:eni_id,
|
498
|
+
:eni_ip,
|
499
|
+
:hsm_id,
|
500
|
+
:state,
|
501
|
+
:state_message)
|
502
|
+
include Aws::Structure
|
503
|
+
end
|
504
|
+
|
505
|
+
# @note When making an API call, you may pass InitializeClusterRequest
|
506
|
+
# data as a hash:
|
507
|
+
#
|
508
|
+
# {
|
509
|
+
# cluster_id: "ClusterId", # required
|
510
|
+
# signed_cert: "Cert", # required
|
511
|
+
# trust_anchor: "Cert", # required
|
512
|
+
# }
|
513
|
+
#
|
514
|
+
# @!attribute [rw] cluster_id
|
515
|
+
# The identifier (ID) of the cluster that you are claiming. To find
|
516
|
+
# the cluster ID, use DescribeClusters.
|
517
|
+
# @return [String]
|
518
|
+
#
|
519
|
+
# @!attribute [rw] signed_cert
|
520
|
+
# The cluster certificate issued (signed) by your issuing certificate
|
521
|
+
# authority (CA). The certificate must be in PEM format.
|
522
|
+
# @return [String]
|
523
|
+
#
|
524
|
+
# @!attribute [rw] trust_anchor
|
525
|
+
# The issuing certificate of the issuing certificate authority (CA)
|
526
|
+
# that issued (signed) the cluster certificate. This can be a root
|
527
|
+
# (self-signed) certificate or a certificate chain that begins with
|
528
|
+
# the certificate that issued the cluster certificate and ends with a
|
529
|
+
# root certificate. The certificate or certificate chain must be in
|
530
|
+
# PEM format.
|
531
|
+
# @return [String]
|
532
|
+
#
|
533
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/InitializeClusterRequest AWS API Documentation
|
534
|
+
#
|
535
|
+
class InitializeClusterRequest < Struct.new(
|
536
|
+
:cluster_id,
|
537
|
+
:signed_cert,
|
538
|
+
:trust_anchor)
|
539
|
+
include Aws::Structure
|
540
|
+
end
|
541
|
+
|
542
|
+
# @!attribute [rw] state
|
543
|
+
# The cluster's state.
|
544
|
+
# @return [String]
|
545
|
+
#
|
546
|
+
# @!attribute [rw] state_message
|
547
|
+
# A description of the cluster's state.
|
548
|
+
# @return [String]
|
549
|
+
#
|
550
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/InitializeClusterResponse AWS API Documentation
|
551
|
+
#
|
552
|
+
class InitializeClusterResponse < Struct.new(
|
553
|
+
:state,
|
554
|
+
:state_message)
|
555
|
+
include Aws::Structure
|
556
|
+
end
|
557
|
+
|
558
|
+
# @note When making an API call, you may pass ListTagsRequest
|
559
|
+
# data as a hash:
|
560
|
+
#
|
561
|
+
# {
|
562
|
+
# resource_id: "ClusterId", # required
|
563
|
+
# next_token: "NextToken",
|
564
|
+
# max_results: 1,
|
565
|
+
# }
|
566
|
+
#
|
567
|
+
# @!attribute [rw] resource_id
|
568
|
+
# The cluster identifier (ID) for the cluster whose tags you are
|
569
|
+
# getting. To find the cluster ID, use DescribeClusters.
|
570
|
+
# @return [String]
|
571
|
+
#
|
572
|
+
# @!attribute [rw] next_token
|
573
|
+
# The `NextToken` value that you received in the previous response.
|
574
|
+
# Use this value to get more tags.
|
575
|
+
# @return [String]
|
576
|
+
#
|
577
|
+
# @!attribute [rw] max_results
|
578
|
+
# The maximum number of tags to return in the response. When there are
|
579
|
+
# more tags than the number you specify, the response contains a
|
580
|
+
# `NextToken` value.
|
581
|
+
# @return [Integer]
|
582
|
+
#
|
583
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/ListTagsRequest AWS API Documentation
|
584
|
+
#
|
585
|
+
class ListTagsRequest < Struct.new(
|
586
|
+
:resource_id,
|
587
|
+
:next_token,
|
588
|
+
:max_results)
|
589
|
+
include Aws::Structure
|
590
|
+
end
|
591
|
+
|
592
|
+
# @!attribute [rw] tag_list
|
593
|
+
# A list of tags.
|
594
|
+
# @return [Array<Types::Tag>]
|
595
|
+
#
|
596
|
+
# @!attribute [rw] next_token
|
597
|
+
# An opaque string that indicates that the response contains only a
|
598
|
+
# subset of tags. Use this value in a subsequent `ListTags` request to
|
599
|
+
# get more tags.
|
600
|
+
# @return [String]
|
601
|
+
#
|
602
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/ListTagsResponse AWS API Documentation
|
603
|
+
#
|
604
|
+
class ListTagsResponse < Struct.new(
|
605
|
+
:tag_list,
|
606
|
+
:next_token)
|
607
|
+
include Aws::Structure
|
608
|
+
end
|
609
|
+
|
610
|
+
# Contains a tag. A tag is a key-value pair.
|
611
|
+
#
|
612
|
+
# @note When making an API call, you may pass Tag
|
613
|
+
# data as a hash:
|
614
|
+
#
|
615
|
+
# {
|
616
|
+
# key: "TagKey", # required
|
617
|
+
# value: "TagValue", # required
|
618
|
+
# }
|
619
|
+
#
|
620
|
+
# @!attribute [rw] key
|
621
|
+
# The key of the tag.
|
622
|
+
# @return [String]
|
623
|
+
#
|
624
|
+
# @!attribute [rw] value
|
625
|
+
# The value of the tag.
|
626
|
+
# @return [String]
|
627
|
+
#
|
628
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/Tag AWS API Documentation
|
629
|
+
#
|
630
|
+
class Tag < Struct.new(
|
631
|
+
:key,
|
632
|
+
:value)
|
633
|
+
include Aws::Structure
|
634
|
+
end
|
635
|
+
|
636
|
+
# @note When making an API call, you may pass TagResourceRequest
|
637
|
+
# data as a hash:
|
638
|
+
#
|
639
|
+
# {
|
640
|
+
# resource_id: "ClusterId", # required
|
641
|
+
# tag_list: [ # required
|
642
|
+
# {
|
643
|
+
# key: "TagKey", # required
|
644
|
+
# value: "TagValue", # required
|
645
|
+
# },
|
646
|
+
# ],
|
647
|
+
# }
|
648
|
+
#
|
649
|
+
# @!attribute [rw] resource_id
|
650
|
+
# The cluster identifier (ID) for the cluster that you are tagging. To
|
651
|
+
# find the cluster ID, use DescribeClusters.
|
652
|
+
# @return [String]
|
653
|
+
#
|
654
|
+
# @!attribute [rw] tag_list
|
655
|
+
# A list of one or more tags.
|
656
|
+
# @return [Array<Types::Tag>]
|
657
|
+
#
|
658
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/TagResourceRequest AWS API Documentation
|
659
|
+
#
|
660
|
+
class TagResourceRequest < Struct.new(
|
661
|
+
:resource_id,
|
662
|
+
:tag_list)
|
663
|
+
include Aws::Structure
|
664
|
+
end
|
665
|
+
|
666
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/TagResourceResponse AWS API Documentation
|
667
|
+
#
|
668
|
+
class TagResourceResponse < Aws::EmptyStructure; end
|
669
|
+
|
670
|
+
# @note When making an API call, you may pass UntagResourceRequest
|
671
|
+
# data as a hash:
|
672
|
+
#
|
673
|
+
# {
|
674
|
+
# resource_id: "ClusterId", # required
|
675
|
+
# tag_key_list: ["TagKey"], # required
|
676
|
+
# }
|
677
|
+
#
|
678
|
+
# @!attribute [rw] resource_id
|
679
|
+
# The cluster identifier (ID) for the cluster whose tags you are
|
680
|
+
# removing. To find the cluster ID, use DescribeClusters.
|
681
|
+
# @return [String]
|
682
|
+
#
|
683
|
+
# @!attribute [rw] tag_key_list
|
684
|
+
# A list of one or more tag keys for the tags that you are removing.
|
685
|
+
# Specify only the tag keys, not the tag values.
|
686
|
+
# @return [Array<String>]
|
687
|
+
#
|
688
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/UntagResourceRequest AWS API Documentation
|
689
|
+
#
|
690
|
+
class UntagResourceRequest < Struct.new(
|
691
|
+
:resource_id,
|
692
|
+
:tag_key_list)
|
693
|
+
include Aws::Structure
|
694
|
+
end
|
695
|
+
|
696
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/UntagResourceResponse AWS API Documentation
|
697
|
+
#
|
698
|
+
class UntagResourceResponse < Aws::EmptyStructure; end
|
699
|
+
|
700
|
+
end
|
701
|
+
end
|