@aws-sdk/client-acm-pca 3.354.0 → 3.358.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.
|
@@ -260,7 +260,7 @@ const de_CreatePermissionCommand = async (output, context) => {
|
|
|
260
260
|
if (output.statusCode >= 300) {
|
|
261
261
|
return de_CreatePermissionCommandError(output, context);
|
|
262
262
|
}
|
|
263
|
-
await collectBody(output.body, context);
|
|
263
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
264
264
|
const response = {
|
|
265
265
|
$metadata: deserializeMetadata(output),
|
|
266
266
|
};
|
|
@@ -305,7 +305,7 @@ const de_DeleteCertificateAuthorityCommand = async (output, context) => {
|
|
|
305
305
|
if (output.statusCode >= 300) {
|
|
306
306
|
return de_DeleteCertificateAuthorityCommandError(output, context);
|
|
307
307
|
}
|
|
308
|
-
await collectBody(output.body, context);
|
|
308
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
309
309
|
const response = {
|
|
310
310
|
$metadata: deserializeMetadata(output),
|
|
311
311
|
};
|
|
@@ -344,7 +344,7 @@ const de_DeletePermissionCommand = async (output, context) => {
|
|
|
344
344
|
if (output.statusCode >= 300) {
|
|
345
345
|
return de_DeletePermissionCommandError(output, context);
|
|
346
346
|
}
|
|
347
|
-
await collectBody(output.body, context);
|
|
347
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
348
348
|
const response = {
|
|
349
349
|
$metadata: deserializeMetadata(output),
|
|
350
350
|
};
|
|
@@ -383,7 +383,7 @@ const de_DeletePolicyCommand = async (output, context) => {
|
|
|
383
383
|
if (output.statusCode >= 300) {
|
|
384
384
|
return de_DeletePolicyCommandError(output, context);
|
|
385
385
|
}
|
|
386
|
-
await collectBody(output.body, context);
|
|
386
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
387
387
|
const response = {
|
|
388
388
|
$metadata: deserializeMetadata(output),
|
|
389
389
|
};
|
|
@@ -674,7 +674,7 @@ const de_ImportCertificateAuthorityCertificateCommand = async (output, context)
|
|
|
674
674
|
if (output.statusCode >= 300) {
|
|
675
675
|
return de_ImportCertificateAuthorityCertificateCommandError(output, context);
|
|
676
676
|
}
|
|
677
|
-
await collectBody(output.body, context);
|
|
677
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
678
678
|
const response = {
|
|
679
679
|
$metadata: deserializeMetadata(output),
|
|
680
680
|
};
|
|
@@ -893,7 +893,7 @@ const de_PutPolicyCommand = async (output, context) => {
|
|
|
893
893
|
if (output.statusCode >= 300) {
|
|
894
894
|
return de_PutPolicyCommandError(output, context);
|
|
895
895
|
}
|
|
896
|
-
await collectBody(output.body, context);
|
|
896
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
897
897
|
const response = {
|
|
898
898
|
$metadata: deserializeMetadata(output),
|
|
899
899
|
};
|
|
@@ -941,7 +941,7 @@ const de_RestoreCertificateAuthorityCommand = async (output, context) => {
|
|
|
941
941
|
if (output.statusCode >= 300) {
|
|
942
942
|
return de_RestoreCertificateAuthorityCommandError(output, context);
|
|
943
943
|
}
|
|
944
|
-
await collectBody(output.body, context);
|
|
944
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
945
945
|
const response = {
|
|
946
946
|
$metadata: deserializeMetadata(output),
|
|
947
947
|
};
|
|
@@ -977,7 +977,7 @@ const de_RevokeCertificateCommand = async (output, context) => {
|
|
|
977
977
|
if (output.statusCode >= 300) {
|
|
978
978
|
return de_RevokeCertificateCommandError(output, context);
|
|
979
979
|
}
|
|
980
|
-
await collectBody(output.body, context);
|
|
980
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
981
981
|
const response = {
|
|
982
982
|
$metadata: deserializeMetadata(output),
|
|
983
983
|
};
|
|
@@ -1031,7 +1031,7 @@ const de_TagCertificateAuthorityCommand = async (output, context) => {
|
|
|
1031
1031
|
if (output.statusCode >= 300) {
|
|
1032
1032
|
return de_TagCertificateAuthorityCommandError(output, context);
|
|
1033
1033
|
}
|
|
1034
|
-
await collectBody(output.body, context);
|
|
1034
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1035
1035
|
const response = {
|
|
1036
1036
|
$metadata: deserializeMetadata(output),
|
|
1037
1037
|
};
|
|
@@ -1073,7 +1073,7 @@ const de_UntagCertificateAuthorityCommand = async (output, context) => {
|
|
|
1073
1073
|
if (output.statusCode >= 300) {
|
|
1074
1074
|
return de_UntagCertificateAuthorityCommandError(output, context);
|
|
1075
1075
|
}
|
|
1076
|
-
await collectBody(output.body, context);
|
|
1076
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1077
1077
|
const response = {
|
|
1078
1078
|
$metadata: deserializeMetadata(output),
|
|
1079
1079
|
};
|
|
@@ -1112,7 +1112,7 @@ const de_UpdateCertificateAuthorityCommand = async (output, context) => {
|
|
|
1112
1112
|
if (output.statusCode >= 300) {
|
|
1113
1113
|
return de_UpdateCertificateAuthorityCommandError(output, context);
|
|
1114
1114
|
}
|
|
1115
|
-
await collectBody(output.body, context);
|
|
1115
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1116
1116
|
const response = {
|
|
1117
1117
|
$metadata: deserializeMetadata(output),
|
|
1118
1118
|
};
|
|
@@ -1419,13 +1419,7 @@ const deserializeMetadata = (output) => ({
|
|
|
1419
1419
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1420
1420
|
cfId: output.headers["x-amz-cf-id"],
|
|
1421
1421
|
});
|
|
1422
|
-
const
|
|
1423
|
-
if (streamBody instanceof Uint8Array) {
|
|
1424
|
-
return Promise.resolve(streamBody);
|
|
1425
|
-
}
|
|
1426
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1427
|
-
};
|
|
1428
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1422
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1429
1423
|
const throwDefaultError = (0, smithy_client_1.withBaseException)(ACMPCAServiceException_1.ACMPCAServiceException);
|
|
1430
1424
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1431
1425
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { ACMPCAServiceException as __BaseException } from "../models/ACMPCAServiceException";
|
|
4
4
|
import { CertificateMismatchException, ConcurrentModificationException, InvalidArgsException, InvalidArnException, InvalidNextTokenException, InvalidPolicyException, InvalidRequestException, InvalidStateException, InvalidTagException, LimitExceededException, LockoutPreventedException, MalformedCertificateException, MalformedCSRException, PermissionAlreadyExistsException, RequestAlreadyProcessedException, RequestFailedException, RequestInProgressException, ResourceNotFoundException, TooManyTagsException, } from "../models/models_0";
|
|
@@ -1370,12 +1370,6 @@ const deserializeMetadata = (output) => ({
|
|
|
1370
1370
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1371
1371
|
cfId: output.headers["x-amz-cf-id"],
|
|
1372
1372
|
});
|
|
1373
|
-
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
1374
|
-
if (streamBody instanceof Uint8Array) {
|
|
1375
|
-
return Promise.resolve(streamBody);
|
|
1376
|
-
}
|
|
1377
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1378
|
-
};
|
|
1379
1373
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1380
1374
|
const throwDefaultError = withBaseException(__BaseException);
|
|
1381
1375
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
@@ -96,7 +96,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
96
96
|
*/
|
|
97
97
|
runtime?: string;
|
|
98
98
|
/**
|
|
99
|
-
* Disable
|
|
99
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
100
100
|
* trait of an operation.
|
|
101
101
|
*/
|
|
102
102
|
disableHostPrefix?: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-acm-pca",
|
|
3
3
|
"description": "AWS SDK for JavaScript Acm Pca Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.358.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.358.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.357.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.358.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.357.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.357.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.357.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.357.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.357.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.357.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.357.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.357.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.357.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.357.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.357.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.357.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.357.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.357.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.357.0",
|
|
42
|
+
"@aws-sdk/smithy-client": "3.358.0",
|
|
43
|
+
"@aws-sdk/types": "3.357.0",
|
|
44
|
+
"@aws-sdk/url-parser": "3.357.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-retry": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.358.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.358.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.357.0",
|
|
51
|
+
"@aws-sdk/util-retry": "3.357.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.357.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.357.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.310.0",
|
|
55
|
-
"@aws-sdk/util-waiter": "3.
|
|
55
|
+
"@aws-sdk/util-waiter": "3.357.0",
|
|
56
56
|
"@smithy/protocol-http": "^1.0.1",
|
|
57
57
|
"@smithy/types": "^1.0.0",
|
|
58
58
|
"tslib": "^2.5.0"
|