@aws-sdk/client-cloudhsm 3.35.0 → 3.36.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.
Files changed (161) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/CloudHSM.js +0 -1
  3. package/dist-cjs/CloudHSMClient.js +0 -1
  4. package/dist-cjs/commands/AddTagsToResourceCommand.js +0 -1
  5. package/dist-cjs/commands/CreateHapgCommand.js +0 -1
  6. package/dist-cjs/commands/CreateHsmCommand.js +0 -1
  7. package/dist-cjs/commands/CreateLunaClientCommand.js +0 -1
  8. package/dist-cjs/commands/DeleteHapgCommand.js +0 -1
  9. package/dist-cjs/commands/DeleteHsmCommand.js +0 -1
  10. package/dist-cjs/commands/DeleteLunaClientCommand.js +0 -1
  11. package/dist-cjs/commands/DescribeHapgCommand.js +0 -1
  12. package/dist-cjs/commands/DescribeHsmCommand.js +0 -1
  13. package/dist-cjs/commands/DescribeLunaClientCommand.js +0 -1
  14. package/dist-cjs/commands/GetConfigCommand.js +0 -1
  15. package/dist-cjs/commands/ListAvailableZonesCommand.js +0 -1
  16. package/dist-cjs/commands/ListHapgsCommand.js +0 -1
  17. package/dist-cjs/commands/ListHsmsCommand.js +0 -1
  18. package/dist-cjs/commands/ListLunaClientsCommand.js +0 -1
  19. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  20. package/dist-cjs/commands/ModifyHapgCommand.js +0 -1
  21. package/dist-cjs/commands/ModifyHsmCommand.js +0 -1
  22. package/dist-cjs/commands/ModifyLunaClientCommand.js +0 -1
  23. package/dist-cjs/commands/RemoveTagsFromResourceCommand.js +0 -1
  24. package/dist-cjs/endpoints.js +0 -1
  25. package/dist-cjs/index.js +0 -1
  26. package/dist-cjs/models/index.js +0 -1
  27. package/dist-cjs/models/models_0.js +0 -1
  28. package/dist-cjs/protocols/Aws_json1_1.js +0 -1
  29. package/dist-cjs/runtimeConfig.browser.js +2 -3
  30. package/dist-cjs/runtimeConfig.js +3 -4
  31. package/dist-cjs/runtimeConfig.native.js +0 -1
  32. package/dist-cjs/runtimeConfig.shared.js +0 -1
  33. package/dist-es/CloudHSM.js +0 -1
  34. package/dist-es/CloudHSMClient.js +0 -1
  35. package/dist-es/commands/AddTagsToResourceCommand.js +0 -1
  36. package/dist-es/commands/CreateHapgCommand.js +0 -1
  37. package/dist-es/commands/CreateHsmCommand.js +0 -1
  38. package/dist-es/commands/CreateLunaClientCommand.js +0 -1
  39. package/dist-es/commands/DeleteHapgCommand.js +0 -1
  40. package/dist-es/commands/DeleteHsmCommand.js +0 -1
  41. package/dist-es/commands/DeleteLunaClientCommand.js +0 -1
  42. package/dist-es/commands/DescribeHapgCommand.js +0 -1
  43. package/dist-es/commands/DescribeHsmCommand.js +0 -1
  44. package/dist-es/commands/DescribeLunaClientCommand.js +0 -1
  45. package/dist-es/commands/GetConfigCommand.js +0 -1
  46. package/dist-es/commands/ListAvailableZonesCommand.js +0 -1
  47. package/dist-es/commands/ListHapgsCommand.js +0 -1
  48. package/dist-es/commands/ListHsmsCommand.js +0 -1
  49. package/dist-es/commands/ListLunaClientsCommand.js +0 -1
  50. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  51. package/dist-es/commands/ModifyHapgCommand.js +0 -1
  52. package/dist-es/commands/ModifyHsmCommand.js +0 -1
  53. package/dist-es/commands/ModifyLunaClientCommand.js +0 -1
  54. package/dist-es/commands/RemoveTagsFromResourceCommand.js +0 -1
  55. package/dist-es/endpoints.js +0 -1
  56. package/dist-es/index.js +0 -1
  57. package/dist-es/models/index.js +0 -1
  58. package/dist-es/models/models_0.js +0 -1
  59. package/dist-es/protocols/Aws_json1_1.js +0 -1
  60. package/dist-es/runtimeConfig.browser.js +1 -2
  61. package/dist-es/runtimeConfig.js +2 -3
  62. package/dist-es/runtimeConfig.native.js +0 -1
  63. package/dist-es/runtimeConfig.shared.js +0 -1
  64. package/package.json +33 -30
  65. package/dist-cjs/CloudHSM.js.map +0 -1
  66. package/dist-cjs/CloudHSMClient.js.map +0 -1
  67. package/dist-cjs/commands/AddTagsToResourceCommand.js.map +0 -1
  68. package/dist-cjs/commands/CreateHapgCommand.js.map +0 -1
  69. package/dist-cjs/commands/CreateHsmCommand.js.map +0 -1
  70. package/dist-cjs/commands/CreateLunaClientCommand.js.map +0 -1
  71. package/dist-cjs/commands/DeleteHapgCommand.js.map +0 -1
  72. package/dist-cjs/commands/DeleteHsmCommand.js.map +0 -1
  73. package/dist-cjs/commands/DeleteLunaClientCommand.js.map +0 -1
  74. package/dist-cjs/commands/DescribeHapgCommand.js.map +0 -1
  75. package/dist-cjs/commands/DescribeHsmCommand.js.map +0 -1
  76. package/dist-cjs/commands/DescribeLunaClientCommand.js.map +0 -1
  77. package/dist-cjs/commands/GetConfigCommand.js.map +0 -1
  78. package/dist-cjs/commands/ListAvailableZonesCommand.js.map +0 -1
  79. package/dist-cjs/commands/ListHapgsCommand.js.map +0 -1
  80. package/dist-cjs/commands/ListHsmsCommand.js.map +0 -1
  81. package/dist-cjs/commands/ListLunaClientsCommand.js.map +0 -1
  82. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  83. package/dist-cjs/commands/ModifyHapgCommand.js.map +0 -1
  84. package/dist-cjs/commands/ModifyHsmCommand.js.map +0 -1
  85. package/dist-cjs/commands/ModifyLunaClientCommand.js.map +0 -1
  86. package/dist-cjs/commands/RemoveTagsFromResourceCommand.js.map +0 -1
  87. package/dist-cjs/endpoints.js.map +0 -1
  88. package/dist-cjs/index.js.map +0 -1
  89. package/dist-cjs/models/index.js.map +0 -1
  90. package/dist-cjs/models/models_0.js.map +0 -1
  91. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  92. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  93. package/dist-cjs/runtimeConfig.js.map +0 -1
  94. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  95. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  96. package/dist-es/CloudHSM.js.map +0 -1
  97. package/dist-es/CloudHSMClient.js.map +0 -1
  98. package/dist-es/commands/AddTagsToResourceCommand.js.map +0 -1
  99. package/dist-es/commands/CreateHapgCommand.js.map +0 -1
  100. package/dist-es/commands/CreateHsmCommand.js.map +0 -1
  101. package/dist-es/commands/CreateLunaClientCommand.js.map +0 -1
  102. package/dist-es/commands/DeleteHapgCommand.js.map +0 -1
  103. package/dist-es/commands/DeleteHsmCommand.js.map +0 -1
  104. package/dist-es/commands/DeleteLunaClientCommand.js.map +0 -1
  105. package/dist-es/commands/DescribeHapgCommand.js.map +0 -1
  106. package/dist-es/commands/DescribeHsmCommand.js.map +0 -1
  107. package/dist-es/commands/DescribeLunaClientCommand.js.map +0 -1
  108. package/dist-es/commands/GetConfigCommand.js.map +0 -1
  109. package/dist-es/commands/ListAvailableZonesCommand.js.map +0 -1
  110. package/dist-es/commands/ListHapgsCommand.js.map +0 -1
  111. package/dist-es/commands/ListHsmsCommand.js.map +0 -1
  112. package/dist-es/commands/ListLunaClientsCommand.js.map +0 -1
  113. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  114. package/dist-es/commands/ModifyHapgCommand.js.map +0 -1
  115. package/dist-es/commands/ModifyHsmCommand.js.map +0 -1
  116. package/dist-es/commands/ModifyLunaClientCommand.js.map +0 -1
  117. package/dist-es/commands/RemoveTagsFromResourceCommand.js.map +0 -1
  118. package/dist-es/endpoints.js.map +0 -1
  119. package/dist-es/index.js.map +0 -1
  120. package/dist-es/models/index.js.map +0 -1
  121. package/dist-es/models/models_0.js.map +0 -1
  122. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  123. package/dist-es/runtimeConfig.browser.js.map +0 -1
  124. package/dist-es/runtimeConfig.js.map +0 -1
  125. package/dist-es/runtimeConfig.native.js.map +0 -1
  126. package/dist-es/runtimeConfig.shared.js.map +0 -1
  127. package/jest.config.js +0 -4
  128. package/src/CloudHSM.ts +0 -893
  129. package/src/CloudHSMClient.ts +0 -312
  130. package/src/commands/AddTagsToResourceCommand.ts +0 -107
  131. package/src/commands/CreateHapgCommand.ts +0 -106
  132. package/src/commands/CreateHsmCommand.ts +0 -111
  133. package/src/commands/CreateLunaClientCommand.ts +0 -105
  134. package/src/commands/DeleteHapgCommand.ts +0 -105
  135. package/src/commands/DeleteHsmCommand.ts +0 -103
  136. package/src/commands/DeleteLunaClientCommand.ts +0 -105
  137. package/src/commands/DescribeHapgCommand.ts +0 -105
  138. package/src/commands/DescribeHsmCommand.ts +0 -106
  139. package/src/commands/DescribeLunaClientCommand.ts +0 -105
  140. package/src/commands/GetConfigCommand.ts +0 -103
  141. package/src/commands/ListAvailableZonesCommand.ts +0 -105
  142. package/src/commands/ListHapgsCommand.ts +0 -106
  143. package/src/commands/ListHsmsCommand.ts +0 -107
  144. package/src/commands/ListLunaClientsCommand.ts +0 -109
  145. package/src/commands/ListTagsForResourceCommand.ts +0 -105
  146. package/src/commands/ModifyHapgCommand.ts +0 -105
  147. package/src/commands/ModifyHsmCommand.ts +0 -108
  148. package/src/commands/ModifyLunaClientCommand.ts +0 -107
  149. package/src/commands/RemoveTagsFromResourceCommand.ts +0 -107
  150. package/src/endpoints.ts +0 -57
  151. package/src/index.ts +0 -23
  152. package/src/models/index.ts +0 -1
  153. package/src/models/models_0.ts +0 -1161
  154. package/src/protocols/Aws_json1_1.ts +0 -2400
  155. package/src/runtimeConfig.browser.ts +0 -41
  156. package/src/runtimeConfig.native.ts +0 -17
  157. package/src/runtimeConfig.shared.ts +0 -17
  158. package/src/runtimeConfig.ts +0 -46
  159. package/tsconfig.es.json +0 -10
  160. package/tsconfig.json +0 -33
  161. package/tsconfig.types.json +0 -9
