@aws-sdk/client-marketplace-deployment 3.489.0 → 3.495.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/MarketplaceDeployment.js +1 -19
- package/dist-cjs/MarketplaceDeploymentClient.js +1 -43
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PutDeploymentParameterCommand.js +1 -29
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -7
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +784 -10
- package/dist-cjs/models/MarketplaceDeploymentServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -114
- package/dist-cjs/protocols/Aws_restJson1.js +1 -407
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MarketplaceDeploymentServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
-
class MarketplaceDeploymentServiceException extends smithy_client_1.ServiceException {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
Object.setPrototypeOf(this, MarketplaceDeploymentServiceException.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.MarketplaceDeploymentServiceException = MarketplaceDeploymentServiceException;
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -1,114 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PutDeploymentParameterRequestFilterSensitiveLog = exports.DeploymentParameterInputFilterSensitiveLog = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
const MarketplaceDeploymentServiceException_1 = require("./MarketplaceDeploymentServiceException");
|
|
6
|
-
class AccessDeniedException extends MarketplaceDeploymentServiceException_1.MarketplaceDeploymentServiceException {
|
|
7
|
-
constructor(opts) {
|
|
8
|
-
super({
|
|
9
|
-
name: "AccessDeniedException",
|
|
10
|
-
$fault: "client",
|
|
11
|
-
...opts,
|
|
12
|
-
});
|
|
13
|
-
this.name = "AccessDeniedException";
|
|
14
|
-
this.$fault = "client";
|
|
15
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
19
|
-
class ConflictException extends MarketplaceDeploymentServiceException_1.MarketplaceDeploymentServiceException {
|
|
20
|
-
constructor(opts) {
|
|
21
|
-
super({
|
|
22
|
-
name: "ConflictException",
|
|
23
|
-
$fault: "client",
|
|
24
|
-
...opts,
|
|
25
|
-
});
|
|
26
|
-
this.name = "ConflictException";
|
|
27
|
-
this.$fault = "client";
|
|
28
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
29
|
-
this.resourceId = opts.resourceId;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.ConflictException = ConflictException;
|
|
33
|
-
class InternalServerException extends MarketplaceDeploymentServiceException_1.MarketplaceDeploymentServiceException {
|
|
34
|
-
constructor(opts) {
|
|
35
|
-
super({
|
|
36
|
-
name: "InternalServerException",
|
|
37
|
-
$fault: "server",
|
|
38
|
-
...opts,
|
|
39
|
-
});
|
|
40
|
-
this.name = "InternalServerException";
|
|
41
|
-
this.$fault = "server";
|
|
42
|
-
this.$retryable = {};
|
|
43
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
exports.InternalServerException = InternalServerException;
|
|
47
|
-
class ResourceNotFoundException extends MarketplaceDeploymentServiceException_1.MarketplaceDeploymentServiceException {
|
|
48
|
-
constructor(opts) {
|
|
49
|
-
super({
|
|
50
|
-
name: "ResourceNotFoundException",
|
|
51
|
-
$fault: "client",
|
|
52
|
-
...opts,
|
|
53
|
-
});
|
|
54
|
-
this.name = "ResourceNotFoundException";
|
|
55
|
-
this.$fault = "client";
|
|
56
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
60
|
-
class ServiceQuotaExceededException extends MarketplaceDeploymentServiceException_1.MarketplaceDeploymentServiceException {
|
|
61
|
-
constructor(opts) {
|
|
62
|
-
super({
|
|
63
|
-
name: "ServiceQuotaExceededException",
|
|
64
|
-
$fault: "client",
|
|
65
|
-
...opts,
|
|
66
|
-
});
|
|
67
|
-
this.name = "ServiceQuotaExceededException";
|
|
68
|
-
this.$fault = "client";
|
|
69
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
73
|
-
class ThrottlingException extends MarketplaceDeploymentServiceException_1.MarketplaceDeploymentServiceException {
|
|
74
|
-
constructor(opts) {
|
|
75
|
-
super({
|
|
76
|
-
name: "ThrottlingException",
|
|
77
|
-
$fault: "client",
|
|
78
|
-
...opts,
|
|
79
|
-
});
|
|
80
|
-
this.name = "ThrottlingException";
|
|
81
|
-
this.$fault = "client";
|
|
82
|
-
this.$retryable = {
|
|
83
|
-
throttling: true,
|
|
84
|
-
};
|
|
85
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
exports.ThrottlingException = ThrottlingException;
|
|
89
|
-
class ValidationException extends MarketplaceDeploymentServiceException_1.MarketplaceDeploymentServiceException {
|
|
90
|
-
constructor(opts) {
|
|
91
|
-
super({
|
|
92
|
-
name: "ValidationException",
|
|
93
|
-
$fault: "client",
|
|
94
|
-
...opts,
|
|
95
|
-
});
|
|
96
|
-
this.name = "ValidationException";
|
|
97
|
-
this.$fault = "client";
|
|
98
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
99
|
-
this.fieldName = opts.fieldName;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
exports.ValidationException = ValidationException;
|
|
103
|
-
const DeploymentParameterInputFilterSensitiveLog = (obj) => ({
|
|
104
|
-
...obj,
|
|
105
|
-
...(obj.secretString && { secretString: smithy_client_1.SENSITIVE_STRING }),
|
|
106
|
-
});
|
|
107
|
-
exports.DeploymentParameterInputFilterSensitiveLog = DeploymentParameterInputFilterSensitiveLog;
|
|
108
|
-
const PutDeploymentParameterRequestFilterSensitiveLog = (obj) => ({
|
|
109
|
-
...obj,
|
|
110
|
-
...(obj.deploymentParameter && {
|
|
111
|
-
deploymentParameter: (0, exports.DeploymentParameterInputFilterSensitiveLog)(obj.deploymentParameter),
|
|
112
|
-
}),
|
|
113
|
-
});
|
|
114
|
-
exports.PutDeploymentParameterRequestFilterSensitiveLog = PutDeploymentParameterRequestFilterSensitiveLog;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,407 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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 core_1 = require("@smithy/core");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const uuid_1 = require("uuid");
|
|
7
|
-
const MarketplaceDeploymentServiceException_1 = require("../models/MarketplaceDeploymentServiceException");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
|
-
const headers = {};
|
|
12
|
-
b.bp("/tags/{resourceArn}");
|
|
13
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
14
|
-
let body;
|
|
15
|
-
b.m("GET").h(headers).b(body);
|
|
16
|
-
return b.build();
|
|
17
|
-
};
|
|
18
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
19
|
-
const se_PutDeploymentParameterCommand = async (input, context) => {
|
|
20
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
21
|
-
const headers = {
|
|
22
|
-
"content-type": "application/json",
|
|
23
|
-
};
|
|
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);
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
29
|
-
agreementId: [],
|
|
30
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
31
|
-
deploymentParameter: (_) => (0, smithy_client_1._json)(_),
|
|
32
|
-
expirationDate: (_) => _.toISOString().split(".")[0] + "Z",
|
|
33
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
34
|
-
}));
|
|
35
|
-
b.m("POST").h(headers).b(body);
|
|
36
|
-
return b.build();
|
|
37
|
-
};
|
|
38
|
-
exports.se_PutDeploymentParameterCommand = se_PutDeploymentParameterCommand;
|
|
39
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
40
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
41
|
-
const headers = {
|
|
42
|
-
"content-type": "application/json",
|
|
43
|
-
};
|
|
44
|
-
b.bp("/tags/{resourceArn}");
|
|
45
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
48
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
49
|
-
}));
|
|
50
|
-
b.m("POST").h(headers).b(body);
|
|
51
|
-
return b.build();
|
|
52
|
-
};
|
|
53
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
54
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
55
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
56
|
-
const headers = {};
|
|
57
|
-
b.bp("/tags/{resourceArn}");
|
|
58
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
59
|
-
const query = (0, smithy_client_1.map)({
|
|
60
|
-
[_tK]: [
|
|
61
|
-
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
62
|
-
() => (input[_tK] || []).map((_entry) => _entry),
|
|
63
|
-
],
|
|
64
|
-
});
|
|
65
|
-
let body;
|
|
66
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
67
|
-
return b.build();
|
|
68
|
-
};
|
|
69
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
70
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
71
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
72
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
73
|
-
}
|
|
74
|
-
const contents = (0, smithy_client_1.map)({
|
|
75
|
-
$metadata: deserializeMetadata(output),
|
|
76
|
-
});
|
|
77
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
78
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
79
|
-
tags: smithy_client_1._json,
|
|
80
|
-
});
|
|
81
|
-
Object.assign(contents, doc);
|
|
82
|
-
return contents;
|
|
83
|
-
};
|
|
84
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
85
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
86
|
-
const parsedOutput = {
|
|
87
|
-
...output,
|
|
88
|
-
body: await parseErrorBody(output.body, context),
|
|
89
|
-
};
|
|
90
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
91
|
-
switch (errorCode) {
|
|
92
|
-
case "AccessDeniedException":
|
|
93
|
-
case "com.amazonaws.marketplacedeployment#AccessDeniedException":
|
|
94
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
95
|
-
case "InternalServerException":
|
|
96
|
-
case "com.amazonaws.marketplacedeployment#InternalServerException":
|
|
97
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
98
|
-
case "ResourceNotFoundException":
|
|
99
|
-
case "com.amazonaws.marketplacedeployment#ResourceNotFoundException":
|
|
100
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
101
|
-
case "ThrottlingException":
|
|
102
|
-
case "com.amazonaws.marketplacedeployment#ThrottlingException":
|
|
103
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
104
|
-
case "ValidationException":
|
|
105
|
-
case "com.amazonaws.marketplacedeployment#ValidationException":
|
|
106
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
107
|
-
default:
|
|
108
|
-
const parsedBody = parsedOutput.body;
|
|
109
|
-
return throwDefaultError({
|
|
110
|
-
output,
|
|
111
|
-
parsedBody,
|
|
112
|
-
errorCode,
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
const de_PutDeploymentParameterCommand = async (output, context) => {
|
|
117
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
118
|
-
return de_PutDeploymentParameterCommandError(output, context);
|
|
119
|
-
}
|
|
120
|
-
const contents = (0, smithy_client_1.map)({
|
|
121
|
-
$metadata: deserializeMetadata(output),
|
|
122
|
-
});
|
|
123
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
124
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
125
|
-
agreementId: smithy_client_1.expectString,
|
|
126
|
-
deploymentParameterId: smithy_client_1.expectString,
|
|
127
|
-
resourceArn: smithy_client_1.expectString,
|
|
128
|
-
tags: smithy_client_1._json,
|
|
129
|
-
});
|
|
130
|
-
Object.assign(contents, doc);
|
|
131
|
-
return contents;
|
|
132
|
-
};
|
|
133
|
-
exports.de_PutDeploymentParameterCommand = de_PutDeploymentParameterCommand;
|
|
134
|
-
const de_PutDeploymentParameterCommandError = async (output, context) => {
|
|
135
|
-
const parsedOutput = {
|
|
136
|
-
...output,
|
|
137
|
-
body: await parseErrorBody(output.body, context),
|
|
138
|
-
};
|
|
139
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
140
|
-
switch (errorCode) {
|
|
141
|
-
case "AccessDeniedException":
|
|
142
|
-
case "com.amazonaws.marketplacedeployment#AccessDeniedException":
|
|
143
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
144
|
-
case "ConflictException":
|
|
145
|
-
case "com.amazonaws.marketplacedeployment#ConflictException":
|
|
146
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
147
|
-
case "InternalServerException":
|
|
148
|
-
case "com.amazonaws.marketplacedeployment#InternalServerException":
|
|
149
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
150
|
-
case "ResourceNotFoundException":
|
|
151
|
-
case "com.amazonaws.marketplacedeployment#ResourceNotFoundException":
|
|
152
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
153
|
-
case "ServiceQuotaExceededException":
|
|
154
|
-
case "com.amazonaws.marketplacedeployment#ServiceQuotaExceededException":
|
|
155
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
156
|
-
case "ThrottlingException":
|
|
157
|
-
case "com.amazonaws.marketplacedeployment#ThrottlingException":
|
|
158
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
159
|
-
case "ValidationException":
|
|
160
|
-
case "com.amazonaws.marketplacedeployment#ValidationException":
|
|
161
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
162
|
-
default:
|
|
163
|
-
const parsedBody = parsedOutput.body;
|
|
164
|
-
return throwDefaultError({
|
|
165
|
-
output,
|
|
166
|
-
parsedBody,
|
|
167
|
-
errorCode,
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
172
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
173
|
-
return de_TagResourceCommandError(output, context);
|
|
174
|
-
}
|
|
175
|
-
const contents = (0, smithy_client_1.map)({
|
|
176
|
-
$metadata: deserializeMetadata(output),
|
|
177
|
-
});
|
|
178
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
179
|
-
return contents;
|
|
180
|
-
};
|
|
181
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
182
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
183
|
-
const parsedOutput = {
|
|
184
|
-
...output,
|
|
185
|
-
body: await parseErrorBody(output.body, context),
|
|
186
|
-
};
|
|
187
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
188
|
-
switch (errorCode) {
|
|
189
|
-
case "AccessDeniedException":
|
|
190
|
-
case "com.amazonaws.marketplacedeployment#AccessDeniedException":
|
|
191
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
192
|
-
case "ConflictException":
|
|
193
|
-
case "com.amazonaws.marketplacedeployment#ConflictException":
|
|
194
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
195
|
-
case "InternalServerException":
|
|
196
|
-
case "com.amazonaws.marketplacedeployment#InternalServerException":
|
|
197
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
198
|
-
case "ResourceNotFoundException":
|
|
199
|
-
case "com.amazonaws.marketplacedeployment#ResourceNotFoundException":
|
|
200
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
201
|
-
case "ThrottlingException":
|
|
202
|
-
case "com.amazonaws.marketplacedeployment#ThrottlingException":
|
|
203
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
204
|
-
case "ValidationException":
|
|
205
|
-
case "com.amazonaws.marketplacedeployment#ValidationException":
|
|
206
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
207
|
-
default:
|
|
208
|
-
const parsedBody = parsedOutput.body;
|
|
209
|
-
return throwDefaultError({
|
|
210
|
-
output,
|
|
211
|
-
parsedBody,
|
|
212
|
-
errorCode,
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
217
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
218
|
-
return de_UntagResourceCommandError(output, context);
|
|
219
|
-
}
|
|
220
|
-
const contents = (0, smithy_client_1.map)({
|
|
221
|
-
$metadata: deserializeMetadata(output),
|
|
222
|
-
});
|
|
223
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
224
|
-
return contents;
|
|
225
|
-
};
|
|
226
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
227
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
228
|
-
const parsedOutput = {
|
|
229
|
-
...output,
|
|
230
|
-
body: await parseErrorBody(output.body, context),
|
|
231
|
-
};
|
|
232
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
233
|
-
switch (errorCode) {
|
|
234
|
-
case "AccessDeniedException":
|
|
235
|
-
case "com.amazonaws.marketplacedeployment#AccessDeniedException":
|
|
236
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
237
|
-
case "ConflictException":
|
|
238
|
-
case "com.amazonaws.marketplacedeployment#ConflictException":
|
|
239
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
240
|
-
case "InternalServerException":
|
|
241
|
-
case "com.amazonaws.marketplacedeployment#InternalServerException":
|
|
242
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
243
|
-
case "ResourceNotFoundException":
|
|
244
|
-
case "com.amazonaws.marketplacedeployment#ResourceNotFoundException":
|
|
245
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
246
|
-
case "ThrottlingException":
|
|
247
|
-
case "com.amazonaws.marketplacedeployment#ThrottlingException":
|
|
248
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
249
|
-
case "ValidationException":
|
|
250
|
-
case "com.amazonaws.marketplacedeployment#ValidationException":
|
|
251
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
252
|
-
default:
|
|
253
|
-
const parsedBody = parsedOutput.body;
|
|
254
|
-
return throwDefaultError({
|
|
255
|
-
output,
|
|
256
|
-
parsedBody,
|
|
257
|
-
errorCode,
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(MarketplaceDeploymentServiceException_1.MarketplaceDeploymentServiceException);
|
|
262
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
263
|
-
const contents = (0, smithy_client_1.map)({});
|
|
264
|
-
const data = parsedOutput.body;
|
|
265
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
266
|
-
message: smithy_client_1.expectString,
|
|
267
|
-
});
|
|
268
|
-
Object.assign(contents, doc);
|
|
269
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
270
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
271
|
-
...contents,
|
|
272
|
-
});
|
|
273
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
274
|
-
};
|
|
275
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
276
|
-
const contents = (0, smithy_client_1.map)({});
|
|
277
|
-
const data = parsedOutput.body;
|
|
278
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
279
|
-
message: smithy_client_1.expectString,
|
|
280
|
-
resourceId: smithy_client_1.expectString,
|
|
281
|
-
});
|
|
282
|
-
Object.assign(contents, doc);
|
|
283
|
-
const exception = new models_0_1.ConflictException({
|
|
284
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
285
|
-
...contents,
|
|
286
|
-
});
|
|
287
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
288
|
-
};
|
|
289
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
290
|
-
const contents = (0, smithy_client_1.map)({});
|
|
291
|
-
const data = parsedOutput.body;
|
|
292
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
293
|
-
message: smithy_client_1.expectString,
|
|
294
|
-
});
|
|
295
|
-
Object.assign(contents, doc);
|
|
296
|
-
const exception = new models_0_1.InternalServerException({
|
|
297
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
298
|
-
...contents,
|
|
299
|
-
});
|
|
300
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
301
|
-
};
|
|
302
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
303
|
-
const contents = (0, smithy_client_1.map)({});
|
|
304
|
-
const data = parsedOutput.body;
|
|
305
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
306
|
-
message: smithy_client_1.expectString,
|
|
307
|
-
});
|
|
308
|
-
Object.assign(contents, doc);
|
|
309
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
310
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
311
|
-
...contents,
|
|
312
|
-
});
|
|
313
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
314
|
-
};
|
|
315
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
316
|
-
const contents = (0, smithy_client_1.map)({});
|
|
317
|
-
const data = parsedOutput.body;
|
|
318
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
319
|
-
message: smithy_client_1.expectString,
|
|
320
|
-
});
|
|
321
|
-
Object.assign(contents, doc);
|
|
322
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
323
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
324
|
-
...contents,
|
|
325
|
-
});
|
|
326
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
327
|
-
};
|
|
328
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
329
|
-
const contents = (0, smithy_client_1.map)({});
|
|
330
|
-
const data = parsedOutput.body;
|
|
331
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
332
|
-
message: smithy_client_1.expectString,
|
|
333
|
-
});
|
|
334
|
-
Object.assign(contents, doc);
|
|
335
|
-
const exception = new models_0_1.ThrottlingException({
|
|
336
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
337
|
-
...contents,
|
|
338
|
-
});
|
|
339
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
340
|
-
};
|
|
341
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
342
|
-
const contents = (0, smithy_client_1.map)({});
|
|
343
|
-
const data = parsedOutput.body;
|
|
344
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
345
|
-
fieldName: smithy_client_1.expectString,
|
|
346
|
-
message: smithy_client_1.expectString,
|
|
347
|
-
});
|
|
348
|
-
Object.assign(contents, doc);
|
|
349
|
-
const exception = new models_0_1.ValidationException({
|
|
350
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
351
|
-
...contents,
|
|
352
|
-
});
|
|
353
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
354
|
-
};
|
|
355
|
-
const deserializeMetadata = (output) => ({
|
|
356
|
-
httpStatusCode: output.statusCode,
|
|
357
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
358
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
359
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
360
|
-
});
|
|
361
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
362
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
363
|
-
value !== null &&
|
|
364
|
-
value !== "" &&
|
|
365
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
366
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
367
|
-
const _tK = "tagKeys";
|
|
368
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
369
|
-
if (encoded.length) {
|
|
370
|
-
return JSON.parse(encoded);
|
|
371
|
-
}
|
|
372
|
-
return {};
|
|
373
|
-
});
|
|
374
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
375
|
-
const value = await parseBody(errorBody, context);
|
|
376
|
-
value.message = value.message ?? value.Message;
|
|
377
|
-
return value;
|
|
378
|
-
};
|
|
379
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
380
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
381
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
382
|
-
let cleanValue = rawValue;
|
|
383
|
-
if (typeof cleanValue === "number") {
|
|
384
|
-
cleanValue = cleanValue.toString();
|
|
385
|
-
}
|
|
386
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
387
|
-
cleanValue = cleanValue.split(",")[0];
|
|
388
|
-
}
|
|
389
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
390
|
-
cleanValue = cleanValue.split(":")[0];
|
|
391
|
-
}
|
|
392
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
393
|
-
cleanValue = cleanValue.split("#")[1];
|
|
394
|
-
}
|
|
395
|
-
return cleanValue;
|
|
396
|
-
};
|
|
397
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
398
|
-
if (headerKey !== undefined) {
|
|
399
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
400
|
-
}
|
|
401
|
-
if (data.code !== undefined) {
|
|
402
|
-
return sanitizeErrorCode(data.code);
|
|
403
|
-
}
|
|
404
|
-
if (data["__type"] !== undefined) {
|
|
405
|
-
return sanitizeErrorCode(data["__type"]);
|
|
406
|
-
}
|
|
407
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const asPartial = (t) => t;
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = {
|
|
10
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
11
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
12
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
13
|
-
};
|
|
14
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
15
|
-
return {
|
|
16
|
-
...runtimeConfig,
|
|
17
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
18
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
19
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
1
|
+
module.exports = require("./index.js");
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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.495.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
-
"build:cjs": "
|
|
7
|
+
"build:cjs": "node ../../scripts/compilation/inline client-marketplace-deployment",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
@@ -20,48 +20,48 @@
|
|
|
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.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^2.0
|
|
37
|
-
"@smithy/core": "^1.
|
|
38
|
-
"@smithy/fetch-http-handler": "^2.
|
|
39
|
-
"@smithy/hash-node": "^2.0
|
|
40
|
-
"@smithy/invalid-dependency": "^2.0
|
|
41
|
-
"@smithy/middleware-content-length": "^2.0
|
|
42
|
-
"@smithy/middleware-endpoint": "^2.
|
|
43
|
-
"@smithy/middleware-retry": "^2.0
|
|
44
|
-
"@smithy/middleware-serde": "^2.0
|
|
45
|
-
"@smithy/middleware-stack": "^2.0
|
|
46
|
-
"@smithy/node-config-provider": "^2.
|
|
47
|
-
"@smithy/node-http-handler": "^2.
|
|
48
|
-
"@smithy/protocol-http": "^3.0
|
|
49
|
-
"@smithy/smithy-client": "^2.
|
|
50
|
-
"@smithy/types": "^2.
|
|
51
|
-
"@smithy/url-parser": "^2.0
|
|
52
|
-
"@smithy/util-base64": "^2.0
|
|
53
|
-
"@smithy/util-body-length-browser": "^2.0
|
|
54
|
-
"@smithy/util-body-length-node": "^2.
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^2.0
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^2.0
|
|
57
|
-
"@smithy/util-endpoints": "^1.0
|
|
58
|
-
"@smithy/util-retry": "^2.0
|
|
59
|
-
"@smithy/util-utf8": "^2.0
|
|
23
|
+
"@aws-sdk/client-sts": "3.495.0",
|
|
24
|
+
"@aws-sdk/core": "3.495.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.495.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.495.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.495.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.495.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.495.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.495.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.495.0",
|
|
32
|
+
"@aws-sdk/types": "3.495.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.495.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.495.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.495.0",
|
|
36
|
+
"@smithy/config-resolver": "^2.1.0",
|
|
37
|
+
"@smithy/core": "^1.3.0",
|
|
38
|
+
"@smithy/fetch-http-handler": "^2.4.0",
|
|
39
|
+
"@smithy/hash-node": "^2.1.0",
|
|
40
|
+
"@smithy/invalid-dependency": "^2.1.0",
|
|
41
|
+
"@smithy/middleware-content-length": "^2.1.0",
|
|
42
|
+
"@smithy/middleware-endpoint": "^2.4.0",
|
|
43
|
+
"@smithy/middleware-retry": "^2.1.0",
|
|
44
|
+
"@smithy/middleware-serde": "^2.1.0",
|
|
45
|
+
"@smithy/middleware-stack": "^2.1.0",
|
|
46
|
+
"@smithy/node-config-provider": "^2.2.0",
|
|
47
|
+
"@smithy/node-http-handler": "^2.3.0",
|
|
48
|
+
"@smithy/protocol-http": "^3.1.0",
|
|
49
|
+
"@smithy/smithy-client": "^2.3.0",
|
|
50
|
+
"@smithy/types": "^2.9.0",
|
|
51
|
+
"@smithy/url-parser": "^2.1.0",
|
|
52
|
+
"@smithy/util-base64": "^2.1.0",
|
|
53
|
+
"@smithy/util-body-length-browser": "^2.1.0",
|
|
54
|
+
"@smithy/util-body-length-node": "^2.2.0",
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^2.1.0",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^2.1.0",
|
|
57
|
+
"@smithy/util-endpoints": "^1.1.0",
|
|
58
|
+
"@smithy/util-retry": "^2.1.0",
|
|
59
|
+
"@smithy/util-utf8": "^2.1.0",
|
|
60
60
|
"tslib": "^2.5.0",
|
|
61
61
|
"uuid": "^8.3.2"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@smithy/service-client-documentation-generator": "^2.
|
|
64
|
+
"@smithy/service-client-documentation-generator": "^2.1.0",
|
|
65
65
|
"@tsconfig/node14": "1.0.3",
|
|
66
66
|
"@types/node": "^14.14.31",
|
|
67
67
|
"@types/uuid": "^8.3.0",
|