@aws-sdk/client-marketplace-deployment 3.928.0 → 3.930.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/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.928.0",
4
+ "version": "3.930.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-marketplace-deployment",
@@ -20,43 +20,42 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.928.0",
24
- "@aws-sdk/credential-provider-node": "3.928.0",
25
- "@aws-sdk/middleware-host-header": "3.922.0",
26
- "@aws-sdk/middleware-logger": "3.922.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.922.0",
28
- "@aws-sdk/middleware-user-agent": "3.928.0",
29
- "@aws-sdk/region-config-resolver": "3.925.0",
30
- "@aws-sdk/types": "3.922.0",
31
- "@aws-sdk/util-endpoints": "3.922.0",
32
- "@aws-sdk/util-user-agent-browser": "3.922.0",
33
- "@aws-sdk/util-user-agent-node": "3.928.0",
34
- "@smithy/config-resolver": "^4.4.2",
35
- "@smithy/core": "^3.17.2",
36
- "@smithy/fetch-http-handler": "^5.3.5",
37
- "@smithy/hash-node": "^4.2.4",
38
- "@smithy/invalid-dependency": "^4.2.4",
39
- "@smithy/middleware-content-length": "^4.2.4",
40
- "@smithy/middleware-endpoint": "^4.3.6",
41
- "@smithy/middleware-retry": "^4.4.6",
42
- "@smithy/middleware-serde": "^4.2.4",
43
- "@smithy/middleware-stack": "^4.2.4",
44
- "@smithy/node-config-provider": "^4.3.4",
45
- "@smithy/node-http-handler": "^4.4.4",
46
- "@smithy/protocol-http": "^5.3.4",
47
- "@smithy/smithy-client": "^4.9.2",
48
- "@smithy/types": "^4.8.1",
49
- "@smithy/url-parser": "^4.2.4",
23
+ "@aws-sdk/core": "3.930.0",
24
+ "@aws-sdk/credential-provider-node": "3.930.0",
25
+ "@aws-sdk/middleware-host-header": "3.930.0",
26
+ "@aws-sdk/middleware-logger": "3.930.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.930.0",
28
+ "@aws-sdk/middleware-user-agent": "3.930.0",
29
+ "@aws-sdk/region-config-resolver": "3.930.0",
30
+ "@aws-sdk/types": "3.930.0",
31
+ "@aws-sdk/util-endpoints": "3.930.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.930.0",
33
+ "@aws-sdk/util-user-agent-node": "3.930.0",
34
+ "@smithy/config-resolver": "^4.4.3",
35
+ "@smithy/core": "^3.18.2",
36
+ "@smithy/fetch-http-handler": "^5.3.6",
37
+ "@smithy/hash-node": "^4.2.5",
38
+ "@smithy/invalid-dependency": "^4.2.5",
39
+ "@smithy/middleware-content-length": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.9",
41
+ "@smithy/middleware-retry": "^4.4.9",
42
+ "@smithy/middleware-serde": "^4.2.5",
43
+ "@smithy/middleware-stack": "^4.2.5",
44
+ "@smithy/node-config-provider": "^4.3.5",
45
+ "@smithy/node-http-handler": "^4.4.5",
46
+ "@smithy/protocol-http": "^5.3.5",
47
+ "@smithy/smithy-client": "^4.9.5",
48
+ "@smithy/types": "^4.9.0",
49
+ "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.5",
54
- "@smithy/util-defaults-mode-node": "^4.2.8",
55
- "@smithy/util-endpoints": "^3.2.4",
56
- "@smithy/util-middleware": "^4.2.4",
57
- "@smithy/util-retry": "^4.2.4",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.8",
54
+ "@smithy/util-defaults-mode-node": "^4.2.11",
55
+ "@smithy/util-endpoints": "^3.2.5",
56
+ "@smithy/util-middleware": "^4.2.5",
57
+ "@smithy/util-retry": "^4.2.5",
58
58
  "@smithy/util-utf8": "^4.2.0",
59
- "@smithy/uuid": "^1.1.0",
60
59
  "tslib": "^2.6.2"
61
60
  },
