@aws-sdk/client-cloudhsm 3.926.0 → 3.928.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/dist-cjs/index.js +486 -614
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/CloudHSMClient.js +2 -0
- package/dist-es/commands/AddTagsToResourceCommand.js +3 -9
- package/dist-es/commands/CreateHapgCommand.js +3 -9
- package/dist-es/commands/CreateHsmCommand.js +3 -9
- package/dist-es/commands/CreateLunaClientCommand.js +3 -9
- package/dist-es/commands/DeleteHapgCommand.js +3 -9
- package/dist-es/commands/DeleteHsmCommand.js +3 -9
- package/dist-es/commands/DeleteLunaClientCommand.js +3 -9
- package/dist-es/commands/DescribeHapgCommand.js +3 -9
- package/dist-es/commands/DescribeHsmCommand.js +3 -9
- package/dist-es/commands/DescribeLunaClientCommand.js +3 -9
- package/dist-es/commands/GetConfigCommand.js +3 -9
- package/dist-es/commands/ListAvailableZonesCommand.js +3 -9
- package/dist-es/commands/ListHapgsCommand.js +3 -9
- package/dist-es/commands/ListHsmsCommand.js +3 -9
- package/dist-es/commands/ListLunaClientsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ModifyHapgCommand.js +3 -9
- package/dist-es/commands/ModifyHsmCommand.js +3 -9
- package/dist-es/commands/ModifyLunaClientCommand.js +3 -9
- package/dist-es/commands/RemoveTagsFromResourceCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +443 -0
- package/dist-types/CloudHSMClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +75 -0
- package/dist-types/ts3.4/CloudHSMClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +80 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -469
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -182
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -245
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticOperationSchema,
|
|
5
|
+
StaticStructureSchema,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
export declare var AddTagsToResourceRequest: StaticStructureSchema;
|
|
8
|
+
export declare var AddTagsToResourceResponse: StaticStructureSchema;
|
|
9
|
+
export declare var CloudHsmInternalException: StaticErrorSchema;
|
|
10
|
+
export declare var CloudHsmServiceException: StaticErrorSchema;
|
|
11
|
+
export declare var CreateHapgRequest: StaticStructureSchema;
|
|
12
|
+
export declare var CreateHapgResponse: StaticStructureSchema;
|
|
13
|
+
export declare var CreateHsmRequest: StaticStructureSchema;
|
|
14
|
+
export declare var CreateHsmResponse: StaticStructureSchema;
|
|
15
|
+
export declare var CreateLunaClientRequest: StaticStructureSchema;
|
|
16
|
+
export declare var CreateLunaClientResponse: StaticStructureSchema;
|
|
17
|
+
export declare var DeleteHapgRequest: StaticStructureSchema;
|
|
18
|
+
export declare var DeleteHapgResponse: StaticStructureSchema;
|
|
19
|
+
export declare var DeleteHsmRequest: StaticStructureSchema;
|
|
20
|
+
export declare var DeleteHsmResponse: StaticStructureSchema;
|
|
21
|
+
export declare var DeleteLunaClientRequest: StaticStructureSchema;
|
|
22
|
+
export declare var DeleteLunaClientResponse: StaticStructureSchema;
|
|
23
|
+
export declare var DescribeHapgRequest: StaticStructureSchema;
|
|
24
|
+
export declare var DescribeHapgResponse: StaticStructureSchema;
|
|
25
|
+
export declare var DescribeHsmRequest: StaticStructureSchema;
|
|
26
|
+
export declare var DescribeHsmResponse: StaticStructureSchema;
|
|
27
|
+
export declare var DescribeLunaClientRequest: StaticStructureSchema;
|
|
28
|
+
export declare var DescribeLunaClientResponse: StaticStructureSchema;
|
|
29
|
+
export declare var GetConfigRequest: StaticStructureSchema;
|
|
30
|
+
export declare var GetConfigResponse: StaticStructureSchema;
|
|
31
|
+
export declare var InvalidRequestException: StaticErrorSchema;
|
|
32
|
+
export declare var ListAvailableZonesRequest: StaticStructureSchema;
|
|
33
|
+
export declare var ListAvailableZonesResponse: StaticStructureSchema;
|
|
34
|
+
export declare var ListHapgsRequest: StaticStructureSchema;
|
|
35
|
+
export declare var ListHapgsResponse: StaticStructureSchema;
|
|
36
|
+
export declare var ListHsmsRequest: StaticStructureSchema;
|
|
37
|
+
export declare var ListHsmsResponse: StaticStructureSchema;
|
|
38
|
+
export declare var ListLunaClientsRequest: StaticStructureSchema;
|
|
39
|
+
export declare var ListLunaClientsResponse: StaticStructureSchema;
|
|
40
|
+
export declare var ListTagsForResourceRequest: StaticStructureSchema;
|
|
41
|
+
export declare var ListTagsForResourceResponse: StaticStructureSchema;
|
|
42
|
+
export declare var ModifyHapgRequest: StaticStructureSchema;
|
|
43
|
+
export declare var ModifyHapgResponse: StaticStructureSchema;
|
|
44
|
+
export declare var ModifyHsmRequest: StaticStructureSchema;
|
|
45
|
+
export declare var ModifyHsmResponse: StaticStructureSchema;
|
|
46
|
+
export declare var ModifyLunaClientRequest: StaticStructureSchema;
|
|
47
|
+
export declare var ModifyLunaClientResponse: StaticStructureSchema;
|
|
48
|
+
export declare var RemoveTagsFromResourceRequest: StaticStructureSchema;
|
|
49
|
+
export declare var RemoveTagsFromResourceResponse: StaticStructureSchema;
|
|
50
|
+
export declare var Tag: StaticStructureSchema;
|
|
51
|
+
export declare var __Unit: "unit";
|
|
52
|
+
export declare var CloudHSMServiceException: StaticErrorSchema;
|
|
53
|
+
export declare var AZList: number;
|
|
54
|
+
export declare var ClientList: number;
|
|
55
|
+
export declare var HapgList: number;
|
|
56
|
+
export declare var HsmList: number;
|
|
57
|
+
export declare var PartitionList: number;
|
|
58
|
+
export declare var PartitionSerialList: number;
|
|
59
|
+
export declare var TagKeyList: number;
|
|
60
|
+
export declare var TagList: StaticListSchema;
|
|
61
|
+
export declare var AddTagsToResource: StaticOperationSchema;
|
|
62
|
+
export declare var CreateHapg: StaticOperationSchema;
|
|
63
|
+
export declare var CreateHsm: StaticOperationSchema;
|
|
64
|
+
export declare var CreateLunaClient: StaticOperationSchema;
|
|
65
|
+
export declare var DeleteHapg: StaticOperationSchema;
|
|
66
|
+
export declare var DeleteHsm: StaticOperationSchema;
|
|
67
|
+
export declare var DeleteLunaClient: StaticOperationSchema;
|
|
68
|
+
export declare var DescribeHapg: StaticOperationSchema;
|
|
69
|
+
export declare var DescribeHsm: StaticOperationSchema;
|
|
70
|
+
export declare var DescribeLunaClient: StaticOperationSchema;
|
|
71
|
+
export declare var GetConfig: StaticOperationSchema;
|
|
72
|
+
export declare var ListAvailableZones: StaticOperationSchema;
|
|
73
|
+
export declare var ListHapgs: StaticOperationSchema;
|
|
74
|
+
export declare var ListHsms: StaticOperationSchema;
|
|
75
|
+
export declare var ListLunaClients: StaticOperationSchema;
|
|
76
|
+
export declare var ListTagsForResource: StaticOperationSchema;
|
|
77
|
+
export declare var ModifyHapg: StaticOperationSchema;
|
|
78
|
+
export declare var ModifyHsm: StaticOperationSchema;
|
|
79
|
+
export declare var ModifyLunaClient: StaticOperationSchema;
|
|
80
|
+
export declare var RemoveTagsFromResource: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudhsm",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudhsm Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.928.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-cloudhsm",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.928.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.928.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.928.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.925.0",
|
|
30
30
|
"@aws-sdk/types": "3.922.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.922.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.922.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.928.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.2",
|
|
35
35
|
"@smithy/core": "^3.17.2",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.5",
|
|
@@ -1,469 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { CloudHSMServiceException as __BaseException } from "../models/CloudHSMServiceException";
|
|
5
|
-
import { CloudHsmInternalException, CloudHsmServiceException, InvalidRequestException, } from "../models/models_0";
|
|
6
|
-
export const se_AddTagsToResourceCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("AddTagsToResource");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_CreateHapgCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("CreateHapg");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_CreateHsmCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CreateHsm");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_CreateLunaClientCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("CreateLunaClient");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_DeleteHapgCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("DeleteHapg");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_DeleteHsmCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("DeleteHsm");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_DeleteLunaClientCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("DeleteLunaClient");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_DescribeHapgCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("DescribeHapg");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_DescribeHsmCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("DescribeHsm");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_DescribeLunaClientCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("DescribeLunaClient");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_GetConfigCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("GetConfig");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_ListAvailableZonesCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("ListAvailableZones");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_ListHapgsCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("ListHapgs");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_ListHsmsCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("ListHsms");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_ListLunaClientsCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("ListLunaClients");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(_json(input));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_ModifyHapgCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("ModifyHapg");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_ModifyHsmCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("ModifyHsm");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(_json(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_ModifyLunaClientCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("ModifyLunaClient");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(_json(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const se_RemoveTagsFromResourceCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("RemoveTagsFromResource");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(_json(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
export const de_AddTagsToResourceCommand = async (output, context) => {
|
|
127
|
-
if (output.statusCode >= 300) {
|
|
128
|
-
return de_CommandError(output, context);
|
|
129
|
-
}
|
|
130
|
-
const data = await parseBody(output.body, context);
|
|
131
|
-
let contents = {};
|
|
132
|
-
contents = _json(data);
|
|
133
|
-
const response = {
|
|
134
|
-
$metadata: deserializeMetadata(output),
|
|
135
|
-
...contents,
|
|
136
|
-
};
|
|
137
|
-
return response;
|
|
138
|
-
};
|
|
139
|
-
export const de_CreateHapgCommand = async (output, context) => {
|
|
140
|
-
if (output.statusCode >= 300) {
|
|
141
|
-
return de_CommandError(output, context);
|
|
142
|
-
}
|
|
143
|
-
const data = await parseBody(output.body, context);
|
|
144
|
-
let contents = {};
|
|
145
|
-
contents = _json(data);
|
|
146
|
-
const response = {
|
|
147
|
-
$metadata: deserializeMetadata(output),
|
|
148
|
-
...contents,
|
|
149
|
-
};
|
|
150
|
-
return response;
|
|
151
|
-
};
|
|
152
|
-
export const de_CreateHsmCommand = async (output, context) => {
|
|
153
|
-
if (output.statusCode >= 300) {
|
|
154
|
-
return de_CommandError(output, context);
|
|
155
|
-
}
|
|
156
|
-
const data = await parseBody(output.body, context);
|
|
157
|
-
let contents = {};
|
|
158
|
-
contents = _json(data);
|
|
159
|
-
const response = {
|
|
160
|
-
$metadata: deserializeMetadata(output),
|
|
161
|
-
...contents,
|
|
162
|
-
};
|
|
163
|
-
return response;
|
|
164
|
-
};
|
|
165
|
-
export const de_CreateLunaClientCommand = async (output, context) => {
|
|
166
|
-
if (output.statusCode >= 300) {
|
|
167
|
-
return de_CommandError(output, context);
|
|
168
|
-
}
|
|
169
|
-
const data = await parseBody(output.body, context);
|
|
170
|
-
let contents = {};
|
|
171
|
-
contents = _json(data);
|
|
172
|
-
const response = {
|
|
173
|
-
$metadata: deserializeMetadata(output),
|
|
174
|
-
...contents,
|
|
175
|
-
};
|
|
176
|
-
return response;
|
|
177
|
-
};
|
|
178
|
-
export const de_DeleteHapgCommand = async (output, context) => {
|
|
179
|
-
if (output.statusCode >= 300) {
|
|
180
|
-
return de_CommandError(output, context);
|
|
181
|
-
}
|
|
182
|
-
const data = await parseBody(output.body, context);
|
|
183
|
-
let contents = {};
|
|
184
|
-
contents = _json(data);
|
|
185
|
-
const response = {
|
|
186
|
-
$metadata: deserializeMetadata(output),
|
|
187
|
-
...contents,
|
|
188
|
-
};
|
|
189
|
-
return response;
|
|
190
|
-
};
|
|
191
|
-
export const de_DeleteHsmCommand = async (output, context) => {
|
|
192
|
-
if (output.statusCode >= 300) {
|
|
193
|
-
return de_CommandError(output, context);
|
|
194
|
-
}
|
|
195
|
-
const data = await parseBody(output.body, context);
|
|
196
|
-
let contents = {};
|
|
197
|
-
contents = _json(data);
|
|
198
|
-
const response = {
|
|
199
|
-
$metadata: deserializeMetadata(output),
|
|
200
|
-
...contents,
|
|
201
|
-
};
|
|
202
|
-
return response;
|
|
203
|
-
};
|
|
204
|
-
export const de_DeleteLunaClientCommand = async (output, context) => {
|
|
205
|
-
if (output.statusCode >= 300) {
|
|
206
|
-
return de_CommandError(output, context);
|
|
207
|
-
}
|
|
208
|
-
const data = await parseBody(output.body, context);
|
|
209
|
-
let contents = {};
|
|
210
|
-
contents = _json(data);
|
|
211
|
-
const response = {
|
|
212
|
-
$metadata: deserializeMetadata(output),
|
|
213
|
-
...contents,
|
|
214
|
-
};
|
|
215
|
-
return response;
|
|
216
|
-
};
|
|
217
|
-
export const de_DescribeHapgCommand = async (output, context) => {
|
|
218
|
-
if (output.statusCode >= 300) {
|
|
219
|
-
return de_CommandError(output, context);
|
|
220
|
-
}
|
|
221
|
-
const data = await parseBody(output.body, context);
|
|
222
|
-
let contents = {};
|
|
223
|
-
contents = _json(data);
|
|
224
|
-
const response = {
|
|
225
|
-
$metadata: deserializeMetadata(output),
|
|
226
|
-
...contents,
|
|
227
|
-
};
|
|
228
|
-
return response;
|
|
229
|
-
};
|
|
230
|
-
export const de_DescribeHsmCommand = async (output, context) => {
|
|
231
|
-
if (output.statusCode >= 300) {
|
|
232
|
-
return de_CommandError(output, context);
|
|
233
|
-
}
|
|
234
|
-
const data = await parseBody(output.body, context);
|
|
235
|
-
let contents = {};
|
|
236
|
-
contents = _json(data);
|
|
237
|
-
const response = {
|
|
238
|
-
$metadata: deserializeMetadata(output),
|
|
239
|
-
...contents,
|
|
240
|
-
};
|
|
241
|
-
return response;
|
|
242
|
-
};
|
|
243
|
-
export const de_DescribeLunaClientCommand = async (output, context) => {
|
|
244
|
-
if (output.statusCode >= 300) {
|
|
245
|
-
return de_CommandError(output, context);
|
|
246
|
-
}
|
|
247
|
-
const data = await parseBody(output.body, context);
|
|
248
|
-
let contents = {};
|
|
249
|
-
contents = _json(data);
|
|
250
|
-
const response = {
|
|
251
|
-
$metadata: deserializeMetadata(output),
|
|
252
|
-
...contents,
|
|
253
|
-
};
|
|
254
|
-
return response;
|
|
255
|
-
};
|
|
256
|
-
export const de_GetConfigCommand = async (output, context) => {
|
|
257
|
-
if (output.statusCode >= 300) {
|
|
258
|
-
return de_CommandError(output, context);
|
|
259
|
-
}
|
|
260
|
-
const data = await parseBody(output.body, context);
|
|
261
|
-
let contents = {};
|
|
262
|
-
contents = _json(data);
|
|
263
|
-
const response = {
|
|
264
|
-
$metadata: deserializeMetadata(output),
|
|
265
|
-
...contents,
|
|
266
|
-
};
|
|
267
|
-
return response;
|
|
268
|
-
};
|
|
269
|
-
export const de_ListAvailableZonesCommand = async (output, context) => {
|
|
270
|
-
if (output.statusCode >= 300) {
|
|
271
|
-
return de_CommandError(output, context);
|
|
272
|
-
}
|
|
273
|
-
const data = await parseBody(output.body, context);
|
|
274
|
-
let contents = {};
|
|
275
|
-
contents = _json(data);
|
|
276
|
-
const response = {
|
|
277
|
-
$metadata: deserializeMetadata(output),
|
|
278
|
-
...contents,
|
|
279
|
-
};
|
|
280
|
-
return response;
|
|
281
|
-
};
|
|
282
|
-
export const de_ListHapgsCommand = async (output, context) => {
|
|
283
|
-
if (output.statusCode >= 300) {
|
|
284
|
-
return de_CommandError(output, context);
|
|
285
|
-
}
|
|
286
|
-
const data = await parseBody(output.body, context);
|
|
287
|
-
let contents = {};
|
|
288
|
-
contents = _json(data);
|
|
289
|
-
const response = {
|
|
290
|
-
$metadata: deserializeMetadata(output),
|
|
291
|
-
...contents,
|
|
292
|
-
};
|
|
293
|
-
return response;
|
|
294
|
-
};
|
|
295
|
-
export const de_ListHsmsCommand = async (output, context) => {
|
|
296
|
-
if (output.statusCode >= 300) {
|
|
297
|
-
return de_CommandError(output, context);
|
|
298
|
-
}
|
|
299
|
-
const data = await parseBody(output.body, context);
|
|
300
|
-
let contents = {};
|
|
301
|
-
contents = _json(data);
|
|
302
|
-
const response = {
|
|
303
|
-
$metadata: deserializeMetadata(output),
|
|
304
|
-
...contents,
|
|
305
|
-
};
|
|
306
|
-
return response;
|
|
307
|
-
};
|
|
308
|
-
export const de_ListLunaClientsCommand = async (output, context) => {
|
|
309
|
-
if (output.statusCode >= 300) {
|
|
310
|
-
return de_CommandError(output, context);
|
|
311
|
-
}
|
|
312
|
-
const data = await parseBody(output.body, context);
|
|
313
|
-
let contents = {};
|
|
314
|
-
contents = _json(data);
|
|
315
|
-
const response = {
|
|
316
|
-
$metadata: deserializeMetadata(output),
|
|
317
|
-
...contents,
|
|
318
|
-
};
|
|
319
|
-
return response;
|
|
320
|
-
};
|
|
321
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
322
|
-
if (output.statusCode >= 300) {
|
|
323
|
-
return de_CommandError(output, context);
|
|
324
|
-
}
|
|
325
|
-
const data = await parseBody(output.body, context);
|
|
326
|
-
let contents = {};
|
|
327
|
-
contents = _json(data);
|
|
328
|
-
const response = {
|
|
329
|
-
$metadata: deserializeMetadata(output),
|
|
330
|
-
...contents,
|
|
331
|
-
};
|
|
332
|
-
return response;
|
|
333
|
-
};
|
|
334
|
-
export const de_ModifyHapgCommand = async (output, context) => {
|
|
335
|
-
if (output.statusCode >= 300) {
|
|
336
|
-
return de_CommandError(output, context);
|
|
337
|
-
}
|
|
338
|
-
const data = await parseBody(output.body, context);
|
|
339
|
-
let contents = {};
|
|
340
|
-
contents = _json(data);
|
|
341
|
-
const response = {
|
|
342
|
-
$metadata: deserializeMetadata(output),
|
|
343
|
-
...contents,
|
|
344
|
-
};
|
|
345
|
-
return response;
|
|
346
|
-
};
|
|
347
|
-
export const de_ModifyHsmCommand = async (output, context) => {
|
|
348
|
-
if (output.statusCode >= 300) {
|
|
349
|
-
return de_CommandError(output, context);
|
|
350
|
-
}
|
|
351
|
-
const data = await parseBody(output.body, context);
|
|
352
|
-
let contents = {};
|
|
353
|
-
contents = _json(data);
|
|
354
|
-
const response = {
|
|
355
|
-
$metadata: deserializeMetadata(output),
|
|
356
|
-
...contents,
|
|
357
|
-
};
|
|
358
|
-
return response;
|
|
359
|
-
};
|
|
360
|
-
export const de_ModifyLunaClientCommand = async (output, context) => {
|
|
361
|
-
if (output.statusCode >= 300) {
|
|
362
|
-
return de_CommandError(output, context);
|
|
363
|
-
}
|
|
364
|
-
const data = await parseBody(output.body, context);
|
|
365
|
-
let contents = {};
|
|
366
|
-
contents = _json(data);
|
|
367
|
-
const response = {
|
|
368
|
-
$metadata: deserializeMetadata(output),
|
|
369
|
-
...contents,
|
|
370
|
-
};
|
|
371
|
-
return response;
|
|
372
|
-
};
|
|
373
|
-
export const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
374
|
-
if (output.statusCode >= 300) {
|
|
375
|
-
return de_CommandError(output, context);
|
|
376
|
-
}
|
|
377
|
-
const data = await parseBody(output.body, context);
|
|
378
|
-
let contents = {};
|
|
379
|
-
contents = _json(data);
|
|
380
|
-
const response = {
|
|
381
|
-
$metadata: deserializeMetadata(output),
|
|
382
|
-
...contents,
|
|
383
|
-
};
|
|
384
|
-
return response;
|
|
385
|
-
};
|
|
386
|
-
const de_CommandError = async (output, context) => {
|
|
387
|
-
const parsedOutput = {
|
|
388
|
-
...output,
|
|
389
|
-
body: await parseErrorBody(output.body, context),
|
|
390
|
-
};
|
|
391
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
392
|
-
switch (errorCode) {
|
|
393
|
-
case "CloudHsmInternalException":
|
|
394
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
395
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
396
|
-
case "CloudHsmServiceException":
|
|
397
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
398
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
399
|
-
case "InvalidRequestException":
|
|
400
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
401
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
402
|
-
default:
|
|
403
|
-
const parsedBody = parsedOutput.body;
|
|
404
|
-
return throwDefaultError({
|
|
405
|
-
output,
|
|
406
|
-
parsedBody,
|
|
407
|
-
errorCode,
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
};
|
|
411
|
-
const de_CloudHsmInternalExceptionRes = async (parsedOutput, context) => {
|
|
412
|
-
const body = parsedOutput.body;
|
|
413
|
-
const deserialized = _json(body);
|
|
414
|
-
const exception = new CloudHsmInternalException({
|
|
415
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
416
|
-
...deserialized,
|
|
417
|
-
});
|
|
418
|
-
return __decorateServiceException(exception, body);
|
|
419
|
-
};
|
|
420
|
-
const de_CloudHsmServiceExceptionRes = async (parsedOutput, context) => {
|
|
421
|
-
const body = parsedOutput.body;
|
|
422
|
-
const deserialized = _json(body);
|
|
423
|
-
const exception = new CloudHsmServiceException({
|
|
424
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
425
|
-
...deserialized,
|
|
426
|
-
});
|
|
427
|
-
return __decorateServiceException(exception, body);
|
|
428
|
-
};
|
|
429
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
430
|
-
const body = parsedOutput.body;
|
|
431
|
-
const deserialized = _json(body);
|
|
432
|
-
const exception = new InvalidRequestException({
|
|
433
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
434
|
-
...deserialized,
|
|
435
|
-
});
|
|
436
|
-
return __decorateServiceException(exception, body);
|
|
437
|
-
};
|
|
438
|
-
const deserializeMetadata = (output) => ({
|
|
439
|
-
httpStatusCode: output.statusCode,
|
|
440
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
441
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
442
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
443
|
-
});
|
|
444
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
445
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
446
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
447
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
448
|
-
const contents = {
|
|
449
|
-
protocol,
|
|
450
|
-
hostname,
|
|
451
|
-
port,
|
|
452
|
-
method: "POST",
|
|
453
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
454
|
-
headers,
|
|
455
|
-
};
|
|
456
|
-
if (resolvedHostname !== undefined) {
|
|
457
|
-
contents.hostname = resolvedHostname;
|
|
458
|
-
}
|
|
459
|
-
if (body !== undefined) {
|
|
460
|
-
contents.body = body;
|
|
461
|
-
}
|
|
462
|
-
return new __HttpRequest(contents);
|
|
463
|
-
};
|
|
464
|
-
function sharedHeaders(operation) {
|
|
465
|
-
return {
|
|
466
|
-
"content-type": "application/x-amz-json-1.1",
|
|
467
|
-
"x-amz-target": `CloudHsmFrontendService.${operation}`,
|
|
468
|
-
};
|
|
469
|
-
}
|