@aws-sdk/client-marketplace-deployment 3.474.0 → 3.477.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.
|
@@ -1,37 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutDeploymentParameterCommand = exports.de_ListTagsForResourceCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutDeploymentParameterCommand = exports.se_ListTagsForResourceCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
7
|
const MarketplaceDeploymentServiceException_1 = require("../models/MarketplaceDeploymentServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
10
|
-
const
|
|
10
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
11
|
const headers = {};
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
b.bp("/tags/{resourceArn}");
|
|
13
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
14
14
|
let body;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
hostname,
|
|
18
|
-
port,
|
|
19
|
-
method: "GET",
|
|
20
|
-
headers,
|
|
21
|
-
path: resolvedPath,
|
|
22
|
-
body,
|
|
23
|
-
});
|
|
15
|
+
b.m("GET").h(headers).b(body);
|
|
16
|
+
return b.build();
|
|
24
17
|
};
|
|
25
18
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
26
19
|
const se_PutDeploymentParameterCommand = async (input, context) => {
|
|
27
|
-
const
|
|
20
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
28
21
|
const headers = {
|
|
29
22
|
"content-type": "application/json",
|
|
30
23
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "productId", () => input.productId, "{productId}", false);
|
|
24
|
+
b.bp("/catalogs/{catalog}/products/{productId}/deployment-parameters");
|
|
25
|
+
b.p("catalog", () => input.catalog, "{catalog}", false);
|
|
26
|
+
b.p("productId", () => input.productId, "{productId}", false);
|
|
35
27
|
let body;
|
|
36
28
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
37
29
|
agreementId: [],
|
|
@@ -40,61 +32,39 @@ const se_PutDeploymentParameterCommand = async (input, context) => {
|
|
|
40
32
|
expirationDate: (_) => _.toISOString().split(".")[0] + "Z",
|
|
41
33
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
42
34
|
}));
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
hostname,
|
|
46
|
-
port,
|
|
47
|
-
method: "POST",
|
|
48
|
-
headers,
|
|
49
|
-
path: resolvedPath,
|
|
50
|
-
body,
|
|
51
|
-
});
|
|
35
|
+
b.m("POST").h(headers).b(body);
|
|
36
|
+
return b.build();
|
|
52
37
|
};
|
|
53
38
|
exports.se_PutDeploymentParameterCommand = se_PutDeploymentParameterCommand;
|
|
54
39
|
const se_TagResourceCommand = async (input, context) => {
|
|
55
|
-
const
|
|
40
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
56
41
|
const headers = {
|
|
57
42
|
"content-type": "application/json",
|
|
58
43
|
};
|
|
59
|
-
|
|
60
|
-
|
|
44
|
+
b.bp("/tags/{resourceArn}");
|
|
45
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
61
46
|
let body;
|
|
62
47
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
63
48
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
64
49
|
}));
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
hostname,
|
|
68
|
-
port,
|
|
69
|
-
method: "POST",
|
|
70
|
-
headers,
|
|
71
|
-
path: resolvedPath,
|
|
72
|
-
body,
|
|
73
|
-
});
|
|
50
|
+
b.m("POST").h(headers).b(body);
|
|
51
|
+
return b.build();
|
|
74
52
|
};
|
|
75
53
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
76
54
|
const se_UntagResourceCommand = async (input, context) => {
|
|
77
|
-
const
|
|
55
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
78
56
|
const headers = {};
|
|
79
|
-
|
|
80
|
-
|
|
57
|
+
b.bp("/tags/{resourceArn}");
|
|
58
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
81
59
|
const query = (0, smithy_client_1.map)({
|
|
82
|
-
|
|
60
|
+
[_tK]: [
|
|
83
61
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
84
|
-
() => (input
|
|
62
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
85
63
|
],
|
|
86
64
|
});
|
|
87
65
|
let body;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
hostname,
|
|
91
|
-
port,
|
|
92
|
-
method: "DELETE",
|
|
93
|
-
headers,
|
|
94
|
-
path: resolvedPath,
|
|
95
|
-
query,
|
|
96
|
-
body,
|
|
97
|
-
});
|
|
66
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
67
|
+
return b.build();
|
|
98
68
|
};
|
|
99
69
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
100
70
|
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -394,6 +364,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
394
364
|
value !== "" &&
|
|
395
365
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
396
366
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
367
|
+
const _tK = "tagKeys";
|
|
397
368
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
398
369
|
if (encoded.length) {
|
|
399
370
|
return JSON.parse(encoded);
|
|
@@ -1,33 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { MarketplaceDeploymentServiceException as __BaseException } from "../models/MarketplaceDeploymentServiceException";
|
|
5
5
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
7
|
-
const
|
|
7
|
+
const b = rb(input, context);
|
|
8
8
|
const headers = {};
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
b.bp("/tags/{resourceArn}");
|
|
10
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
11
11
|
let body;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
hostname,
|
|
15
|
-
port,
|
|
16
|
-
method: "GET",
|
|
17
|
-
headers,
|
|
18
|
-
path: resolvedPath,
|
|
19
|
-
body,
|
|
20
|
-
});
|
|
12
|
+
b.m("GET").h(headers).b(body);
|
|
13
|
+
return b.build();
|
|
21
14
|
};
|
|
22
15
|
export const se_PutDeploymentParameterCommand = async (input, context) => {
|
|
23
|
-
const
|
|
16
|
+
const b = rb(input, context);
|
|
24
17
|
const headers = {
|
|
25
18
|
"content-type": "application/json",
|
|
26
19
|
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "productId", () => input.productId, "{productId}", false);
|
|
20
|
+
b.bp("/catalogs/{catalog}/products/{productId}/deployment-parameters");
|
|
21
|
+
b.p("catalog", () => input.catalog, "{catalog}", false);
|
|
22
|
+
b.p("productId", () => input.productId, "{productId}", false);
|
|
31
23
|
let body;
|
|
32
24
|
body = JSON.stringify(take(input, {
|
|
33
25
|
agreementId: [],
|
|
@@ -36,59 +28,37 @@ export const se_PutDeploymentParameterCommand = async (input, context) => {
|
|
|
36
28
|
expirationDate: (_) => _.toISOString().split(".")[0] + "Z",
|
|
37
29
|
tags: (_) => _json(_),
|
|
38
30
|
}));
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
hostname,
|
|
42
|
-
port,
|
|
43
|
-
method: "POST",
|
|
44
|
-
headers,
|
|
45
|
-
path: resolvedPath,
|
|
46
|
-
body,
|
|
47
|
-
});
|
|
31
|
+
b.m("POST").h(headers).b(body);
|
|
32
|
+
return b.build();
|
|
48
33
|
};
|
|
49
34
|
export const se_TagResourceCommand = async (input, context) => {
|
|
50
|
-
const
|
|
35
|
+
const b = rb(input, context);
|
|
51
36
|
const headers = {
|
|
52
37
|
"content-type": "application/json",
|
|
53
38
|
};
|
|
54
|
-
|
|
55
|
-
|
|
39
|
+
b.bp("/tags/{resourceArn}");
|
|
40
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
56
41
|
let body;
|
|
57
42
|
body = JSON.stringify(take(input, {
|
|
58
43
|
tags: (_) => _json(_),
|
|
59
44
|
}));
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
hostname,
|
|
63
|
-
port,
|
|
64
|
-
method: "POST",
|
|
65
|
-
headers,
|
|
66
|
-
path: resolvedPath,
|
|
67
|
-
body,
|
|
68
|
-
});
|
|
45
|
+
b.m("POST").h(headers).b(body);
|
|
46
|
+
return b.build();
|
|
69
47
|
};
|
|
70
48
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
71
|
-
const
|
|
49
|
+
const b = rb(input, context);
|
|
72
50
|
const headers = {};
|
|
73
|
-
|
|
74
|
-
|
|
51
|
+
b.bp("/tags/{resourceArn}");
|
|
52
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
75
53
|
const query = map({
|
|
76
|
-
|
|
54
|
+
[_tK]: [
|
|
77
55
|
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
78
|
-
() => (input
|
|
56
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
79
57
|
],
|
|
80
58
|
});
|
|
81
59
|
let body;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
hostname,
|
|
85
|
-
port,
|
|
86
|
-
method: "DELETE",
|
|
87
|
-
headers,
|
|
88
|
-
path: resolvedPath,
|
|
89
|
-
query,
|
|
90
|
-
body,
|
|
91
|
-
});
|
|
60
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
61
|
+
return b.build();
|
|
92
62
|
};
|
|
93
63
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
94
64
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -383,6 +353,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
383
353
|
value !== "" &&
|
|
384
354
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
385
355
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
356
|
+
const _tK = "tagKeys";
|
|
386
357
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
387
358
|
if (encoded.length) {
|
|
388
359
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-marketplace-deployment",
|
|
3
3
|
"description": "AWS SDK for JavaScript Marketplace Deployment Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.477.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",
|
|
@@ -20,9 +20,9 @@
|
|
|
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.477.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.477.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|