@aws-sdk/client-payment-cryptography 3.901.0 → 3.907.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 +1719 -1874
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -1,1939 +1,1784 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
DiffieHellmanDerivationData: () => DiffieHellmanDerivationData,
|
|
33
|
-
DisableDefaultKeyReplicationRegionsCommand: () => DisableDefaultKeyReplicationRegionsCommand,
|
|
34
|
-
EnableDefaultKeyReplicationRegionsCommand: () => EnableDefaultKeyReplicationRegionsCommand,
|
|
35
|
-
ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog: () => ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog,
|
|
36
|
-
ExportKeyCommand: () => ExportKeyCommand,
|
|
37
|
-
ExportKeyInputFilterSensitiveLog: () => ExportKeyInputFilterSensitiveLog,
|
|
38
|
-
ExportKeyMaterial: () => ExportKeyMaterial,
|
|
39
|
-
ExportKeyMaterialFilterSensitiveLog: () => ExportKeyMaterialFilterSensitiveLog,
|
|
40
|
-
ExportKeyOutputFilterSensitiveLog: () => ExportKeyOutputFilterSensitiveLog,
|
|
41
|
-
ExportTr31KeyBlockFilterSensitiveLog: () => ExportTr31KeyBlockFilterSensitiveLog,
|
|
42
|
-
ExportTr34KeyBlockFilterSensitiveLog: () => ExportTr34KeyBlockFilterSensitiveLog,
|
|
43
|
-
GetAliasCommand: () => GetAliasCommand,
|
|
44
|
-
GetCertificateSigningRequestCommand: () => GetCertificateSigningRequestCommand,
|
|
45
|
-
GetCertificateSigningRequestOutputFilterSensitiveLog: () => GetCertificateSigningRequestOutputFilterSensitiveLog,
|
|
46
|
-
GetDefaultKeyReplicationRegionsCommand: () => GetDefaultKeyReplicationRegionsCommand,
|
|
47
|
-
GetKeyCommand: () => GetKeyCommand,
|
|
48
|
-
GetParametersForExportCommand: () => GetParametersForExportCommand,
|
|
49
|
-
GetParametersForImportCommand: () => GetParametersForImportCommand,
|
|
50
|
-
GetPublicKeyCertificateCommand: () => GetPublicKeyCertificateCommand,
|
|
51
|
-
ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog: () => ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog,
|
|
52
|
-
ImportKeyCommand: () => ImportKeyCommand,
|
|
53
|
-
ImportKeyCryptogramFilterSensitiveLog: () => ImportKeyCryptogramFilterSensitiveLog,
|
|
54
|
-
ImportKeyInputFilterSensitiveLog: () => ImportKeyInputFilterSensitiveLog,
|
|
55
|
-
ImportKeyMaterial: () => ImportKeyMaterial,
|
|
56
|
-
ImportKeyMaterialFilterSensitiveLog: () => ImportKeyMaterialFilterSensitiveLog,
|
|
57
|
-
ImportTr31KeyBlockFilterSensitiveLog: () => ImportTr31KeyBlockFilterSensitiveLog,
|
|
58
|
-
ImportTr34KeyBlockFilterSensitiveLog: () => ImportTr34KeyBlockFilterSensitiveLog,
|
|
59
|
-
InternalServerException: () => InternalServerException,
|
|
60
|
-
KeyAlgorithm: () => KeyAlgorithm,
|
|
61
|
-
KeyBlockHeadersFilterSensitiveLog: () => KeyBlockHeadersFilterSensitiveLog,
|
|
62
|
-
KeyCheckValueAlgorithm: () => KeyCheckValueAlgorithm,
|
|
63
|
-
KeyClass: () => KeyClass,
|
|
64
|
-
KeyDerivationFunction: () => KeyDerivationFunction,
|
|
65
|
-
KeyDerivationHashAlgorithm: () => KeyDerivationHashAlgorithm,
|
|
66
|
-
KeyExportability: () => KeyExportability,
|
|
67
|
-
KeyMaterialType: () => KeyMaterialType,
|
|
68
|
-
KeyOrigin: () => KeyOrigin,
|
|
69
|
-
KeyReplicationState: () => KeyReplicationState,
|
|
70
|
-
KeyState: () => KeyState,
|
|
71
|
-
KeyUsage: () => KeyUsage,
|
|
72
|
-
ListAliasesCommand: () => ListAliasesCommand,
|
|
73
|
-
ListKeysCommand: () => ListKeysCommand,
|
|
74
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
75
|
-
MultiRegionKeyType: () => MultiRegionKeyType,
|
|
76
|
-
PaymentCryptography: () => PaymentCryptography,
|
|
77
|
-
PaymentCryptographyClient: () => PaymentCryptographyClient,
|
|
78
|
-
PaymentCryptographyServiceException: () => PaymentCryptographyServiceException,
|
|
79
|
-
RemoveKeyReplicationRegionsCommand: () => RemoveKeyReplicationRegionsCommand,
|
|
80
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
81
|
-
RestoreKeyCommand: () => RestoreKeyCommand,
|
|
82
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
83
|
-
ServiceUnavailableException: () => ServiceUnavailableException,
|
|
84
|
-
SigningAlgorithmType: () => SigningAlgorithmType,
|
|
85
|
-
StartKeyUsageCommand: () => StartKeyUsageCommand,
|
|
86
|
-
StopKeyUsageCommand: () => StopKeyUsageCommand,
|
|
87
|
-
SymmetricKeyAlgorithm: () => SymmetricKeyAlgorithm,
|
|
88
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
89
|
-
ThrottlingException: () => ThrottlingException,
|
|
90
|
-
Tr34KeyBlockFormat: () => Tr34KeyBlockFormat,
|
|
91
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
92
|
-
UpdateAliasCommand: () => UpdateAliasCommand,
|
|
93
|
-
ValidationException: () => ValidationException,
|
|
94
|
-
WrappedKeyFilterSensitiveLog: () => WrappedKeyFilterSensitiveLog,
|
|
95
|
-
WrappedKeyMaterialFormat: () => WrappedKeyMaterialFormat,
|
|
96
|
-
WrappingKeySpec: () => WrappingKeySpec,
|
|
97
|
-
__Client: () => import_smithy_client.Client,
|
|
98
|
-
paginateListAliases: () => paginateListAliases,
|
|
99
|
-
paginateListKeys: () => paginateListKeys,
|
|
100
|
-
paginateListTagsForResource: () => paginateListTagsForResource
|
|
101
|
-
});
|
|
102
|
-
module.exports = __toCommonJS(index_exports);
|
|
103
|
-
|
|
104
|
-
// src/PaymentCryptographyClient.ts
|
|
105
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
106
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
107
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
108
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
109
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
110
|
-
var import_core = require("@smithy/core");
|
|
111
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
112
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
113
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
114
|
-
|
|
115
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
116
|
-
|
|
117
|
-
// src/endpoint/EndpointParameters.ts
|
|
118
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
119
|
-
return Object.assign(options, {
|
|
120
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
121
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
122
|
-
defaultSigningName: "payment-cryptography"
|
|
123
|
-
});
|
|
124
|
-
}, "resolveClientEndpointParameters");
|
|
125
|
-
var commonParams = {
|
|
126
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
127
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
128
|
-
Region: { type: "builtInParams", name: "region" },
|
|
129
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "payment-cryptography",
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
130
32
|
};
|
|
131
33
|
|
|
132
|
-
|
|
133
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
134
72
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
139
78
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
79
|
+
class PaymentCryptographyClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultPaymentCryptographyHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
168
107
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
174
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
175
|
-
credentials: config.credentials()
|
|
176
|
-
};
|
|
177
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
178
112
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
186
|
-
);
|
|
187
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
188
|
-
return Object.assign(
|
|
189
|
-
runtimeConfig,
|
|
190
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
191
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
192
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
193
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
194
|
-
);
|
|
195
|
-
}, "resolveRuntimeExtensions");
|
|
113
|
+
class PaymentCryptographyServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, PaymentCryptographyServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
196
119
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
})
|
|
232
|
-
);
|
|
233
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
237
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
238
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
239
|
-
*/
|
|
240
|
-
destroy() {
|
|
241
|
-
super.destroy();
|
|
242
|
-
}
|
|
120
|
+
class AccessDeniedException extends PaymentCryptographyServiceException {
|
|
121
|
+
name = "AccessDeniedException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
Message;
|
|
124
|
+
constructor(opts) {
|
|
125
|
+
super({
|
|
126
|
+
name: "AccessDeniedException",
|
|
127
|
+
$fault: "client",
|
|
128
|
+
...opts,
|
|
129
|
+
});
|
|
130
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
131
|
+
this.Message = opts.Message;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
const DeriveKeyUsage = {
|
|
135
|
+
TR31_B0_BASE_DERIVATION_KEY: "TR31_B0_BASE_DERIVATION_KEY",
|
|
136
|
+
TR31_C0_CARD_VERIFICATION_KEY: "TR31_C0_CARD_VERIFICATION_KEY",
|
|
137
|
+
TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY: "TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY",
|
|
138
|
+
TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS: "TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS",
|
|
139
|
+
TR31_E1_EMV_MKEY_CONFIDENTIALITY: "TR31_E1_EMV_MKEY_CONFIDENTIALITY",
|
|
140
|
+
TR31_E2_EMV_MKEY_INTEGRITY: "TR31_E2_EMV_MKEY_INTEGRITY",
|
|
141
|
+
TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS: "TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS",
|
|
142
|
+
TR31_E5_EMV_MKEY_CARD_PERSONALIZATION: "TR31_E5_EMV_MKEY_CARD_PERSONALIZATION",
|
|
143
|
+
TR31_E6_EMV_MKEY_OTHER: "TR31_E6_EMV_MKEY_OTHER",
|
|
144
|
+
TR31_K0_KEY_ENCRYPTION_KEY: "TR31_K0_KEY_ENCRYPTION_KEY",
|
|
145
|
+
TR31_K1_KEY_BLOCK_PROTECTION_KEY: "TR31_K1_KEY_BLOCK_PROTECTION_KEY",
|
|
146
|
+
TR31_M1_ISO_9797_1_MAC_KEY: "TR31_M1_ISO_9797_1_MAC_KEY",
|
|
147
|
+
TR31_M3_ISO_9797_3_MAC_KEY: "TR31_M3_ISO_9797_3_MAC_KEY",
|
|
148
|
+
TR31_M6_ISO_9797_5_CMAC_KEY: "TR31_M6_ISO_9797_5_CMAC_KEY",
|
|
149
|
+
TR31_M7_HMAC_KEY: "TR31_M7_HMAC_KEY",
|
|
150
|
+
TR31_P0_PIN_ENCRYPTION_KEY: "TR31_P0_PIN_ENCRYPTION_KEY",
|
|
151
|
+
TR31_P1_PIN_GENERATION_KEY: "TR31_P1_PIN_GENERATION_KEY",
|
|
152
|
+
TR31_V1_IBM3624_PIN_VERIFICATION_KEY: "TR31_V1_IBM3624_PIN_VERIFICATION_KEY",
|
|
153
|
+
TR31_V2_VISA_PIN_VERIFICATION_KEY: "TR31_V2_VISA_PIN_VERIFICATION_KEY",
|
|
243
154
|
};
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* @internal
|
|
269
|
-
*/
|
|
270
|
-
constructor(options) {
|
|
271
|
-
super(options);
|
|
272
|
-
Object.setPrototypeOf(this, _PaymentCryptographyServiceException.prototype);
|
|
273
|
-
}
|
|
155
|
+
const KeyAlgorithm = {
|
|
156
|
+
AES_128: "AES_128",
|
|
157
|
+
AES_192: "AES_192",
|
|
158
|
+
AES_256: "AES_256",
|
|
159
|
+
ECC_NIST_P256: "ECC_NIST_P256",
|
|
160
|
+
ECC_NIST_P384: "ECC_NIST_P384",
|
|
161
|
+
ECC_NIST_P521: "ECC_NIST_P521",
|
|
162
|
+
HMAC_SHA224: "HMAC_SHA224",
|
|
163
|
+
HMAC_SHA256: "HMAC_SHA256",
|
|
164
|
+
HMAC_SHA384: "HMAC_SHA384",
|
|
165
|
+
HMAC_SHA512: "HMAC_SHA512",
|
|
166
|
+
RSA_2048: "RSA_2048",
|
|
167
|
+
RSA_3072: "RSA_3072",
|
|
168
|
+
RSA_4096: "RSA_4096",
|
|
169
|
+
TDES_2KEY: "TDES_2KEY",
|
|
170
|
+
TDES_3KEY: "TDES_3KEY",
|
|
171
|
+
};
|
|
172
|
+
const KeyClass = {
|
|
173
|
+
ASYMMETRIC_KEY_PAIR: "ASYMMETRIC_KEY_PAIR",
|
|
174
|
+
PRIVATE_KEY: "PRIVATE_KEY",
|
|
175
|
+
PUBLIC_KEY: "PUBLIC_KEY",
|
|
176
|
+
SYMMETRIC_KEY: "SYMMETRIC_KEY",
|
|
274
177
|
};
|
|
178
|
+
const KeyUsage = {
|
|
179
|
+
TR31_B0_BASE_DERIVATION_KEY: "TR31_B0_BASE_DERIVATION_KEY",
|
|
180
|
+
TR31_C0_CARD_VERIFICATION_KEY: "TR31_C0_CARD_VERIFICATION_KEY",
|
|
181
|
+
TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY: "TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY",
|
|
182
|
+
TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION: "TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION",
|
|
183
|
+
TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS: "TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS",
|
|
184
|
+
TR31_E1_EMV_MKEY_CONFIDENTIALITY: "TR31_E1_EMV_MKEY_CONFIDENTIALITY",
|
|
185
|
+
TR31_E2_EMV_MKEY_INTEGRITY: "TR31_E2_EMV_MKEY_INTEGRITY",
|
|
186
|
+
TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS: "TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS",
|
|
187
|
+
TR31_E5_EMV_MKEY_CARD_PERSONALIZATION: "TR31_E5_EMV_MKEY_CARD_PERSONALIZATION",
|
|
188
|
+
TR31_E6_EMV_MKEY_OTHER: "TR31_E6_EMV_MKEY_OTHER",
|
|
189
|
+
TR31_K0_KEY_ENCRYPTION_KEY: "TR31_K0_KEY_ENCRYPTION_KEY",
|
|
190
|
+
TR31_K1_KEY_BLOCK_PROTECTION_KEY: "TR31_K1_KEY_BLOCK_PROTECTION_KEY",
|
|
191
|
+
TR31_K2_TR34_ASYMMETRIC_KEY: "TR31_K2_TR34_ASYMMETRIC_KEY",
|
|
192
|
+
TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT: "TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT",
|
|
193
|
+
TR31_M1_ISO_9797_1_MAC_KEY: "TR31_M1_ISO_9797_1_MAC_KEY",
|
|
194
|
+
TR31_M3_ISO_9797_3_MAC_KEY: "TR31_M3_ISO_9797_3_MAC_KEY",
|
|
195
|
+
TR31_M6_ISO_9797_5_CMAC_KEY: "TR31_M6_ISO_9797_5_CMAC_KEY",
|
|
196
|
+
TR31_M7_HMAC_KEY: "TR31_M7_HMAC_KEY",
|
|
197
|
+
TR31_P0_PIN_ENCRYPTION_KEY: "TR31_P0_PIN_ENCRYPTION_KEY",
|
|
198
|
+
TR31_P1_PIN_GENERATION_KEY: "TR31_P1_PIN_GENERATION_KEY",
|
|
199
|
+
TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE: "TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE",
|
|
200
|
+
TR31_V1_IBM3624_PIN_VERIFICATION_KEY: "TR31_V1_IBM3624_PIN_VERIFICATION_KEY",
|
|
201
|
+
TR31_V2_VISA_PIN_VERIFICATION_KEY: "TR31_V2_VISA_PIN_VERIFICATION_KEY",
|
|
202
|
+
};
|
|
203
|
+
const KeyCheckValueAlgorithm = {
|
|
204
|
+
ANSI_X9_24: "ANSI_X9_24",
|
|
205
|
+
CMAC: "CMAC",
|
|
206
|
+
HMAC: "HMAC",
|
|
207
|
+
SHA_1: "SHA_1",
|
|
208
|
+
};
|
|
209
|
+
const KeyOrigin = {
|
|
210
|
+
AWS_PAYMENT_CRYPTOGRAPHY: "AWS_PAYMENT_CRYPTOGRAPHY",
|
|
211
|
+
EXTERNAL: "EXTERNAL",
|
|
212
|
+
};
|
|
213
|
+
const KeyState = {
|
|
214
|
+
CREATE_COMPLETE: "CREATE_COMPLETE",
|
|
215
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
216
|
+
DELETE_COMPLETE: "DELETE_COMPLETE",
|
|
217
|
+
DELETE_PENDING: "DELETE_PENDING",
|
|
218
|
+
};
|
|
219
|
+
const MultiRegionKeyType = {
|
|
220
|
+
PRIMARY: "PRIMARY",
|
|
221
|
+
REPLICA: "REPLICA",
|
|
222
|
+
};
|
|
223
|
+
const KeyReplicationState = {
|
|
224
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
225
|
+
FAILED: "FAILED",
|
|
226
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
227
|
+
SYNCHRONIZED: "SYNCHRONIZED",
|
|
228
|
+
};
|
|
229
|
+
class ConflictException extends PaymentCryptographyServiceException {
|
|
230
|
+
name = "ConflictException";
|
|
231
|
+
$fault = "client";
|
|
232
|
+
Message;
|
|
233
|
+
constructor(opts) {
|
|
234
|
+
super({
|
|
235
|
+
name: "ConflictException",
|
|
236
|
+
$fault: "client",
|
|
237
|
+
...opts,
|
|
238
|
+
});
|
|
239
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
240
|
+
this.Message = opts.Message;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
class InternalServerException extends PaymentCryptographyServiceException {
|
|
244
|
+
name = "InternalServerException";
|
|
245
|
+
$fault = "server";
|
|
246
|
+
Message;
|
|
247
|
+
constructor(opts) {
|
|
248
|
+
super({
|
|
249
|
+
name: "InternalServerException",
|
|
250
|
+
$fault: "server",
|
|
251
|
+
...opts,
|
|
252
|
+
});
|
|
253
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
254
|
+
this.Message = opts.Message;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
class ResourceNotFoundException extends PaymentCryptographyServiceException {
|
|
258
|
+
name = "ResourceNotFoundException";
|
|
259
|
+
$fault = "client";
|
|
260
|
+
ResourceId;
|
|
261
|
+
constructor(opts) {
|
|
262
|
+
super({
|
|
263
|
+
name: "ResourceNotFoundException",
|
|
264
|
+
$fault: "client",
|
|
265
|
+
...opts,
|
|
266
|
+
});
|
|
267
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
268
|
+
this.ResourceId = opts.ResourceId;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
class ServiceQuotaExceededException extends PaymentCryptographyServiceException {
|
|
272
|
+
name = "ServiceQuotaExceededException";
|
|
273
|
+
$fault = "client";
|
|
274
|
+
Message;
|
|
275
|
+
constructor(opts) {
|
|
276
|
+
super({
|
|
277
|
+
name: "ServiceQuotaExceededException",
|
|
278
|
+
$fault: "client",
|
|
279
|
+
...opts,
|
|
280
|
+
});
|
|
281
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
282
|
+
this.Message = opts.Message;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
class ThrottlingException extends PaymentCryptographyServiceException {
|
|
286
|
+
name = "ThrottlingException";
|
|
287
|
+
$fault = "client";
|
|
288
|
+
Message;
|
|
289
|
+
constructor(opts) {
|
|
290
|
+
super({
|
|
291
|
+
name: "ThrottlingException",
|
|
292
|
+
$fault: "client",
|
|
293
|
+
...opts,
|
|
294
|
+
});
|
|
295
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
296
|
+
this.Message = opts.Message;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
class ValidationException extends PaymentCryptographyServiceException {
|
|
300
|
+
name = "ValidationException";
|
|
301
|
+
$fault = "client";
|
|
302
|
+
Message;
|
|
303
|
+
constructor(opts) {
|
|
304
|
+
super({
|
|
305
|
+
name: "ValidationException",
|
|
306
|
+
$fault: "client",
|
|
307
|
+
...opts,
|
|
308
|
+
});
|
|
309
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
310
|
+
this.Message = opts.Message;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
class ServiceUnavailableException extends PaymentCryptographyServiceException {
|
|
314
|
+
name = "ServiceUnavailableException";
|
|
315
|
+
$fault = "server";
|
|
316
|
+
Message;
|
|
317
|
+
constructor(opts) {
|
|
318
|
+
super({
|
|
319
|
+
name: "ServiceUnavailableException",
|
|
320
|
+
$fault: "server",
|
|
321
|
+
...opts,
|
|
322
|
+
});
|
|
323
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
324
|
+
this.Message = opts.Message;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
exports.DiffieHellmanDerivationData = void 0;
|
|
328
|
+
(function (DiffieHellmanDerivationData) {
|
|
329
|
+
DiffieHellmanDerivationData.visit = (value, visitor) => {
|
|
330
|
+
if (value.SharedInformation !== undefined)
|
|
331
|
+
return visitor.SharedInformation(value.SharedInformation);
|
|
332
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
333
|
+
};
|
|
334
|
+
})(exports.DiffieHellmanDerivationData || (exports.DiffieHellmanDerivationData = {}));
|
|
335
|
+
const SymmetricKeyAlgorithm = {
|
|
336
|
+
AES_128: "AES_128",
|
|
337
|
+
AES_192: "AES_192",
|
|
338
|
+
AES_256: "AES_256",
|
|
339
|
+
HMAC_SHA224: "HMAC_SHA224",
|
|
340
|
+
HMAC_SHA256: "HMAC_SHA256",
|
|
341
|
+
HMAC_SHA384: "HMAC_SHA384",
|
|
342
|
+
HMAC_SHA512: "HMAC_SHA512",
|
|
343
|
+
TDES_2KEY: "TDES_2KEY",
|
|
344
|
+
TDES_3KEY: "TDES_3KEY",
|
|
345
|
+
};
|
|
346
|
+
const KeyExportability = {
|
|
347
|
+
EXPORTABLE: "EXPORTABLE",
|
|
348
|
+
NON_EXPORTABLE: "NON_EXPORTABLE",
|
|
349
|
+
SENSITIVE: "SENSITIVE",
|
|
350
|
+
};
|
|
351
|
+
const KeyDerivationFunction = {
|
|
352
|
+
ANSI_X963: "ANSI_X963",
|
|
353
|
+
NIST_SP800: "NIST_SP800",
|
|
354
|
+
};
|
|
355
|
+
const KeyDerivationHashAlgorithm = {
|
|
356
|
+
SHA_256: "SHA_256",
|
|
357
|
+
SHA_384: "SHA_384",
|
|
358
|
+
SHA_512: "SHA_512",
|
|
359
|
+
};
|
|
360
|
+
const WrappingKeySpec = {
|
|
361
|
+
RSA_OAEP_SHA_256: "RSA_OAEP_SHA_256",
|
|
362
|
+
RSA_OAEP_SHA_512: "RSA_OAEP_SHA_512",
|
|
363
|
+
};
|
|
364
|
+
const Tr34KeyBlockFormat = {
|
|
365
|
+
X9_TR34_2012: "X9_TR34_2012",
|
|
366
|
+
};
|
|
367
|
+
exports.ExportKeyMaterial = void 0;
|
|
368
|
+
(function (ExportKeyMaterial) {
|
|
369
|
+
ExportKeyMaterial.visit = (value, visitor) => {
|
|
370
|
+
if (value.Tr31KeyBlock !== undefined)
|
|
371
|
+
return visitor.Tr31KeyBlock(value.Tr31KeyBlock);
|
|
372
|
+
if (value.Tr34KeyBlock !== undefined)
|
|
373
|
+
return visitor.Tr34KeyBlock(value.Tr34KeyBlock);
|
|
374
|
+
if (value.KeyCryptogram !== undefined)
|
|
375
|
+
return visitor.KeyCryptogram(value.KeyCryptogram);
|
|
376
|
+
if (value.DiffieHellmanTr31KeyBlock !== undefined)
|
|
377
|
+
return visitor.DiffieHellmanTr31KeyBlock(value.DiffieHellmanTr31KeyBlock);
|
|
378
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
379
|
+
};
|
|
380
|
+
})(exports.ExportKeyMaterial || (exports.ExportKeyMaterial = {}));
|
|
381
|
+
const WrappedKeyMaterialFormat = {
|
|
382
|
+
KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM",
|
|
383
|
+
TR31_KEY_BLOCK: "TR31_KEY_BLOCK",
|
|
384
|
+
TR34_KEY_BLOCK: "TR34_KEY_BLOCK",
|
|
385
|
+
};
|
|
386
|
+
const SigningAlgorithmType = {
|
|
387
|
+
SHA224: "SHA224",
|
|
388
|
+
SHA256: "SHA256",
|
|
389
|
+
SHA384: "SHA384",
|
|
390
|
+
SHA512: "SHA512",
|
|
391
|
+
};
|
|
392
|
+
const KeyMaterialType = {
|
|
393
|
+
KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM",
|
|
394
|
+
ROOT_PUBLIC_KEY_CERTIFICATE: "ROOT_PUBLIC_KEY_CERTIFICATE",
|
|
395
|
+
TR31_KEY_BLOCK: "TR31_KEY_BLOCK",
|
|
396
|
+
TR34_KEY_BLOCK: "TR34_KEY_BLOCK",
|
|
397
|
+
TRUSTED_PUBLIC_KEY_CERTIFICATE: "TRUSTED_PUBLIC_KEY_CERTIFICATE",
|
|
398
|
+
};
|
|
399
|
+
exports.ImportKeyMaterial = void 0;
|
|
400
|
+
(function (ImportKeyMaterial) {
|
|
401
|
+
ImportKeyMaterial.visit = (value, visitor) => {
|
|
402
|
+
if (value.RootCertificatePublicKey !== undefined)
|
|
403
|
+
return visitor.RootCertificatePublicKey(value.RootCertificatePublicKey);
|
|
404
|
+
if (value.TrustedCertificatePublicKey !== undefined)
|
|
405
|
+
return visitor.TrustedCertificatePublicKey(value.TrustedCertificatePublicKey);
|
|
406
|
+
if (value.Tr31KeyBlock !== undefined)
|
|
407
|
+
return visitor.Tr31KeyBlock(value.Tr31KeyBlock);
|
|
408
|
+
if (value.Tr34KeyBlock !== undefined)
|
|
409
|
+
return visitor.Tr34KeyBlock(value.Tr34KeyBlock);
|
|
410
|
+
if (value.KeyCryptogram !== undefined)
|
|
411
|
+
return visitor.KeyCryptogram(value.KeyCryptogram);
|
|
412
|
+
if (value.DiffieHellmanTr31KeyBlock !== undefined)
|
|
413
|
+
return visitor.DiffieHellmanTr31KeyBlock(value.DiffieHellmanTr31KeyBlock);
|
|
414
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
415
|
+
};
|
|
416
|
+
})(exports.ImportKeyMaterial || (exports.ImportKeyMaterial = {}));
|
|
417
|
+
const KeyBlockHeadersFilterSensitiveLog = (obj) => ({
|
|
418
|
+
...obj,
|
|
419
|
+
...(obj.OptionalBlocks && { OptionalBlocks: smithyClient.SENSITIVE_STRING }),
|
|
420
|
+
});
|
|
421
|
+
const ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog = (obj) => ({
|
|
422
|
+
...obj,
|
|
423
|
+
...(obj.DerivationData && { DerivationData: obj.DerivationData }),
|
|
424
|
+
...(obj.KeyBlockHeaders && { KeyBlockHeaders: KeyBlockHeadersFilterSensitiveLog(obj.KeyBlockHeaders) }),
|
|
425
|
+
});
|
|
426
|
+
const ExportTr31KeyBlockFilterSensitiveLog = (obj) => ({
|
|
427
|
+
...obj,
|
|
428
|
+
...(obj.KeyBlockHeaders && { KeyBlockHeaders: KeyBlockHeadersFilterSensitiveLog(obj.KeyBlockHeaders) }),
|
|
429
|
+
});
|
|
430
|
+
const ExportTr34KeyBlockFilterSensitiveLog = (obj) => ({
|
|
431
|
+
...obj,
|
|
432
|
+
...(obj.KeyBlockHeaders && { KeyBlockHeaders: KeyBlockHeadersFilterSensitiveLog(obj.KeyBlockHeaders) }),
|
|
433
|
+
});
|
|
434
|
+
const ExportKeyMaterialFilterSensitiveLog = (obj) => {
|
|
435
|
+
if (obj.Tr31KeyBlock !== undefined)
|
|
436
|
+
return { Tr31KeyBlock: ExportTr31KeyBlockFilterSensitiveLog(obj.Tr31KeyBlock) };
|
|
437
|
+
if (obj.Tr34KeyBlock !== undefined)
|
|
438
|
+
return { Tr34KeyBlock: ExportTr34KeyBlockFilterSensitiveLog(obj.Tr34KeyBlock) };
|
|
439
|
+
if (obj.KeyCryptogram !== undefined)
|
|
440
|
+
return { KeyCryptogram: obj.KeyCryptogram };
|
|
441
|
+
if (obj.DiffieHellmanTr31KeyBlock !== undefined)
|
|
442
|
+
return {
|
|
443
|
+
DiffieHellmanTr31KeyBlock: ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog(obj.DiffieHellmanTr31KeyBlock),
|
|
444
|
+
};
|
|
445
|
+
if (obj.$unknown !== undefined)
|
|
446
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
447
|
+
};
|
|
448
|
+
const ExportKeyInputFilterSensitiveLog = (obj) => ({
|
|
449
|
+
...obj,
|
|
450
|
+
...(obj.KeyMaterial && { KeyMaterial: ExportKeyMaterialFilterSensitiveLog(obj.KeyMaterial) }),
|
|
451
|
+
});
|
|
452
|
+
const WrappedKeyFilterSensitiveLog = (obj) => ({
|
|
453
|
+
...obj,
|
|
454
|
+
...(obj.KeyMaterial && { KeyMaterial: smithyClient.SENSITIVE_STRING }),
|
|
455
|
+
});
|
|
456
|
+
const ExportKeyOutputFilterSensitiveLog = (obj) => ({
|
|
457
|
+
...obj,
|
|
458
|
+
...(obj.WrappedKey && { WrappedKey: WrappedKeyFilterSensitiveLog(obj.WrappedKey) }),
|
|
459
|
+
});
|
|
460
|
+
const GetCertificateSigningRequestOutputFilterSensitiveLog = (obj) => ({
|
|
461
|
+
...obj,
|
|
462
|
+
...(obj.CertificateSigningRequest && { CertificateSigningRequest: smithyClient.SENSITIVE_STRING }),
|
|
463
|
+
});
|
|
464
|
+
const ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog = (obj) => ({
|
|
465
|
+
...obj,
|
|
466
|
+
...(obj.DerivationData && { DerivationData: obj.DerivationData }),
|
|
467
|
+
...(obj.WrappedKeyBlock && { WrappedKeyBlock: smithyClient.SENSITIVE_STRING }),
|
|
468
|
+
});
|
|
469
|
+
const ImportKeyCryptogramFilterSensitiveLog = (obj) => ({
|
|
470
|
+
...obj,
|
|
471
|
+
...(obj.WrappedKeyCryptogram && { WrappedKeyCryptogram: smithyClient.SENSITIVE_STRING }),
|
|
472
|
+
});
|
|
473
|
+
const ImportTr31KeyBlockFilterSensitiveLog = (obj) => ({
|
|
474
|
+
...obj,
|
|
475
|
+
...(obj.WrappedKeyBlock && { WrappedKeyBlock: smithyClient.SENSITIVE_STRING }),
|
|
476
|
+
});
|
|
477
|
+
const ImportTr34KeyBlockFilterSensitiveLog = (obj) => ({
|
|
478
|
+
...obj,
|
|
479
|
+
...(obj.WrappedKeyBlock && { WrappedKeyBlock: smithyClient.SENSITIVE_STRING }),
|
|
480
|
+
});
|
|
481
|
+
const ImportKeyMaterialFilterSensitiveLog = (obj) => {
|
|
482
|
+
if (obj.RootCertificatePublicKey !== undefined)
|
|
483
|
+
return { RootCertificatePublicKey: obj.RootCertificatePublicKey };
|
|
484
|
+
if (obj.TrustedCertificatePublicKey !== undefined)
|
|
485
|
+
return { TrustedCertificatePublicKey: obj.TrustedCertificatePublicKey };
|
|
486
|
+
if (obj.Tr31KeyBlock !== undefined)
|
|
487
|
+
return { Tr31KeyBlock: ImportTr31KeyBlockFilterSensitiveLog(obj.Tr31KeyBlock) };
|
|
488
|
+
if (obj.Tr34KeyBlock !== undefined)
|
|
489
|
+
return { Tr34KeyBlock: ImportTr34KeyBlockFilterSensitiveLog(obj.Tr34KeyBlock) };
|
|
490
|
+
if (obj.KeyCryptogram !== undefined)
|
|
491
|
+
return { KeyCryptogram: ImportKeyCryptogramFilterSensitiveLog(obj.KeyCryptogram) };
|
|
492
|
+
if (obj.DiffieHellmanTr31KeyBlock !== undefined)
|
|
493
|
+
return {
|
|
494
|
+
DiffieHellmanTr31KeyBlock: ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog(obj.DiffieHellmanTr31KeyBlock),
|
|
495
|
+
};
|
|
496
|
+
if (obj.$unknown !== undefined)
|
|
497
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
498
|
+
};
|
|
499
|
+
const ImportKeyInputFilterSensitiveLog = (obj) => ({
|
|
500
|
+
...obj,
|
|
501
|
+
...(obj.KeyMaterial && { KeyMaterial: ImportKeyMaterialFilterSensitiveLog(obj.KeyMaterial) }),
|
|
502
|
+
});
|
|
275
503
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
};
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
};
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
};
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
504
|
+
const se_AddKeyReplicationRegionsCommand = async (input, context) => {
|
|
505
|
+
const headers = sharedHeaders("AddKeyReplicationRegions");
|
|
506
|
+
let body;
|
|
507
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
508
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
509
|
+
};
|
|
510
|
+
const se_CreateAliasCommand = async (input, context) => {
|
|
511
|
+
const headers = sharedHeaders("CreateAlias");
|
|
512
|
+
let body;
|
|
513
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
514
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
515
|
+
};
|
|
516
|
+
const se_CreateKeyCommand = async (input, context) => {
|
|
517
|
+
const headers = sharedHeaders("CreateKey");
|
|
518
|
+
let body;
|
|
519
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
520
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
521
|
+
};
|
|
522
|
+
const se_DeleteAliasCommand = async (input, context) => {
|
|
523
|
+
const headers = sharedHeaders("DeleteAlias");
|
|
524
|
+
let body;
|
|
525
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
526
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
527
|
+
};
|
|
528
|
+
const se_DeleteKeyCommand = async (input, context) => {
|
|
529
|
+
const headers = sharedHeaders("DeleteKey");
|
|
530
|
+
let body;
|
|
531
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
532
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
533
|
+
};
|
|
534
|
+
const se_DisableDefaultKeyReplicationRegionsCommand = async (input, context) => {
|
|
535
|
+
const headers = sharedHeaders("DisableDefaultKeyReplicationRegions");
|
|
536
|
+
let body;
|
|
537
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
538
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
539
|
+
};
|
|
540
|
+
const se_EnableDefaultKeyReplicationRegionsCommand = async (input, context) => {
|
|
541
|
+
const headers = sharedHeaders("EnableDefaultKeyReplicationRegions");
|
|
542
|
+
let body;
|
|
543
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
544
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
545
|
+
};
|
|
546
|
+
const se_ExportKeyCommand = async (input, context) => {
|
|
547
|
+
const headers = sharedHeaders("ExportKey");
|
|
548
|
+
let body;
|
|
549
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
550
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
551
|
+
};
|
|
552
|
+
const se_GetAliasCommand = async (input, context) => {
|
|
553
|
+
const headers = sharedHeaders("GetAlias");
|
|
554
|
+
let body;
|
|
555
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
556
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
557
|
+
};
|
|
558
|
+
const se_GetCertificateSigningRequestCommand = async (input, context) => {
|
|
559
|
+
const headers = sharedHeaders("GetCertificateSigningRequest");
|
|
560
|
+
let body;
|
|
561
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
562
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
563
|
+
};
|
|
564
|
+
const se_GetDefaultKeyReplicationRegionsCommand = async (input, context) => {
|
|
565
|
+
const headers = sharedHeaders("GetDefaultKeyReplicationRegions");
|
|
566
|
+
let body;
|
|
567
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
568
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
569
|
+
};
|
|
570
|
+
const se_GetKeyCommand = async (input, context) => {
|
|
571
|
+
const headers = sharedHeaders("GetKey");
|
|
572
|
+
let body;
|
|
573
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
574
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
575
|
+
};
|
|
576
|
+
const se_GetParametersForExportCommand = async (input, context) => {
|
|
577
|
+
const headers = sharedHeaders("GetParametersForExport");
|
|
578
|
+
let body;
|
|
579
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
580
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
581
|
+
};
|
|
582
|
+
const se_GetParametersForImportCommand = async (input, context) => {
|
|
583
|
+
const headers = sharedHeaders("GetParametersForImport");
|
|
584
|
+
let body;
|
|
585
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
586
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
587
|
+
};
|
|
588
|
+
const se_GetPublicKeyCertificateCommand = async (input, context) => {
|
|
589
|
+
const headers = sharedHeaders("GetPublicKeyCertificate");
|
|
590
|
+
let body;
|
|
591
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
592
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
593
|
+
};
|
|
594
|
+
const se_ImportKeyCommand = async (input, context) => {
|
|
595
|
+
const headers = sharedHeaders("ImportKey");
|
|
596
|
+
let body;
|
|
597
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
598
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
599
|
+
};
|
|
600
|
+
const se_ListAliasesCommand = async (input, context) => {
|
|
601
|
+
const headers = sharedHeaders("ListAliases");
|
|
602
|
+
let body;
|
|
603
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
604
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
605
|
+
};
|
|
606
|
+
const se_ListKeysCommand = async (input, context) => {
|
|
607
|
+
const headers = sharedHeaders("ListKeys");
|
|
608
|
+
let body;
|
|
609
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
610
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
611
|
+
};
|
|
612
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
613
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
614
|
+
let body;
|
|
615
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
616
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
617
|
+
};
|
|
618
|
+
const se_RemoveKeyReplicationRegionsCommand = async (input, context) => {
|
|
619
|
+
const headers = sharedHeaders("RemoveKeyReplicationRegions");
|
|
620
|
+
let body;
|
|
621
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
622
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
623
|
+
};
|
|
624
|
+
const se_RestoreKeyCommand = async (input, context) => {
|
|
625
|
+
const headers = sharedHeaders("RestoreKey");
|
|
626
|
+
let body;
|
|
627
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
628
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
629
|
+
};
|
|
630
|
+
const se_StartKeyUsageCommand = async (input, context) => {
|
|
631
|
+
const headers = sharedHeaders("StartKeyUsage");
|
|
632
|
+
let body;
|
|
633
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
634
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
635
|
+
};
|
|
636
|
+
const se_StopKeyUsageCommand = async (input, context) => {
|
|
637
|
+
const headers = sharedHeaders("StopKeyUsage");
|
|
638
|
+
let body;
|
|
639
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
640
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
641
|
+
};
|
|
642
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
643
|
+
const headers = sharedHeaders("TagResource");
|
|
644
|
+
let body;
|
|
645
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
646
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
647
|
+
};
|
|
648
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
649
|
+
const headers = sharedHeaders("UntagResource");
|
|
650
|
+
let body;
|
|
651
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
652
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
653
|
+
};
|
|
654
|
+
const se_UpdateAliasCommand = async (input, context) => {
|
|
655
|
+
const headers = sharedHeaders("UpdateAlias");
|
|
656
|
+
let body;
|
|
657
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
658
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
659
|
+
};
|
|
660
|
+
const de_AddKeyReplicationRegionsCommand = async (output, context) => {
|
|
661
|
+
if (output.statusCode >= 300) {
|
|
662
|
+
return de_CommandError(output, context);
|
|
663
|
+
}
|
|
664
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
665
|
+
let contents = {};
|
|
666
|
+
contents = de_AddKeyReplicationRegionsOutput(data);
|
|
667
|
+
const response = {
|
|
668
|
+
$metadata: deserializeMetadata(output),
|
|
669
|
+
...contents,
|
|
670
|
+
};
|
|
671
|
+
return response;
|
|
672
|
+
};
|
|
673
|
+
const de_CreateAliasCommand = async (output, context) => {
|
|
674
|
+
if (output.statusCode >= 300) {
|
|
675
|
+
return de_CommandError(output, context);
|
|
676
|
+
}
|
|
677
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
678
|
+
let contents = {};
|
|
679
|
+
contents = smithyClient._json(data);
|
|
680
|
+
const response = {
|
|
681
|
+
$metadata: deserializeMetadata(output),
|
|
682
|
+
...contents,
|
|
683
|
+
};
|
|
684
|
+
return response;
|
|
685
|
+
};
|
|
686
|
+
const de_CreateKeyCommand = async (output, context) => {
|
|
687
|
+
if (output.statusCode >= 300) {
|
|
688
|
+
return de_CommandError(output, context);
|
|
689
|
+
}
|
|
690
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
691
|
+
let contents = {};
|
|
692
|
+
contents = de_CreateKeyOutput(data);
|
|
693
|
+
const response = {
|
|
694
|
+
$metadata: deserializeMetadata(output),
|
|
695
|
+
...contents,
|
|
696
|
+
};
|
|
697
|
+
return response;
|
|
698
|
+
};
|
|
699
|
+
const de_DeleteAliasCommand = async (output, context) => {
|
|
700
|
+
if (output.statusCode >= 300) {
|
|
701
|
+
return de_CommandError(output, context);
|
|
702
|
+
}
|
|
703
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
704
|
+
let contents = {};
|
|
705
|
+
contents = smithyClient._json(data);
|
|
706
|
+
const response = {
|
|
707
|
+
$metadata: deserializeMetadata(output),
|
|
708
|
+
...contents,
|
|
709
|
+
};
|
|
710
|
+
return response;
|
|
711
|
+
};
|
|
712
|
+
const de_DeleteKeyCommand = async (output, context) => {
|
|
713
|
+
if (output.statusCode >= 300) {
|
|
714
|
+
return de_CommandError(output, context);
|
|
715
|
+
}
|
|
716
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
717
|
+
let contents = {};
|
|
718
|
+
contents = de_DeleteKeyOutput(data);
|
|
719
|
+
const response = {
|
|
720
|
+
$metadata: deserializeMetadata(output),
|
|
721
|
+
...contents,
|
|
722
|
+
};
|
|
723
|
+
return response;
|
|
724
|
+
};
|
|
725
|
+
const de_DisableDefaultKeyReplicationRegionsCommand = async (output, context) => {
|
|
726
|
+
if (output.statusCode >= 300) {
|
|
727
|
+
return de_CommandError(output, context);
|
|
728
|
+
}
|
|
729
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
730
|
+
let contents = {};
|
|
731
|
+
contents = smithyClient._json(data);
|
|
732
|
+
const response = {
|
|
733
|
+
$metadata: deserializeMetadata(output),
|
|
734
|
+
...contents,
|
|
735
|
+
};
|
|
736
|
+
return response;
|
|
737
|
+
};
|
|
738
|
+
const de_EnableDefaultKeyReplicationRegionsCommand = async (output, context) => {
|
|
739
|
+
if (output.statusCode >= 300) {
|
|
740
|
+
return de_CommandError(output, context);
|
|
741
|
+
}
|
|
742
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
743
|
+
let contents = {};
|
|
744
|
+
contents = smithyClient._json(data);
|
|
745
|
+
const response = {
|
|
746
|
+
$metadata: deserializeMetadata(output),
|
|
747
|
+
...contents,
|
|
748
|
+
};
|
|
749
|
+
return response;
|
|
750
|
+
};
|
|
751
|
+
const de_ExportKeyCommand = async (output, context) => {
|
|
752
|
+
if (output.statusCode >= 300) {
|
|
753
|
+
return de_CommandError(output, context);
|
|
754
|
+
}
|
|
755
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
756
|
+
let contents = {};
|
|
757
|
+
contents = smithyClient._json(data);
|
|
758
|
+
const response = {
|
|
759
|
+
$metadata: deserializeMetadata(output),
|
|
760
|
+
...contents,
|
|
761
|
+
};
|
|
762
|
+
return response;
|
|
763
|
+
};
|
|
764
|
+
const de_GetAliasCommand = async (output, context) => {
|
|
765
|
+
if (output.statusCode >= 300) {
|
|
766
|
+
return de_CommandError(output, context);
|
|
767
|
+
}
|
|
768
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
769
|
+
let contents = {};
|
|
770
|
+
contents = smithyClient._json(data);
|
|
771
|
+
const response = {
|
|
772
|
+
$metadata: deserializeMetadata(output),
|
|
773
|
+
...contents,
|
|
774
|
+
};
|
|
775
|
+
return response;
|
|
776
|
+
};
|
|
777
|
+
const de_GetCertificateSigningRequestCommand = async (output, context) => {
|
|
778
|
+
if (output.statusCode >= 300) {
|
|
779
|
+
return de_CommandError(output, context);
|
|
780
|
+
}
|
|
781
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
782
|
+
let contents = {};
|
|
783
|
+
contents = smithyClient._json(data);
|
|
784
|
+
const response = {
|
|
785
|
+
$metadata: deserializeMetadata(output),
|
|
786
|
+
...contents,
|
|
787
|
+
};
|
|
788
|
+
return response;
|
|
789
|
+
};
|
|
790
|
+
const de_GetDefaultKeyReplicationRegionsCommand = async (output, context) => {
|
|
791
|
+
if (output.statusCode >= 300) {
|
|
792
|
+
return de_CommandError(output, context);
|
|
793
|
+
}
|
|
794
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
795
|
+
let contents = {};
|
|
796
|
+
contents = smithyClient._json(data);
|
|
797
|
+
const response = {
|
|
798
|
+
$metadata: deserializeMetadata(output),
|
|
799
|
+
...contents,
|
|
800
|
+
};
|
|
801
|
+
return response;
|
|
802
|
+
};
|
|
803
|
+
const de_GetKeyCommand = async (output, context) => {
|
|
804
|
+
if (output.statusCode >= 300) {
|
|
805
|
+
return de_CommandError(output, context);
|
|
806
|
+
}
|
|
807
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
808
|
+
let contents = {};
|
|
809
|
+
contents = de_GetKeyOutput(data);
|
|
810
|
+
const response = {
|
|
811
|
+
$metadata: deserializeMetadata(output),
|
|
812
|
+
...contents,
|
|
813
|
+
};
|
|
814
|
+
return response;
|
|
815
|
+
};
|
|
816
|
+
const de_GetParametersForExportCommand = async (output, context) => {
|
|
817
|
+
if (output.statusCode >= 300) {
|
|
818
|
+
return de_CommandError(output, context);
|
|
819
|
+
}
|
|
820
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
821
|
+
let contents = {};
|
|
822
|
+
contents = de_GetParametersForExportOutput(data);
|
|
823
|
+
const response = {
|
|
824
|
+
$metadata: deserializeMetadata(output),
|
|
825
|
+
...contents,
|
|
826
|
+
};
|
|
827
|
+
return response;
|
|
828
|
+
};
|
|
829
|
+
const de_GetParametersForImportCommand = async (output, context) => {
|
|
830
|
+
if (output.statusCode >= 300) {
|
|
831
|
+
return de_CommandError(output, context);
|
|
832
|
+
}
|
|
833
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
834
|
+
let contents = {};
|
|
835
|
+
contents = de_GetParametersForImportOutput(data);
|
|
836
|
+
const response = {
|
|
837
|
+
$metadata: deserializeMetadata(output),
|
|
838
|
+
...contents,
|
|
839
|
+
};
|
|
840
|
+
return response;
|
|
841
|
+
};
|
|
842
|
+
const de_GetPublicKeyCertificateCommand = async (output, context) => {
|
|
843
|
+
if (output.statusCode >= 300) {
|
|
844
|
+
return de_CommandError(output, context);
|
|
845
|
+
}
|
|
846
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
847
|
+
let contents = {};
|
|
848
|
+
contents = smithyClient._json(data);
|
|
849
|
+
const response = {
|
|
850
|
+
$metadata: deserializeMetadata(output),
|
|
851
|
+
...contents,
|
|
852
|
+
};
|
|
853
|
+
return response;
|
|
854
|
+
};
|
|
855
|
+
const de_ImportKeyCommand = async (output, context) => {
|
|
856
|
+
if (output.statusCode >= 300) {
|
|
857
|
+
return de_CommandError(output, context);
|
|
858
|
+
}
|
|
859
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
860
|
+
let contents = {};
|
|
861
|
+
contents = de_ImportKeyOutput(data);
|
|
862
|
+
const response = {
|
|
863
|
+
$metadata: deserializeMetadata(output),
|
|
864
|
+
...contents,
|
|
865
|
+
};
|
|
866
|
+
return response;
|
|
867
|
+
};
|
|
868
|
+
const de_ListAliasesCommand = async (output, context) => {
|
|
869
|
+
if (output.statusCode >= 300) {
|
|
870
|
+
return de_CommandError(output, context);
|
|
871
|
+
}
|
|
872
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
873
|
+
let contents = {};
|
|
874
|
+
contents = smithyClient._json(data);
|
|
875
|
+
const response = {
|
|
876
|
+
$metadata: deserializeMetadata(output),
|
|
877
|
+
...contents,
|
|
878
|
+
};
|
|
879
|
+
return response;
|
|
880
|
+
};
|
|
881
|
+
const de_ListKeysCommand = async (output, context) => {
|
|
882
|
+
if (output.statusCode >= 300) {
|
|
883
|
+
return de_CommandError(output, context);
|
|
884
|
+
}
|
|
885
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
886
|
+
let contents = {};
|
|
887
|
+
contents = smithyClient._json(data);
|
|
888
|
+
const response = {
|
|
889
|
+
$metadata: deserializeMetadata(output),
|
|
890
|
+
...contents,
|
|
891
|
+
};
|
|
892
|
+
return response;
|
|
893
|
+
};
|
|
894
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
895
|
+
if (output.statusCode >= 300) {
|
|
896
|
+
return de_CommandError(output, context);
|
|
897
|
+
}
|
|
898
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
899
|
+
let contents = {};
|
|
900
|
+
contents = smithyClient._json(data);
|
|
901
|
+
const response = {
|
|
902
|
+
$metadata: deserializeMetadata(output),
|
|
903
|
+
...contents,
|
|
904
|
+
};
|
|
905
|
+
return response;
|
|
906
|
+
};
|
|
907
|
+
const de_RemoveKeyReplicationRegionsCommand = async (output, context) => {
|
|
908
|
+
if (output.statusCode >= 300) {
|
|
909
|
+
return de_CommandError(output, context);
|
|
910
|
+
}
|
|
911
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
912
|
+
let contents = {};
|
|
913
|
+
contents = de_RemoveKeyReplicationRegionsOutput(data);
|
|
914
|
+
const response = {
|
|
915
|
+
$metadata: deserializeMetadata(output),
|
|
916
|
+
...contents,
|
|
917
|
+
};
|
|
918
|
+
return response;
|
|
919
|
+
};
|
|
920
|
+
const de_RestoreKeyCommand = async (output, context) => {
|
|
921
|
+
if (output.statusCode >= 300) {
|
|
922
|
+
return de_CommandError(output, context);
|
|
923
|
+
}
|
|
924
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
925
|
+
let contents = {};
|
|
926
|
+
contents = de_RestoreKeyOutput(data);
|
|
927
|
+
const response = {
|
|
928
|
+
$metadata: deserializeMetadata(output),
|
|
929
|
+
...contents,
|
|
930
|
+
};
|
|
931
|
+
return response;
|
|
932
|
+
};
|
|
933
|
+
const de_StartKeyUsageCommand = async (output, context) => {
|
|
934
|
+
if (output.statusCode >= 300) {
|
|
935
|
+
return de_CommandError(output, context);
|
|
936
|
+
}
|
|
937
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
938
|
+
let contents = {};
|
|
939
|
+
contents = de_StartKeyUsageOutput(data);
|
|
940
|
+
const response = {
|
|
941
|
+
$metadata: deserializeMetadata(output),
|
|
942
|
+
...contents,
|
|
943
|
+
};
|
|
944
|
+
return response;
|
|
945
|
+
};
|
|
946
|
+
const de_StopKeyUsageCommand = async (output, context) => {
|
|
947
|
+
if (output.statusCode >= 300) {
|
|
948
|
+
return de_CommandError(output, context);
|
|
949
|
+
}
|
|
950
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
951
|
+
let contents = {};
|
|
952
|
+
contents = de_StopKeyUsageOutput(data);
|
|
953
|
+
const response = {
|
|
954
|
+
$metadata: deserializeMetadata(output),
|
|
955
|
+
...contents,
|
|
956
|
+
};
|
|
957
|
+
return response;
|
|
958
|
+
};
|
|
959
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
960
|
+
if (output.statusCode >= 300) {
|
|
961
|
+
return de_CommandError(output, context);
|
|
962
|
+
}
|
|
963
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
964
|
+
let contents = {};
|
|
965
|
+
contents = smithyClient._json(data);
|
|
966
|
+
const response = {
|
|
967
|
+
$metadata: deserializeMetadata(output),
|
|
968
|
+
...contents,
|
|
969
|
+
};
|
|
970
|
+
return response;
|
|
971
|
+
};
|
|
972
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
973
|
+
if (output.statusCode >= 300) {
|
|
974
|
+
return de_CommandError(output, context);
|
|
975
|
+
}
|
|
976
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
977
|
+
let contents = {};
|
|
978
|
+
contents = smithyClient._json(data);
|
|
979
|
+
const response = {
|
|
980
|
+
$metadata: deserializeMetadata(output),
|
|
981
|
+
...contents,
|
|
982
|
+
};
|
|
983
|
+
return response;
|
|
984
|
+
};
|
|
985
|
+
const de_UpdateAliasCommand = async (output, context) => {
|
|
986
|
+
if (output.statusCode >= 300) {
|
|
987
|
+
return de_CommandError(output, context);
|
|
988
|
+
}
|
|
989
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
990
|
+
let contents = {};
|
|
991
|
+
contents = smithyClient._json(data);
|
|
992
|
+
const response = {
|
|
993
|
+
$metadata: deserializeMetadata(output),
|
|
994
|
+
...contents,
|
|
995
|
+
};
|
|
996
|
+
return response;
|
|
997
|
+
};
|
|
998
|
+
const de_CommandError = async (output, context) => {
|
|
999
|
+
const parsedOutput = {
|
|
1000
|
+
...output,
|
|
1001
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
1002
|
+
};
|
|
1003
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1004
|
+
switch (errorCode) {
|
|
1005
|
+
case "AccessDeniedException":
|
|
1006
|
+
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
1007
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
1008
|
+
case "ConflictException":
|
|
1009
|
+
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
1010
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
1011
|
+
case "InternalServerException":
|
|
1012
|
+
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
1013
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
1014
|
+
case "ResourceNotFoundException":
|
|
1015
|
+
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
1016
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
1017
|
+
case "ServiceQuotaExceededException":
|
|
1018
|
+
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
1019
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
1020
|
+
case "ThrottlingException":
|
|
1021
|
+
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
1022
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
1023
|
+
case "ValidationException":
|
|
1024
|
+
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
1025
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
1026
|
+
case "ServiceUnavailableException":
|
|
1027
|
+
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
1028
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput);
|
|
1029
|
+
default:
|
|
1030
|
+
const parsedBody = parsedOutput.body;
|
|
1031
|
+
return throwDefaultError({
|
|
1032
|
+
output,
|
|
1033
|
+
parsedBody,
|
|
1034
|
+
errorCode,
|
|
1035
|
+
});
|
|
1036
|
+
}
|
|
1037
|
+
};
|
|
1038
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1039
|
+
const body = parsedOutput.body;
|
|
1040
|
+
const deserialized = smithyClient._json(body);
|
|
1041
|
+
const exception = new AccessDeniedException({
|
|
1042
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1043
|
+
...deserialized,
|
|
491
1044
|
});
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
name = "ValidationException";
|
|
501
|
-
$fault = "client";
|
|
502
|
-
Message;
|
|
503
|
-
/**
|
|
504
|
-
* @internal
|
|
505
|
-
*/
|
|
506
|
-
constructor(opts) {
|
|
507
|
-
super({
|
|
508
|
-
name: "ValidationException",
|
|
509
|
-
$fault: "client",
|
|
510
|
-
...opts
|
|
1045
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1046
|
+
};
|
|
1047
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1048
|
+
const body = parsedOutput.body;
|
|
1049
|
+
const deserialized = smithyClient._json(body);
|
|
1050
|
+
const exception = new ConflictException({
|
|
1051
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1052
|
+
...deserialized,
|
|
511
1053
|
});
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
name = "ServiceUnavailableException";
|
|
521
|
-
$fault = "server";
|
|
522
|
-
Message;
|
|
523
|
-
/**
|
|
524
|
-
* @internal
|
|
525
|
-
*/
|
|
526
|
-
constructor(opts) {
|
|
527
|
-
super({
|
|
528
|
-
name: "ServiceUnavailableException",
|
|
529
|
-
$fault: "server",
|
|
530
|
-
...opts
|
|
1054
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1055
|
+
};
|
|
1056
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1057
|
+
const body = parsedOutput.body;
|
|
1058
|
+
const deserialized = smithyClient._json(body);
|
|
1059
|
+
const exception = new InternalServerException({
|
|
1060
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1061
|
+
...deserialized,
|
|
531
1062
|
});
|
|
532
|
-
|
|
533
|
-
this.Message = opts.Message;
|
|
534
|
-
}
|
|
535
|
-
};
|
|
536
|
-
var DiffieHellmanDerivationData;
|
|
537
|
-
((DiffieHellmanDerivationData3) => {
|
|
538
|
-
DiffieHellmanDerivationData3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
539
|
-
if (value.SharedInformation !== void 0) return visitor.SharedInformation(value.SharedInformation);
|
|
540
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
541
|
-
}, "visit");
|
|
542
|
-
})(DiffieHellmanDerivationData || (DiffieHellmanDerivationData = {}));
|
|
543
|
-
var SymmetricKeyAlgorithm = {
|
|
544
|
-
AES_128: "AES_128",
|
|
545
|
-
AES_192: "AES_192",
|
|
546
|
-
AES_256: "AES_256",
|
|
547
|
-
HMAC_SHA224: "HMAC_SHA224",
|
|
548
|
-
HMAC_SHA256: "HMAC_SHA256",
|
|
549
|
-
HMAC_SHA384: "HMAC_SHA384",
|
|
550
|
-
HMAC_SHA512: "HMAC_SHA512",
|
|
551
|
-
TDES_2KEY: "TDES_2KEY",
|
|
552
|
-
TDES_3KEY: "TDES_3KEY"
|
|
553
|
-
};
|
|
554
|
-
var KeyExportability = {
|
|
555
|
-
EXPORTABLE: "EXPORTABLE",
|
|
556
|
-
NON_EXPORTABLE: "NON_EXPORTABLE",
|
|
557
|
-
SENSITIVE: "SENSITIVE"
|
|
558
|
-
};
|
|
559
|
-
var KeyDerivationFunction = {
|
|
560
|
-
ANSI_X963: "ANSI_X963",
|
|
561
|
-
NIST_SP800: "NIST_SP800"
|
|
562
|
-
};
|
|
563
|
-
var KeyDerivationHashAlgorithm = {
|
|
564
|
-
SHA_256: "SHA_256",
|
|
565
|
-
SHA_384: "SHA_384",
|
|
566
|
-
SHA_512: "SHA_512"
|
|
567
|
-
};
|
|
568
|
-
var WrappingKeySpec = {
|
|
569
|
-
RSA_OAEP_SHA_256: "RSA_OAEP_SHA_256",
|
|
570
|
-
RSA_OAEP_SHA_512: "RSA_OAEP_SHA_512"
|
|
571
|
-
};
|
|
572
|
-
var Tr34KeyBlockFormat = {
|
|
573
|
-
X9_TR34_2012: "X9_TR34_2012"
|
|
574
|
-
};
|
|
575
|
-
var ExportKeyMaterial;
|
|
576
|
-
((ExportKeyMaterial3) => {
|
|
577
|
-
ExportKeyMaterial3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
578
|
-
if (value.Tr31KeyBlock !== void 0) return visitor.Tr31KeyBlock(value.Tr31KeyBlock);
|
|
579
|
-
if (value.Tr34KeyBlock !== void 0) return visitor.Tr34KeyBlock(value.Tr34KeyBlock);
|
|
580
|
-
if (value.KeyCryptogram !== void 0) return visitor.KeyCryptogram(value.KeyCryptogram);
|
|
581
|
-
if (value.DiffieHellmanTr31KeyBlock !== void 0)
|
|
582
|
-
return visitor.DiffieHellmanTr31KeyBlock(value.DiffieHellmanTr31KeyBlock);
|
|
583
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
584
|
-
}, "visit");
|
|
585
|
-
})(ExportKeyMaterial || (ExportKeyMaterial = {}));
|
|
586
|
-
var WrappedKeyMaterialFormat = {
|
|
587
|
-
KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM",
|
|
588
|
-
TR31_KEY_BLOCK: "TR31_KEY_BLOCK",
|
|
589
|
-
TR34_KEY_BLOCK: "TR34_KEY_BLOCK"
|
|
590
|
-
};
|
|
591
|
-
var SigningAlgorithmType = {
|
|
592
|
-
SHA224: "SHA224",
|
|
593
|
-
SHA256: "SHA256",
|
|
594
|
-
SHA384: "SHA384",
|
|
595
|
-
SHA512: "SHA512"
|
|
596
|
-
};
|
|
597
|
-
var KeyMaterialType = {
|
|
598
|
-
KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM",
|
|
599
|
-
ROOT_PUBLIC_KEY_CERTIFICATE: "ROOT_PUBLIC_KEY_CERTIFICATE",
|
|
600
|
-
TR31_KEY_BLOCK: "TR31_KEY_BLOCK",
|
|
601
|
-
TR34_KEY_BLOCK: "TR34_KEY_BLOCK",
|
|
602
|
-
TRUSTED_PUBLIC_KEY_CERTIFICATE: "TRUSTED_PUBLIC_KEY_CERTIFICATE"
|
|
603
|
-
};
|
|
604
|
-
var ImportKeyMaterial;
|
|
605
|
-
((ImportKeyMaterial3) => {
|
|
606
|
-
ImportKeyMaterial3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
607
|
-
if (value.RootCertificatePublicKey !== void 0)
|
|
608
|
-
return visitor.RootCertificatePublicKey(value.RootCertificatePublicKey);
|
|
609
|
-
if (value.TrustedCertificatePublicKey !== void 0)
|
|
610
|
-
return visitor.TrustedCertificatePublicKey(value.TrustedCertificatePublicKey);
|
|
611
|
-
if (value.Tr31KeyBlock !== void 0) return visitor.Tr31KeyBlock(value.Tr31KeyBlock);
|
|
612
|
-
if (value.Tr34KeyBlock !== void 0) return visitor.Tr34KeyBlock(value.Tr34KeyBlock);
|
|
613
|
-
if (value.KeyCryptogram !== void 0) return visitor.KeyCryptogram(value.KeyCryptogram);
|
|
614
|
-
if (value.DiffieHellmanTr31KeyBlock !== void 0)
|
|
615
|
-
return visitor.DiffieHellmanTr31KeyBlock(value.DiffieHellmanTr31KeyBlock);
|
|
616
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
617
|
-
}, "visit");
|
|
618
|
-
})(ImportKeyMaterial || (ImportKeyMaterial = {}));
|
|
619
|
-
var KeyBlockHeadersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
620
|
-
...obj,
|
|
621
|
-
...obj.OptionalBlocks && { OptionalBlocks: import_smithy_client.SENSITIVE_STRING }
|
|
622
|
-
}), "KeyBlockHeadersFilterSensitiveLog");
|
|
623
|
-
var ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
624
|
-
...obj,
|
|
625
|
-
...obj.DerivationData && { DerivationData: obj.DerivationData },
|
|
626
|
-
...obj.KeyBlockHeaders && { KeyBlockHeaders: KeyBlockHeadersFilterSensitiveLog(obj.KeyBlockHeaders) }
|
|
627
|
-
}), "ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog");
|
|
628
|
-
var ExportTr31KeyBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
629
|
-
...obj,
|
|
630
|
-
...obj.KeyBlockHeaders && { KeyBlockHeaders: KeyBlockHeadersFilterSensitiveLog(obj.KeyBlockHeaders) }
|
|
631
|
-
}), "ExportTr31KeyBlockFilterSensitiveLog");
|
|
632
|
-
var ExportTr34KeyBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
633
|
-
...obj,
|
|
634
|
-
...obj.KeyBlockHeaders && { KeyBlockHeaders: KeyBlockHeadersFilterSensitiveLog(obj.KeyBlockHeaders) }
|
|
635
|
-
}), "ExportTr34KeyBlockFilterSensitiveLog");
|
|
636
|
-
var ExportKeyMaterialFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
637
|
-
if (obj.Tr31KeyBlock !== void 0) return { Tr31KeyBlock: ExportTr31KeyBlockFilterSensitiveLog(obj.Tr31KeyBlock) };
|
|
638
|
-
if (obj.Tr34KeyBlock !== void 0) return { Tr34KeyBlock: ExportTr34KeyBlockFilterSensitiveLog(obj.Tr34KeyBlock) };
|
|
639
|
-
if (obj.KeyCryptogram !== void 0) return { KeyCryptogram: obj.KeyCryptogram };
|
|
640
|
-
if (obj.DiffieHellmanTr31KeyBlock !== void 0)
|
|
641
|
-
return {
|
|
642
|
-
DiffieHellmanTr31KeyBlock: ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog(obj.DiffieHellmanTr31KeyBlock)
|
|
643
|
-
};
|
|
644
|
-
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
645
|
-
}, "ExportKeyMaterialFilterSensitiveLog");
|
|
646
|
-
var ExportKeyInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
647
|
-
...obj,
|
|
648
|
-
...obj.KeyMaterial && { KeyMaterial: ExportKeyMaterialFilterSensitiveLog(obj.KeyMaterial) }
|
|
649
|
-
}), "ExportKeyInputFilterSensitiveLog");
|
|
650
|
-
var WrappedKeyFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
651
|
-
...obj,
|
|
652
|
-
...obj.KeyMaterial && { KeyMaterial: import_smithy_client.SENSITIVE_STRING }
|
|
653
|
-
}), "WrappedKeyFilterSensitiveLog");
|
|
654
|
-
var ExportKeyOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
655
|
-
...obj,
|
|
656
|
-
...obj.WrappedKey && { WrappedKey: WrappedKeyFilterSensitiveLog(obj.WrappedKey) }
|
|
657
|
-
}), "ExportKeyOutputFilterSensitiveLog");
|
|
658
|
-
var GetCertificateSigningRequestOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
659
|
-
...obj,
|
|
660
|
-
...obj.CertificateSigningRequest && { CertificateSigningRequest: import_smithy_client.SENSITIVE_STRING }
|
|
661
|
-
}), "GetCertificateSigningRequestOutputFilterSensitiveLog");
|
|
662
|
-
var ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
663
|
-
...obj,
|
|
664
|
-
...obj.DerivationData && { DerivationData: obj.DerivationData },
|
|
665
|
-
...obj.WrappedKeyBlock && { WrappedKeyBlock: import_smithy_client.SENSITIVE_STRING }
|
|
666
|
-
}), "ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog");
|
|
667
|
-
var ImportKeyCryptogramFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
668
|
-
...obj,
|
|
669
|
-
...obj.WrappedKeyCryptogram && { WrappedKeyCryptogram: import_smithy_client.SENSITIVE_STRING }
|
|
670
|
-
}), "ImportKeyCryptogramFilterSensitiveLog");
|
|
671
|
-
var ImportTr31KeyBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
672
|
-
...obj,
|
|
673
|
-
...obj.WrappedKeyBlock && { WrappedKeyBlock: import_smithy_client.SENSITIVE_STRING }
|
|
674
|
-
}), "ImportTr31KeyBlockFilterSensitiveLog");
|
|
675
|
-
var ImportTr34KeyBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
676
|
-
...obj,
|
|
677
|
-
...obj.WrappedKeyBlock && { WrappedKeyBlock: import_smithy_client.SENSITIVE_STRING }
|
|
678
|
-
}), "ImportTr34KeyBlockFilterSensitiveLog");
|
|
679
|
-
var ImportKeyMaterialFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
680
|
-
if (obj.RootCertificatePublicKey !== void 0) return { RootCertificatePublicKey: obj.RootCertificatePublicKey };
|
|
681
|
-
if (obj.TrustedCertificatePublicKey !== void 0)
|
|
682
|
-
return { TrustedCertificatePublicKey: obj.TrustedCertificatePublicKey };
|
|
683
|
-
if (obj.Tr31KeyBlock !== void 0) return { Tr31KeyBlock: ImportTr31KeyBlockFilterSensitiveLog(obj.Tr31KeyBlock) };
|
|
684
|
-
if (obj.Tr34KeyBlock !== void 0) return { Tr34KeyBlock: ImportTr34KeyBlockFilterSensitiveLog(obj.Tr34KeyBlock) };
|
|
685
|
-
if (obj.KeyCryptogram !== void 0)
|
|
686
|
-
return { KeyCryptogram: ImportKeyCryptogramFilterSensitiveLog(obj.KeyCryptogram) };
|
|
687
|
-
if (obj.DiffieHellmanTr31KeyBlock !== void 0)
|
|
688
|
-
return {
|
|
689
|
-
DiffieHellmanTr31KeyBlock: ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog(obj.DiffieHellmanTr31KeyBlock)
|
|
690
|
-
};
|
|
691
|
-
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
692
|
-
}, "ImportKeyMaterialFilterSensitiveLog");
|
|
693
|
-
var ImportKeyInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
694
|
-
...obj,
|
|
695
|
-
...obj.KeyMaterial && { KeyMaterial: ImportKeyMaterialFilterSensitiveLog(obj.KeyMaterial) }
|
|
696
|
-
}), "ImportKeyInputFilterSensitiveLog");
|
|
697
|
-
|
|
698
|
-
// src/protocols/Aws_json1_0.ts
|
|
699
|
-
var se_AddKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
700
|
-
const headers = sharedHeaders("AddKeyReplicationRegions");
|
|
701
|
-
let body;
|
|
702
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
703
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
704
|
-
}, "se_AddKeyReplicationRegionsCommand");
|
|
705
|
-
var se_CreateAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
706
|
-
const headers = sharedHeaders("CreateAlias");
|
|
707
|
-
let body;
|
|
708
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
709
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
710
|
-
}, "se_CreateAliasCommand");
|
|
711
|
-
var se_CreateKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
712
|
-
const headers = sharedHeaders("CreateKey");
|
|
713
|
-
let body;
|
|
714
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
715
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
716
|
-
}, "se_CreateKeyCommand");
|
|
717
|
-
var se_DeleteAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
718
|
-
const headers = sharedHeaders("DeleteAlias");
|
|
719
|
-
let body;
|
|
720
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
721
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
722
|
-
}, "se_DeleteAliasCommand");
|
|
723
|
-
var se_DeleteKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
724
|
-
const headers = sharedHeaders("DeleteKey");
|
|
725
|
-
let body;
|
|
726
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
727
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
728
|
-
}, "se_DeleteKeyCommand");
|
|
729
|
-
var se_DisableDefaultKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
730
|
-
const headers = sharedHeaders("DisableDefaultKeyReplicationRegions");
|
|
731
|
-
let body;
|
|
732
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
733
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
734
|
-
}, "se_DisableDefaultKeyReplicationRegionsCommand");
|
|
735
|
-
var se_EnableDefaultKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
736
|
-
const headers = sharedHeaders("EnableDefaultKeyReplicationRegions");
|
|
737
|
-
let body;
|
|
738
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
739
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
740
|
-
}, "se_EnableDefaultKeyReplicationRegionsCommand");
|
|
741
|
-
var se_ExportKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
742
|
-
const headers = sharedHeaders("ExportKey");
|
|
743
|
-
let body;
|
|
744
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
745
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
746
|
-
}, "se_ExportKeyCommand");
|
|
747
|
-
var se_GetAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
748
|
-
const headers = sharedHeaders("GetAlias");
|
|
749
|
-
let body;
|
|
750
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
751
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
752
|
-
}, "se_GetAliasCommand");
|
|
753
|
-
var se_GetCertificateSigningRequestCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
754
|
-
const headers = sharedHeaders("GetCertificateSigningRequest");
|
|
755
|
-
let body;
|
|
756
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
757
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
758
|
-
}, "se_GetCertificateSigningRequestCommand");
|
|
759
|
-
var se_GetDefaultKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
760
|
-
const headers = sharedHeaders("GetDefaultKeyReplicationRegions");
|
|
761
|
-
let body;
|
|
762
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
763
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
764
|
-
}, "se_GetDefaultKeyReplicationRegionsCommand");
|
|
765
|
-
var se_GetKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
766
|
-
const headers = sharedHeaders("GetKey");
|
|
767
|
-
let body;
|
|
768
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
769
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
770
|
-
}, "se_GetKeyCommand");
|
|
771
|
-
var se_GetParametersForExportCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
772
|
-
const headers = sharedHeaders("GetParametersForExport");
|
|
773
|
-
let body;
|
|
774
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
775
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
776
|
-
}, "se_GetParametersForExportCommand");
|
|
777
|
-
var se_GetParametersForImportCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
778
|
-
const headers = sharedHeaders("GetParametersForImport");
|
|
779
|
-
let body;
|
|
780
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
781
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
782
|
-
}, "se_GetParametersForImportCommand");
|
|
783
|
-
var se_GetPublicKeyCertificateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
784
|
-
const headers = sharedHeaders("GetPublicKeyCertificate");
|
|
785
|
-
let body;
|
|
786
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
787
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
788
|
-
}, "se_GetPublicKeyCertificateCommand");
|
|
789
|
-
var se_ImportKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
790
|
-
const headers = sharedHeaders("ImportKey");
|
|
791
|
-
let body;
|
|
792
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
793
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
794
|
-
}, "se_ImportKeyCommand");
|
|
795
|
-
var se_ListAliasesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
796
|
-
const headers = sharedHeaders("ListAliases");
|
|
797
|
-
let body;
|
|
798
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
799
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
800
|
-
}, "se_ListAliasesCommand");
|
|
801
|
-
var se_ListKeysCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
802
|
-
const headers = sharedHeaders("ListKeys");
|
|
803
|
-
let body;
|
|
804
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
805
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
806
|
-
}, "se_ListKeysCommand");
|
|
807
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
808
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
809
|
-
let body;
|
|
810
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
811
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
812
|
-
}, "se_ListTagsForResourceCommand");
|
|
813
|
-
var se_RemoveKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
814
|
-
const headers = sharedHeaders("RemoveKeyReplicationRegions");
|
|
815
|
-
let body;
|
|
816
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
817
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
818
|
-
}, "se_RemoveKeyReplicationRegionsCommand");
|
|
819
|
-
var se_RestoreKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
820
|
-
const headers = sharedHeaders("RestoreKey");
|
|
821
|
-
let body;
|
|
822
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
823
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
824
|
-
}, "se_RestoreKeyCommand");
|
|
825
|
-
var se_StartKeyUsageCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
826
|
-
const headers = sharedHeaders("StartKeyUsage");
|
|
827
|
-
let body;
|
|
828
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
829
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
830
|
-
}, "se_StartKeyUsageCommand");
|
|
831
|
-
var se_StopKeyUsageCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
832
|
-
const headers = sharedHeaders("StopKeyUsage");
|
|
833
|
-
let body;
|
|
834
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
835
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
836
|
-
}, "se_StopKeyUsageCommand");
|
|
837
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
838
|
-
const headers = sharedHeaders("TagResource");
|
|
839
|
-
let body;
|
|
840
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
841
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
842
|
-
}, "se_TagResourceCommand");
|
|
843
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
844
|
-
const headers = sharedHeaders("UntagResource");
|
|
845
|
-
let body;
|
|
846
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
847
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
848
|
-
}, "se_UntagResourceCommand");
|
|
849
|
-
var se_UpdateAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
850
|
-
const headers = sharedHeaders("UpdateAlias");
|
|
851
|
-
let body;
|
|
852
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
853
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
854
|
-
}, "se_UpdateAliasCommand");
|
|
855
|
-
var de_AddKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
856
|
-
if (output.statusCode >= 300) {
|
|
857
|
-
return de_CommandError(output, context);
|
|
858
|
-
}
|
|
859
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
860
|
-
let contents = {};
|
|
861
|
-
contents = de_AddKeyReplicationRegionsOutput(data, context);
|
|
862
|
-
const response = {
|
|
863
|
-
$metadata: deserializeMetadata(output),
|
|
864
|
-
...contents
|
|
865
|
-
};
|
|
866
|
-
return response;
|
|
867
|
-
}, "de_AddKeyReplicationRegionsCommand");
|
|
868
|
-
var de_CreateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
869
|
-
if (output.statusCode >= 300) {
|
|
870
|
-
return de_CommandError(output, context);
|
|
871
|
-
}
|
|
872
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
873
|
-
let contents = {};
|
|
874
|
-
contents = (0, import_smithy_client._json)(data);
|
|
875
|
-
const response = {
|
|
876
|
-
$metadata: deserializeMetadata(output),
|
|
877
|
-
...contents
|
|
878
|
-
};
|
|
879
|
-
return response;
|
|
880
|
-
}, "de_CreateAliasCommand");
|
|
881
|
-
var de_CreateKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
882
|
-
if (output.statusCode >= 300) {
|
|
883
|
-
return de_CommandError(output, context);
|
|
884
|
-
}
|
|
885
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
886
|
-
let contents = {};
|
|
887
|
-
contents = de_CreateKeyOutput(data, context);
|
|
888
|
-
const response = {
|
|
889
|
-
$metadata: deserializeMetadata(output),
|
|
890
|
-
...contents
|
|
891
|
-
};
|
|
892
|
-
return response;
|
|
893
|
-
}, "de_CreateKeyCommand");
|
|
894
|
-
var de_DeleteAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
895
|
-
if (output.statusCode >= 300) {
|
|
896
|
-
return de_CommandError(output, context);
|
|
897
|
-
}
|
|
898
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
899
|
-
let contents = {};
|
|
900
|
-
contents = (0, import_smithy_client._json)(data);
|
|
901
|
-
const response = {
|
|
902
|
-
$metadata: deserializeMetadata(output),
|
|
903
|
-
...contents
|
|
904
|
-
};
|
|
905
|
-
return response;
|
|
906
|
-
}, "de_DeleteAliasCommand");
|
|
907
|
-
var de_DeleteKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
908
|
-
if (output.statusCode >= 300) {
|
|
909
|
-
return de_CommandError(output, context);
|
|
910
|
-
}
|
|
911
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
912
|
-
let contents = {};
|
|
913
|
-
contents = de_DeleteKeyOutput(data, context);
|
|
914
|
-
const response = {
|
|
915
|
-
$metadata: deserializeMetadata(output),
|
|
916
|
-
...contents
|
|
917
|
-
};
|
|
918
|
-
return response;
|
|
919
|
-
}, "de_DeleteKeyCommand");
|
|
920
|
-
var de_DisableDefaultKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
921
|
-
if (output.statusCode >= 300) {
|
|
922
|
-
return de_CommandError(output, context);
|
|
923
|
-
}
|
|
924
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
925
|
-
let contents = {};
|
|
926
|
-
contents = (0, import_smithy_client._json)(data);
|
|
927
|
-
const response = {
|
|
928
|
-
$metadata: deserializeMetadata(output),
|
|
929
|
-
...contents
|
|
930
|
-
};
|
|
931
|
-
return response;
|
|
932
|
-
}, "de_DisableDefaultKeyReplicationRegionsCommand");
|
|
933
|
-
var de_EnableDefaultKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
934
|
-
if (output.statusCode >= 300) {
|
|
935
|
-
return de_CommandError(output, context);
|
|
936
|
-
}
|
|
937
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
938
|
-
let contents = {};
|
|
939
|
-
contents = (0, import_smithy_client._json)(data);
|
|
940
|
-
const response = {
|
|
941
|
-
$metadata: deserializeMetadata(output),
|
|
942
|
-
...contents
|
|
943
|
-
};
|
|
944
|
-
return response;
|
|
945
|
-
}, "de_EnableDefaultKeyReplicationRegionsCommand");
|
|
946
|
-
var de_ExportKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
947
|
-
if (output.statusCode >= 300) {
|
|
948
|
-
return de_CommandError(output, context);
|
|
949
|
-
}
|
|
950
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
951
|
-
let contents = {};
|
|
952
|
-
contents = (0, import_smithy_client._json)(data);
|
|
953
|
-
const response = {
|
|
954
|
-
$metadata: deserializeMetadata(output),
|
|
955
|
-
...contents
|
|
956
|
-
};
|
|
957
|
-
return response;
|
|
958
|
-
}, "de_ExportKeyCommand");
|
|
959
|
-
var de_GetAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
960
|
-
if (output.statusCode >= 300) {
|
|
961
|
-
return de_CommandError(output, context);
|
|
962
|
-
}
|
|
963
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
964
|
-
let contents = {};
|
|
965
|
-
contents = (0, import_smithy_client._json)(data);
|
|
966
|
-
const response = {
|
|
967
|
-
$metadata: deserializeMetadata(output),
|
|
968
|
-
...contents
|
|
969
|
-
};
|
|
970
|
-
return response;
|
|
971
|
-
}, "de_GetAliasCommand");
|
|
972
|
-
var de_GetCertificateSigningRequestCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
973
|
-
if (output.statusCode >= 300) {
|
|
974
|
-
return de_CommandError(output, context);
|
|
975
|
-
}
|
|
976
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
977
|
-
let contents = {};
|
|
978
|
-
contents = (0, import_smithy_client._json)(data);
|
|
979
|
-
const response = {
|
|
980
|
-
$metadata: deserializeMetadata(output),
|
|
981
|
-
...contents
|
|
982
|
-
};
|
|
983
|
-
return response;
|
|
984
|
-
}, "de_GetCertificateSigningRequestCommand");
|
|
985
|
-
var de_GetDefaultKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
986
|
-
if (output.statusCode >= 300) {
|
|
987
|
-
return de_CommandError(output, context);
|
|
988
|
-
}
|
|
989
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
990
|
-
let contents = {};
|
|
991
|
-
contents = (0, import_smithy_client._json)(data);
|
|
992
|
-
const response = {
|
|
993
|
-
$metadata: deserializeMetadata(output),
|
|
994
|
-
...contents
|
|
995
|
-
};
|
|
996
|
-
return response;
|
|
997
|
-
}, "de_GetDefaultKeyReplicationRegionsCommand");
|
|
998
|
-
var de_GetKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
999
|
-
if (output.statusCode >= 300) {
|
|
1000
|
-
return de_CommandError(output, context);
|
|
1001
|
-
}
|
|
1002
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1003
|
-
let contents = {};
|
|
1004
|
-
contents = de_GetKeyOutput(data, context);
|
|
1005
|
-
const response = {
|
|
1006
|
-
$metadata: deserializeMetadata(output),
|
|
1007
|
-
...contents
|
|
1008
|
-
};
|
|
1009
|
-
return response;
|
|
1010
|
-
}, "de_GetKeyCommand");
|
|
1011
|
-
var de_GetParametersForExportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1012
|
-
if (output.statusCode >= 300) {
|
|
1013
|
-
return de_CommandError(output, context);
|
|
1014
|
-
}
|
|
1015
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1016
|
-
let contents = {};
|
|
1017
|
-
contents = de_GetParametersForExportOutput(data, context);
|
|
1018
|
-
const response = {
|
|
1019
|
-
$metadata: deserializeMetadata(output),
|
|
1020
|
-
...contents
|
|
1021
|
-
};
|
|
1022
|
-
return response;
|
|
1023
|
-
}, "de_GetParametersForExportCommand");
|
|
1024
|
-
var de_GetParametersForImportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1025
|
-
if (output.statusCode >= 300) {
|
|
1026
|
-
return de_CommandError(output, context);
|
|
1027
|
-
}
|
|
1028
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1029
|
-
let contents = {};
|
|
1030
|
-
contents = de_GetParametersForImportOutput(data, context);
|
|
1031
|
-
const response = {
|
|
1032
|
-
$metadata: deserializeMetadata(output),
|
|
1033
|
-
...contents
|
|
1034
|
-
};
|
|
1035
|
-
return response;
|
|
1036
|
-
}, "de_GetParametersForImportCommand");
|
|
1037
|
-
var de_GetPublicKeyCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1038
|
-
if (output.statusCode >= 300) {
|
|
1039
|
-
return de_CommandError(output, context);
|
|
1040
|
-
}
|
|
1041
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1042
|
-
let contents = {};
|
|
1043
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1044
|
-
const response = {
|
|
1045
|
-
$metadata: deserializeMetadata(output),
|
|
1046
|
-
...contents
|
|
1047
|
-
};
|
|
1048
|
-
return response;
|
|
1049
|
-
}, "de_GetPublicKeyCertificateCommand");
|
|
1050
|
-
var de_ImportKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1051
|
-
if (output.statusCode >= 300) {
|
|
1052
|
-
return de_CommandError(output, context);
|
|
1053
|
-
}
|
|
1054
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1055
|
-
let contents = {};
|
|
1056
|
-
contents = de_ImportKeyOutput(data, context);
|
|
1057
|
-
const response = {
|
|
1058
|
-
$metadata: deserializeMetadata(output),
|
|
1059
|
-
...contents
|
|
1060
|
-
};
|
|
1061
|
-
return response;
|
|
1062
|
-
}, "de_ImportKeyCommand");
|
|
1063
|
-
var de_ListAliasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1064
|
-
if (output.statusCode >= 300) {
|
|
1065
|
-
return de_CommandError(output, context);
|
|
1066
|
-
}
|
|
1067
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1068
|
-
let contents = {};
|
|
1069
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1070
|
-
const response = {
|
|
1071
|
-
$metadata: deserializeMetadata(output),
|
|
1072
|
-
...contents
|
|
1073
|
-
};
|
|
1074
|
-
return response;
|
|
1075
|
-
}, "de_ListAliasesCommand");
|
|
1076
|
-
var de_ListKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1077
|
-
if (output.statusCode >= 300) {
|
|
1078
|
-
return de_CommandError(output, context);
|
|
1079
|
-
}
|
|
1080
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1081
|
-
let contents = {};
|
|
1082
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1083
|
-
const response = {
|
|
1084
|
-
$metadata: deserializeMetadata(output),
|
|
1085
|
-
...contents
|
|
1086
|
-
};
|
|
1087
|
-
return response;
|
|
1088
|
-
}, "de_ListKeysCommand");
|
|
1089
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1090
|
-
if (output.statusCode >= 300) {
|
|
1091
|
-
return de_CommandError(output, context);
|
|
1092
|
-
}
|
|
1093
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1094
|
-
let contents = {};
|
|
1095
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1096
|
-
const response = {
|
|
1097
|
-
$metadata: deserializeMetadata(output),
|
|
1098
|
-
...contents
|
|
1099
|
-
};
|
|
1100
|
-
return response;
|
|
1101
|
-
}, "de_ListTagsForResourceCommand");
|
|
1102
|
-
var de_RemoveKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1103
|
-
if (output.statusCode >= 300) {
|
|
1104
|
-
return de_CommandError(output, context);
|
|
1105
|
-
}
|
|
1106
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1107
|
-
let contents = {};
|
|
1108
|
-
contents = de_RemoveKeyReplicationRegionsOutput(data, context);
|
|
1109
|
-
const response = {
|
|
1110
|
-
$metadata: deserializeMetadata(output),
|
|
1111
|
-
...contents
|
|
1112
|
-
};
|
|
1113
|
-
return response;
|
|
1114
|
-
}, "de_RemoveKeyReplicationRegionsCommand");
|
|
1115
|
-
var de_RestoreKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1116
|
-
if (output.statusCode >= 300) {
|
|
1117
|
-
return de_CommandError(output, context);
|
|
1118
|
-
}
|
|
1119
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1120
|
-
let contents = {};
|
|
1121
|
-
contents = de_RestoreKeyOutput(data, context);
|
|
1122
|
-
const response = {
|
|
1123
|
-
$metadata: deserializeMetadata(output),
|
|
1124
|
-
...contents
|
|
1125
|
-
};
|
|
1126
|
-
return response;
|
|
1127
|
-
}, "de_RestoreKeyCommand");
|
|
1128
|
-
var de_StartKeyUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1129
|
-
if (output.statusCode >= 300) {
|
|
1130
|
-
return de_CommandError(output, context);
|
|
1131
|
-
}
|
|
1132
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1133
|
-
let contents = {};
|
|
1134
|
-
contents = de_StartKeyUsageOutput(data, context);
|
|
1135
|
-
const response = {
|
|
1136
|
-
$metadata: deserializeMetadata(output),
|
|
1137
|
-
...contents
|
|
1138
|
-
};
|
|
1139
|
-
return response;
|
|
1140
|
-
}, "de_StartKeyUsageCommand");
|
|
1141
|
-
var de_StopKeyUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1142
|
-
if (output.statusCode >= 300) {
|
|
1143
|
-
return de_CommandError(output, context);
|
|
1144
|
-
}
|
|
1145
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1146
|
-
let contents = {};
|
|
1147
|
-
contents = de_StopKeyUsageOutput(data, context);
|
|
1148
|
-
const response = {
|
|
1149
|
-
$metadata: deserializeMetadata(output),
|
|
1150
|
-
...contents
|
|
1151
|
-
};
|
|
1152
|
-
return response;
|
|
1153
|
-
}, "de_StopKeyUsageCommand");
|
|
1154
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1155
|
-
if (output.statusCode >= 300) {
|
|
1156
|
-
return de_CommandError(output, context);
|
|
1157
|
-
}
|
|
1158
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1159
|
-
let contents = {};
|
|
1160
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1161
|
-
const response = {
|
|
1162
|
-
$metadata: deserializeMetadata(output),
|
|
1163
|
-
...contents
|
|
1164
|
-
};
|
|
1165
|
-
return response;
|
|
1166
|
-
}, "de_TagResourceCommand");
|
|
1167
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1168
|
-
if (output.statusCode >= 300) {
|
|
1169
|
-
return de_CommandError(output, context);
|
|
1170
|
-
}
|
|
1171
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1172
|
-
let contents = {};
|
|
1173
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1174
|
-
const response = {
|
|
1175
|
-
$metadata: deserializeMetadata(output),
|
|
1176
|
-
...contents
|
|
1177
|
-
};
|
|
1178
|
-
return response;
|
|
1179
|
-
}, "de_UntagResourceCommand");
|
|
1180
|
-
var de_UpdateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1181
|
-
if (output.statusCode >= 300) {
|
|
1182
|
-
return de_CommandError(output, context);
|
|
1183
|
-
}
|
|
1184
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1185
|
-
let contents = {};
|
|
1186
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1187
|
-
const response = {
|
|
1188
|
-
$metadata: deserializeMetadata(output),
|
|
1189
|
-
...contents
|
|
1190
|
-
};
|
|
1191
|
-
return response;
|
|
1192
|
-
}, "de_UpdateAliasCommand");
|
|
1193
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1194
|
-
const parsedOutput = {
|
|
1195
|
-
...output,
|
|
1196
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1197
|
-
};
|
|
1198
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1199
|
-
switch (errorCode) {
|
|
1200
|
-
case "AccessDeniedException":
|
|
1201
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
1202
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "ConflictException":
|
|
1204
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
1205
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "InternalServerException":
|
|
1207
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
1208
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1209
|
-
case "ResourceNotFoundException":
|
|
1210
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
1211
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "ServiceQuotaExceededException":
|
|
1213
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
1214
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1215
|
-
case "ThrottlingException":
|
|
1216
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
1217
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "ValidationException":
|
|
1219
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
1220
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1221
|
-
case "ServiceUnavailableException":
|
|
1222
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
1223
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1224
|
-
default:
|
|
1225
|
-
const parsedBody = parsedOutput.body;
|
|
1226
|
-
return throwDefaultError({
|
|
1227
|
-
output,
|
|
1228
|
-
parsedBody,
|
|
1229
|
-
errorCode
|
|
1230
|
-
});
|
|
1231
|
-
}
|
|
1232
|
-
}, "de_CommandError");
|
|
1233
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1234
|
-
const body = parsedOutput.body;
|
|
1235
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1236
|
-
const exception = new AccessDeniedException({
|
|
1237
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1238
|
-
...deserialized
|
|
1239
|
-
});
|
|
1240
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1241
|
-
}, "de_AccessDeniedExceptionRes");
|
|
1242
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1243
|
-
const body = parsedOutput.body;
|
|
1244
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1245
|
-
const exception = new ConflictException({
|
|
1246
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1247
|
-
...deserialized
|
|
1248
|
-
});
|
|
1249
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1250
|
-
}, "de_ConflictExceptionRes");
|
|
1251
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1252
|
-
const body = parsedOutput.body;
|
|
1253
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1254
|
-
const exception = new InternalServerException({
|
|
1255
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1256
|
-
...deserialized
|
|
1257
|
-
});
|
|
1258
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1259
|
-
}, "de_InternalServerExceptionRes");
|
|
1260
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1261
|
-
const body = parsedOutput.body;
|
|
1262
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1263
|
-
const exception = new ResourceNotFoundException({
|
|
1264
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1265
|
-
...deserialized
|
|
1266
|
-
});
|
|
1267
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1268
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1269
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1270
|
-
const body = parsedOutput.body;
|
|
1271
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1272
|
-
const exception = new ServiceQuotaExceededException({
|
|
1273
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1274
|
-
...deserialized
|
|
1275
|
-
});
|
|
1276
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1277
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1278
|
-
var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1279
|
-
const body = parsedOutput.body;
|
|
1280
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1281
|
-
const exception = new ServiceUnavailableException({
|
|
1282
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1283
|
-
...deserialized
|
|
1284
|
-
});
|
|
1285
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1286
|
-
}, "de_ServiceUnavailableExceptionRes");
|
|
1287
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1288
|
-
const body = parsedOutput.body;
|
|
1289
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1290
|
-
const exception = new ThrottlingException({
|
|
1291
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1292
|
-
...deserialized
|
|
1293
|
-
});
|
|
1294
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1295
|
-
}, "de_ThrottlingExceptionRes");
|
|
1296
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1297
|
-
const body = parsedOutput.body;
|
|
1298
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1299
|
-
const exception = new ValidationException({
|
|
1300
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1301
|
-
...deserialized
|
|
1302
|
-
});
|
|
1303
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1304
|
-
}, "de_ValidationExceptionRes");
|
|
1305
|
-
var de_AddKeyReplicationRegionsOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1306
|
-
return (0, import_smithy_client.take)(output, {
|
|
1307
|
-
Key: /* @__PURE__ */ __name((_) => de_Key(_, context), "Key")
|
|
1308
|
-
});
|
|
1309
|
-
}, "de_AddKeyReplicationRegionsOutput");
|
|
1310
|
-
var de_CreateKeyOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1311
|
-
return (0, import_smithy_client.take)(output, {
|
|
1312
|
-
Key: /* @__PURE__ */ __name((_) => de_Key(_, context), "Key")
|
|
1313
|
-
});
|
|
1314
|
-
}, "de_CreateKeyOutput");
|
|
1315
|
-
var de_DeleteKeyOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1316
|
-
return (0, import_smithy_client.take)(output, {
|
|
1317
|
-
Key: /* @__PURE__ */ __name((_) => de_Key(_, context), "Key")
|
|
1318
|
-
});
|
|
1319
|
-
}, "de_DeleteKeyOutput");
|
|
1320
|
-
var de_GetKeyOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1321
|
-
return (0, import_smithy_client.take)(output, {
|
|
1322
|
-
Key: /* @__PURE__ */ __name((_) => de_Key(_, context), "Key")
|
|
1323
|
-
});
|
|
1324
|
-
}, "de_GetKeyOutput");
|
|
1325
|
-
var de_GetParametersForExportOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1326
|
-
return (0, import_smithy_client.take)(output, {
|
|
1327
|
-
ExportToken: import_smithy_client.expectString,
|
|
1328
|
-
ParametersValidUntilTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ParametersValidUntilTimestamp"),
|
|
1329
|
-
SigningKeyAlgorithm: import_smithy_client.expectString,
|
|
1330
|
-
SigningKeyCertificate: import_smithy_client.expectString,
|
|
1331
|
-
SigningKeyCertificateChain: import_smithy_client.expectString
|
|
1332
|
-
});
|
|
1333
|
-
}, "de_GetParametersForExportOutput");
|
|
1334
|
-
var de_GetParametersForImportOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1335
|
-
return (0, import_smithy_client.take)(output, {
|
|
1336
|
-
ImportToken: import_smithy_client.expectString,
|
|
1337
|
-
ParametersValidUntilTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ParametersValidUntilTimestamp"),
|
|
1338
|
-
WrappingKeyAlgorithm: import_smithy_client.expectString,
|
|
1339
|
-
WrappingKeyCertificate: import_smithy_client.expectString,
|
|
1340
|
-
WrappingKeyCertificateChain: import_smithy_client.expectString
|
|
1341
|
-
});
|
|
1342
|
-
}, "de_GetParametersForImportOutput");
|
|
1343
|
-
var de_ImportKeyOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1344
|
-
return (0, import_smithy_client.take)(output, {
|
|
1345
|
-
Key: /* @__PURE__ */ __name((_) => de_Key(_, context), "Key")
|
|
1346
|
-
});
|
|
1347
|
-
}, "de_ImportKeyOutput");
|
|
1348
|
-
var de_Key = /* @__PURE__ */ __name((output, context) => {
|
|
1349
|
-
return (0, import_smithy_client.take)(output, {
|
|
1350
|
-
CreateTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreateTimestamp"),
|
|
1351
|
-
DeletePendingTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "DeletePendingTimestamp"),
|
|
1352
|
-
DeleteTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "DeleteTimestamp"),
|
|
1353
|
-
DeriveKeyUsage: import_smithy_client.expectString,
|
|
1354
|
-
Enabled: import_smithy_client.expectBoolean,
|
|
1355
|
-
Exportable: import_smithy_client.expectBoolean,
|
|
1356
|
-
KeyArn: import_smithy_client.expectString,
|
|
1357
|
-
KeyAttributes: import_smithy_client._json,
|
|
1358
|
-
KeyCheckValue: import_smithy_client.expectString,
|
|
1359
|
-
KeyCheckValueAlgorithm: import_smithy_client.expectString,
|
|
1360
|
-
KeyOrigin: import_smithy_client.expectString,
|
|
1361
|
-
KeyState: import_smithy_client.expectString,
|
|
1362
|
-
MultiRegionKeyType: import_smithy_client.expectString,
|
|
1363
|
-
PrimaryRegion: import_smithy_client.expectString,
|
|
1364
|
-
ReplicationStatus: import_smithy_client._json,
|
|
1365
|
-
UsageStartTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "UsageStartTimestamp"),
|
|
1366
|
-
UsageStopTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "UsageStopTimestamp"),
|
|
1367
|
-
UsingDefaultReplicationRegions: import_smithy_client.expectBoolean
|
|
1368
|
-
});
|
|
1369
|
-
}, "de_Key");
|
|
1370
|
-
var de_RemoveKeyReplicationRegionsOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1371
|
-
return (0, import_smithy_client.take)(output, {
|
|
1372
|
-
Key: /* @__PURE__ */ __name((_) => de_Key(_, context), "Key")
|
|
1373
|
-
});
|
|
1374
|
-
}, "de_RemoveKeyReplicationRegionsOutput");
|
|
1375
|
-
var de_RestoreKeyOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1376
|
-
return (0, import_smithy_client.take)(output, {
|
|
1377
|
-
Key: /* @__PURE__ */ __name((_) => de_Key(_, context), "Key")
|
|
1378
|
-
});
|
|
1379
|
-
}, "de_RestoreKeyOutput");
|
|
1380
|
-
var de_StartKeyUsageOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1381
|
-
return (0, import_smithy_client.take)(output, {
|
|
1382
|
-
Key: /* @__PURE__ */ __name((_) => de_Key(_, context), "Key")
|
|
1383
|
-
});
|
|
1384
|
-
}, "de_StartKeyUsageOutput");
|
|
1385
|
-
var de_StopKeyUsageOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1386
|
-
return (0, import_smithy_client.take)(output, {
|
|
1387
|
-
Key: /* @__PURE__ */ __name((_) => de_Key(_, context), "Key")
|
|
1388
|
-
});
|
|
1389
|
-
}, "de_StopKeyUsageOutput");
|
|
1390
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1391
|
-
httpStatusCode: output.statusCode,
|
|
1392
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1393
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1394
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1395
|
-
}), "deserializeMetadata");
|
|
1396
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(PaymentCryptographyServiceException);
|
|
1397
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1398
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1399
|
-
const contents = {
|
|
1400
|
-
protocol,
|
|
1401
|
-
hostname,
|
|
1402
|
-
port,
|
|
1403
|
-
method: "POST",
|
|
1404
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1405
|
-
headers
|
|
1406
|
-
};
|
|
1407
|
-
if (resolvedHostname !== void 0) {
|
|
1408
|
-
contents.hostname = resolvedHostname;
|
|
1409
|
-
}
|
|
1410
|
-
if (body !== void 0) {
|
|
1411
|
-
contents.body = body;
|
|
1412
|
-
}
|
|
1413
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
1414
|
-
}, "buildHttpRpcRequest");
|
|
1415
|
-
function sharedHeaders(operation) {
|
|
1416
|
-
return {
|
|
1417
|
-
"content-type": "application/x-amz-json-1.0",
|
|
1418
|
-
"x-amz-target": `PaymentCryptographyControlPlane.${operation}`
|
|
1419
|
-
};
|
|
1420
|
-
}
|
|
1421
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
1422
|
-
|
|
1423
|
-
// src/commands/AddKeyReplicationRegionsCommand.ts
|
|
1424
|
-
var AddKeyReplicationRegionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1425
|
-
return [
|
|
1426
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1427
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1428
|
-
];
|
|
1429
|
-
}).s("PaymentCryptographyControlPlane", "AddKeyReplicationRegions", {}).n("PaymentCryptographyClient", "AddKeyReplicationRegionsCommand").f(void 0, void 0).ser(se_AddKeyReplicationRegionsCommand).de(de_AddKeyReplicationRegionsCommand).build() {
|
|
1430
|
-
static {
|
|
1431
|
-
__name(this, "AddKeyReplicationRegionsCommand");
|
|
1432
|
-
}
|
|
1063
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1433
1064
|
};
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1443
|
-
];
|
|
1444
|
-
}).s("PaymentCryptographyControlPlane", "CreateAlias", {}).n("PaymentCryptographyClient", "CreateAliasCommand").f(void 0, void 0).ser(se_CreateAliasCommand).de(de_CreateAliasCommand).build() {
|
|
1445
|
-
static {
|
|
1446
|
-
__name(this, "CreateAliasCommand");
|
|
1447
|
-
}
|
|
1065
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1066
|
+
const body = parsedOutput.body;
|
|
1067
|
+
const deserialized = smithyClient._json(body);
|
|
1068
|
+
const exception = new ResourceNotFoundException({
|
|
1069
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1070
|
+
...deserialized,
|
|
1071
|
+
});
|
|
1072
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1448
1073
|
};
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1458
|
-
];
|
|
1459
|
-
}).s("PaymentCryptographyControlPlane", "CreateKey", {}).n("PaymentCryptographyClient", "CreateKeyCommand").f(void 0, void 0).ser(se_CreateKeyCommand).de(de_CreateKeyCommand).build() {
|
|
1460
|
-
static {
|
|
1461
|
-
__name(this, "CreateKeyCommand");
|
|
1462
|
-
}
|
|
1074
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1075
|
+
const body = parsedOutput.body;
|
|
1076
|
+
const deserialized = smithyClient._json(body);
|
|
1077
|
+
const exception = new ServiceQuotaExceededException({
|
|
1078
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1079
|
+
...deserialized,
|
|
1080
|
+
});
|
|
1081
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1463
1082
|
};
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1473
|
-
];
|
|
1474
|
-
}).s("PaymentCryptographyControlPlane", "DeleteAlias", {}).n("PaymentCryptographyClient", "DeleteAliasCommand").f(void 0, void 0).ser(se_DeleteAliasCommand).de(de_DeleteAliasCommand).build() {
|
|
1475
|
-
static {
|
|
1476
|
-
__name(this, "DeleteAliasCommand");
|
|
1477
|
-
}
|
|
1083
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1084
|
+
const body = parsedOutput.body;
|
|
1085
|
+
const deserialized = smithyClient._json(body);
|
|
1086
|
+
const exception = new ServiceUnavailableException({
|
|
1087
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1088
|
+
...deserialized,
|
|
1089
|
+
});
|
|
1090
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1478
1091
|
};
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1488
|
-
];
|
|
1489
|
-
}).s("PaymentCryptographyControlPlane", "DeleteKey", {}).n("PaymentCryptographyClient", "DeleteKeyCommand").f(void 0, void 0).ser(se_DeleteKeyCommand).de(de_DeleteKeyCommand).build() {
|
|
1490
|
-
static {
|
|
1491
|
-
__name(this, "DeleteKeyCommand");
|
|
1492
|
-
}
|
|
1092
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1093
|
+
const body = parsedOutput.body;
|
|
1094
|
+
const deserialized = smithyClient._json(body);
|
|
1095
|
+
const exception = new ThrottlingException({
|
|
1096
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1097
|
+
...deserialized,
|
|
1098
|
+
});
|
|
1099
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1493
1100
|
};
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1503
|
-
];
|
|
1504
|
-
}).s("PaymentCryptographyControlPlane", "DisableDefaultKeyReplicationRegions", {}).n("PaymentCryptographyClient", "DisableDefaultKeyReplicationRegionsCommand").f(void 0, void 0).ser(se_DisableDefaultKeyReplicationRegionsCommand).de(de_DisableDefaultKeyReplicationRegionsCommand).build() {
|
|
1505
|
-
static {
|
|
1506
|
-
__name(this, "DisableDefaultKeyReplicationRegionsCommand");
|
|
1507
|
-
}
|
|
1101
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1102
|
+
const body = parsedOutput.body;
|
|
1103
|
+
const deserialized = smithyClient._json(body);
|
|
1104
|
+
const exception = new ValidationException({
|
|
1105
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1106
|
+
...deserialized,
|
|
1107
|
+
});
|
|
1108
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1508
1109
|
};
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
var EnableDefaultKeyReplicationRegionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1515
|
-
return [
|
|
1516
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1517
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1518
|
-
];
|
|
1519
|
-
}).s("PaymentCryptographyControlPlane", "EnableDefaultKeyReplicationRegions", {}).n("PaymentCryptographyClient", "EnableDefaultKeyReplicationRegionsCommand").f(void 0, void 0).ser(se_EnableDefaultKeyReplicationRegionsCommand).de(de_EnableDefaultKeyReplicationRegionsCommand).build() {
|
|
1520
|
-
static {
|
|
1521
|
-
__name(this, "EnableDefaultKeyReplicationRegionsCommand");
|
|
1522
|
-
}
|
|
1110
|
+
const de_AddKeyReplicationRegionsOutput = (output, context) => {
|
|
1111
|
+
return smithyClient.take(output, {
|
|
1112
|
+
Key: (_) => de_Key(_),
|
|
1113
|
+
});
|
|
1523
1114
|
};
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
var ExportKeyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1530
|
-
return [
|
|
1531
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1532
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1533
|
-
];
|
|
1534
|
-
}).s("PaymentCryptographyControlPlane", "ExportKey", {}).n("PaymentCryptographyClient", "ExportKeyCommand").f(ExportKeyInputFilterSensitiveLog, ExportKeyOutputFilterSensitiveLog).ser(se_ExportKeyCommand).de(de_ExportKeyCommand).build() {
|
|
1535
|
-
static {
|
|
1536
|
-
__name(this, "ExportKeyCommand");
|
|
1537
|
-
}
|
|
1115
|
+
const de_CreateKeyOutput = (output, context) => {
|
|
1116
|
+
return smithyClient.take(output, {
|
|
1117
|
+
Key: (_) => de_Key(_),
|
|
1118
|
+
});
|
|
1538
1119
|
};
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
var GetAliasCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1545
|
-
return [
|
|
1546
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1547
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1548
|
-
];
|
|
1549
|
-
}).s("PaymentCryptographyControlPlane", "GetAlias", {}).n("PaymentCryptographyClient", "GetAliasCommand").f(void 0, void 0).ser(se_GetAliasCommand).de(de_GetAliasCommand).build() {
|
|
1550
|
-
static {
|
|
1551
|
-
__name(this, "GetAliasCommand");
|
|
1552
|
-
}
|
|
1120
|
+
const de_DeleteKeyOutput = (output, context) => {
|
|
1121
|
+
return smithyClient.take(output, {
|
|
1122
|
+
Key: (_) => de_Key(_),
|
|
1123
|
+
});
|
|
1553
1124
|
};
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
var GetCertificateSigningRequestCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1560
|
-
return [
|
|
1561
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1562
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1563
|
-
];
|
|
1564
|
-
}).s("PaymentCryptographyControlPlane", "GetCertificateSigningRequest", {}).n("PaymentCryptographyClient", "GetCertificateSigningRequestCommand").f(void 0, GetCertificateSigningRequestOutputFilterSensitiveLog).ser(se_GetCertificateSigningRequestCommand).de(de_GetCertificateSigningRequestCommand).build() {
|
|
1565
|
-
static {
|
|
1566
|
-
__name(this, "GetCertificateSigningRequestCommand");
|
|
1567
|
-
}
|
|
1125
|
+
const de_GetKeyOutput = (output, context) => {
|
|
1126
|
+
return smithyClient.take(output, {
|
|
1127
|
+
Key: (_) => de_Key(_),
|
|
1128
|
+
});
|
|
1568
1129
|
};
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1578
|
-
];
|
|
1579
|
-
}).s("PaymentCryptographyControlPlane", "GetDefaultKeyReplicationRegions", {}).n("PaymentCryptographyClient", "GetDefaultKeyReplicationRegionsCommand").f(void 0, void 0).ser(se_GetDefaultKeyReplicationRegionsCommand).de(de_GetDefaultKeyReplicationRegionsCommand).build() {
|
|
1580
|
-
static {
|
|
1581
|
-
__name(this, "GetDefaultKeyReplicationRegionsCommand");
|
|
1582
|
-
}
|
|
1130
|
+
const de_GetParametersForExportOutput = (output, context) => {
|
|
1131
|
+
return smithyClient.take(output, {
|
|
1132
|
+
ExportToken: smithyClient.expectString,
|
|
1133
|
+
ParametersValidUntilTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1134
|
+
SigningKeyAlgorithm: smithyClient.expectString,
|
|
1135
|
+
SigningKeyCertificate: smithyClient.expectString,
|
|
1136
|
+
SigningKeyCertificateChain: smithyClient.expectString,
|
|
1137
|
+
});
|
|
1583
1138
|
};
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1593
|
-
];
|
|
1594
|
-
}).s("PaymentCryptographyControlPlane", "GetKey", {}).n("PaymentCryptographyClient", "GetKeyCommand").f(void 0, void 0).ser(se_GetKeyCommand).de(de_GetKeyCommand).build() {
|
|
1595
|
-
static {
|
|
1596
|
-
__name(this, "GetKeyCommand");
|
|
1597
|
-
}
|
|
1139
|
+
const de_GetParametersForImportOutput = (output, context) => {
|
|
1140
|
+
return smithyClient.take(output, {
|
|
1141
|
+
ImportToken: smithyClient.expectString,
|
|
1142
|
+
ParametersValidUntilTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1143
|
+
WrappingKeyAlgorithm: smithyClient.expectString,
|
|
1144
|
+
WrappingKeyCertificate: smithyClient.expectString,
|
|
1145
|
+
WrappingKeyCertificateChain: smithyClient.expectString,
|
|
1146
|
+
});
|
|
1598
1147
|
};
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
var GetParametersForExportCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1605
|
-
return [
|
|
1606
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1607
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1608
|
-
];
|
|
1609
|
-
}).s("PaymentCryptographyControlPlane", "GetParametersForExport", {}).n("PaymentCryptographyClient", "GetParametersForExportCommand").f(void 0, void 0).ser(se_GetParametersForExportCommand).de(de_GetParametersForExportCommand).build() {
|
|
1610
|
-
static {
|
|
1611
|
-
__name(this, "GetParametersForExportCommand");
|
|
1612
|
-
}
|
|
1148
|
+
const de_ImportKeyOutput = (output, context) => {
|
|
1149
|
+
return smithyClient.take(output, {
|
|
1150
|
+
Key: (_) => de_Key(_),
|
|
1151
|
+
});
|
|
1613
1152
|
};
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1153
|
+
const de_Key = (output, context) => {
|
|
1154
|
+
return smithyClient.take(output, {
|
|
1155
|
+
CreateTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1156
|
+
DeletePendingTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1157
|
+
DeleteTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1158
|
+
DeriveKeyUsage: smithyClient.expectString,
|
|
1159
|
+
Enabled: smithyClient.expectBoolean,
|
|
1160
|
+
Exportable: smithyClient.expectBoolean,
|
|
1161
|
+
KeyArn: smithyClient.expectString,
|
|
1162
|
+
KeyAttributes: smithyClient._json,
|
|
1163
|
+
KeyCheckValue: smithyClient.expectString,
|
|
1164
|
+
KeyCheckValueAlgorithm: smithyClient.expectString,
|
|
1165
|
+
KeyOrigin: smithyClient.expectString,
|
|
1166
|
+
KeyState: smithyClient.expectString,
|
|
1167
|
+
MultiRegionKeyType: smithyClient.expectString,
|
|
1168
|
+
PrimaryRegion: smithyClient.expectString,
|
|
1169
|
+
ReplicationStatus: smithyClient._json,
|
|
1170
|
+
UsageStartTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1171
|
+
UsageStopTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1172
|
+
UsingDefaultReplicationRegions: smithyClient.expectBoolean,
|
|
1173
|
+
});
|
|
1628
1174
|
};
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
var GetPublicKeyCertificateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1635
|
-
return [
|
|
1636
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1637
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1638
|
-
];
|
|
1639
|
-
}).s("PaymentCryptographyControlPlane", "GetPublicKeyCertificate", {}).n("PaymentCryptographyClient", "GetPublicKeyCertificateCommand").f(void 0, void 0).ser(se_GetPublicKeyCertificateCommand).de(de_GetPublicKeyCertificateCommand).build() {
|
|
1640
|
-
static {
|
|
1641
|
-
__name(this, "GetPublicKeyCertificateCommand");
|
|
1642
|
-
}
|
|
1175
|
+
const de_RemoveKeyReplicationRegionsOutput = (output, context) => {
|
|
1176
|
+
return smithyClient.take(output, {
|
|
1177
|
+
Key: (_) => de_Key(_),
|
|
1178
|
+
});
|
|
1643
1179
|
};
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
var ImportKeyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1650
|
-
return [
|
|
1651
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1652
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1653
|
-
];
|
|
1654
|
-
}).s("PaymentCryptographyControlPlane", "ImportKey", {}).n("PaymentCryptographyClient", "ImportKeyCommand").f(ImportKeyInputFilterSensitiveLog, void 0).ser(se_ImportKeyCommand).de(de_ImportKeyCommand).build() {
|
|
1655
|
-
static {
|
|
1656
|
-
__name(this, "ImportKeyCommand");
|
|
1657
|
-
}
|
|
1180
|
+
const de_RestoreKeyOutput = (output, context) => {
|
|
1181
|
+
return smithyClient.take(output, {
|
|
1182
|
+
Key: (_) => de_Key(_),
|
|
1183
|
+
});
|
|
1658
1184
|
};
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
var ListAliasesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1665
|
-
return [
|
|
1666
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1667
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1668
|
-
];
|
|
1669
|
-
}).s("PaymentCryptographyControlPlane", "ListAliases", {}).n("PaymentCryptographyClient", "ListAliasesCommand").f(void 0, void 0).ser(se_ListAliasesCommand).de(de_ListAliasesCommand).build() {
|
|
1670
|
-
static {
|
|
1671
|
-
__name(this, "ListAliasesCommand");
|
|
1672
|
-
}
|
|
1185
|
+
const de_StartKeyUsageOutput = (output, context) => {
|
|
1186
|
+
return smithyClient.take(output, {
|
|
1187
|
+
Key: (_) => de_Key(_),
|
|
1188
|
+
});
|
|
1673
1189
|
};
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
var ListKeysCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1680
|
-
return [
|
|
1681
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1682
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1683
|
-
];
|
|
1684
|
-
}).s("PaymentCryptographyControlPlane", "ListKeys", {}).n("PaymentCryptographyClient", "ListKeysCommand").f(void 0, void 0).ser(se_ListKeysCommand).de(de_ListKeysCommand).build() {
|
|
1685
|
-
static {
|
|
1686
|
-
__name(this, "ListKeysCommand");
|
|
1687
|
-
}
|
|
1190
|
+
const de_StopKeyUsageOutput = (output, context) => {
|
|
1191
|
+
return smithyClient.take(output, {
|
|
1192
|
+
Key: (_) => de_Key(_),
|
|
1193
|
+
});
|
|
1688
1194
|
};
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1195
|
+
const deserializeMetadata = (output) => ({
|
|
1196
|
+
httpStatusCode: output.statusCode,
|
|
1197
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1198
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1199
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1200
|
+
});
|
|
1201
|
+
const throwDefaultError = smithyClient.withBaseException(PaymentCryptographyServiceException);
|
|
1202
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1203
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1204
|
+
const contents = {
|
|
1205
|
+
protocol,
|
|
1206
|
+
hostname,
|
|
1207
|
+
port,
|
|
1208
|
+
method: "POST",
|
|
1209
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1210
|
+
headers,
|
|
1211
|
+
};
|
|
1212
|
+
if (body !== undefined) {
|
|
1213
|
+
contents.body = body;
|
|
1214
|
+
}
|
|
1215
|
+
return new protocolHttp.HttpRequest(contents);
|
|
1703
1216
|
};
|
|
1217
|
+
function sharedHeaders(operation) {
|
|
1218
|
+
return {
|
|
1219
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1220
|
+
"x-amz-target": `PaymentCryptographyControlPlane.${operation}`,
|
|
1221
|
+
};
|
|
1222
|
+
}
|
|
1704
1223
|
|
|
1705
|
-
|
|
1706
|
-
|
|
1224
|
+
class AddKeyReplicationRegionsCommand extends smithyClient.Command
|
|
1225
|
+
.classBuilder()
|
|
1226
|
+
.ep(commonParams)
|
|
1227
|
+
.m(function (Command, cs, config, o) {
|
|
1228
|
+
return [
|
|
1229
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1230
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1231
|
+
];
|
|
1232
|
+
})
|
|
1233
|
+
.s("PaymentCryptographyControlPlane", "AddKeyReplicationRegions", {})
|
|
1234
|
+
.n("PaymentCryptographyClient", "AddKeyReplicationRegionsCommand")
|
|
1235
|
+
.f(void 0, void 0)
|
|
1236
|
+
.ser(se_AddKeyReplicationRegionsCommand)
|
|
1237
|
+
.de(de_AddKeyReplicationRegionsCommand)
|
|
1238
|
+
.build() {
|
|
1239
|
+
}
|
|
1707
1240
|
|
|
1241
|
+
class CreateAliasCommand extends smithyClient.Command
|
|
1242
|
+
.classBuilder()
|
|
1243
|
+
.ep(commonParams)
|
|
1244
|
+
.m(function (Command, cs, config, o) {
|
|
1245
|
+
return [
|
|
1246
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1247
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1248
|
+
];
|
|
1249
|
+
})
|
|
1250
|
+
.s("PaymentCryptographyControlPlane", "CreateAlias", {})
|
|
1251
|
+
.n("PaymentCryptographyClient", "CreateAliasCommand")
|
|
1252
|
+
.f(void 0, void 0)
|
|
1253
|
+
.ser(se_CreateAliasCommand)
|
|
1254
|
+
.de(de_CreateAliasCommand)
|
|
1255
|
+
.build() {
|
|
1256
|
+
}
|
|
1708
1257
|
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
(
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
}
|
|
1258
|
+
class CreateKeyCommand extends smithyClient.Command
|
|
1259
|
+
.classBuilder()
|
|
1260
|
+
.ep(commonParams)
|
|
1261
|
+
.m(function (Command, cs, config, o) {
|
|
1262
|
+
return [
|
|
1263
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1264
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1265
|
+
];
|
|
1266
|
+
})
|
|
1267
|
+
.s("PaymentCryptographyControlPlane", "CreateKey", {})
|
|
1268
|
+
.n("PaymentCryptographyClient", "CreateKeyCommand")
|
|
1269
|
+
.f(void 0, void 0)
|
|
1270
|
+
.ser(se_CreateKeyCommand)
|
|
1271
|
+
.de(de_CreateKeyCommand)
|
|
1272
|
+
.build() {
|
|
1273
|
+
}
|
|
1719
1274
|
|
|
1720
|
-
|
|
1275
|
+
class DeleteAliasCommand extends smithyClient.Command
|
|
1276
|
+
.classBuilder()
|
|
1277
|
+
.ep(commonParams)
|
|
1278
|
+
.m(function (Command, cs, config, o) {
|
|
1279
|
+
return [
|
|
1280
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1281
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1282
|
+
];
|
|
1283
|
+
})
|
|
1284
|
+
.s("PaymentCryptographyControlPlane", "DeleteAlias", {})
|
|
1285
|
+
.n("PaymentCryptographyClient", "DeleteAliasCommand")
|
|
1286
|
+
.f(void 0, void 0)
|
|
1287
|
+
.ser(se_DeleteAliasCommand)
|
|
1288
|
+
.de(de_DeleteAliasCommand)
|
|
1289
|
+
.build() {
|
|
1290
|
+
}
|
|
1721
1291
|
|
|
1292
|
+
class DeleteKeyCommand extends smithyClient.Command
|
|
1293
|
+
.classBuilder()
|
|
1294
|
+
.ep(commonParams)
|
|
1295
|
+
.m(function (Command, cs, config, o) {
|
|
1296
|
+
return [
|
|
1297
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1298
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1299
|
+
];
|
|
1300
|
+
})
|
|
1301
|
+
.s("PaymentCryptographyControlPlane", "DeleteKey", {})
|
|
1302
|
+
.n("PaymentCryptographyClient", "DeleteKeyCommand")
|
|
1303
|
+
.f(void 0, void 0)
|
|
1304
|
+
.ser(se_DeleteKeyCommand)
|
|
1305
|
+
.de(de_DeleteKeyCommand)
|
|
1306
|
+
.build() {
|
|
1307
|
+
}
|
|
1722
1308
|
|
|
1309
|
+
class DisableDefaultKeyReplicationRegionsCommand extends smithyClient.Command
|
|
1310
|
+
.classBuilder()
|
|
1311
|
+
.ep(commonParams)
|
|
1312
|
+
.m(function (Command, cs, config, o) {
|
|
1313
|
+
return [
|
|
1314
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1315
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1316
|
+
];
|
|
1317
|
+
})
|
|
1318
|
+
.s("PaymentCryptographyControlPlane", "DisableDefaultKeyReplicationRegions", {})
|
|
1319
|
+
.n("PaymentCryptographyClient", "DisableDefaultKeyReplicationRegionsCommand")
|
|
1320
|
+
.f(void 0, void 0)
|
|
1321
|
+
.ser(se_DisableDefaultKeyReplicationRegionsCommand)
|
|
1322
|
+
.de(de_DisableDefaultKeyReplicationRegionsCommand)
|
|
1323
|
+
.build() {
|
|
1324
|
+
}
|
|
1723
1325
|
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
(
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
}
|
|
1326
|
+
class EnableDefaultKeyReplicationRegionsCommand extends smithyClient.Command
|
|
1327
|
+
.classBuilder()
|
|
1328
|
+
.ep(commonParams)
|
|
1329
|
+
.m(function (Command, cs, config, o) {
|
|
1330
|
+
return [
|
|
1331
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1332
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1333
|
+
];
|
|
1334
|
+
})
|
|
1335
|
+
.s("PaymentCryptographyControlPlane", "EnableDefaultKeyReplicationRegions", {})
|
|
1336
|
+
.n("PaymentCryptographyClient", "EnableDefaultKeyReplicationRegionsCommand")
|
|
1337
|
+
.f(void 0, void 0)
|
|
1338
|
+
.ser(se_EnableDefaultKeyReplicationRegionsCommand)
|
|
1339
|
+
.de(de_EnableDefaultKeyReplicationRegionsCommand)
|
|
1340
|
+
.build() {
|
|
1341
|
+
}
|
|
1734
1342
|
|
|
1735
|
-
|
|
1343
|
+
class ExportKeyCommand extends smithyClient.Command
|
|
1344
|
+
.classBuilder()
|
|
1345
|
+
.ep(commonParams)
|
|
1346
|
+
.m(function (Command, cs, config, o) {
|
|
1347
|
+
return [
|
|
1348
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1349
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1350
|
+
];
|
|
1351
|
+
})
|
|
1352
|
+
.s("PaymentCryptographyControlPlane", "ExportKey", {})
|
|
1353
|
+
.n("PaymentCryptographyClient", "ExportKeyCommand")
|
|
1354
|
+
.f(ExportKeyInputFilterSensitiveLog, ExportKeyOutputFilterSensitiveLog)
|
|
1355
|
+
.ser(se_ExportKeyCommand)
|
|
1356
|
+
.de(de_ExportKeyCommand)
|
|
1357
|
+
.build() {
|
|
1358
|
+
}
|
|
1736
1359
|
|
|
1360
|
+
class GetAliasCommand extends smithyClient.Command
|
|
1361
|
+
.classBuilder()
|
|
1362
|
+
.ep(commonParams)
|
|
1363
|
+
.m(function (Command, cs, config, o) {
|
|
1364
|
+
return [
|
|
1365
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1366
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1367
|
+
];
|
|
1368
|
+
})
|
|
1369
|
+
.s("PaymentCryptographyControlPlane", "GetAlias", {})
|
|
1370
|
+
.n("PaymentCryptographyClient", "GetAliasCommand")
|
|
1371
|
+
.f(void 0, void 0)
|
|
1372
|
+
.ser(se_GetAliasCommand)
|
|
1373
|
+
.de(de_GetAliasCommand)
|
|
1374
|
+
.build() {
|
|
1375
|
+
}
|
|
1737
1376
|
|
|
1377
|
+
class GetCertificateSigningRequestCommand extends smithyClient.Command
|
|
1378
|
+
.classBuilder()
|
|
1379
|
+
.ep(commonParams)
|
|
1380
|
+
.m(function (Command, cs, config, o) {
|
|
1381
|
+
return [
|
|
1382
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1383
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1384
|
+
];
|
|
1385
|
+
})
|
|
1386
|
+
.s("PaymentCryptographyControlPlane", "GetCertificateSigningRequest", {})
|
|
1387
|
+
.n("PaymentCryptographyClient", "GetCertificateSigningRequestCommand")
|
|
1388
|
+
.f(void 0, GetCertificateSigningRequestOutputFilterSensitiveLog)
|
|
1389
|
+
.ser(se_GetCertificateSigningRequestCommand)
|
|
1390
|
+
.de(de_GetCertificateSigningRequestCommand)
|
|
1391
|
+
.build() {
|
|
1392
|
+
}
|
|
1738
1393
|
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
(
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
}
|
|
1394
|
+
class GetDefaultKeyReplicationRegionsCommand extends smithyClient.Command
|
|
1395
|
+
.classBuilder()
|
|
1396
|
+
.ep(commonParams)
|
|
1397
|
+
.m(function (Command, cs, config, o) {
|
|
1398
|
+
return [
|
|
1399
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1400
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1401
|
+
];
|
|
1402
|
+
})
|
|
1403
|
+
.s("PaymentCryptographyControlPlane", "GetDefaultKeyReplicationRegions", {})
|
|
1404
|
+
.n("PaymentCryptographyClient", "GetDefaultKeyReplicationRegionsCommand")
|
|
1405
|
+
.f(void 0, void 0)
|
|
1406
|
+
.ser(se_GetDefaultKeyReplicationRegionsCommand)
|
|
1407
|
+
.de(de_GetDefaultKeyReplicationRegionsCommand)
|
|
1408
|
+
.build() {
|
|
1409
|
+
}
|
|
1749
1410
|
|
|
1750
|
-
|
|
1411
|
+
class GetKeyCommand extends smithyClient.Command
|
|
1412
|
+
.classBuilder()
|
|
1413
|
+
.ep(commonParams)
|
|
1414
|
+
.m(function (Command, cs, config, o) {
|
|
1415
|
+
return [
|
|
1416
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1417
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1418
|
+
];
|
|
1419
|
+
})
|
|
1420
|
+
.s("PaymentCryptographyControlPlane", "GetKey", {})
|
|
1421
|
+
.n("PaymentCryptographyClient", "GetKeyCommand")
|
|
1422
|
+
.f(void 0, void 0)
|
|
1423
|
+
.ser(se_GetKeyCommand)
|
|
1424
|
+
.de(de_GetKeyCommand)
|
|
1425
|
+
.build() {
|
|
1426
|
+
}
|
|
1751
1427
|
|
|
1428
|
+
class GetParametersForExportCommand extends smithyClient.Command
|
|
1429
|
+
.classBuilder()
|
|
1430
|
+
.ep(commonParams)
|
|
1431
|
+
.m(function (Command, cs, config, o) {
|
|
1432
|
+
return [
|
|
1433
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1434
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1435
|
+
];
|
|
1436
|
+
})
|
|
1437
|
+
.s("PaymentCryptographyControlPlane", "GetParametersForExport", {})
|
|
1438
|
+
.n("PaymentCryptographyClient", "GetParametersForExportCommand")
|
|
1439
|
+
.f(void 0, void 0)
|
|
1440
|
+
.ser(se_GetParametersForExportCommand)
|
|
1441
|
+
.de(de_GetParametersForExportCommand)
|
|
1442
|
+
.build() {
|
|
1443
|
+
}
|
|
1752
1444
|
|
|
1445
|
+
class GetParametersForImportCommand extends smithyClient.Command
|
|
1446
|
+
.classBuilder()
|
|
1447
|
+
.ep(commonParams)
|
|
1448
|
+
.m(function (Command, cs, config, o) {
|
|
1449
|
+
return [
|
|
1450
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1451
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1452
|
+
];
|
|
1453
|
+
})
|
|
1454
|
+
.s("PaymentCryptographyControlPlane", "GetParametersForImport", {})
|
|
1455
|
+
.n("PaymentCryptographyClient", "GetParametersForImportCommand")
|
|
1456
|
+
.f(void 0, void 0)
|
|
1457
|
+
.ser(se_GetParametersForImportCommand)
|
|
1458
|
+
.de(de_GetParametersForImportCommand)
|
|
1459
|
+
.build() {
|
|
1460
|
+
}
|
|
1753
1461
|
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
(
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
}
|
|
1462
|
+
class GetPublicKeyCertificateCommand extends smithyClient.Command
|
|
1463
|
+
.classBuilder()
|
|
1464
|
+
.ep(commonParams)
|
|
1465
|
+
.m(function (Command, cs, config, o) {
|
|
1466
|
+
return [
|
|
1467
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1468
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1469
|
+
];
|
|
1470
|
+
})
|
|
1471
|
+
.s("PaymentCryptographyControlPlane", "GetPublicKeyCertificate", {})
|
|
1472
|
+
.n("PaymentCryptographyClient", "GetPublicKeyCertificateCommand")
|
|
1473
|
+
.f(void 0, void 0)
|
|
1474
|
+
.ser(se_GetPublicKeyCertificateCommand)
|
|
1475
|
+
.de(de_GetPublicKeyCertificateCommand)
|
|
1476
|
+
.build() {
|
|
1477
|
+
}
|
|
1764
1478
|
|
|
1765
|
-
|
|
1479
|
+
class ImportKeyCommand extends smithyClient.Command
|
|
1480
|
+
.classBuilder()
|
|
1481
|
+
.ep(commonParams)
|
|
1482
|
+
.m(function (Command, cs, config, o) {
|
|
1483
|
+
return [
|
|
1484
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1485
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1486
|
+
];
|
|
1487
|
+
})
|
|
1488
|
+
.s("PaymentCryptographyControlPlane", "ImportKey", {})
|
|
1489
|
+
.n("PaymentCryptographyClient", "ImportKeyCommand")
|
|
1490
|
+
.f(ImportKeyInputFilterSensitiveLog, void 0)
|
|
1491
|
+
.ser(se_ImportKeyCommand)
|
|
1492
|
+
.de(de_ImportKeyCommand)
|
|
1493
|
+
.build() {
|
|
1494
|
+
}
|
|
1766
1495
|
|
|
1496
|
+
class ListAliasesCommand extends smithyClient.Command
|
|
1497
|
+
.classBuilder()
|
|
1498
|
+
.ep(commonParams)
|
|
1499
|
+
.m(function (Command, cs, config, o) {
|
|
1500
|
+
return [
|
|
1501
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1502
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1503
|
+
];
|
|
1504
|
+
})
|
|
1505
|
+
.s("PaymentCryptographyControlPlane", "ListAliases", {})
|
|
1506
|
+
.n("PaymentCryptographyClient", "ListAliasesCommand")
|
|
1507
|
+
.f(void 0, void 0)
|
|
1508
|
+
.ser(se_ListAliasesCommand)
|
|
1509
|
+
.de(de_ListAliasesCommand)
|
|
1510
|
+
.build() {
|
|
1511
|
+
}
|
|
1767
1512
|
|
|
1513
|
+
class ListKeysCommand extends smithyClient.Command
|
|
1514
|
+
.classBuilder()
|
|
1515
|
+
.ep(commonParams)
|
|
1516
|
+
.m(function (Command, cs, config, o) {
|
|
1517
|
+
return [
|
|
1518
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1519
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1520
|
+
];
|
|
1521
|
+
})
|
|
1522
|
+
.s("PaymentCryptographyControlPlane", "ListKeys", {})
|
|
1523
|
+
.n("PaymentCryptographyClient", "ListKeysCommand")
|
|
1524
|
+
.f(void 0, void 0)
|
|
1525
|
+
.ser(se_ListKeysCommand)
|
|
1526
|
+
.de(de_ListKeysCommand)
|
|
1527
|
+
.build() {
|
|
1528
|
+
}
|
|
1768
1529
|
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
(
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
}
|
|
1530
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1531
|
+
.classBuilder()
|
|
1532
|
+
.ep(commonParams)
|
|
1533
|
+
.m(function (Command, cs, config, o) {
|
|
1534
|
+
return [
|
|
1535
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1536
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1537
|
+
];
|
|
1538
|
+
})
|
|
1539
|
+
.s("PaymentCryptographyControlPlane", "ListTagsForResource", {})
|
|
1540
|
+
.n("PaymentCryptographyClient", "ListTagsForResourceCommand")
|
|
1541
|
+
.f(void 0, void 0)
|
|
1542
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1543
|
+
.de(de_ListTagsForResourceCommand)
|
|
1544
|
+
.build() {
|
|
1545
|
+
}
|
|
1779
1546
|
|
|
1780
|
-
|
|
1547
|
+
class RemoveKeyReplicationRegionsCommand extends smithyClient.Command
|
|
1548
|
+
.classBuilder()
|
|
1549
|
+
.ep(commonParams)
|
|
1550
|
+
.m(function (Command, cs, config, o) {
|
|
1551
|
+
return [
|
|
1552
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1553
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1554
|
+
];
|
|
1555
|
+
})
|
|
1556
|
+
.s("PaymentCryptographyControlPlane", "RemoveKeyReplicationRegions", {})
|
|
1557
|
+
.n("PaymentCryptographyClient", "RemoveKeyReplicationRegionsCommand")
|
|
1558
|
+
.f(void 0, void 0)
|
|
1559
|
+
.ser(se_RemoveKeyReplicationRegionsCommand)
|
|
1560
|
+
.de(de_RemoveKeyReplicationRegionsCommand)
|
|
1561
|
+
.build() {
|
|
1562
|
+
}
|
|
1781
1563
|
|
|
1564
|
+
class RestoreKeyCommand extends smithyClient.Command
|
|
1565
|
+
.classBuilder()
|
|
1566
|
+
.ep(commonParams)
|
|
1567
|
+
.m(function (Command, cs, config, o) {
|
|
1568
|
+
return [
|
|
1569
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1570
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1571
|
+
];
|
|
1572
|
+
})
|
|
1573
|
+
.s("PaymentCryptographyControlPlane", "RestoreKey", {})
|
|
1574
|
+
.n("PaymentCryptographyClient", "RestoreKeyCommand")
|
|
1575
|
+
.f(void 0, void 0)
|
|
1576
|
+
.ser(se_RestoreKeyCommand)
|
|
1577
|
+
.de(de_RestoreKeyCommand)
|
|
1578
|
+
.build() {
|
|
1579
|
+
}
|
|
1782
1580
|
|
|
1581
|
+
class StartKeyUsageCommand extends smithyClient.Command
|
|
1582
|
+
.classBuilder()
|
|
1583
|
+
.ep(commonParams)
|
|
1584
|
+
.m(function (Command, cs, config, o) {
|
|
1585
|
+
return [
|
|
1586
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1587
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1588
|
+
];
|
|
1589
|
+
})
|
|
1590
|
+
.s("PaymentCryptographyControlPlane", "StartKeyUsage", {})
|
|
1591
|
+
.n("PaymentCryptographyClient", "StartKeyUsageCommand")
|
|
1592
|
+
.f(void 0, void 0)
|
|
1593
|
+
.ser(se_StartKeyUsageCommand)
|
|
1594
|
+
.de(de_StartKeyUsageCommand)
|
|
1595
|
+
.build() {
|
|
1596
|
+
}
|
|
1783
1597
|
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
(
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
}
|
|
1598
|
+
class StopKeyUsageCommand extends smithyClient.Command
|
|
1599
|
+
.classBuilder()
|
|
1600
|
+
.ep(commonParams)
|
|
1601
|
+
.m(function (Command, cs, config, o) {
|
|
1602
|
+
return [
|
|
1603
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1604
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1605
|
+
];
|
|
1606
|
+
})
|
|
1607
|
+
.s("PaymentCryptographyControlPlane", "StopKeyUsage", {})
|
|
1608
|
+
.n("PaymentCryptographyClient", "StopKeyUsageCommand")
|
|
1609
|
+
.f(void 0, void 0)
|
|
1610
|
+
.ser(se_StopKeyUsageCommand)
|
|
1611
|
+
.de(de_StopKeyUsageCommand)
|
|
1612
|
+
.build() {
|
|
1613
|
+
}
|
|
1794
1614
|
|
|
1795
|
-
|
|
1615
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1616
|
+
.classBuilder()
|
|
1617
|
+
.ep(commonParams)
|
|
1618
|
+
.m(function (Command, cs, config, o) {
|
|
1619
|
+
return [
|
|
1620
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1621
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1622
|
+
];
|
|
1623
|
+
})
|
|
1624
|
+
.s("PaymentCryptographyControlPlane", "TagResource", {})
|
|
1625
|
+
.n("PaymentCryptographyClient", "TagResourceCommand")
|
|
1626
|
+
.f(void 0, void 0)
|
|
1627
|
+
.ser(se_TagResourceCommand)
|
|
1628
|
+
.de(de_TagResourceCommand)
|
|
1629
|
+
.build() {
|
|
1630
|
+
}
|
|
1796
1631
|
|
|
1632
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1633
|
+
.classBuilder()
|
|
1634
|
+
.ep(commonParams)
|
|
1635
|
+
.m(function (Command, cs, config, o) {
|
|
1636
|
+
return [
|
|
1637
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1638
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1639
|
+
];
|
|
1640
|
+
})
|
|
1641
|
+
.s("PaymentCryptographyControlPlane", "UntagResource", {})
|
|
1642
|
+
.n("PaymentCryptographyClient", "UntagResourceCommand")
|
|
1643
|
+
.f(void 0, void 0)
|
|
1644
|
+
.ser(se_UntagResourceCommand)
|
|
1645
|
+
.de(de_UntagResourceCommand)
|
|
1646
|
+
.build() {
|
|
1647
|
+
}
|
|
1797
1648
|
|
|
1649
|
+
class UpdateAliasCommand extends smithyClient.Command
|
|
1650
|
+
.classBuilder()
|
|
1651
|
+
.ep(commonParams)
|
|
1652
|
+
.m(function (Command, cs, config, o) {
|
|
1653
|
+
return [
|
|
1654
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1655
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1656
|
+
];
|
|
1657
|
+
})
|
|
1658
|
+
.s("PaymentCryptographyControlPlane", "UpdateAlias", {})
|
|
1659
|
+
.n("PaymentCryptographyClient", "UpdateAliasCommand")
|
|
1660
|
+
.f(void 0, void 0)
|
|
1661
|
+
.ser(se_UpdateAliasCommand)
|
|
1662
|
+
.de(de_UpdateAliasCommand)
|
|
1663
|
+
.build() {
|
|
1664
|
+
}
|
|
1798
1665
|
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1666
|
+
const commands = {
|
|
1667
|
+
AddKeyReplicationRegionsCommand,
|
|
1668
|
+
CreateAliasCommand,
|
|
1669
|
+
CreateKeyCommand,
|
|
1670
|
+
DeleteAliasCommand,
|
|
1671
|
+
DeleteKeyCommand,
|
|
1672
|
+
DisableDefaultKeyReplicationRegionsCommand,
|
|
1673
|
+
EnableDefaultKeyReplicationRegionsCommand,
|
|
1674
|
+
ExportKeyCommand,
|
|
1675
|
+
GetAliasCommand,
|
|
1676
|
+
GetCertificateSigningRequestCommand,
|
|
1677
|
+
GetDefaultKeyReplicationRegionsCommand,
|
|
1678
|
+
GetKeyCommand,
|
|
1679
|
+
GetParametersForExportCommand,
|
|
1680
|
+
GetParametersForImportCommand,
|
|
1681
|
+
GetPublicKeyCertificateCommand,
|
|
1682
|
+
ImportKeyCommand,
|
|
1683
|
+
ListAliasesCommand,
|
|
1684
|
+
ListKeysCommand,
|
|
1685
|
+
ListTagsForResourceCommand,
|
|
1686
|
+
RemoveKeyReplicationRegionsCommand,
|
|
1687
|
+
RestoreKeyCommand,
|
|
1688
|
+
StartKeyUsageCommand,
|
|
1689
|
+
StopKeyUsageCommand,
|
|
1690
|
+
TagResourceCommand,
|
|
1691
|
+
UntagResourceCommand,
|
|
1692
|
+
UpdateAliasCommand,
|
|
1808
1693
|
};
|
|
1694
|
+
class PaymentCryptography extends PaymentCryptographyClient {
|
|
1695
|
+
}
|
|
1696
|
+
smithyClient.createAggregatedClient(commands, PaymentCryptography);
|
|
1809
1697
|
|
|
1810
|
-
|
|
1811
|
-
var commands = {
|
|
1812
|
-
AddKeyReplicationRegionsCommand,
|
|
1813
|
-
CreateAliasCommand,
|
|
1814
|
-
CreateKeyCommand,
|
|
1815
|
-
DeleteAliasCommand,
|
|
1816
|
-
DeleteKeyCommand,
|
|
1817
|
-
DisableDefaultKeyReplicationRegionsCommand,
|
|
1818
|
-
EnableDefaultKeyReplicationRegionsCommand,
|
|
1819
|
-
ExportKeyCommand,
|
|
1820
|
-
GetAliasCommand,
|
|
1821
|
-
GetCertificateSigningRequestCommand,
|
|
1822
|
-
GetDefaultKeyReplicationRegionsCommand,
|
|
1823
|
-
GetKeyCommand,
|
|
1824
|
-
GetParametersForExportCommand,
|
|
1825
|
-
GetParametersForImportCommand,
|
|
1826
|
-
GetPublicKeyCertificateCommand,
|
|
1827
|
-
ImportKeyCommand,
|
|
1828
|
-
ListAliasesCommand,
|
|
1829
|
-
ListKeysCommand,
|
|
1830
|
-
ListTagsForResourceCommand,
|
|
1831
|
-
RemoveKeyReplicationRegionsCommand,
|
|
1832
|
-
RestoreKeyCommand,
|
|
1833
|
-
StartKeyUsageCommand,
|
|
1834
|
-
StopKeyUsageCommand,
|
|
1835
|
-
TagResourceCommand,
|
|
1836
|
-
UntagResourceCommand,
|
|
1837
|
-
UpdateAliasCommand
|
|
1838
|
-
};
|
|
1839
|
-
var PaymentCryptography = class extends PaymentCryptographyClient {
|
|
1840
|
-
static {
|
|
1841
|
-
__name(this, "PaymentCryptography");
|
|
1842
|
-
}
|
|
1843
|
-
};
|
|
1844
|
-
(0, import_smithy_client.createAggregatedClient)(commands, PaymentCryptography);
|
|
1845
|
-
|
|
1846
|
-
// src/pagination/ListAliasesPaginator.ts
|
|
1847
|
-
|
|
1848
|
-
var paginateListAliases = (0, import_core.createPaginator)(PaymentCryptographyClient, ListAliasesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1849
|
-
|
|
1850
|
-
// src/pagination/ListKeysPaginator.ts
|
|
1851
|
-
|
|
1852
|
-
var paginateListKeys = (0, import_core.createPaginator)(PaymentCryptographyClient, ListKeysCommand, "NextToken", "NextToken", "MaxResults");
|
|
1698
|
+
const paginateListAliases = core.createPaginator(PaymentCryptographyClient, ListAliasesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1853
1699
|
|
|
1854
|
-
|
|
1700
|
+
const paginateListKeys = core.createPaginator(PaymentCryptographyClient, ListKeysCommand, "NextToken", "NextToken", "MaxResults");
|
|
1855
1701
|
|
|
1856
|
-
|
|
1857
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1702
|
+
const paginateListTagsForResource = core.createPaginator(PaymentCryptographyClient, ListTagsForResourceCommand, "NextToken", "NextToken", "MaxResults");
|
|
1858
1703
|
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
PaymentCryptographyClient,
|
|
1863
|
-
PaymentCryptography,
|
|
1864
|
-
$Command,
|
|
1865
|
-
AddKeyReplicationRegionsCommand,
|
|
1866
|
-
CreateAliasCommand,
|
|
1867
|
-
CreateKeyCommand,
|
|
1868
|
-
DeleteAliasCommand,
|
|
1869
|
-
DeleteKeyCommand,
|
|
1870
|
-
DisableDefaultKeyReplicationRegionsCommand,
|
|
1871
|
-
EnableDefaultKeyReplicationRegionsCommand,
|
|
1872
|
-
ExportKeyCommand,
|
|
1873
|
-
GetAliasCommand,
|
|
1874
|
-
GetCertificateSigningRequestCommand,
|
|
1875
|
-
GetDefaultKeyReplicationRegionsCommand,
|
|
1876
|
-
GetKeyCommand,
|
|
1877
|
-
GetParametersForExportCommand,
|
|
1878
|
-
GetParametersForImportCommand,
|
|
1879
|
-
GetPublicKeyCertificateCommand,
|
|
1880
|
-
ImportKeyCommand,
|
|
1881
|
-
ListAliasesCommand,
|
|
1882
|
-
ListKeysCommand,
|
|
1883
|
-
ListTagsForResourceCommand,
|
|
1884
|
-
RemoveKeyReplicationRegionsCommand,
|
|
1885
|
-
RestoreKeyCommand,
|
|
1886
|
-
StartKeyUsageCommand,
|
|
1887
|
-
StopKeyUsageCommand,
|
|
1888
|
-
TagResourceCommand,
|
|
1889
|
-
UntagResourceCommand,
|
|
1890
|
-
UpdateAliasCommand,
|
|
1891
|
-
paginateListAliases,
|
|
1892
|
-
paginateListKeys,
|
|
1893
|
-
paginateListTagsForResource,
|
|
1894
|
-
AccessDeniedException,
|
|
1895
|
-
DeriveKeyUsage,
|
|
1896
|
-
KeyAlgorithm,
|
|
1897
|
-
KeyClass,
|
|
1898
|
-
KeyUsage,
|
|
1899
|
-
KeyCheckValueAlgorithm,
|
|
1900
|
-
KeyOrigin,
|
|
1901
|
-
KeyState,
|
|
1902
|
-
MultiRegionKeyType,
|
|
1903
|
-
KeyReplicationState,
|
|
1904
|
-
ConflictException,
|
|
1905
|
-
InternalServerException,
|
|
1906
|
-
ResourceNotFoundException,
|
|
1907
|
-
ServiceQuotaExceededException,
|
|
1908
|
-
ThrottlingException,
|
|
1909
|
-
ValidationException,
|
|
1910
|
-
ServiceUnavailableException,
|
|
1911
|
-
DiffieHellmanDerivationData,
|
|
1912
|
-
SymmetricKeyAlgorithm,
|
|
1913
|
-
KeyExportability,
|
|
1914
|
-
KeyDerivationFunction,
|
|
1915
|
-
KeyDerivationHashAlgorithm,
|
|
1916
|
-
WrappingKeySpec,
|
|
1917
|
-
Tr34KeyBlockFormat,
|
|
1918
|
-
ExportKeyMaterial,
|
|
1919
|
-
WrappedKeyMaterialFormat,
|
|
1920
|
-
SigningAlgorithmType,
|
|
1921
|
-
KeyMaterialType,
|
|
1922
|
-
ImportKeyMaterial,
|
|
1923
|
-
KeyBlockHeadersFilterSensitiveLog,
|
|
1924
|
-
ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog,
|
|
1925
|
-
ExportTr31KeyBlockFilterSensitiveLog,
|
|
1926
|
-
ExportTr34KeyBlockFilterSensitiveLog,
|
|
1927
|
-
ExportKeyMaterialFilterSensitiveLog,
|
|
1928
|
-
ExportKeyInputFilterSensitiveLog,
|
|
1929
|
-
WrappedKeyFilterSensitiveLog,
|
|
1930
|
-
ExportKeyOutputFilterSensitiveLog,
|
|
1931
|
-
GetCertificateSigningRequestOutputFilterSensitiveLog,
|
|
1932
|
-
ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog,
|
|
1933
|
-
ImportKeyCryptogramFilterSensitiveLog,
|
|
1934
|
-
ImportTr31KeyBlockFilterSensitiveLog,
|
|
1935
|
-
ImportTr34KeyBlockFilterSensitiveLog,
|
|
1936
|
-
ImportKeyMaterialFilterSensitiveLog,
|
|
1937
|
-
ImportKeyInputFilterSensitiveLog
|
|
1704
|
+
Object.defineProperty(exports, "$Command", {
|
|
1705
|
+
enumerable: true,
|
|
1706
|
+
get: function () { return smithyClient.Command; }
|
|
1938
1707
|
});
|
|
1939
|
-
|
|
1708
|
+
Object.defineProperty(exports, "__Client", {
|
|
1709
|
+
enumerable: true,
|
|
1710
|
+
get: function () { return smithyClient.Client; }
|
|
1711
|
+
});
|
|
1712
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1713
|
+
exports.AddKeyReplicationRegionsCommand = AddKeyReplicationRegionsCommand;
|
|
1714
|
+
exports.ConflictException = ConflictException;
|
|
1715
|
+
exports.CreateAliasCommand = CreateAliasCommand;
|
|
1716
|
+
exports.CreateKeyCommand = CreateKeyCommand;
|
|
1717
|
+
exports.DeleteAliasCommand = DeleteAliasCommand;
|
|
1718
|
+
exports.DeleteKeyCommand = DeleteKeyCommand;
|
|
1719
|
+
exports.DeriveKeyUsage = DeriveKeyUsage;
|
|
1720
|
+
exports.DisableDefaultKeyReplicationRegionsCommand = DisableDefaultKeyReplicationRegionsCommand;
|
|
1721
|
+
exports.EnableDefaultKeyReplicationRegionsCommand = EnableDefaultKeyReplicationRegionsCommand;
|
|
1722
|
+
exports.ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog = ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog;
|
|
1723
|
+
exports.ExportKeyCommand = ExportKeyCommand;
|
|
1724
|
+
exports.ExportKeyInputFilterSensitiveLog = ExportKeyInputFilterSensitiveLog;
|
|
1725
|
+
exports.ExportKeyMaterialFilterSensitiveLog = ExportKeyMaterialFilterSensitiveLog;
|
|
1726
|
+
exports.ExportKeyOutputFilterSensitiveLog = ExportKeyOutputFilterSensitiveLog;
|
|
1727
|
+
exports.ExportTr31KeyBlockFilterSensitiveLog = ExportTr31KeyBlockFilterSensitiveLog;
|
|
1728
|
+
exports.ExportTr34KeyBlockFilterSensitiveLog = ExportTr34KeyBlockFilterSensitiveLog;
|
|
1729
|
+
exports.GetAliasCommand = GetAliasCommand;
|
|
1730
|
+
exports.GetCertificateSigningRequestCommand = GetCertificateSigningRequestCommand;
|
|
1731
|
+
exports.GetCertificateSigningRequestOutputFilterSensitiveLog = GetCertificateSigningRequestOutputFilterSensitiveLog;
|
|
1732
|
+
exports.GetDefaultKeyReplicationRegionsCommand = GetDefaultKeyReplicationRegionsCommand;
|
|
1733
|
+
exports.GetKeyCommand = GetKeyCommand;
|
|
1734
|
+
exports.GetParametersForExportCommand = GetParametersForExportCommand;
|
|
1735
|
+
exports.GetParametersForImportCommand = GetParametersForImportCommand;
|
|
1736
|
+
exports.GetPublicKeyCertificateCommand = GetPublicKeyCertificateCommand;
|
|
1737
|
+
exports.ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog = ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog;
|
|
1738
|
+
exports.ImportKeyCommand = ImportKeyCommand;
|
|
1739
|
+
exports.ImportKeyCryptogramFilterSensitiveLog = ImportKeyCryptogramFilterSensitiveLog;
|
|
1740
|
+
exports.ImportKeyInputFilterSensitiveLog = ImportKeyInputFilterSensitiveLog;
|
|
1741
|
+
exports.ImportKeyMaterialFilterSensitiveLog = ImportKeyMaterialFilterSensitiveLog;
|
|
1742
|
+
exports.ImportTr31KeyBlockFilterSensitiveLog = ImportTr31KeyBlockFilterSensitiveLog;
|
|
1743
|
+
exports.ImportTr34KeyBlockFilterSensitiveLog = ImportTr34KeyBlockFilterSensitiveLog;
|
|
1744
|
+
exports.InternalServerException = InternalServerException;
|
|
1745
|
+
exports.KeyAlgorithm = KeyAlgorithm;
|
|
1746
|
+
exports.KeyBlockHeadersFilterSensitiveLog = KeyBlockHeadersFilterSensitiveLog;
|
|
1747
|
+
exports.KeyCheckValueAlgorithm = KeyCheckValueAlgorithm;
|
|
1748
|
+
exports.KeyClass = KeyClass;
|
|
1749
|
+
exports.KeyDerivationFunction = KeyDerivationFunction;
|
|
1750
|
+
exports.KeyDerivationHashAlgorithm = KeyDerivationHashAlgorithm;
|
|
1751
|
+
exports.KeyExportability = KeyExportability;
|
|
1752
|
+
exports.KeyMaterialType = KeyMaterialType;
|
|
1753
|
+
exports.KeyOrigin = KeyOrigin;
|
|
1754
|
+
exports.KeyReplicationState = KeyReplicationState;
|
|
1755
|
+
exports.KeyState = KeyState;
|
|
1756
|
+
exports.KeyUsage = KeyUsage;
|
|
1757
|
+
exports.ListAliasesCommand = ListAliasesCommand;
|
|
1758
|
+
exports.ListKeysCommand = ListKeysCommand;
|
|
1759
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1760
|
+
exports.MultiRegionKeyType = MultiRegionKeyType;
|
|
1761
|
+
exports.PaymentCryptography = PaymentCryptography;
|
|
1762
|
+
exports.PaymentCryptographyClient = PaymentCryptographyClient;
|
|
1763
|
+
exports.PaymentCryptographyServiceException = PaymentCryptographyServiceException;
|
|
1764
|
+
exports.RemoveKeyReplicationRegionsCommand = RemoveKeyReplicationRegionsCommand;
|
|
1765
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1766
|
+
exports.RestoreKeyCommand = RestoreKeyCommand;
|
|
1767
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1768
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
1769
|
+
exports.SigningAlgorithmType = SigningAlgorithmType;
|
|
1770
|
+
exports.StartKeyUsageCommand = StartKeyUsageCommand;
|
|
1771
|
+
exports.StopKeyUsageCommand = StopKeyUsageCommand;
|
|
1772
|
+
exports.SymmetricKeyAlgorithm = SymmetricKeyAlgorithm;
|
|
1773
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1774
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1775
|
+
exports.Tr34KeyBlockFormat = Tr34KeyBlockFormat;
|
|
1776
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1777
|
+
exports.UpdateAliasCommand = UpdateAliasCommand;
|
|
1778
|
+
exports.ValidationException = ValidationException;
|
|
1779
|
+
exports.WrappedKeyFilterSensitiveLog = WrappedKeyFilterSensitiveLog;
|
|
1780
|
+
exports.WrappedKeyMaterialFormat = WrappedKeyMaterialFormat;
|
|
1781
|
+
exports.WrappingKeySpec = WrappingKeySpec;
|
|
1782
|
+
exports.paginateListAliases = paginateListAliases;
|
|
1783
|
+
exports.paginateListKeys = paginateListKeys;
|
|
1784
|
+
exports.paginateListTagsForResource = paginateListTagsForResource;
|