@aws-sdk/client-acm 3.523.0 → 3.529.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 +11 -51
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/ACM.js +0 -1
- package/dist-cjs/ACMClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/AddTagsToCertificateCommand.js +0 -1
- package/dist-cjs/commands/DeleteCertificateCommand.js +0 -1
- package/dist-cjs/commands/DescribeCertificateCommand.js +0 -1
- package/dist-cjs/commands/ExportCertificateCommand.js +0 -1
- package/dist-cjs/commands/GetAccountConfigurationCommand.js +0 -1
- package/dist-cjs/commands/GetCertificateCommand.js +0 -1
- package/dist-cjs/commands/ImportCertificateCommand.js +0 -1
- package/dist-cjs/commands/ListCertificatesCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForCertificateCommand.js +0 -1
- package/dist-cjs/commands/PutAccountConfigurationCommand.js +0 -1
- package/dist-cjs/commands/RemoveTagsFromCertificateCommand.js +0 -1
- package/dist-cjs/commands/RenewCertificateCommand.js +0 -1
- package/dist-cjs/commands/RequestCertificateCommand.js +0 -1
- package/dist-cjs/commands/ResendValidationEmailCommand.js +0 -1
- package/dist-cjs/commands/UpdateCertificateOptionsCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/ACMServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListCertificatesPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
- package/dist-cjs/waiters/index.js +0 -1
- package/dist-cjs/waiters/waitForCertificateValidated.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -233,6 +233,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
233
233
|
var import_types = require("@smithy/types");
|
|
234
234
|
|
|
235
235
|
// src/protocols/Aws_json1_1.ts
|
|
236
|
+
var import_core2 = require("@aws-sdk/core");
|
|
236
237
|
|
|
237
238
|
|
|
238
239
|
|
|
@@ -766,7 +767,7 @@ var de_DescribeCertificateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
766
767
|
if (output.statusCode >= 300) {
|
|
767
768
|
return de_CommandError(output, context);
|
|
768
769
|
}
|
|
769
|
-
const data = await
|
|
770
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
770
771
|
let contents = {};
|
|
771
772
|
contents = de_DescribeCertificateResponse(data, context);
|
|
772
773
|
const response = {
|
|
@@ -779,7 +780,7 @@ var de_ExportCertificateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
779
780
|
if (output.statusCode >= 300) {
|
|
780
781
|
return de_CommandError(output, context);
|
|
781
782
|
}
|
|
782
|
-
const data = await
|
|
783
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
783
784
|
let contents = {};
|
|
784
785
|
contents = (0, import_smithy_client._json)(data);
|
|
785
786
|
const response = {
|
|
@@ -792,7 +793,7 @@ var de_GetAccountConfigurationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
792
793
|
if (output.statusCode >= 300) {
|
|
793
794
|
return de_CommandError(output, context);
|
|
794
795
|
}
|
|
795
|
-
const data = await
|
|
796
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
796
797
|
let contents = {};
|
|
797
798
|
contents = (0, import_smithy_client._json)(data);
|
|
798
799
|
const response = {
|
|
@@ -805,7 +806,7 @@ var de_GetCertificateCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
805
806
|
if (output.statusCode >= 300) {
|
|
806
807
|
return de_CommandError(output, context);
|
|
807
808
|
}
|
|
808
|
-
const data = await
|
|
809
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
809
810
|
let contents = {};
|
|
810
811
|
contents = (0, import_smithy_client._json)(data);
|
|
811
812
|
const response = {
|
|
@@ -818,7 +819,7 @@ var de_ImportCertificateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
818
819
|
if (output.statusCode >= 300) {
|
|
819
820
|
return de_CommandError(output, context);
|
|
820
821
|
}
|
|
821
|
-
const data = await
|
|
822
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
822
823
|
let contents = {};
|
|
823
824
|
contents = (0, import_smithy_client._json)(data);
|
|
824
825
|
const response = {
|
|
@@ -831,7 +832,7 @@ var de_ListCertificatesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
831
832
|
if (output.statusCode >= 300) {
|
|
832
833
|
return de_CommandError(output, context);
|
|
833
834
|
}
|
|
834
|
-
const data = await
|
|
835
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
835
836
|
let contents = {};
|
|
836
837
|
contents = de_ListCertificatesResponse(data, context);
|
|
837
838
|
const response = {
|
|
@@ -844,7 +845,7 @@ var de_ListTagsForCertificateCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
844
845
|
if (output.statusCode >= 300) {
|
|
845
846
|
return de_CommandError(output, context);
|
|
846
847
|
}
|
|
847
|
-
const data = await
|
|
848
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
848
849
|
let contents = {};
|
|
849
850
|
contents = (0, import_smithy_client._json)(data);
|
|
850
851
|
const response = {
|
|
@@ -887,7 +888,7 @@ var de_RequestCertificateCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
887
888
|
if (output.statusCode >= 300) {
|
|
888
889
|
return de_CommandError(output, context);
|
|
889
890
|
}
|
|
890
|
-
const data = await
|
|
891
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
891
892
|
let contents = {};
|
|
892
893
|
contents = (0, import_smithy_client._json)(data);
|
|
893
894
|
const response = {
|
|
@@ -919,9 +920,9 @@ var de_UpdateCertificateOptionsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
919
920
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
920
921
|
const parsedOutput = {
|
|
921
922
|
...output,
|
|
922
|
-
body: await
|
|
923
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
923
924
|
};
|
|
924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
925
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
925
926
|
switch (errorCode) {
|
|
926
927
|
case "InvalidArnException":
|
|
927
928
|
case "com.amazonaws.acm#InvalidArnException":
|
|
@@ -1222,7 +1223,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1222
1223
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1223
1224
|
cfId: output.headers["x-amz-cf-id"]
|
|
1224
1225
|
}), "deserializeMetadata");
|
|
1225
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1226
1226
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ACMServiceException);
|
|
1227
1227
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1228
1228
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1249,46 +1249,6 @@ function sharedHeaders(operation) {
|
|
|
1249
1249
|
};
|
|
1250
1250
|
}
|
|
1251
1251
|
__name(sharedHeaders, "sharedHeaders");
|
|
1252
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1253
|
-
if (encoded.length) {
|
|
1254
|
-
return JSON.parse(encoded);
|
|
1255
|
-
}
|
|
1256
|
-
return {};
|
|
1257
|
-
}), "parseBody");
|
|
1258
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1259
|
-
const value = await parseBody(errorBody, context);
|
|
1260
|
-
value.message = value.message ?? value.Message;
|
|
1261
|
-
return value;
|
|
1262
|
-
}, "parseErrorBody");
|
|
1263
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1264
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1265
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1266
|
-
let cleanValue = rawValue;
|
|
1267
|
-
if (typeof cleanValue === "number") {
|
|
1268
|
-
cleanValue = cleanValue.toString();
|
|
1269
|
-
}
|
|
1270
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1271
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1272
|
-
}
|
|
1273
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1274
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1275
|
-
}
|
|
1276
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1277
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1278
|
-
}
|
|
1279
|
-
return cleanValue;
|
|
1280
|
-
}, "sanitizeErrorCode");
|
|
1281
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1282
|
-
if (headerKey !== void 0) {
|
|
1283
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1284
|
-
}
|
|
1285
|
-
if (data.code !== void 0) {
|
|
1286
|
-
return sanitizeErrorCode(data.code);
|
|
1287
|
-
}
|
|
1288
|
-
if (data["__type"] !== void 0) {
|
|
1289
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1290
|
-
}
|
|
1291
|
-
}, "loadRestJsonErrorCode");
|
|
1292
1252
|
|
|
1293
1253
|
// src/commands/AddTagsToCertificateCommand.ts
|
|
1294
1254
|
var _AddTagsToCertificateCommand = class _AddTagsToCertificateCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { ACMServiceException as __BaseException } from "../models/ACMServiceException";
|
|
@@ -599,43 +600,3 @@ function sharedHeaders(operation) {
|
|
|
599
600
|
"x-amz-target": `CertificateManager.${operation}`,
|
|
600
601
|
};
|
|
601
602
|
}
|
|
602
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
603
|
-
if (encoded.length) {
|
|
604
|
-
return JSON.parse(encoded);
|
|
605
|
-
}
|
|
606
|
-
return {};
|
|
607
|
-
});
|
|
608
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
609
|
-
const value = await parseBody(errorBody, context);
|
|
610
|
-
value.message = value.message ?? value.Message;
|
|
611
|
-
return value;
|
|
612
|
-
};
|
|
613
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
614
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
615
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
616
|
-
let cleanValue = rawValue;
|
|
617
|
-
if (typeof cleanValue === "number") {
|
|
618
|
-
cleanValue = cleanValue.toString();
|
|
619
|
-
}
|
|
620
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
621
|
-
cleanValue = cleanValue.split(",")[0];
|
|
622
|
-
}
|
|
623
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
624
|
-
cleanValue = cleanValue.split(":")[0];
|
|
625
|
-
}
|
|
626
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
627
|
-
cleanValue = cleanValue.split("#")[1];
|
|
628
|
-
}
|
|
629
|
-
return cleanValue;
|
|
630
|
-
};
|
|
631
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
632
|
-
if (headerKey !== undefined) {
|
|
633
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
634
|
-
}
|
|
635
|
-
if (data.code !== undefined) {
|
|
636
|
-
return sanitizeErrorCode(data.code);
|
|
637
|
-
}
|
|
638
|
-
if (data["__type"] !== undefined) {
|
|
639
|
-
return sanitizeErrorCode(data["__type"]);
|
|
640
|
-
}
|
|
641
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-acm",
|
|
3
3
|
"description": "AWS SDK for JavaScript Acm Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-acm",
|
|
@@ -20,40 +20,40 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.525.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.525.0",
|
|
31
31
|
"@aws-sdk/types": "3.523.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.525.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.1.
|
|
36
|
-
"@smithy/core": "^1.3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.525.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.1.4",
|
|
36
|
+
"@smithy/core": "^1.3.5",
|
|
37
37
|
"@smithy/fetch-http-handler": "^2.4.3",
|
|
38
38
|
"@smithy/hash-node": "^2.1.3",
|
|
39
39
|
"@smithy/invalid-dependency": "^2.1.3",
|
|
40
40
|
"@smithy/middleware-content-length": "^2.1.3",
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
42
|
-
"@smithy/middleware-retry": "^2.1.
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.4.4",
|
|
42
|
+
"@smithy/middleware-retry": "^2.1.4",
|
|
43
43
|
"@smithy/middleware-serde": "^2.1.3",
|
|
44
44
|
"@smithy/middleware-stack": "^2.1.3",
|
|
45
|
-
"@smithy/node-config-provider": "^2.2.
|
|
45
|
+
"@smithy/node-config-provider": "^2.2.4",
|
|
46
46
|
"@smithy/node-http-handler": "^2.4.1",
|
|
47
47
|
"@smithy/protocol-http": "^3.2.1",
|
|
48
|
-
"@smithy/smithy-client": "^2.4.
|
|
48
|
+
"@smithy/smithy-client": "^2.4.2",
|
|
49
49
|
"@smithy/types": "^2.10.1",
|
|
50
50
|
"@smithy/url-parser": "^2.1.3",
|
|
51
51
|
"@smithy/util-base64": "^2.1.1",
|
|
52
52
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
53
53
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.1.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.1.4",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.2.3",
|
|
56
|
+
"@smithy/util-endpoints": "^1.1.4",
|
|
57
57
|
"@smithy/util-middleware": "^2.1.3",
|
|
58
58
|
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-utf8": "^2.1.1",
|
package/dist-cjs/ACM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
package/dist-cjs/ACMClient.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|