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