@@ -1,312 +0,0 @@
1
- import {
2
- EndpointsInputConfig,
3
- EndpointsResolvedConfig,
4
- RegionInputConfig,
5
- RegionResolvedConfig,
6
- resolveEndpointsConfig,
7
- resolveRegionConfig,
8
- } from "@aws-sdk/config-resolver";
9
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
10
- import {
11
- getHostHeaderPlugin,
12
- HostHeaderInputConfig,
13
- HostHeaderResolvedConfig,
14
- resolveHostHeaderConfig,
15
- } from "@aws-sdk/middleware-host-header";
16
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
17
- import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
18
- import {
19
- AwsAuthInputConfig,
20
- AwsAuthResolvedConfig,
21
- getAwsAuthPlugin,
22
- resolveAwsAuthConfig,
23
- } from "@aws-sdk/middleware-signing";
24
- import {
25
- getUserAgentPlugin,
26
- resolveUserAgentConfig,
27
- UserAgentInputConfig,
28
- UserAgentResolvedConfig,
29
- } from "@aws-sdk/middleware-user-agent";
30
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
31
- import {
32
- Client as __Client,
33
- SmithyConfiguration as __SmithyConfiguration,
34
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
35
- } from "@aws-sdk/smithy-client";
36
- import {
37
- Credentials as __Credentials,
38
- Decoder as __Decoder,
39
- Encoder as __Encoder,
40
- Hash as __Hash,
41
- HashConstructor as __HashConstructor,
42
- HttpHandlerOptions as __HttpHandlerOptions,
43
- Logger as __Logger,
44
- Provider as __Provider,
45
- Provider,
46
- RegionInfoProvider,
47
- StreamCollector as __StreamCollector,
48
- UrlParser as __UrlParser,
49
- UserAgent as __UserAgent,
50
- } from "@aws-sdk/types";
51
-
52
- import { AddTagsToResourceCommandInput, AddTagsToResourceCommandOutput } from "./commands/AddTagsToResourceCommand";
53
- import { CreateHapgCommandInput, CreateHapgCommandOutput } from "./commands/CreateHapgCommand";
54
- import { CreateHsmCommandInput, CreateHsmCommandOutput } from "./commands/CreateHsmCommand";
55
- import { CreateLunaClientCommandInput, CreateLunaClientCommandOutput } from "./commands/CreateLunaClientCommand";
56
- import { DeleteHapgCommandInput, DeleteHapgCommandOutput } from "./commands/DeleteHapgCommand";
57
- import { DeleteHsmCommandInput, DeleteHsmCommandOutput } from "./commands/DeleteHsmCommand";
58
- import { DeleteLunaClientCommandInput, DeleteLunaClientCommandOutput } from "./commands/DeleteLunaClientCommand";
59
- import { DescribeHapgCommandInput, DescribeHapgCommandOutput } from "./commands/DescribeHapgCommand";
60
- import { DescribeHsmCommandInput, DescribeHsmCommandOutput } from "./commands/DescribeHsmCommand";
61
- import { DescribeLunaClientCommandInput, DescribeLunaClientCommandOutput } from "./commands/DescribeLunaClientCommand";
62
- import { GetConfigCommandInput, GetConfigCommandOutput } from "./commands/GetConfigCommand";
63
- import { ListAvailableZonesCommandInput, ListAvailableZonesCommandOutput } from "./commands/ListAvailableZonesCommand";
64
- import { ListHapgsCommandInput, ListHapgsCommandOutput } from "./commands/ListHapgsCommand";
65
- import { ListHsmsCommandInput, ListHsmsCommandOutput } from "./commands/ListHsmsCommand";
66
- import { ListLunaClientsCommandInput, ListLunaClientsCommandOutput } from "./commands/ListLunaClientsCommand";
67
- import {
68
- ListTagsForResourceCommandInput,
69
- ListTagsForResourceCommandOutput,
70
- } from "./commands/ListTagsForResourceCommand";
71
- import { ModifyHapgCommandInput, ModifyHapgCommandOutput } from "./commands/ModifyHapgCommand";
72
- import { ModifyHsmCommandInput, ModifyHsmCommandOutput } from "./commands/ModifyHsmCommand";
73
- import { ModifyLunaClientCommandInput, ModifyLunaClientCommandOutput } from "./commands/ModifyLunaClientCommand";
74
- import {
75
- RemoveTagsFromResourceCommandInput,
76
- RemoveTagsFromResourceCommandOutput,
77
- } from "./commands/RemoveTagsFromResourceCommand";
78
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
79
-
80
- export type ServiceInputTypes =
81
- | AddTagsToResourceCommandInput
82
- | CreateHapgCommandInput
83
- | CreateHsmCommandInput
84
- | CreateLunaClientCommandInput
85
- | DeleteHapgCommandInput
86
- | DeleteHsmCommandInput
87
- | DeleteLunaClientCommandInput
88
- | DescribeHapgCommandInput
89
- | DescribeHsmCommandInput
90
- | DescribeLunaClientCommandInput
91
- | GetConfigCommandInput
92
- | ListAvailableZonesCommandInput
93
- | ListHapgsCommandInput
94
- | ListHsmsCommandInput
95
- | ListLunaClientsCommandInput
96
- | ListTagsForResourceCommandInput
97
- | ModifyHapgCommandInput
98
- | ModifyHsmCommandInput
99
- | ModifyLunaClientCommandInput
100
- | RemoveTagsFromResourceCommandInput;
101
-
102
- export type ServiceOutputTypes =
103
- | AddTagsToResourceCommandOutput
104
- | CreateHapgCommandOutput
105
- | CreateHsmCommandOutput
106
- | CreateLunaClientCommandOutput
107
- | DeleteHapgCommandOutput
108
- | DeleteHsmCommandOutput
109
- | DeleteLunaClientCommandOutput
110
- | DescribeHapgCommandOutput
111
- | DescribeHsmCommandOutput
112
- | DescribeLunaClientCommandOutput
113
- | GetConfigCommandOutput
114
- | ListAvailableZonesCommandOutput
115
- | ListHapgsCommandOutput
116
- | ListHsmsCommandOutput
117
- | ListLunaClientsCommandOutput
118
- | ListTagsForResourceCommandOutput
119
- | ModifyHapgCommandOutput
120
- | ModifyHsmCommandOutput
121
- | ModifyLunaClientCommandOutput
122
- | RemoveTagsFromResourceCommandOutput;
123
-
124
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
125
- /**
126
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
127
- */
128
- requestHandler?: __HttpHandler;
129
-
130
- /**
131
- * A constructor for a class implementing the {@link __Hash} interface
132
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
133
- * @internal
134
- */
135
- sha256?: __HashConstructor;
136
-
137
- /**
138
- * The function that will be used to convert strings into HTTP endpoints.
139
- * @internal
140
- */
141
- urlParser?: __UrlParser;
142
-
143
- /**
144
- * A function that can calculate the length of a request body.
145
- * @internal
146
- */
147
- bodyLengthChecker?: (body: any) => number | undefined;
148
-
149
- /**
150
- * A function that converts a stream into an array of bytes.
151
- * @internal
152
- */
153
- streamCollector?: __StreamCollector;
154
-
155
- /**
156
- * The function that will be used to convert a base64-encoded string to a byte array.
157
- * @internal
158
- */
159
- base64Decoder?: __Decoder;
160
-
161
- /**
162
- * The function that will be used to convert binary data to a base64-encoded string.
163
- * @internal
164
- */
165
- base64Encoder?: __Encoder;
166
-
167
- /**
168
- * The function that will be used to convert a UTF8-encoded string to a byte array.
169
- * @internal
170
- */
171
- utf8Decoder?: __Decoder;
172
-
173
- /**
174
- * The function that will be used to convert binary data to a UTF-8 encoded string.
175
- * @internal
176
- */
177
- utf8Encoder?: __Encoder;
178
-
179
- /**
180
- * The runtime environment.
181
- * @internal
182
- */
183
- runtime?: string;
184
-
185
- /**
186
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
187
- * trait of an operation.
188
- */
189
- disableHostPrefix?: boolean;
190
-
191
- /**
192
- * Value for how many times a request will be made at most in case of retry.
193
- */
194
- maxAttempts?: number | __Provider<number>;
195
-
196
- /**
197
- * Specifies which retry algorithm to use.
198
- */
199
- retryMode?: string | __Provider<string>;
200
-
201
- /**
202
- * Optional logger for logging debug/info/warn/error.
203
- */
204
- logger?: __Logger;
205
-
206
- /**
207
- * Unique service identifier.
208
- * @internal
209
- */
210
- serviceId?: string;
211
-
212
- /**
213
- * The AWS region to which this client will send requests
214
- */
215
- region?: string | __Provider<string>;
216
-
217
- /**
218
- * Default credentials provider; Not available in browser runtime.
219
- * @internal
220
- */
221
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
222
-
223
- /**
224
- * Fetch related hostname, signing name or signing region with given region.
225
- * @internal
226
- */
227
- regionInfoProvider?: RegionInfoProvider;
228
-
229
- /**
230
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
231
- * @internal
232
- */
233
- defaultUserAgentProvider?: Provider<__UserAgent>;
234
- }
235
-
236
- type CloudHSMClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
237
- ClientDefaults &
238
- RegionInputConfig &
239
- EndpointsInputConfig &
240
- RetryInputConfig &
241
- HostHeaderInputConfig &
242
- AwsAuthInputConfig &
243
- UserAgentInputConfig;
244
- /**
245
- * The configuration interface of CloudHSMClient class constructor that set the region, credentials and other options.
246
- */
247
- export interface CloudHSMClientConfig extends CloudHSMClientConfigType {}
248
-
249
- type CloudHSMClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
250
- Required<ClientDefaults> &
251
- RegionResolvedConfig &
252
- EndpointsResolvedConfig &
253
- RetryResolvedConfig &
254
- HostHeaderResolvedConfig &
255
- AwsAuthResolvedConfig &
256
- UserAgentResolvedConfig;
257
- /**
258
- * The resolved configuration interface of CloudHSMClient class. This is resolved and normalized from the {@link CloudHSMClientConfig | constructor configuration interface}.
259
- */
260
- export interface CloudHSMClientResolvedConfig extends CloudHSMClientResolvedConfigType {}
261
-
262
- /**
263
- * <fullname>AWS CloudHSM Service</fullname>
264
- * <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
265
- * more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
266
- * Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
267
- * CloudHSM Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS CloudHSM Classic API Reference</a>.</p>
268
- * <p>
269
- * <b>For information about the current version of AWS
270
- * CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS CloudHSM</a>, the
271
- * <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS CloudHSM User Guide</a>,
272
- * and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API
273
- * Reference</a>.</p>
274
- */
275
- export class CloudHSMClient extends __Client<
276
- __HttpHandlerOptions,
277
- ServiceInputTypes,
278
- ServiceOutputTypes,
279
- CloudHSMClientResolvedConfig
280
- > {
281
- /**
282
- * The resolved configuration of CloudHSMClient class. This is resolved and normalized from the {@link CloudHSMClientConfig | constructor configuration interface}.
283
- */
284
- readonly config: CloudHSMClientResolvedConfig;
285
-
286
- constructor(configuration: CloudHSMClientConfig) {
287
- const _config_0 = __getRuntimeConfig(configuration);
288
- const _config_1 = resolveRegionConfig(_config_0);
289
- const _config_2 = resolveEndpointsConfig(_config_1);
290
- const _config_3 = resolveRetryConfig(_config_2);
291
- const _config_4 = resolveHostHeaderConfig(_config_3);
292
- const _config_5 = resolveAwsAuthConfig(_config_4);
293
- const _config_6 = resolveUserAgentConfig(_config_5);
294
- super(_config_6);
295
- this.config = _config_6;
296
- this.middlewareStack.use(getRetryPlugin(this.config));
297
- this.middlewareStack.use(getContentLengthPlugin(this.config));
298
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
299
- this.middlewareStack.use(getLoggerPlugin(this.config));
300
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
301
- this.middlewareStack.use(getUserAgentPlugin(this.config));
302
- }
303
-
304
- /**
305
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
306
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
307
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
308
- */
309
- destroy(): void {
310
- super.destroy();
311
- }
312
- }
@@ -1,107 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
- import { AddTagsToResourceRequest, AddTagsToResourceResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1AddTagsToResourceCommand,
18
- serializeAws_json1_1AddTagsToResourceCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface AddTagsToResourceCommandInput extends AddTagsToResourceRequest {}
22
- export interface AddTagsToResourceCommandOutput extends AddTagsToResourceResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
26
- * more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
27
- * Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
28
- * CloudHSM Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS CloudHSM Classic API Reference</a>.</p>
29
- * <p>
30
- * <b>For information about the current version of AWS
31
- * CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS CloudHSM</a>, the
32
- * <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS CloudHSM User Guide</a>,
33
- * and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API
34
- * Reference</a>.</p>
35
- * <p>Adds or overwrites one or more tags for the specified AWS CloudHSM resource.</p>
36
- * <p>Each tag consists of a key and a value. Tag keys must be unique to each
37
- * resource.</p>
38
- * @example
39
- * Use a bare-bones client and the command you need to make an API call.
40
- * ```javascript
41
- * import { CloudHSMClient, AddTagsToResourceCommand } from "@aws-sdk/client-cloudhsm"; // ES Modules import
42
- * // const { CloudHSMClient, AddTagsToResourceCommand } = require("@aws-sdk/client-cloudhsm"); // CommonJS import
43
- * const client = new CloudHSMClient(config);
44
- * const command = new AddTagsToResourceCommand(input);
45
- * const response = await client.send(command);
46
- * ```
47
- *
48
- * @see {@link AddTagsToResourceCommandInput} for command's `input` shape.
49
- * @see {@link AddTagsToResourceCommandOutput} for command's `response` shape.
50
- * @see {@link CloudHSMClientResolvedConfig | config} for command's `input` shape.
51
- *
52
- */
53
- export class AddTagsToResourceCommand extends $Command<
54
- AddTagsToResourceCommandInput,
55
- AddTagsToResourceCommandOutput,
56
- CloudHSMClientResolvedConfig
57
- > {
58
- // Start section: command_properties
59
- // End section: command_properties
60
-
61
- constructor(readonly input: AddTagsToResourceCommandInput) {
62
- // Start section: command_constructor
63
- super();
64
- // End section: command_constructor
65
- }
66
-
67
- /**
68
- * @internal
69
- */
70
- resolveMiddleware(
71
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
72
- configuration: CloudHSMClientResolvedConfig,
73
- options?: __HttpHandlerOptions
74
- ): Handler<AddTagsToResourceCommandInput, AddTagsToResourceCommandOutput> {
75
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
76
-
77
- const stack = clientStack.concat(this.middlewareStack);
78
-
79
- const { logger } = configuration;
80
- const clientName = "CloudHSMClient";
81
- const commandName = "AddTagsToResourceCommand";
82
- const handlerExecutionContext: HandlerExecutionContext = {
83
- logger,
84
- clientName,
85
- commandName,
86
- inputFilterSensitiveLog: AddTagsToResourceRequest.filterSensitiveLog,
87
- outputFilterSensitiveLog: AddTagsToResourceResponse.filterSensitiveLog,
88
- };
89
- const { requestHandler } = configuration;
90
- return stack.resolve(
91
- (request: FinalizeHandlerArguments<any>) =>
92
- requestHandler.handle(request.request as __HttpRequest, options || {}),
93
- handlerExecutionContext
94
- );
95
- }
96
-
97
- private serialize(input: AddTagsToResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
98
- return serializeAws_json1_1AddTagsToResourceCommand(input, context);
99
- }
100
-
101
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<AddTagsToResourceCommandOutput> {
102
- return deserializeAws_json1_1AddTagsToResourceCommand(output, context);
103
- }
104
-
105
- // Start section: command_body_extra
106
- // End section: command_body_extra
107
- }
@@ -1,106 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
- import { CreateHapgRequest, CreateHapgResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1CreateHapgCommand,
18
- serializeAws_json1_1CreateHapgCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface CreateHapgCommandInput extends CreateHapgRequest {}
22
- export interface CreateHapgCommandOutput extends CreateHapgResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
26
- * more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
27
- * Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
28
- * CloudHSM Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS CloudHSM Classic API Reference</a>.</p>
29
- * <p>
30
- * <b>For information about the current version of AWS
31
- * CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS CloudHSM</a>, the
32
- * <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS CloudHSM User Guide</a>,
33
- * and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API
34
- * Reference</a>.</p>
35
- * <p>Creates a high-availability partition group. A high-availability partition group is a
36
- * group of partitions that spans multiple physical HSMs.</p>
37
- * @example
38
- * Use a bare-bones client and the command you need to make an API call.
39
- * ```javascript
40
- * import { CloudHSMClient, CreateHapgCommand } from "@aws-sdk/client-cloudhsm"; // ES Modules import
41
- * // const { CloudHSMClient, CreateHapgCommand } = require("@aws-sdk/client-cloudhsm"); // CommonJS import
42
- * const client = new CloudHSMClient(config);
43
- * const command = new CreateHapgCommand(input);
44
- * const response = await client.send(command);
45
- * ```
46
- *
47
- * @see {@link CreateHapgCommandInput} for command's `input` shape.
48
- * @see {@link CreateHapgCommandOutput} for command's `response` shape.
49
- * @see {@link CloudHSMClientResolvedConfig | config} for command's `input` shape.
50
- *
51
- */
52
- export class CreateHapgCommand extends $Command<
53
- CreateHapgCommandInput,
54
- CreateHapgCommandOutput,
55
- CloudHSMClientResolvedConfig
56
- > {
57
- // Start section: command_properties
58
- // End section: command_properties
59
-
60
- constructor(readonly input: CreateHapgCommandInput) {
61
- // Start section: command_constructor
62
- super();
63
- // End section: command_constructor
64
- }
65
-
66
- /**
67
- * @internal
68
- */
69
- resolveMiddleware(
70
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
71
- configuration: CloudHSMClientResolvedConfig,
72
- options?: __HttpHandlerOptions
73
- ): Handler<CreateHapgCommandInput, CreateHapgCommandOutput> {
74
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
75
-
76
- const stack = clientStack.concat(this.middlewareStack);
77
-
78
- const { logger } = configuration;
79
- const clientName = "CloudHSMClient";
80
- const commandName = "CreateHapgCommand";
81
- const handlerExecutionContext: HandlerExecutionContext = {
82
- logger,
83
- clientName,
84
- commandName,
85
- inputFilterSensitiveLog: CreateHapgRequest.filterSensitiveLog,
86
- outputFilterSensitiveLog: CreateHapgResponse.filterSensitiveLog,
87
- };
88
- const { requestHandler } = configuration;
89
- return stack.resolve(
90
- (request: FinalizeHandlerArguments<any>) =>
91
- requestHandler.handle(request.request as __HttpRequest, options || {}),
92
- handlerExecutionContext
93
- );
94
- }
95
-
96
- private serialize(input: CreateHapgCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
97
- return serializeAws_json1_1CreateHapgCommand(input, context);
98
- }
99
-
100
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateHapgCommandOutput> {
101
- return deserializeAws_json1_1CreateHapgCommand(output, context);
102
- }
103
-
104
- // Start section: command_body_extra
105
- // End section: command_body_extra
106
- }
@@ -1,111 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
- import { CreateHsmRequest, CreateHsmResponse } from "../models/models_0";
16
- import { deserializeAws_json1_1CreateHsmCommand, serializeAws_json1_1CreateHsmCommand } from "../protocols/Aws_json1_1";
17
-
18
- export interface CreateHsmCommandInput extends CreateHsmRequest {}
19
- export interface CreateHsmCommandOutput extends CreateHsmResponse, __MetadataBearer {}
20
-
21
- /**
22
- * <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
23
- * more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
24
- * Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
25
- * CloudHSM Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS CloudHSM Classic API Reference</a>.</p>
26
- * <p>
27
- * <b>For information about the current version of AWS
28
- * CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS CloudHSM</a>, the
29
- * <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS CloudHSM User Guide</a>,
30
- * and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API
31
- * Reference</a>.</p>
32
- * <p>Creates an uninitialized HSM instance.</p>
33
- * <p>There is an upfront fee charged for each HSM instance that you create with the
34
- * <code>CreateHsm</code> operation. If you accidentally provision an HSM and want to request a
35
- * refund, delete the instance using the <a>DeleteHsm</a> operation, go to the <a href="https://console.aws.amazon.com/support/home">AWS Support Center</a>, create a new case, and select
36
- * <b>Account and Billing Support</b>.</p>
37
- * <important>
38
- * <p>It can take up to 20 minutes to create and provision an HSM. You can monitor the
39
- * status of the HSM with the <a>DescribeHsm</a> operation. The HSM is ready to be
40
- * initialized when the status changes to <code>RUNNING</code>.</p>
41
- * </important>
42
- * @example
43
- * Use a bare-bones client and the command you need to make an API call.
44
- * ```javascript
45
- * import { CloudHSMClient, CreateHsmCommand } from "@aws-sdk/client-cloudhsm"; // ES Modules import
46
- * // const { CloudHSMClient, CreateHsmCommand } = require("@aws-sdk/client-cloudhsm"); // CommonJS import
47
- * const client = new CloudHSMClient(config);
48
- * const command = new CreateHsmCommand(input);
49
- * const response = await client.send(command);
50
- * ```
51
- *
52
- * @see {@link CreateHsmCommandInput} for command's `input` shape.
53
- * @see {@link CreateHsmCommandOutput} for command's `response` shape.
54
- * @see {@link CloudHSMClientResolvedConfig | config} for command's `input` shape.
55
- *
56
- */
57
- export class CreateHsmCommand extends $Command<
58
- CreateHsmCommandInput,
59
- CreateHsmCommandOutput,
60
- CloudHSMClientResolvedConfig
61
- > {
62
- // Start section: command_properties
63
- // End section: command_properties
64
-
65
- constructor(readonly input: CreateHsmCommandInput) {
66
- // Start section: command_constructor
67
- super();
68
- // End section: command_constructor
69
- }
70
-
71
- /**
72
- * @internal
73
- */
74
- resolveMiddleware(
75
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
76
- configuration: CloudHSMClientResolvedConfig,
77
- options?: __HttpHandlerOptions
78
- ): Handler<CreateHsmCommandInput, CreateHsmCommandOutput> {
79
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
80
-
81
- const stack = clientStack.concat(this.middlewareStack);
82
-
83
- const { logger } = configuration;
84
- const clientName = "CloudHSMClient";
85
- const commandName = "CreateHsmCommand";
86
- const handlerExecutionContext: HandlerExecutionContext = {
87
- logger,
88
- clientName,
89
- commandName,
90
- inputFilterSensitiveLog: CreateHsmRequest.filterSensitiveLog,
91
- outputFilterSensitiveLog: CreateHsmResponse.filterSensitiveLog,
92
- };
93
- const { requestHandler } = configuration;
94
- return stack.resolve(
95
- (request: FinalizeHandlerArguments<any>) =>
96
- requestHandler.handle(request.request as __HttpRequest, options || {}),
97
- handlerExecutionContext
98
- );
99
- }
100
-
101
- private serialize(input: CreateHsmCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
102
- return serializeAws_json1_1CreateHsmCommand(input, context);
103
- }
104
-
105
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateHsmCommandOutput> {
106
- return deserializeAws_json1_1CreateHsmCommand(output, context);
107
- }
108
-
109
- // Start section: command_body_extra
110
- // End section: command_body_extra
111
- }