aws-sdk-cloudhsmv2 1.42.0 → 1.44.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 +4 -4
- data/CHANGELOG.md +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudhsmv2/client.rb +20 -3
- data/lib/aws-sdk-cloudhsmv2/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-cloudhsmv2/endpoint_provider.rb +51 -0
- data/lib/aws-sdk-cloudhsmv2/endpoints.rb +225 -0
- data/lib/aws-sdk-cloudhsmv2/plugins/endpoints.rb +98 -0
- data/lib/aws-sdk-cloudhsmv2/types.rb +0 -170
- data/lib/aws-sdk-cloudhsmv2.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 013e5d379114da6549622e330fd0347871626bb51875091ac287f64dc2458c16
|
4
|
+
data.tar.gz: 345e9be9763a374cb19bc6d0242c5d80c9f00d406506d3d858b9700df8a6adb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0cd56f59722174a9f9252c867aab08ec84cf6f19a8c9f65d69abe074364f43073730bacf762b2bdfae59591cb548d4c2b7dc988c69e99e70ac9ec7a698c6255
|
7
|
+
data.tar.gz: 13bebc2160866e079982365eab45921fde49f08af7226b12a2304168b61b06bfb54bf67354432f27aecde22fa434df2471ec020814b27a2a0667d4bd6f24e3ae
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.44.0 (2023-01-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
10
|
+
|
11
|
+
1.43.0 (2022-10-25)
|
12
|
+
------------------
|
13
|
+
|
14
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
15
|
+
|
4
16
|
1.42.0 (2022-02-24)
|
5
17
|
------------------
|
6
18
|
|
@@ -225,4 +237,4 @@ Unreleased Changes
|
|
225
237
|
1.0.0.rc1 (2017-08-14)
|
226
238
|
------------------
|
227
239
|
|
228
|
-
* Feature - Initial release of `aws-sdk-cloudhsmv2`.
|
240
|
+
* Feature - Initial release of `aws-sdk-cloudhsmv2`.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.44.0
|
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:cloudhsmv2)
|
@@ -79,8 +79,9 @@ module Aws::CloudHSMV2
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
84
|
+
add_plugin(Aws::CloudHSMV2::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -297,6 +298,19 @@ module Aws::CloudHSMV2
|
|
297
298
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
298
299
|
# requests are made, and retries are disabled.
|
299
300
|
#
|
301
|
+
# @option options [Aws::TokenProvider] :token_provider
|
302
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
303
|
+
# following classes:
|
304
|
+
#
|
305
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
306
|
+
# tokens.
|
307
|
+
#
|
308
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
309
|
+
# access token generated from `aws login`.
|
310
|
+
#
|
311
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
312
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
313
|
+
#
|
300
314
|
# @option options [Boolean] :use_dualstack_endpoint
|
301
315
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
302
316
|
# will be used if available.
|
@@ -310,6 +324,9 @@ module Aws::CloudHSMV2
|
|
310
324
|
# When `true`, request parameters are validated before
|
311
325
|
# sending the request.
|
312
326
|
#
|
327
|
+
# @option options [Aws::CloudHSMV2::EndpointProvider] :endpoint_provider
|
328
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::CloudHSMV2::EndpointParameters`
|
329
|
+
#
|
313
330
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
314
331
|
# requests through. Formatted like 'http://proxy.com:123'.
|
315
332
|
#
|
@@ -1214,7 +1231,7 @@ module Aws::CloudHSMV2
|
|
1214
1231
|
params: params,
|
1215
1232
|
config: config)
|
1216
1233
|
context[:gem_name] = 'aws-sdk-cloudhsmv2'
|
1217
|
-
context[:gem_version] = '1.
|
1234
|
+
context[:gem_version] = '1.44.0'
|
1218
1235
|
Seahorse::Client::Request.new(handlers, context)
|
1219
1236
|
end
|
1220
1237
|
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::CloudHSMV2
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::CloudHSMV2
|
11
|
+
class EndpointProvider
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
|
19
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
+
end
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cloudhsmv2-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
+
end
|
31
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
+
end
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cloudhsmv2-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
+
end
|
37
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
41
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cloudhsmv2.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
42
|
+
end
|
43
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
44
|
+
end
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cloudhsmv2.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
|
+
end
|
47
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
48
|
+
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,225 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::CloudHSMV2
|
12
|
+
module Endpoints
|
13
|
+
|
14
|
+
class CopyBackupToRegion
|
15
|
+
def self.build(context)
|
16
|
+
unless context.config.regional_endpoint
|
17
|
+
endpoint = context.config.endpoint.to_s
|
18
|
+
end
|
19
|
+
Aws::CloudHSMV2::EndpointParameters.new(
|
20
|
+
region: context.config.region,
|
21
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
22
|
+
use_fips: context.config.use_fips_endpoint,
|
23
|
+
endpoint: endpoint,
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class CreateCluster
|
29
|
+
def self.build(context)
|
30
|
+
unless context.config.regional_endpoint
|
31
|
+
endpoint = context.config.endpoint.to_s
|
32
|
+
end
|
33
|
+
Aws::CloudHSMV2::EndpointParameters.new(
|
34
|
+
region: context.config.region,
|
35
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
36
|
+
use_fips: context.config.use_fips_endpoint,
|
37
|
+
endpoint: endpoint,
|
38
|
+
)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
class CreateHsm
|
43
|
+
def self.build(context)
|
44
|
+
unless context.config.regional_endpoint
|
45
|
+
endpoint = context.config.endpoint.to_s
|
46
|
+
end
|
47
|
+
Aws::CloudHSMV2::EndpointParameters.new(
|
48
|
+
region: context.config.region,
|
49
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
50
|
+
use_fips: context.config.use_fips_endpoint,
|
51
|
+
endpoint: endpoint,
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
class DeleteBackup
|
57
|
+
def self.build(context)
|
58
|
+
unless context.config.regional_endpoint
|
59
|
+
endpoint = context.config.endpoint.to_s
|
60
|
+
end
|
61
|
+
Aws::CloudHSMV2::EndpointParameters.new(
|
62
|
+
region: context.config.region,
|
63
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
+
use_fips: context.config.use_fips_endpoint,
|
65
|
+
endpoint: endpoint,
|
66
|
+
)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
class DeleteCluster
|
71
|
+
def self.build(context)
|
72
|
+
unless context.config.regional_endpoint
|
73
|
+
endpoint = context.config.endpoint.to_s
|
74
|
+
end
|
75
|
+
Aws::CloudHSMV2::EndpointParameters.new(
|
76
|
+
region: context.config.region,
|
77
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
78
|
+
use_fips: context.config.use_fips_endpoint,
|
79
|
+
endpoint: endpoint,
|
80
|
+
)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
class DeleteHsm
|
85
|
+
def self.build(context)
|
86
|
+
unless context.config.regional_endpoint
|
87
|
+
endpoint = context.config.endpoint.to_s
|
88
|
+
end
|
89
|
+
Aws::CloudHSMV2::EndpointParameters.new(
|
90
|
+
region: context.config.region,
|
91
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
92
|
+
use_fips: context.config.use_fips_endpoint,
|
93
|
+
endpoint: endpoint,
|
94
|
+
)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
class DescribeBackups
|
99
|
+
def self.build(context)
|
100
|
+
unless context.config.regional_endpoint
|
101
|
+
endpoint = context.config.endpoint.to_s
|
102
|
+
end
|
103
|
+
Aws::CloudHSMV2::EndpointParameters.new(
|
104
|
+
region: context.config.region,
|
105
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
106
|
+
use_fips: context.config.use_fips_endpoint,
|
107
|
+
endpoint: endpoint,
|
108
|
+
)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
class DescribeClusters
|
113
|
+
def self.build(context)
|
114
|
+
unless context.config.regional_endpoint
|
115
|
+
endpoint = context.config.endpoint.to_s
|
116
|
+
end
|
117
|
+
Aws::CloudHSMV2::EndpointParameters.new(
|
118
|
+
region: context.config.region,
|
119
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
120
|
+
use_fips: context.config.use_fips_endpoint,
|
121
|
+
endpoint: endpoint,
|
122
|
+
)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
class InitializeCluster
|
127
|
+
def self.build(context)
|
128
|
+
unless context.config.regional_endpoint
|
129
|
+
endpoint = context.config.endpoint.to_s
|
130
|
+
end
|
131
|
+
Aws::CloudHSMV2::EndpointParameters.new(
|
132
|
+
region: context.config.region,
|
133
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
134
|
+
use_fips: context.config.use_fips_endpoint,
|
135
|
+
endpoint: endpoint,
|
136
|
+
)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
class ListTags
|
141
|
+
def self.build(context)
|
142
|
+
unless context.config.regional_endpoint
|
143
|
+
endpoint = context.config.endpoint.to_s
|
144
|
+
end
|
145
|
+
Aws::CloudHSMV2::EndpointParameters.new(
|
146
|
+
region: context.config.region,
|
147
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
148
|
+
use_fips: context.config.use_fips_endpoint,
|
149
|
+
endpoint: endpoint,
|
150
|
+
)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
class ModifyBackupAttributes
|
155
|
+
def self.build(context)
|
156
|
+
unless context.config.regional_endpoint
|
157
|
+
endpoint = context.config.endpoint.to_s
|
158
|
+
end
|
159
|
+
Aws::CloudHSMV2::EndpointParameters.new(
|
160
|
+
region: context.config.region,
|
161
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
162
|
+
use_fips: context.config.use_fips_endpoint,
|
163
|
+
endpoint: endpoint,
|
164
|
+
)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
class ModifyCluster
|
169
|
+
def self.build(context)
|
170
|
+
unless context.config.regional_endpoint
|
171
|
+
endpoint = context.config.endpoint.to_s
|
172
|
+
end
|
173
|
+
Aws::CloudHSMV2::EndpointParameters.new(
|
174
|
+
region: context.config.region,
|
175
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
176
|
+
use_fips: context.config.use_fips_endpoint,
|
177
|
+
endpoint: endpoint,
|
178
|
+
)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
class RestoreBackup
|
183
|
+
def self.build(context)
|
184
|
+
unless context.config.regional_endpoint
|
185
|
+
endpoint = context.config.endpoint.to_s
|
186
|
+
end
|
187
|
+
Aws::CloudHSMV2::EndpointParameters.new(
|
188
|
+
region: context.config.region,
|
189
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
190
|
+
use_fips: context.config.use_fips_endpoint,
|
191
|
+
endpoint: endpoint,
|
192
|
+
)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
class TagResource
|
197
|
+
def self.build(context)
|
198
|
+
unless context.config.regional_endpoint
|
199
|
+
endpoint = context.config.endpoint.to_s
|
200
|
+
end
|
201
|
+
Aws::CloudHSMV2::EndpointParameters.new(
|
202
|
+
region: context.config.region,
|
203
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
204
|
+
use_fips: context.config.use_fips_endpoint,
|
205
|
+
endpoint: endpoint,
|
206
|
+
)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
class UntagResource
|
211
|
+
def self.build(context)
|
212
|
+
unless context.config.regional_endpoint
|
213
|
+
endpoint = context.config.endpoint.to_s
|
214
|
+
end
|
215
|
+
Aws::CloudHSMV2::EndpointParameters.new(
|
216
|
+
region: context.config.region,
|
217
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
218
|
+
use_fips: context.config.use_fips_endpoint,
|
219
|
+
endpoint: endpoint,
|
220
|
+
)
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
end
|
225
|
+
end
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::CloudHSMV2
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::CloudHSMV2::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::CloudHSMV2::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::CloudHSMV2::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :copy_backup_to_region
|
60
|
+
Aws::CloudHSMV2::Endpoints::CopyBackupToRegion.build(context)
|
61
|
+
when :create_cluster
|
62
|
+
Aws::CloudHSMV2::Endpoints::CreateCluster.build(context)
|
63
|
+
when :create_hsm
|
64
|
+
Aws::CloudHSMV2::Endpoints::CreateHsm.build(context)
|
65
|
+
when :delete_backup
|
66
|
+
Aws::CloudHSMV2::Endpoints::DeleteBackup.build(context)
|
67
|
+
when :delete_cluster
|
68
|
+
Aws::CloudHSMV2::Endpoints::DeleteCluster.build(context)
|
69
|
+
when :delete_hsm
|
70
|
+
Aws::CloudHSMV2::Endpoints::DeleteHsm.build(context)
|
71
|
+
when :describe_backups
|
72
|
+
Aws::CloudHSMV2::Endpoints::DescribeBackups.build(context)
|
73
|
+
when :describe_clusters
|
74
|
+
Aws::CloudHSMV2::Endpoints::DescribeClusters.build(context)
|
75
|
+
when :initialize_cluster
|
76
|
+
Aws::CloudHSMV2::Endpoints::InitializeCluster.build(context)
|
77
|
+
when :list_tags
|
78
|
+
Aws::CloudHSMV2::Endpoints::ListTags.build(context)
|
79
|
+
when :modify_backup_attributes
|
80
|
+
Aws::CloudHSMV2::Endpoints::ModifyBackupAttributes.build(context)
|
81
|
+
when :modify_cluster
|
82
|
+
Aws::CloudHSMV2::Endpoints::ModifyCluster.build(context)
|
83
|
+
when :restore_backup
|
84
|
+
Aws::CloudHSMV2::Endpoints::RestoreBackup.build(context)
|
85
|
+
when :tag_resource
|
86
|
+
Aws::CloudHSMV2::Endpoints::TagResource.build(context)
|
87
|
+
when :untag_resource
|
88
|
+
Aws::CloudHSMV2::Endpoints::UntagResource.build(context)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
def add_handlers(handlers, _config)
|
94
|
+
handlers.add(Handler, step: :build, priority: 75)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -88,14 +88,6 @@ module Aws::CloudHSMV2
|
|
88
88
|
|
89
89
|
# A policy that defines the number of days to retain backups.
|
90
90
|
#
|
91
|
-
# @note When making an API call, you may pass BackupRetentionPolicy
|
92
|
-
# data as a hash:
|
93
|
-
#
|
94
|
-
# {
|
95
|
-
# type: "DAYS", # accepts DAYS
|
96
|
-
# value: "BackupRetentionValue",
|
97
|
-
# }
|
98
|
-
#
|
99
91
|
# @!attribute [rw] type
|
100
92
|
# The type of backup retention policy. For the `DAYS` type, the value
|
101
93
|
# is the number of days to retain backups.
|
@@ -323,20 +315,6 @@ module Aws::CloudHSMV2
|
|
323
315
|
include Aws::Structure
|
324
316
|
end
|
325
317
|
|
326
|
-
# @note When making an API call, you may pass CopyBackupToRegionRequest
|
327
|
-
# data as a hash:
|
328
|
-
#
|
329
|
-
# {
|
330
|
-
# destination_region: "Region", # required
|
331
|
-
# backup_id: "BackupId", # required
|
332
|
-
# tag_list: [
|
333
|
-
# {
|
334
|
-
# key: "TagKey", # required
|
335
|
-
# value: "TagValue", # required
|
336
|
-
# },
|
337
|
-
# ],
|
338
|
-
# }
|
339
|
-
#
|
340
318
|
# @!attribute [rw] destination_region
|
341
319
|
# The AWS region that will contain your copied CloudHSM cluster
|
342
320
|
# backup.
|
@@ -382,25 +360,6 @@ module Aws::CloudHSMV2
|
|
382
360
|
include Aws::Structure
|
383
361
|
end
|
384
362
|
|
385
|
-
# @note When making an API call, you may pass CreateClusterRequest
|
386
|
-
# data as a hash:
|
387
|
-
#
|
388
|
-
# {
|
389
|
-
# backup_retention_policy: {
|
390
|
-
# type: "DAYS", # accepts DAYS
|
391
|
-
# value: "BackupRetentionValue",
|
392
|
-
# },
|
393
|
-
# hsm_type: "HsmType", # required
|
394
|
-
# source_backup_id: "BackupId",
|
395
|
-
# subnet_ids: ["SubnetId"], # required
|
396
|
-
# tag_list: [
|
397
|
-
# {
|
398
|
-
# key: "TagKey", # required
|
399
|
-
# value: "TagValue", # required
|
400
|
-
# },
|
401
|
-
# ],
|
402
|
-
# }
|
403
|
-
#
|
404
363
|
# @!attribute [rw] backup_retention_policy
|
405
364
|
# A policy that defines how the service retains backups.
|
406
365
|
# @return [Types::BackupRetentionPolicy]
|
@@ -454,15 +413,6 @@ module Aws::CloudHSMV2
|
|
454
413
|
include Aws::Structure
|
455
414
|
end
|
456
415
|
|
457
|
-
# @note When making an API call, you may pass CreateHsmRequest
|
458
|
-
# data as a hash:
|
459
|
-
#
|
460
|
-
# {
|
461
|
-
# cluster_id: "ClusterId", # required
|
462
|
-
# availability_zone: "ExternalAz", # required
|
463
|
-
# ip_address: "IpAddress",
|
464
|
-
# }
|
465
|
-
#
|
466
416
|
# @!attribute [rw] cluster_id
|
467
417
|
# The identifier (ID) of the HSM's cluster. To find the cluster ID,
|
468
418
|
# use DescribeClusters.
|
@@ -502,13 +452,6 @@ module Aws::CloudHSMV2
|
|
502
452
|
include Aws::Structure
|
503
453
|
end
|
504
454
|
|
505
|
-
# @note When making an API call, you may pass DeleteBackupRequest
|
506
|
-
# data as a hash:
|
507
|
-
#
|
508
|
-
# {
|
509
|
-
# backup_id: "BackupId", # required
|
510
|
-
# }
|
511
|
-
#
|
512
455
|
# @!attribute [rw] backup_id
|
513
456
|
# The ID of the backup to be deleted. To find the ID of a backup, use
|
514
457
|
# the DescribeBackups operation.
|
@@ -534,13 +477,6 @@ module Aws::CloudHSMV2
|
|
534
477
|
include Aws::Structure
|
535
478
|
end
|
536
479
|
|
537
|
-
# @note When making an API call, you may pass DeleteClusterRequest
|
538
|
-
# data as a hash:
|
539
|
-
#
|
540
|
-
# {
|
541
|
-
# cluster_id: "ClusterId", # required
|
542
|
-
# }
|
543
|
-
#
|
544
480
|
# @!attribute [rw] cluster_id
|
545
481
|
# The identifier (ID) of the cluster that you are deleting. To find
|
546
482
|
# the cluster ID, use DescribeClusters.
|
@@ -566,16 +502,6 @@ module Aws::CloudHSMV2
|
|
566
502
|
include Aws::Structure
|
567
503
|
end
|
568
504
|
|
569
|
-
# @note When making an API call, you may pass DeleteHsmRequest
|
570
|
-
# data as a hash:
|
571
|
-
#
|
572
|
-
# {
|
573
|
-
# cluster_id: "ClusterId", # required
|
574
|
-
# hsm_id: "HsmId",
|
575
|
-
# eni_id: "EniId",
|
576
|
-
# eni_ip: "IpAddress",
|
577
|
-
# }
|
578
|
-
#
|
579
505
|
# @!attribute [rw] cluster_id
|
580
506
|
# The identifier (ID) of the cluster that contains the HSM that you
|
581
507
|
# are deleting.
|
@@ -618,18 +544,6 @@ module Aws::CloudHSMV2
|
|
618
544
|
include Aws::Structure
|
619
545
|
end
|
620
546
|
|
621
|
-
# @note When making an API call, you may pass DescribeBackupsRequest
|
622
|
-
# data as a hash:
|
623
|
-
#
|
624
|
-
# {
|
625
|
-
# next_token: "NextToken",
|
626
|
-
# max_results: 1,
|
627
|
-
# filters: {
|
628
|
-
# "Field" => ["String"],
|
629
|
-
# },
|
630
|
-
# sort_ascending: false,
|
631
|
-
# }
|
632
|
-
#
|
633
547
|
# @!attribute [rw] next_token
|
634
548
|
# The `NextToken` value that you received in the previous response.
|
635
549
|
# Use this value to get more backups.
|
@@ -699,17 +613,6 @@ module Aws::CloudHSMV2
|
|
699
613
|
include Aws::Structure
|
700
614
|
end
|
701
615
|
|
702
|
-
# @note When making an API call, you may pass DescribeClustersRequest
|
703
|
-
# data as a hash:
|
704
|
-
#
|
705
|
-
# {
|
706
|
-
# filters: {
|
707
|
-
# "Field" => ["String"],
|
708
|
-
# },
|
709
|
-
# next_token: "NextToken",
|
710
|
-
# max_results: 1,
|
711
|
-
# }
|
712
|
-
#
|
713
616
|
# @!attribute [rw] filters
|
714
617
|
# One or more filters to limit the items returned in the response.
|
715
618
|
#
|
@@ -847,15 +750,6 @@ module Aws::CloudHSMV2
|
|
847
750
|
include Aws::Structure
|
848
751
|
end
|
849
752
|
|
850
|
-
# @note When making an API call, you may pass InitializeClusterRequest
|
851
|
-
# data as a hash:
|
852
|
-
#
|
853
|
-
# {
|
854
|
-
# cluster_id: "ClusterId", # required
|
855
|
-
# signed_cert: "Cert", # required
|
856
|
-
# trust_anchor: "Cert", # required
|
857
|
-
# }
|
858
|
-
#
|
859
753
|
# @!attribute [rw] cluster_id
|
860
754
|
# The identifier (ID) of the cluster that you are claiming. To find
|
861
755
|
# the cluster ID, use DescribeClusters.
|
@@ -903,15 +797,6 @@ module Aws::CloudHSMV2
|
|
903
797
|
include Aws::Structure
|
904
798
|
end
|
905
799
|
|
906
|
-
# @note When making an API call, you may pass ListTagsRequest
|
907
|
-
# data as a hash:
|
908
|
-
#
|
909
|
-
# {
|
910
|
-
# resource_id: "ResourceId", # required
|
911
|
-
# next_token: "NextToken",
|
912
|
-
# max_results: 1,
|
913
|
-
# }
|
914
|
-
#
|
915
800
|
# @!attribute [rw] resource_id
|
916
801
|
# The cluster identifier (ID) for the cluster whose tags you are
|
917
802
|
# getting. To find the cluster ID, use DescribeClusters.
|
@@ -957,14 +842,6 @@ module Aws::CloudHSMV2
|
|
957
842
|
include Aws::Structure
|
958
843
|
end
|
959
844
|
|
960
|
-
# @note When making an API call, you may pass ModifyBackupAttributesRequest
|
961
|
-
# data as a hash:
|
962
|
-
#
|
963
|
-
# {
|
964
|
-
# backup_id: "BackupId", # required
|
965
|
-
# never_expires: false, # required
|
966
|
-
# }
|
967
|
-
#
|
968
845
|
# @!attribute [rw] backup_id
|
969
846
|
# The identifier (ID) of the backup to modify. To find the ID of a
|
970
847
|
# backup, use the DescribeBackups operation.
|
@@ -1004,17 +881,6 @@ module Aws::CloudHSMV2
|
|
1004
881
|
include Aws::Structure
|
1005
882
|
end
|
1006
883
|
|
1007
|
-
# @note When making an API call, you may pass ModifyClusterRequest
|
1008
|
-
# data as a hash:
|
1009
|
-
#
|
1010
|
-
# {
|
1011
|
-
# backup_retention_policy: { # required
|
1012
|
-
# type: "DAYS", # accepts DAYS
|
1013
|
-
# value: "BackupRetentionValue",
|
1014
|
-
# },
|
1015
|
-
# cluster_id: "ClusterId", # required
|
1016
|
-
# }
|
1017
|
-
#
|
1018
884
|
# @!attribute [rw] backup_retention_policy
|
1019
885
|
# A policy that defines how the service retains backups.
|
1020
886
|
# @return [Types::BackupRetentionPolicy]
|
@@ -1045,13 +911,6 @@ module Aws::CloudHSMV2
|
|
1045
911
|
include Aws::Structure
|
1046
912
|
end
|
1047
913
|
|
1048
|
-
# @note When making an API call, you may pass RestoreBackupRequest
|
1049
|
-
# data as a hash:
|
1050
|
-
#
|
1051
|
-
# {
|
1052
|
-
# backup_id: "BackupId", # required
|
1053
|
-
# }
|
1054
|
-
#
|
1055
914
|
# @!attribute [rw] backup_id
|
1056
915
|
# The ID of the backup to be restored. To find the ID of a backup, use
|
1057
916
|
# the DescribeBackups operation.
|
@@ -1079,14 +938,6 @@ module Aws::CloudHSMV2
|
|
1079
938
|
|
1080
939
|
# Contains a tag. A tag is a key-value pair.
|
1081
940
|
#
|
1082
|
-
# @note When making an API call, you may pass Tag
|
1083
|
-
# data as a hash:
|
1084
|
-
#
|
1085
|
-
# {
|
1086
|
-
# key: "TagKey", # required
|
1087
|
-
# value: "TagValue", # required
|
1088
|
-
# }
|
1089
|
-
#
|
1090
941
|
# @!attribute [rw] key
|
1091
942
|
# The key of the tag.
|
1092
943
|
# @return [String]
|
@@ -1104,19 +955,6 @@ module Aws::CloudHSMV2
|
|
1104
955
|
include Aws::Structure
|
1105
956
|
end
|
1106
957
|
|
1107
|
-
# @note When making an API call, you may pass TagResourceRequest
|
1108
|
-
# data as a hash:
|
1109
|
-
#
|
1110
|
-
# {
|
1111
|
-
# resource_id: "ResourceId", # required
|
1112
|
-
# tag_list: [ # required
|
1113
|
-
# {
|
1114
|
-
# key: "TagKey", # required
|
1115
|
-
# value: "TagValue", # required
|
1116
|
-
# },
|
1117
|
-
# ],
|
1118
|
-
# }
|
1119
|
-
#
|
1120
958
|
# @!attribute [rw] resource_id
|
1121
959
|
# The cluster identifier (ID) for the cluster that you are tagging. To
|
1122
960
|
# find the cluster ID, use DescribeClusters.
|
@@ -1139,14 +977,6 @@ module Aws::CloudHSMV2
|
|
1139
977
|
#
|
1140
978
|
class TagResourceResponse < Aws::EmptyStructure; end
|
1141
979
|
|
1142
|
-
# @note When making an API call, you may pass UntagResourceRequest
|
1143
|
-
# data as a hash:
|
1144
|
-
#
|
1145
|
-
# {
|
1146
|
-
# resource_id: "ResourceId", # required
|
1147
|
-
# tag_key_list: ["TagKey"], # required
|
1148
|
-
# }
|
1149
|
-
#
|
1150
980
|
# @!attribute [rw] resource_id
|
1151
981
|
# The cluster identifier (ID) for the cluster whose tags you are
|
1152
982
|
# removing. To find the cluster ID, use DescribeClusters.
|
data/lib/aws-sdk-cloudhsmv2.rb
CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-cloudhsmv2/types'
|
15
15
|
require_relative 'aws-sdk-cloudhsmv2/client_api'
|
16
|
+
require_relative 'aws-sdk-cloudhsmv2/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-cloudhsmv2/client'
|
17
18
|
require_relative 'aws-sdk-cloudhsmv2/errors'
|
18
19
|
require_relative 'aws-sdk-cloudhsmv2/resource'
|
20
|
+
require_relative 'aws-sdk-cloudhsmv2/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-cloudhsmv2/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-cloudhsmv2/endpoints'
|
19
23
|
require_relative 'aws-sdk-cloudhsmv2/customizations'
|
20
24
|
|
21
25
|
# This module provides support for AWS CloudHSM V2. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-cloudhsmv2/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::CloudHSMV2
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.44.0'
|
52
56
|
|
53
57
|
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.
|
4
|
+
version: 1.44.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:
|
11
|
+
date: 2023-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.165.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,11 @@ files:
|
|
59
59
|
- lib/aws-sdk-cloudhsmv2/client.rb
|
60
60
|
- lib/aws-sdk-cloudhsmv2/client_api.rb
|
61
61
|
- lib/aws-sdk-cloudhsmv2/customizations.rb
|
62
|
+
- lib/aws-sdk-cloudhsmv2/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-cloudhsmv2/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-cloudhsmv2/endpoints.rb
|
62
65
|
- lib/aws-sdk-cloudhsmv2/errors.rb
|
66
|
+
- lib/aws-sdk-cloudhsmv2/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-cloudhsmv2/resource.rb
|
64
68
|
- lib/aws-sdk-cloudhsmv2/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|