@aws-sdk/client-marketplace-catalog 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.
package/README.md CHANGED
@@ -208,6 +208,14 @@ see LICENSE for more information.
208
208
 
209
209
  ## Client Commands (Operations List)
210
210
 
211
+ <details>
212
+ <summary>
213
+ BatchDescribeEntities
214
+ </summary>
215
+
216
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/marketplace-catalog/command/BatchDescribeEntitiesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-catalog/Interface/BatchDescribeEntitiesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-marketplace-catalog/Interface/BatchDescribeEntitiesCommandOutput/)
217
+
218
+ </details>
211
219
  <details>
212
220
  <summary>
213
221
  CancelChangeSet
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MarketplaceCatalog = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
+ const BatchDescribeEntitiesCommand_1 = require("./commands/BatchDescribeEntitiesCommand");
5
6
  const CancelChangeSetCommand_1 = require("./commands/CancelChangeSetCommand");
6
7
  const DeleteResourcePolicyCommand_1 = require("./commands/DeleteResourcePolicyCommand");
7
8
  const DescribeChangeSetCommand_1 = require("./commands/DescribeChangeSetCommand");
@@ -16,6 +17,7 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
16
17
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
17
18
  const MarketplaceCatalogClient_1 = require("./MarketplaceCatalogClient");
18
19
  const commands = {
20
+ BatchDescribeEntitiesCommand: BatchDescribeEntitiesCommand_1.BatchDescribeEntitiesCommand,
19
21
  CancelChangeSetCommand: CancelChangeSetCommand_1.CancelChangeSetCommand,
20
22
  DeleteResourcePolicyCommand: DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand,
21
23
  DescribeChangeSetCommand: DescribeChangeSetCommand_1.DescribeChangeSetCommand,
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchDescribeEntitiesCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class BatchDescribeEntitiesCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchDescribeEntitiesCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "MarketplaceCatalogClient";
29
+ const commandName = "BatchDescribeEntitiesCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSMPSeymour",
38
+ operation: "BatchDescribeEntities",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_BatchDescribeEntitiesCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_BatchDescribeEntitiesCommand)(output, context);
49
+ }
50
+ }
51
+ exports.BatchDescribeEntitiesCommand = BatchDescribeEntitiesCommand;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./BatchDescribeEntitiesCommand"), exports);
4
5
  tslib_1.__exportStar(require("./CancelChangeSetCommand"), exports);
5
6
  tslib_1.__exportStar(require("./DeleteResourcePolicyCommand"), exports);