62
61
  "devDependencies": {
@@ -1,250 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, serializeDateTime as __serializeDateTime, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { MarketplaceDeploymentServiceException as __BaseException } from "../models/MarketplaceDeploymentServiceException";
6
- import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
7
- export const se_ListTagsForResourceCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {};
10
- b.bp("/tags/{resourceArn}");
11
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
12
- let body;
13
- b.m("GET").h(headers).b(body);
14
- return b.build();
15
- };
16
- export const se_PutDeploymentParameterCommand = async (input, context) => {
17
- const b = rb(input, context);
18
- const headers = {
19
- "content-type": "application/json",
20
- };
21
- b.bp("/catalogs/{catalog}/products/{productId}/deployment-parameters");
22
- b.p("catalog", () => input.catalog, "{catalog}", false);
23
- b.p("productId", () => input.productId, "{productId}", false);
24
- let body;
25
- body = JSON.stringify(take(input, {
26
- agreementId: [],
27
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
28
- deploymentParameter: (_) => _json(_),
29
- expirationDate: (_) => __serializeDateTime(_),
30
- tags: (_) => _json(_),
31
- }));
32
- b.m("POST").h(headers).b(body);
33
- return b.build();
34
- };
35
- export const se_TagResourceCommand = async (input, context) => {
36
- const b = rb(input, context);
37
- const headers = {
38
- "content-type": "application/json",
39
- };
40
- b.bp("/tags/{resourceArn}");
41
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
42
- let body;
43
- body = JSON.stringify(take(input, {
44
- tags: (_) => _json(_),
45
- }));
46
- b.m("POST").h(headers).b(body);
47
- return b.build();
48
- };
49
- export const se_UntagResourceCommand = async (input, context) => {
50
- const b = rb(input, context);
51
- const headers = {};
52
- b.bp("/tags/{resourceArn}");
53
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
54
- const query = map({
55
- [_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
56
- });
57
- let body;
58
- b.m("DELETE").h(headers).q(query).b(body);
59
- return b.build();
60
- };
61
- export const de_ListTagsForResourceCommand = async (output, context) => {
62
- if (output.statusCode !== 200 && output.statusCode >= 300) {
63
- return de_CommandError(output, context);
64
- }
65
- const contents = map({
66
- $metadata: deserializeMetadata(output),
67
- });
68
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
69
- const doc = take(data, {
70
- tags: _json,
71
- });
72
- Object.assign(contents, doc);
73
- return contents;
74
- };
75
- export const de_PutDeploymentParameterCommand = async (output, context) => {
76
- if (output.statusCode !== 200 && output.statusCode >= 300) {
77
- return de_CommandError(output, context);
78
- }
79
- const contents = map({
80
- $metadata: deserializeMetadata(output),
81
- });
82
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
83
- const doc = take(data, {
84
- agreementId: __expectString,
85
- deploymentParameterId: __expectString,
86
- resourceArn: __expectString,
87
- tags: _json,
88
- });
89
- Object.assign(contents, doc);
90
- return contents;
91
- };
92
- export const de_TagResourceCommand = async (output, context) => {
93
- if (output.statusCode !== 204 && output.statusCode >= 300) {
94
- return de_CommandError(output, context);
95
- }
96
- const contents = map({
97
- $metadata: deserializeMetadata(output),
98
- });
99
- await collectBody(output.body, context);
100
- return contents;
101
- };
102
- export const de_UntagResourceCommand = async (output, context) => {
103
- if (output.statusCode !== 204 && output.statusCode >= 300) {
104
- return de_CommandError(output, context);
105
- }
106
- const contents = map({
107
- $metadata: deserializeMetadata(output),
108
- });
109
- await collectBody(output.body, context);
110
- return contents;
111
- };
112
- const de_CommandError = async (output, context) => {
113
- const parsedOutput = {
114
- ...output,
115
- body: await parseErrorBody(output.body, context),
116
- };
117
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
118
- switch (errorCode) {
119
- case "AccessDeniedException":
120
- case "com.amazonaws.marketplacedeployment#AccessDeniedException":
121
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
122
- case "InternalServerException":
123
- case "com.amazonaws.marketplacedeployment#InternalServerException":
124
- throw await de_InternalServerExceptionRes(parsedOutput, context);
125
- case "ResourceNotFoundException":
126
- case "com.amazonaws.marketplacedeployment#ResourceNotFoundException":
127
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
128
- case "ThrottlingException":
129
- case "com.amazonaws.marketplacedeployment#ThrottlingException":
130
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
131
- case "ValidationException":
132
- case "com.amazonaws.marketplacedeployment#ValidationException":
133
- throw await de_ValidationExceptionRes(parsedOutput, context);
134
- case "ConflictException":
135
- case "com.amazonaws.marketplacedeployment#ConflictException":
136
- throw await de_ConflictExceptionRes(parsedOutput, context);
137
- case "ServiceQuotaExceededException":
138
- case "com.amazonaws.marketplacedeployment#ServiceQuotaExceededException":
139
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
140
- default:
141
- const parsedBody = parsedOutput.body;
142
- return throwDefaultError({
143
- output,
144
- parsedBody,
145
- errorCode,
146
- });
147
- }
148
- };
149
- const throwDefaultError = withBaseException(__BaseException);
150
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
151
- const contents = map({});
152
- const data = parsedOutput.body;
153
- const doc = take(data, {
154
- message: __expectString,
155
- });
156
- Object.assign(contents, doc);
157
- const exception = new AccessDeniedException({
158
- $metadata: deserializeMetadata(parsedOutput),
159
- ...contents,
160
- });
161
- return __decorateServiceException(exception, parsedOutput.body);
162
- };
163
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
164
- const contents = map({});
165
- const data = parsedOutput.body;
166
- const doc = take(data, {
167
- message: __expectString,
168
- resourceId: __expectString,
169
- });
170
- Object.assign(contents, doc);
171
- const exception = new ConflictException({
172
- $metadata: deserializeMetadata(parsedOutput),
173
- ...contents,
174
- });
175
- return __decorateServiceException(exception, parsedOutput.body);
176
- };
177
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
178
- const contents = map({});
179
- const data = parsedOutput.body;
180
- const doc = take(data, {
181
- message: __expectString,
182
- });
183
- Object.assign(contents, doc);
184
- const exception = new InternalServerException({
185
- $metadata: deserializeMetadata(parsedOutput),
186
- ...contents,
187
- });
188
- return __decorateServiceException(exception, parsedOutput.body);
189
- };
190
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
191
- const contents = map({});
192
- const data = parsedOutput.body;
193
- const doc = take(data, {
194
- message: __expectString,
195
- });
196
- Object.assign(contents, doc);
197
- const exception = new ResourceNotFoundException({
198
- $metadata: deserializeMetadata(parsedOutput),
199
- ...contents,
200
- });
201
- return __decorateServiceException(exception, parsedOutput.body);
202
- };
203
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
204
- const contents = map({});
205
- const data = parsedOutput.body;
206
- const doc = take(data, {
207
- message: __expectString,
208
- });
209
- Object.assign(contents, doc);
210
- const exception = new ServiceQuotaExceededException({
211
- $metadata: deserializeMetadata(parsedOutput),
212
- ...contents,
213
- });
214
- return __decorateServiceException(exception, parsedOutput.body);
215
- };
216
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
217
- const contents = map({});
218
- const data = parsedOutput.body;
219
- const doc = take(data, {
220
- message: __expectString,
221
- });
222
- Object.assign(contents, doc);
223
- const exception = new ThrottlingException({
224
- $metadata: deserializeMetadata(parsedOutput),
225
- ...contents,
226
- });
227
- return __decorateServiceException(exception, parsedOutput.body);
228
- };
229
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
230
- const contents = map({});
231
- const data = parsedOutput.body;
232
- const doc = take(data, {
233
- fieldName: __expectString,
234
- message: __expectString,
235
- });
236
- Object.assign(contents, doc);
237
- const exception = new ValidationException({
238
- $metadata: deserializeMetadata(parsedOutput),
239
- ...contents,
240
- });
241
- return __decorateServiceException(exception, parsedOutput.body);
242
- };
243
- const deserializeMetadata = (output) => ({
244
- httpStatusCode: output.statusCode,
245
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
246
- extendedRequestId: output.headers["x-amz-id-2"],
247
- cfId: output.headers["x-amz-cf-id"],
248
- });
249
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
250
- const _tK = "tagKeys";
@@ -1,38 +0,0 @@
1
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
- import { SerdeContext as __SerdeContext } from "@smithy/types";
3
- import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
4
- import { PutDeploymentParameterCommandInput, PutDeploymentParameterCommandOutput } from "../commands/PutDeploymentParameterCommand";
5
- import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
6
- import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
7
- /**
8
- * serializeAws_restJson1ListTagsForResourceCommand
9
- */
10
- export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
11
- /**
12
- * serializeAws_restJson1PutDeploymentParameterCommand
13
- */
14
- export declare const se_PutDeploymentParameterCommand: (input: PutDeploymentParameterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
15
- /**
16
- * serializeAws_restJson1TagResourceCommand
17
- */
18
- export declare const se_TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
19
- /**
20
- * serializeAws_restJson1UntagResourceCommand
21
- */
22
- export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
23
- /**
24
- * deserializeAws_restJson1ListTagsForResourceCommand
25
- */
26
- export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
27
- /**
28
- * deserializeAws_restJson1PutDeploymentParameterCommand
29
- */
30
- export declare const de_PutDeploymentParameterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutDeploymentParameterCommandOutput>;
31
- /**
32
- * deserializeAws_restJson1TagResourceCommand
33
- */
34
- export declare const de_TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
35
- /**
36
- * deserializeAws_restJson1UntagResourceCommand
37
- */
38
- export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
@@ -1,53 +0,0 @@
1
- import {
2
- HttpRequest as __HttpRequest,
3
- HttpResponse as __HttpResponse,
4
- } from "@smithy/protocol-http";
5
- import { SerdeContext as __SerdeContext } from "@smithy/types";
6
- import {
7
- ListTagsForResourceCommandInput,
8
- ListTagsForResourceCommandOutput,
9
- } from "../commands/ListTagsForResourceCommand";
10
- import {
11
- PutDeploymentParameterCommandInput,
12
- PutDeploymentParameterCommandOutput,
13
- } from "../commands/PutDeploymentParameterCommand";
14
- import {
15
- TagResourceCommandInput,
16
- TagResourceCommandOutput,
17
- } from "../commands/TagResourceCommand";
18
- import {
19
- UntagResourceCommandInput,
20
- UntagResourceCommandOutput,
21
- } from "../commands/UntagResourceCommand";
22
- export declare const se_ListTagsForResourceCommand: (
23
- input: ListTagsForResourceCommandInput,
24
- context: __SerdeContext
25
- ) => Promise<__HttpRequest>;
26
- export declare const se_PutDeploymentParameterCommand: (
27
- input: PutDeploymentParameterCommandInput,
28
- context: __SerdeContext
29
- ) => Promise<__HttpRequest>;
30
- export declare const se_TagResourceCommand: (
31
- input: TagResourceCommandInput,
32
- context: __SerdeContext
33
- ) => Promise<__HttpRequest>;
34
- export declare const se_UntagResourceCommand: (
35
- input: UntagResourceCommandInput,
36
- context: __SerdeContext
37
- ) => Promise<__HttpRequest>;
38
- export declare const de_ListTagsForResourceCommand: (
39
- output: __HttpResponse,
40
- context: __SerdeContext
41
- ) => Promise<ListTagsForResourceCommandOutput>;
42
- export declare const de_PutDeploymentParameterCommand: (
43
- output: __HttpResponse,
44
- context: __SerdeContext
45
- ) => Promise<PutDeploymentParameterCommandOutput>;
46
- export declare const de_TagResourceCommand: (
47
- output: __HttpResponse,
48
- context: __SerdeContext
49
- ) => Promise<TagResourceCommandOutput>;
50
- export declare const de_UntagResourceCommand: (
51
- output: __HttpResponse,
52
- context: __SerdeContext
53
- ) => Promise<UntagResourceCommandOutput>;