6
7
  tslib_1.__exportStar(require("./DescribeChangeSetCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceQuotaExceededException = exports.OwnershipType = exports.EntityTypeSort = exports.SaaSProductSortBy = exports.ResaleAuthorizationSortBy = exports.OfferSortBy = exports.DataProductSortBy = exports.ContainerProductSortBy = exports.EntityTypeFilters = exports.SaaSProductVisibilityString = exports.ResaleAuthorizationStatusString = exports.OfferTargetingString = exports.OfferStateString = exports.DataProductVisibilityString = exports.ContainerProductVisibilityString = exports.ResourceNotSupportedException = exports.ChangeStatus = exports.FailureCode = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.ResourceInUseException = exports.InternalServiceException = exports.SortOrder = exports.AmiProductSortBy = exports.AmiProductVisibilityString = exports.AccessDeniedException = void 0;
3
+ exports.ServiceQuotaExceededException = exports.OwnershipType = exports.EntityTypeSort = exports.SaaSProductSortBy = exports.ResaleAuthorizationSortBy = exports.OfferSortBy = exports.DataProductSortBy = exports.ContainerProductSortBy = exports.EntityTypeFilters = exports.SaaSProductVisibilityString = exports.ResaleAuthorizationStatusString = exports.OfferTargetingString = exports.OfferStateString = exports.DataProductVisibilityString = exports.ContainerProductVisibilityString = exports.ResourceNotSupportedException = exports.ChangeStatus = exports.FailureCode = exports.ResourceNotFoundException = exports.ResourceInUseException = exports.ValidationException = exports.ThrottlingException = exports.InternalServiceException = exports.SortOrder = exports.AmiProductSortBy = exports.AmiProductVisibilityString = exports.AccessDeniedException = void 0;
4
4
  const MarketplaceCatalogServiceException_1 = require("./MarketplaceCatalogServiceException");
5
5
  class AccessDeniedException extends MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException {
6
6
  constructor(opts) {
@@ -46,62 +46,62 @@ class InternalServiceException extends MarketplaceCatalogServiceException_1.Mark
46
46
  }
47
47
  }
48
48
  exports.InternalServiceException = InternalServiceException;
49
- class ResourceInUseException extends MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException {
49
+ class ThrottlingException extends MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException {
50
50
  constructor(opts) {
51
51
  super({
52
- name: "ResourceInUseException",
52
+ name: "ThrottlingException",
53
53
  $fault: "client",
54
54
  ...opts,
55
55
  });
56
- this.name = "ResourceInUseException";
56
+ this.name = "ThrottlingException";
57
57
  this.$fault = "client";
58
- Object.setPrototypeOf(this, ResourceInUseException.prototype);
58
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
59
59
  this.Message = opts.Message;
60
60
  }
61
61
  }
62
- exports.ResourceInUseException = ResourceInUseException;
63
- class ResourceNotFoundException extends MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException {
62
+ exports.ThrottlingException = ThrottlingException;
63
+ class ValidationException extends MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException {
64
64
  constructor(opts) {
65
65
  super({
66
- name: "ResourceNotFoundException",
66
+ name: "ValidationException",
67
67
  $fault: "client",
68
68
  ...opts,
69
69
  });
70
- this.name = "ResourceNotFoundException";
70
+ this.name = "ValidationException";
71
71
  this.$fault = "client";
72
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
72
+ Object.setPrototypeOf(this, ValidationException.prototype);
73
73
  this.Message = opts.Message;
74
74
  }
75
75
  }
76
- exports.ResourceNotFoundException = ResourceNotFoundException;
77
- class ThrottlingException extends MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException {
76
+ exports.ValidationException = ValidationException;
77
+ class ResourceInUseException extends MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException {
78
78
  constructor(opts) {
79
79
  super({
80
- name: "ThrottlingException",
80
+ name: "ResourceInUseException",
81
81
  $fault: "client",
82
82
  ...opts,
83
83
  });
84
- this.name = "ThrottlingException";
84
+ this.name = "ResourceInUseException";
85
85
  this.$fault = "client";
86
- Object.setPrototypeOf(this, ThrottlingException.prototype);
86
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
87
87
  this.Message = opts.Message;
88
88
  }
89
89
  }
90
- exports.ThrottlingException = ThrottlingException;
91
- class ValidationException extends MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException {
90
+ exports.ResourceInUseException = ResourceInUseException;
91
+ class ResourceNotFoundException extends MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException {
92
92
  constructor(opts) {
93
93
  super({
94
- name: "ValidationException",
94
+ name: "ResourceNotFoundException",
95
95
  $fault: "client",
96
96
  ...opts,
97
97
  });
98
- this.name = "ValidationException";
98
+ this.name = "ResourceNotFoundException";
99
99
  this.$fault = "client";
100
- Object.setPrototypeOf(this, ValidationException.prototype);
100
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
101
101
  this.Message = opts.Message;
102
102
  }
103
103
  }
104
- exports.ValidationException = ValidationException;
104
+ exports.ResourceNotFoundException = ResourceNotFoundException;
105
105
  exports.FailureCode = {
106
106
  ClientError: "CLIENT_ERROR",
107
107
  ServerFault: "SERVER_FAULT",
@@ -1,120 +1,94 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartChangeSetCommand = exports.de_PutResourcePolicyCommand = exports.de_ListTagsForResourceCommand = exports.de_ListEntitiesCommand = exports.de_ListChangeSetsCommand = exports.de_GetResourcePolicyCommand = exports.de_DescribeEntityCommand = exports.de_DescribeChangeSetCommand = exports.de_DeleteResourcePolicyCommand = exports.de_CancelChangeSetCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartChangeSetCommand = exports.se_PutResourcePolicyCommand = exports.se_ListTagsForResourceCommand = exports.se_ListEntitiesCommand = exports.se_ListChangeSetsCommand = exports.se_GetResourcePolicyCommand = exports.se_DescribeEntityCommand = exports.se_DescribeChangeSetCommand = exports.se_DeleteResourcePolicyCommand = exports.se_CancelChangeSetCommand = void 0;
4
- const protocol_http_1 = require("@smithy/protocol-http");
3
+ exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartChangeSetCommand = exports.de_PutResourcePolicyCommand = exports.de_ListTagsForResourceCommand = exports.de_ListEntitiesCommand = exports.de_ListChangeSetsCommand = exports.de_GetResourcePolicyCommand = exports.de_DescribeEntityCommand = exports.de_DescribeChangeSetCommand = exports.de_DeleteResourcePolicyCommand = exports.de_CancelChangeSetCommand = exports.de_BatchDescribeEntitiesCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartChangeSetCommand = exports.se_PutResourcePolicyCommand = exports.se_ListTagsForResourceCommand = exports.se_ListEntitiesCommand = exports.se_ListChangeSetsCommand = exports.se_GetResourcePolicyCommand = exports.se_DescribeEntityCommand = exports.se_DescribeChangeSetCommand = exports.se_DeleteResourcePolicyCommand = exports.se_CancelChangeSetCommand = exports.se_BatchDescribeEntitiesCommand = void 0;
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 MarketplaceCatalogServiceException_1 = require("../models/MarketplaceCatalogServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
+ const se_BatchDescribeEntitiesCommand = async (input, context) => {
10
+ const b = (0, core_1.requestBuilder)(input, context);
11
+ const headers = {
12
+ "content-type": "application/json",
13
+ };
14
+ b.bp("/BatchDescribeEntities");
15
+ let body;
16
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
17
+ EntityRequestList: (_) => (0, smithy_client_1._json)(_),
18
+ }));
19
+ b.m("POST").h(headers).b(body);
20
+ return b.build();
21
+ };
22
+ exports.se_BatchDescribeEntitiesCommand = se_BatchDescribeEntitiesCommand;
9
23
  const se_CancelChangeSetCommand = async (input, context) => {
10
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
24
+ const b = (0, core_1.requestBuilder)(input, context);
11
25
  const headers = {};
12
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CancelChangeSet";
26
+ b.bp("/CancelChangeSet");
13
27
  const query = (0, smithy_client_1.map)({
14
- catalog: [, (0, smithy_client_1.expectNonNull)(input.Catalog, `Catalog`)],
15
- changeSetId: [, (0, smithy_client_1.expectNonNull)(input.ChangeSetId, `ChangeSetId`)],
28
+ [_c]: [, (0, smithy_client_1.expectNonNull)(input[_C], `Catalog`)],
29
+ [_cSI]: [, (0, smithy_client_1.expectNonNull)(input[_CSI], `ChangeSetId`)],
16
30
  });
17
31
  let body;
18
- return new protocol_http_1.HttpRequest({
19
- protocol,
20
- hostname,
21
- port,
22
- method: "PATCH",
23
- headers,
24
- path: resolvedPath,
25
- query,
26
- body,
27
- });
32
+ b.m("PATCH").h(headers).q(query).b(body);
33
+ return b.build();
28
34
  };
29
35
  exports.se_CancelChangeSetCommand = se_CancelChangeSetCommand;
30
36
  const se_DeleteResourcePolicyCommand = async (input, context) => {
31
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
37
+ const b = (0, core_1.requestBuilder)(input, context);
32
38
  const headers = {};
33
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteResourcePolicy";
39
+ b.bp("/DeleteResourcePolicy");
34
40
  const query = (0, smithy_client_1.map)({
35
- resourceArn: [, (0, smithy_client_1.expectNonNull)(input.ResourceArn, `ResourceArn`)],
41
+ [_rA]: [, (0, smithy_client_1.expectNonNull)(input[_RA], `ResourceArn`)],
36
42
  });
37
43
  let body;
38
- return new protocol_http_1.HttpRequest({
39
- protocol,
40
- hostname,
41
- port,
42
- method: "DELETE",
43
- headers,
44
- path: resolvedPath,
45
- query,
46
- body,
47
- });
44
+ b.m("DELETE").h(headers).q(query).b(body);
45
+ return b.build();
48
46
  };
49
47
  exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
50
48
  const se_DescribeChangeSetCommand = async (input, context) => {
51
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
49
+ const b = (0, core_1.requestBuilder)(input, context);
52
50
  const headers = {};
53
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeChangeSet";
51
+ b.bp("/DescribeChangeSet");
54
52
  const query = (0, smithy_client_1.map)({
55
- catalog: [, (0, smithy_client_1.expectNonNull)(input.Catalog, `Catalog`)],
56
- changeSetId: [, (0, smithy_client_1.expectNonNull)(input.ChangeSetId, `ChangeSetId`)],
53
+ [_c]: [, (0, smithy_client_1.expectNonNull)(input[_C], `Catalog`)],
54
+ [_cSI]: [, (0, smithy_client_1.expectNonNull)(input[_CSI], `ChangeSetId`)],
57
55
  });
58
56
  let body;
59
- return new protocol_http_1.HttpRequest({
60
- protocol,
61
- hostname,
62
- port,
63
- method: "GET",
64
- headers,
65
- path: resolvedPath,
66
- query,
67
- body,
68
- });
57
+ b.m("GET").h(headers).q(query).b(body);
58
+ return b.build();
69
59
  };
70
60
  exports.se_DescribeChangeSetCommand = se_DescribeChangeSetCommand;
71
61
  const se_DescribeEntityCommand = async (input, context) => {
72
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
62
+ const b = (0, core_1.requestBuilder)(input, context);
73
63
  const headers = {};
74
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeEntity";
64
+ b.bp("/DescribeEntity");
75
65
  const query = (0, smithy_client_1.map)({
76
- catalog: [, (0, smithy_client_1.expectNonNull)(input.Catalog, `Catalog`)],
77
- entityId: [, (0, smithy_client_1.expectNonNull)(input.EntityId, `EntityId`)],
66
+ [_c]: [, (0, smithy_client_1.expectNonNull)(input[_C], `Catalog`)],
67
+ [_eI]: [, (0, smithy_client_1.expectNonNull)(input[_EI], `EntityId`)],
78
68
  });
79
69
  let body;
80
- return new protocol_http_1.HttpRequest({
81
- protocol,
82
- hostname,
83
- port,
84
- method: "GET",
85
- headers,
86
- path: resolvedPath,
87
- query,
88
- body,
89
- });
70
+ b.m("GET").h(headers).q(query).b(body);
71
+ return b.build();
90
72
  };
91
73
  exports.se_DescribeEntityCommand = se_DescribeEntityCommand;
92
74
  const se_GetResourcePolicyCommand = async (input, context) => {
93
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
75
+ const b = (0, core_1.requestBuilder)(input, context);
94
76
  const headers = {};
95
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetResourcePolicy";
77
+ b.bp("/GetResourcePolicy");
96
78
  const query = (0, smithy_client_1.map)({
97
- resourceArn: [, (0, smithy_client_1.expectNonNull)(input.ResourceArn, `ResourceArn`)],
79
+ [_rA]: [, (0, smithy_client_1.expectNonNull)(input[_RA], `ResourceArn`)],
98
80
  });
99
81
  let body;
100
- return new protocol_http_1.HttpRequest({
101
- protocol,
102
- hostname,
103
- port,
104
- method: "GET",
105
- headers,
106
- path: resolvedPath,
107
- query,
108
- body,
109
- });
82
+ b.m("GET").h(headers).q(query).b(body);
83
+ return b.build();
110
84
  };
111
85
  exports.se_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
112
86
  const se_ListChangeSetsCommand = async (input, context) => {
113
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
87
+ const b = (0, core_1.requestBuilder)(input, context);
114
88
  const headers = {
115
89
  "content-type": "application/json",
116
90
  };
117
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListChangeSets";
91
+ b.bp("/ListChangeSets");
118
92
  let body;
119
93
  body = JSON.stringify((0, smithy_client_1.take)(input, {
120
94
  Catalog: [],
@@ -123,23 +97,16 @@ const se_ListChangeSetsCommand = async (input, context) => {
123
97
  NextToken: [],
124
98
  Sort: (_) => (0, smithy_client_1._json)(_),
125
99
  }));
126
- return new protocol_http_1.HttpRequest({
127
- protocol,
128
- hostname,
129
- port,
130
- method: "POST",
131
- headers,
132
- path: resolvedPath,
133
- body,
134
- });
100
+ b.m("POST").h(headers).b(body);
101
+ return b.build();
135
102
  };
136
103
  exports.se_ListChangeSetsCommand = se_ListChangeSetsCommand;
137
104
  const se_ListEntitiesCommand = async (input, context) => {
138
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
105
+ const b = (0, core_1.requestBuilder)(input, context);
139
106
  const headers = {
140
107
  "content-type": "application/json",
141
108
  };
142
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListEntities";
109
+ b.bp("/ListEntities");
143
110
  let body;
144
111
  body = JSON.stringify((0, smithy_client_1.take)(input, {
145
112
  Catalog: [],
@@ -152,66 +119,45 @@ const se_ListEntitiesCommand = async (input, context) => {
152
119
  OwnershipType: [],
153
120
  Sort: (_) => (0, smithy_client_1._json)(_),
154
121
  }));
155
- return new protocol_http_1.HttpRequest({
156
- protocol,
157
- hostname,
158
- port,
159
- method: "POST",
160
- headers,
161
- path: resolvedPath,
162
- body,
163
- });
122
+ b.m("POST").h(headers).b(body);
123
+ return b.build();
164
124
  };
165
125
  exports.se_ListEntitiesCommand = se_ListEntitiesCommand;
166
126
  const se_ListTagsForResourceCommand = async (input, context) => {
167
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
127
+ const b = (0, core_1.requestBuilder)(input, context);
168
128
  const headers = {
169
129
  "content-type": "application/json",
170
130
  };
171
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTagsForResource";
131
+ b.bp("/ListTagsForResource");
172
132
  let body;
173
133
  body = JSON.stringify((0, smithy_client_1.take)(input, {
174
134
  ResourceArn: [],
175
135
  }));
176
- return new protocol_http_1.HttpRequest({
177
- protocol,
178
- hostname,
179
- port,
180
- method: "POST",
181
- headers,
182
- path: resolvedPath,
183
- body,
184
- });
136
+ b.m("POST").h(headers).b(body);
137
+ return b.build();
185
138
  };
186
139
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
187
140
  const se_PutResourcePolicyCommand = async (input, context) => {
188
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
141
+ const b = (0, core_1.requestBuilder)(input, context);
189
142
  const headers = {
190
143
  "content-type": "application/json",
191
144
  };
192
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutResourcePolicy";
145
+ b.bp("/PutResourcePolicy");
193
146
  let body;
194
147
  body = JSON.stringify((0, smithy_client_1.take)(input, {
195
148
  Policy: [],
196
149
  ResourceArn: [],
197
150
  }));
198
- return new protocol_http_1.HttpRequest({
199
- protocol,
200
- hostname,
201
- port,
202
- method: "POST",
203
- headers,
204
- path: resolvedPath,
205
- body,
206
- });
151
+ b.m("POST").h(headers).b(body);
152
+ return b.build();
207
153
  };
208
154
  exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
209
155
  const se_StartChangeSetCommand = async (input, context) => {
210
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
156
+ const b = (0, core_1.requestBuilder)(input, context);
211
157
  const headers = {
212
158
  "content-type": "application/json",
213
159
  };
214
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartChangeSet";
160
+ b.bp("/StartChangeSet");
215
161
  let body;
216
162
  body = JSON.stringify((0, smithy_client_1.take)(input, {
217
163
  Catalog: [],
@@ -220,61 +166,84 @@ const se_StartChangeSetCommand = async (input, context) => {
220
166
  ChangeSetTags: (_) => (0, smithy_client_1._json)(_),
221
167
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
222
168
  }));
223
- return new protocol_http_1.HttpRequest({
224
- protocol,
225
- hostname,
226
- port,
227
- method: "POST",
228
- headers,
229
- path: resolvedPath,
230
- body,
231
- });
169
+ b.m("POST").h(headers).b(body);
170
+ return b.build();
232
171
  };
233
172
  exports.se_StartChangeSetCommand = se_StartChangeSetCommand;
234
173
  const se_TagResourceCommand = async (input, context) => {
235
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
174
+ const b = (0, core_1.requestBuilder)(input, context);
236
175
  const headers = {
237
176
  "content-type": "application/json",
238
177
  };
239
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TagResource";
178
+ b.bp("/TagResource");
240
179
  let body;
241
180
  body = JSON.stringify((0, smithy_client_1.take)(input, {
242
181
  ResourceArn: [],
243
182
  Tags: (_) => (0, smithy_client_1._json)(_),
244
183
  }));
245
- return new protocol_http_1.HttpRequest({
246
- protocol,
247
- hostname,
248
- port,
249
- method: "POST",
250
- headers,
251
- path: resolvedPath,
252
- body,
253
- });
184
+ b.m("POST").h(headers).b(body);
185
+ return b.build();
254
186
  };
255
187
  exports.se_TagResourceCommand = se_TagResourceCommand;
256
188
  const se_UntagResourceCommand = async (input, context) => {
257
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
189
+ const b = (0, core_1.requestBuilder)(input, context);
258
190
  const headers = {
259
191
  "content-type": "application/json",
260
192
  };
261
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UntagResource";
193
+ b.bp("/UntagResource");
262
194
  let body;
263
195
  body = JSON.stringify((0, smithy_client_1.take)(input, {
264
196
  ResourceArn: [],
265
197
  TagKeys: (_) => (0, smithy_client_1._json)(_),
266
198
  }));
267
- return new protocol_http_1.HttpRequest({
268
- protocol,
269
- hostname,
270
- port,
271
- method: "POST",
272
- headers,
273
- path: resolvedPath,
274
- body,
275
- });
199
+ b.m("POST").h(headers).b(body);
200
+ return b.build();
276
201
  };
277
202
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
203
+ const de_BatchDescribeEntitiesCommand = async (output, context) => {
204
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
205
+ return de_BatchDescribeEntitiesCommandError(output, context);
206
+ }
207
+ const contents = (0, smithy_client_1.map)({
208
+ $metadata: deserializeMetadata(output),
209
+ });
210
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
211
+ const doc = (0, smithy_client_1.take)(data, {
212
+ EntityDetails: (_) => de_EntityDetails(_, context),
213
+ Errors: smithy_client_1._json,
214
+ });
215
+ Object.assign(contents, doc);
216
+ return contents;
217
+ };
218
+ exports.de_BatchDescribeEntitiesCommand = de_BatchDescribeEntitiesCommand;
219
+ const de_BatchDescribeEntitiesCommandError = async (output, context) => {
220
+ const parsedOutput = {
221
+ ...output,
222
+ body: await parseErrorBody(output.body, context),
223
+ };
224
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
225
+ switch (errorCode) {
226
+ case "AccessDeniedException":
227
+ case "com.amazonaws.marketplacecatalog#AccessDeniedException":
228
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
229
+ case "InternalServiceException":
230
+ case "com.amazonaws.marketplacecatalog#InternalServiceException":
231
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
232
+ case "ThrottlingException":
233
+ case "com.amazonaws.marketplacecatalog#ThrottlingException":
234
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
235
+ case "ValidationException":
236
+ case "com.amazonaws.marketplacecatalog#ValidationException":
237
+ throw await de_ValidationExceptionRes(parsedOutput, context);
238
+ default:
239
+ const parsedBody = parsedOutput.body;
240
+ return throwDefaultError({
241
+ output,
242
+ parsedBody,
243
+ errorCode,
244
+ });
245
+ }
246
+ };
278
247
  const de_CancelChangeSetCommand = async (output, context) => {
279
248
  if (output.statusCode !== 200 && output.statusCode >= 300) {
280
249
  return de_CancelChangeSetCommandError(output, context);
@@ -981,6 +950,24 @@ const de_ChangeSummary = (output, context) => {
981
950
  ErrorDetailList: smithy_client_1._json,
982
951
  });
983
952
  };
953
+ const de_EntityDetail = (output, context) => {
954
+ return (0, smithy_client_1.take)(output, {
955
+ DetailsDocument: (_) => de_JsonDocumentType(_, context),
956
+ EntityArn: smithy_client_1.expectString,
957
+ EntityIdentifier: smithy_client_1.expectString,
958
+ EntityType: smithy_client_1.expectString,
959
+ LastModifiedDate: smithy_client_1.expectString,
960
+ });
961
+ };
962
+ const de_EntityDetails = (output, context) => {
963
+ return Object.entries(output).reduce((acc, [key, value]) => {
964
+ if (value === null) {
965
+ return acc;
966
+ }
967
+ acc[key] = de_EntityDetail(value, context);
968
+ return acc;
969
+ }, {});
970
+ };
984
971
  const de_JsonDocumentType = (output, context) => {
985
972
  return output;
986
973
  };
@@ -996,6 +983,14 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
996
983
  value !== "" &&
997
984
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
998
985
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
986
+ const _C = "Catalog";
987
+ const _CSI = "ChangeSetId";
988
+ const _EI = "EntityId";
989
+ const _RA = "ResourceArn";
990
+ const _c = "catalog";
991
+ const _cSI = "changeSetId";
992
+ const _eI = "entityId";
993
+ const _rA = "resourceArn";
999
994
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1000
995
  if (encoded.length) {
1001
996
  return JSON.parse(encoded);
@@ -1,4 +1,5 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
+ import { BatchDescribeEntitiesCommand, } from "./commands/BatchDescribeEntitiesCommand";
2
3
  import { CancelChangeSetCommand, } from "./commands/CancelChangeSetCommand";
3
4
  import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
4
5
  import { DescribeChangeSetCommand, } from "./commands/DescribeChangeSetCommand";
@@ -13,6 +14,7 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
13
14
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
14
15
  import { MarketplaceCatalogClient } from "./MarketplaceCatalogClient";
15
16
  const commands = {
17
+ BatchDescribeEntitiesCommand,
16
18
  CancelChangeSetCommand,
17
19
  DeleteResourcePolicyCommand,
18
20
  DescribeChangeSetCommand,