@aws-sdk/client-marketplace-catalog 3.901.0 → 3.907.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.
Files changed (2) hide show
  1. package/dist-cjs/index.js +1249 -1406
  2. package/package.json +6 -6
package/dist-cjs/index.js CHANGED
@@ -1,1441 +1,1284 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AccessDeniedException: () => AccessDeniedException,
25
- AmiProductSortBy: () => AmiProductSortBy,
26
- AmiProductVisibilityString: () => AmiProductVisibilityString,
27
- BatchDescribeEntitiesCommand: () => BatchDescribeEntitiesCommand,
28
- CancelChangeSetCommand: () => CancelChangeSetCommand,
29
- ChangeStatus: () => ChangeStatus,
30
- ContainerProductSortBy: () => ContainerProductSortBy,
31
- ContainerProductVisibilityString: () => ContainerProductVisibilityString,
32
- DataProductSortBy: () => DataProductSortBy,
33
- DataProductVisibilityString: () => DataProductVisibilityString,
34
- DeleteResourcePolicyCommand: () => DeleteResourcePolicyCommand,
35
- DescribeChangeSetCommand: () => DescribeChangeSetCommand,
36
- DescribeEntityCommand: () => DescribeEntityCommand,
37
- EntityTypeFilters: () => EntityTypeFilters,
38
- EntityTypeSort: () => EntityTypeSort,
39
- FailureCode: () => FailureCode,
40
- GetResourcePolicyCommand: () => GetResourcePolicyCommand,
41
- Intent: () => Intent,
42
- InternalServiceException: () => InternalServiceException,
43
- ListChangeSetsCommand: () => ListChangeSetsCommand,
44
- ListEntitiesCommand: () => ListEntitiesCommand,
45
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
46
- MachineLearningProductSortBy: () => MachineLearningProductSortBy,
47
- MachineLearningProductVisibilityString: () => MachineLearningProductVisibilityString,
48
- MarketplaceCatalog: () => MarketplaceCatalog,
49
- MarketplaceCatalogClient: () => MarketplaceCatalogClient,
50
- MarketplaceCatalogServiceException: () => MarketplaceCatalogServiceException,
51
- OfferSortBy: () => OfferSortBy,
52
- OfferStateString: () => OfferStateString,
53
- OfferTargetingString: () => OfferTargetingString,
54
- OwnershipType: () => OwnershipType,
55
- PutResourcePolicyCommand: () => PutResourcePolicyCommand,
56
- ResaleAuthorizationSortBy: () => ResaleAuthorizationSortBy,
57
- ResaleAuthorizationStatusString: () => ResaleAuthorizationStatusString,
58
- ResourceInUseException: () => ResourceInUseException,
59
- ResourceNotFoundException: () => ResourceNotFoundException,
60
- ResourceNotSupportedException: () => ResourceNotSupportedException,
61
- SaaSProductSortBy: () => SaaSProductSortBy,
62
- SaaSProductVisibilityString: () => SaaSProductVisibilityString,
63
- ServiceQuotaExceededException: () => ServiceQuotaExceededException,
64
- SortOrder: () => SortOrder,
65
- StartChangeSetCommand: () => StartChangeSetCommand,
66
- TagResourceCommand: () => TagResourceCommand,
67
- ThrottlingException: () => ThrottlingException,
68
- UntagResourceCommand: () => UntagResourceCommand,
69
- ValidationException: () => ValidationException,
70
- __Client: () => import_smithy_client.Client,
71
- paginateListChangeSets: () => paginateListChangeSets,
72
- paginateListEntities: () => paginateListEntities
73
- });
74
- module.exports = __toCommonJS(index_exports);
75
-
76
- // src/MarketplaceCatalogClient.ts
77
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
78
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
79
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
80
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
81
- var import_config_resolver = require("@smithy/config-resolver");
82
- var import_core = require("@smithy/core");
83
- var import_middleware_content_length = require("@smithy/middleware-content-length");
84
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
85
- var import_middleware_retry = require("@smithy/middleware-retry");
86
-
87
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
88
-
89
- // src/endpoint/EndpointParameters.ts
90
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
91
- return Object.assign(options, {
92
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
93
- useFipsEndpoint: options.useFipsEndpoint ?? false,
94
- defaultSigningName: "aws-marketplace"
95
- });
96
- }, "resolveClientEndpointParameters");
97
- var commonParams = {
98
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
99
- Endpoint: { type: "builtInParams", name: "endpoint" },
100
- Region: { type: "builtInParams", name: "region" },
101
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+ var uuid = require('@smithy/uuid');
20
+
21
+ const resolveClientEndpointParameters = (options) => {
22
+ return Object.assign(options, {
23
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
24
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
25
+ defaultSigningName: "aws-marketplace",
26
+ });
27
+ };
28
+ const commonParams = {
29
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
30
+ Endpoint: { type: "builtInParams", name: "endpoint" },
31
+ Region: { type: "builtInParams", name: "region" },
32
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
102
33
  };
103
34
 
104
- // src/MarketplaceCatalogClient.ts
105
- var import_runtimeConfig = require("././runtimeConfig");
35
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
36
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
37
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
38
+ let _credentials = runtimeConfig.credentials;
39
+ return {
40
+ setHttpAuthScheme(httpAuthScheme) {
41
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
42
+ if (index === -1) {
43
+ _httpAuthSchemes.push(httpAuthScheme);
44
+ }
45
+ else {
46
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
47
+ }
48
+ },
49
+ httpAuthSchemes() {
50
+ return _httpAuthSchemes;
51
+ },
52
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
53
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
54
+ },
55
+ httpAuthSchemeProvider() {
56
+ return _httpAuthSchemeProvider;
57
+ },
58
+ setCredentials(credentials) {
59
+ _credentials = credentials;
60
+ },
61
+ credentials() {
62
+ return _credentials;
63
+ },
64
+ };
65
+ };
66
+ const resolveHttpAuthRuntimeConfig = (config) => {
67
+ return {
68
+ httpAuthSchemes: config.httpAuthSchemes(),
69
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
70
+ credentials: config.credentials(),
71
+ };
72
+ };
106
73
 
107
- // src/runtimeExtensions.ts
108
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
109
- var import_protocol_http = require("@smithy/protocol-http");
110
- var import_smithy_client = require("@smithy/smithy-client");
74
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
75
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
76
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
77
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
78
+ };
111
79
 
112
- // src/auth/httpAuthExtensionConfiguration.ts
113
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
114
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
115
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
116
- let _credentials = runtimeConfig.credentials;
117
- return {
118
- setHttpAuthScheme(httpAuthScheme) {
119
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
120
- if (index === -1) {
121
- _httpAuthSchemes.push(httpAuthScheme);
122
- } else {
123
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
124
- }
125
- },
126
- httpAuthSchemes() {
127
- return _httpAuthSchemes;
128
- },
129
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
130
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
131
- },
132
- httpAuthSchemeProvider() {
133
- return _httpAuthSchemeProvider;
134
- },
135
- setCredentials(credentials) {
136
- _credentials = credentials;
137
- },
138
- credentials() {
139
- return _credentials;
80
+ class MarketplaceCatalogClient extends smithyClient.Client {
81
+ config;
82
+ constructor(...[configuration]) {
83
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
84
+ super(_config_0);
85
+ this.initConfig = _config_0;
86
+ const _config_1 = resolveClientEndpointParameters(_config_0);
87
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
88
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
89
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
90
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
91
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
92
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
+ this.config = _config_8;
95
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
98
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
99
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
100
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
101
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
102
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultMarketplaceCatalogHttpAuthSchemeParametersProvider,
103
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
104
+ "aws.auth#sigv4": config.credentials,
105
+ }),
106
+ }));
107
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
140
108
  }
141
- };
142
- }, "getHttpAuthExtensionConfiguration");
143
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
144
- return {
145
- httpAuthSchemes: config.httpAuthSchemes(),
146
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
147
- credentials: config.credentials()
148
- };
149
- }, "resolveHttpAuthRuntimeConfig");
150
-
151
- // src/runtimeExtensions.ts
152
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
153
- const extensionConfiguration = Object.assign(
154
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
155
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
156
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
157
- getHttpAuthExtensionConfiguration(runtimeConfig)
158
- );
159
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
160
- return Object.assign(
161
- runtimeConfig,
162
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
163
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
164
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
165
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
166
- );
167
- }, "resolveRuntimeExtensions");
109
+ destroy() {
110
+ super.destroy();
111
+ }
112
+ }
168
113
 
169
- // src/MarketplaceCatalogClient.ts
170
- var MarketplaceCatalogClient = class extends import_smithy_client.Client {
171
- static {
172
- __name(this, "MarketplaceCatalogClient");
173
- }
174
- /**
175
- * The resolved configuration of MarketplaceCatalogClient class. This is resolved and normalized from the {@link MarketplaceCatalogClientConfig | constructor configuration interface}.
176
- */
177
- config;
178
- constructor(...[configuration]) {
179
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
180
- super(_config_0);
181
- this.initConfig = _config_0;
182
- const _config_1 = resolveClientEndpointParameters(_config_0);
183
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
184
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
185
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
186
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
187
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
188
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
189
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
190
- this.config = _config_8;
191
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
192
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
193
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
194
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
195
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
196
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
197
- this.middlewareStack.use(
198
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
199
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultMarketplaceCatalogHttpAuthSchemeParametersProvider,
200
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
201
- "aws.auth#sigv4": config.credentials
202
- }), "identityProviderConfigProvider")
203
- })
204
- );
205
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
206
- }
207
- /**
208
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
209
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
210
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
211
- */
212
- destroy() {
213
- super.destroy();
214
- }
114
+ class MarketplaceCatalogServiceException extends smithyClient.ServiceException {
115
+ constructor(options) {
116
+ super(options);
117
+ Object.setPrototypeOf(this, MarketplaceCatalogServiceException.prototype);
118
+ }
119
+ }
120
+
121
+ class AccessDeniedException extends MarketplaceCatalogServiceException {
122
+ name = "AccessDeniedException";
123
+ $fault = "client";
124
+ Message;
125
+ constructor(opts) {
126
+ super({
127
+ name: "AccessDeniedException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
132
+ this.Message = opts.Message;
133
+ }
134
+ }
135
+ const AmiProductVisibilityString = {
136
+ Draft: "Draft",
137
+ Limited: "Limited",
138
+ Public: "Public",
139
+ Restricted: "Restricted",
215
140
  };
216
-
217
- // src/MarketplaceCatalog.ts
218
-
219
-
220
- // src/commands/BatchDescribeEntitiesCommand.ts
221
-
222
- var import_middleware_serde = require("@smithy/middleware-serde");
223
-
224
-
225
- // src/protocols/Aws_restJson1.ts
226
- var import_core2 = require("@aws-sdk/core");
227
-
228
-
229
- var import_uuid = require("@smithy/uuid");
230
-
231
- // src/models/MarketplaceCatalogServiceException.ts
232
-
233
- var MarketplaceCatalogServiceException = class _MarketplaceCatalogServiceException extends import_smithy_client.ServiceException {
234
- static {
235
- __name(this, "MarketplaceCatalogServiceException");
236
- }
237
- /**
238
- * @internal
239
- */
240
- constructor(options) {
241
- super(options);
242
- Object.setPrototypeOf(this, _MarketplaceCatalogServiceException.prototype);
243
- }
141
+ const AmiProductSortBy = {
142
+ EntityId: "EntityId",
143
+ LastModifiedDate: "LastModifiedDate",
144
+ ProductTitle: "ProductTitle",
145
+ Visibility: "Visibility",
244
146
  };
245
-
246
- // src/models/models_0.ts
247
- var AccessDeniedException = class _AccessDeniedException extends MarketplaceCatalogServiceException {
248
- static {
249
- __name(this, "AccessDeniedException");
250
- }
251
- name = "AccessDeniedException";
252
- $fault = "client";
253
- Message;
254
- /**
255
- * @internal
256
- */
257
- constructor(opts) {
258
- super({
259
- name: "AccessDeniedException",
260
- $fault: "client",
261
- ...opts
147
+ const SortOrder = {
148
+ ASCENDING: "ASCENDING",
149
+ DESCENDING: "DESCENDING",
150
+ };
151
+ class InternalServiceException extends MarketplaceCatalogServiceException {
152
+ name = "InternalServiceException";
153
+ $fault = "server";
154
+ Message;
155
+ constructor(opts) {
156
+ super({
157
+ name: "InternalServiceException",
158
+ $fault: "server",
159
+ ...opts,
160
+ });
161
+ Object.setPrototypeOf(this, InternalServiceException.prototype);
162
+ this.Message = opts.Message;
163
+ }
164
+ }
165
+ class ThrottlingException extends MarketplaceCatalogServiceException {
166
+ name = "ThrottlingException";
167
+ $fault = "client";
168
+ Message;
169
+ constructor(opts) {
170
+ super({
171
+ name: "ThrottlingException",
172
+ $fault: "client",
173
+ ...opts,
174
+ });
175
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
176
+ this.Message = opts.Message;
177
+ }
178
+ }
179
+ class ValidationException extends MarketplaceCatalogServiceException {
180
+ name = "ValidationException";
181
+ $fault = "client";
182
+ Message;
183
+ constructor(opts) {
184
+ super({
185
+ name: "ValidationException",
186
+ $fault: "client",
187
+ ...opts,
188
+ });
189
+ Object.setPrototypeOf(this, ValidationException.prototype);
190
+ this.Message = opts.Message;
191
+ }
192
+ }
193
+ class ResourceInUseException extends MarketplaceCatalogServiceException {
194
+ name = "ResourceInUseException";
195
+ $fault = "client";
196
+ Message;
197
+ constructor(opts) {
198
+ super({
199
+ name: "ResourceInUseException",
200
+ $fault: "client",
201
+ ...opts,
202
+ });
203
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
204
+ this.Message = opts.Message;
205
+ }
206
+ }
207
+ class ResourceNotFoundException extends MarketplaceCatalogServiceException {
208
+ name = "ResourceNotFoundException";
209
+ $fault = "client";
210
+ Message;
211
+ constructor(opts) {
212
+ super({
213
+ name: "ResourceNotFoundException",
214
+ $fault: "client",
215
+ ...opts,
216
+ });
217
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
218
+ this.Message = opts.Message;
219
+ }
220
+ }
221
+ const FailureCode = {
222
+ ClientError: "CLIENT_ERROR",
223
+ ServerFault: "SERVER_FAULT",
224
+ };
225
+ const Intent = {
226
+ APPLY: "APPLY",
227
+ VALIDATE: "VALIDATE",
228
+ };
229
+ const ChangeStatus = {
230
+ APPLYING: "APPLYING",
231
+ CANCELLED: "CANCELLED",
232
+ FAILED: "FAILED",
233
+ PREPARING: "PREPARING",
234
+ SUCCEEDED: "SUCCEEDED",
235
+ };
236
+ class ResourceNotSupportedException extends MarketplaceCatalogServiceException {
237
+ name = "ResourceNotSupportedException";
238
+ $fault = "client";
239
+ Message;
240
+ constructor(opts) {
241
+ super({
242
+ name: "ResourceNotSupportedException",
243
+ $fault: "client",
244
+ ...opts,
245
+ });
246
+ Object.setPrototypeOf(this, ResourceNotSupportedException.prototype);
247
+ this.Message = opts.Message;
248
+ }
249
+ }
250
+ const ContainerProductVisibilityString = {
251
+ Draft: "Draft",
252
+ Limited: "Limited",
253
+ Public: "Public",
254
+ Restricted: "Restricted",
255
+ };
256
+ const DataProductVisibilityString = {
257
+ Draft: "Draft",
258
+ Limited: "Limited",
259
+ Public: "Public",
260
+ Restricted: "Restricted",
261
+ Unavailable: "Unavailable",
262
+ };
263
+ const MachineLearningProductVisibilityString = {
264
+ Draft: "Draft",
265
+ Limited: "Limited",
266
+ Public: "Public",
267
+ Restricted: "Restricted",
268
+ };
269
+ const OfferStateString = {
270
+ Draft: "Draft",
271
+ Released: "Released",
272
+ };
273
+ const OfferTargetingString = {
274
+ BuyerAccounts: "BuyerAccounts",
275
+ CountryCodes: "CountryCodes",
276
+ None: "None",
277
+ ParticipatingPrograms: "ParticipatingPrograms",
278
+ };
279
+ const ResaleAuthorizationStatusString = {
280
+ Active: "Active",
281
+ Draft: "Draft",
282
+ Restricted: "Restricted",
283
+ };
284
+ const SaaSProductVisibilityString = {
285
+ Draft: "Draft",
286
+ Limited: "Limited",
287
+ Public: "Public",
288
+ Restricted: "Restricted",
289
+ };
290
+ exports.EntityTypeFilters = void 0;
291
+ (function (EntityTypeFilters) {
292
+ EntityTypeFilters.visit = (value, visitor) => {
293
+ if (value.DataProductFilters !== undefined)
294
+ return visitor.DataProductFilters(value.DataProductFilters);
295
+ if (value.SaaSProductFilters !== undefined)
296
+ return visitor.SaaSProductFilters(value.SaaSProductFilters);
297
+ if (value.AmiProductFilters !== undefined)
298
+ return visitor.AmiProductFilters(value.AmiProductFilters);
299
+ if (value.OfferFilters !== undefined)
300
+ return visitor.OfferFilters(value.OfferFilters);
301
+ if (value.ContainerProductFilters !== undefined)
302
+ return visitor.ContainerProductFilters(value.ContainerProductFilters);
303
+ if (value.ResaleAuthorizationFilters !== undefined)
304
+ return visitor.ResaleAuthorizationFilters(value.ResaleAuthorizationFilters);
305
+ if (value.MachineLearningProductFilters !== undefined)
306
+ return visitor.MachineLearningProductFilters(value.MachineLearningProductFilters);
307
+ return visitor._(value.$unknown[0], value.$unknown[1]);
308
+ };
309
+ })(exports.EntityTypeFilters || (exports.EntityTypeFilters = {}));
310
+ const ContainerProductSortBy = {
311
+ EntityId: "EntityId",
312
+ LastModifiedDate: "LastModifiedDate",
313
+ ProductTitle: "ProductTitle",
314
+ Visibility: "Visibility",
315
+ };
316
+ const DataProductSortBy = {
317
+ EntityId: "EntityId",
318
+ LastModifiedDate: "LastModifiedDate",
319
+ ProductTitle: "ProductTitle",
320
+ Visibility: "Visibility",
321
+ };
322
+ const MachineLearningProductSortBy = {
323
+ EntityId: "EntityId",
324
+ LastModifiedDate: "LastModifiedDate",
325
+ ProductTitle: "ProductTitle",
326
+ Visibility: "Visibility",
327
+ };
328
+ const OfferSortBy = {
329
+ AvailabilityEndDate: "AvailabilityEndDate",
330
+ BuyerAccounts: "BuyerAccounts",
331
+ EntityId: "EntityId",
332
+ LastModifiedDate: "LastModifiedDate",
333
+ Name: "Name",
334
+ ProductId: "ProductId",
335
+ ReleaseDate: "ReleaseDate",
336
+ ResaleAuthorizationId: "ResaleAuthorizationId",
337
+ State: "State",
338
+ Targeting: "Targeting",
339
+ };
340
+ const ResaleAuthorizationSortBy = {
341
+ AvailabilityEndDate: "AvailabilityEndDate",
342
+ CreatedDate: "CreatedDate",
343
+ EntityId: "EntityId",
344
+ LastModifiedDate: "LastModifiedDate",
345
+ ManufacturerAccountId: "ManufacturerAccountId",
346
+ ManufacturerLegalName: "ManufacturerLegalName",
347
+ Name: "Name",
348
+ OfferExtendedStatus: "OfferExtendedStatus",
349
+ ProductId: "ProductId",
350
+ ProductName: "ProductName",
351
+ ResellerAccountID: "ResellerAccountID",
352
+ ResellerLegalName: "ResellerLegalName",
353
+ Status: "Status",
354
+ };
355
+ const SaaSProductSortBy = {
356
+ EntityId: "EntityId",
357
+ LastModifiedDate: "LastModifiedDate",
358
+ ProductTitle: "ProductTitle",
359
+ Visibility: "Visibility",
360
+ };
361
+ exports.EntityTypeSort = void 0;
362
+ (function (EntityTypeSort) {
363
+ EntityTypeSort.visit = (value, visitor) => {
364
+ if (value.DataProductSort !== undefined)
365
+ return visitor.DataProductSort(value.DataProductSort);
366
+ if (value.SaaSProductSort !== undefined)
367
+ return visitor.SaaSProductSort(value.SaaSProductSort);
368
+ if (value.AmiProductSort !== undefined)
369
+ return visitor.AmiProductSort(value.AmiProductSort);
370
+ if (value.OfferSort !== undefined)
371
+ return visitor.OfferSort(value.OfferSort);
372
+ if (value.ContainerProductSort !== undefined)
373
+ return visitor.ContainerProductSort(value.ContainerProductSort);
374
+ if (value.ResaleAuthorizationSort !== undefined)
375
+ return visitor.ResaleAuthorizationSort(value.ResaleAuthorizationSort);
376
+ if (value.MachineLearningProductSort !== undefined)
377
+ return visitor.MachineLearningProductSort(value.MachineLearningProductSort);
378
+ return visitor._(value.$unknown[0], value.$unknown[1]);
379
+ };
380
+ })(exports.EntityTypeSort || (exports.EntityTypeSort = {}));
381
+ const OwnershipType = {
382
+ SELF: "SELF",
383
+ SHARED: "SHARED",
384
+ };
385
+ class ServiceQuotaExceededException extends MarketplaceCatalogServiceException {
386
+ name = "ServiceQuotaExceededException";
387
+ $fault = "client";
388
+ Message;
389
+ constructor(opts) {
390
+ super({
391
+ name: "ServiceQuotaExceededException",
392
+ $fault: "client",
393
+ ...opts,
394
+ });
395
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
396
+ this.Message = opts.Message;
397
+ }
398
+ }
399
+
400
+ const se_BatchDescribeEntitiesCommand = async (input, context) => {
401
+ const b = core.requestBuilder(input, context);
402
+ const headers = {
403
+ "content-type": "application/json",
404
+ };
405
+ b.bp("/BatchDescribeEntities");
406
+ let body;
407
+ body = JSON.stringify(smithyClient.take(input, {
408
+ EntityRequestList: (_) => smithyClient._json(_),
409
+ }));
410
+ b.m("POST").h(headers).b(body);
411
+ return b.build();
412
+ };
413
+ const se_CancelChangeSetCommand = async (input, context) => {
414
+ const b = core.requestBuilder(input, context);
415
+ const headers = {};
416
+ b.bp("/CancelChangeSet");
417
+ const query = smithyClient.map({
418
+ [_c]: [, smithyClient.expectNonNull(input[_C], `Catalog`)],
419
+ [_cSI]: [, smithyClient.expectNonNull(input[_CSI], `ChangeSetId`)],
262
420
  });
263
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
264
- this.Message = opts.Message;
265
- }
266
- };
267
- var AmiProductVisibilityString = {
268
- Draft: "Draft",
269
- Limited: "Limited",
270
- Public: "Public",
271
- Restricted: "Restricted"
272
- };
273
- var AmiProductSortBy = {
274
- EntityId: "EntityId",
275
- LastModifiedDate: "LastModifiedDate",
276
- ProductTitle: "ProductTitle",
277
- Visibility: "Visibility"
278
- };
279
- var SortOrder = {
280
- ASCENDING: "ASCENDING",
281
- DESCENDING: "DESCENDING"
282
- };
283
- var InternalServiceException = class _InternalServiceException extends MarketplaceCatalogServiceException {
284
- static {
285
- __name(this, "InternalServiceException");
286
- }
287
- name = "InternalServiceException";
288
- $fault = "server";
289
- Message;
290
- /**
291
- * @internal
292
- */
293
- constructor(opts) {
294
- super({
295
- name: "InternalServiceException",
296
- $fault: "server",
297
- ...opts
421
+ let body;
422
+ b.m("PATCH").h(headers).q(query).b(body);
423
+ return b.build();
424
+ };
425
+ const se_DeleteResourcePolicyCommand = async (input, context) => {
426
+ const b = core.requestBuilder(input, context);
427
+ const headers = {};
428
+ b.bp("/DeleteResourcePolicy");
429
+ const query = smithyClient.map({
430
+ [_rA]: [, smithyClient.expectNonNull(input[_RA], `ResourceArn`)],
431
+ });
432
+ let body;
433
+ b.m("DELETE").h(headers).q(query).b(body);
434
+ return b.build();
435
+ };
436
+ const se_DescribeChangeSetCommand = async (input, context) => {
437
+ const b = core.requestBuilder(input, context);
438
+ const headers = {};
439
+ b.bp("/DescribeChangeSet");
440
+ const query = smithyClient.map({
441
+ [_c]: [, smithyClient.expectNonNull(input[_C], `Catalog`)],
442
+ [_cSI]: [, smithyClient.expectNonNull(input[_CSI], `ChangeSetId`)],
298
443
  });
299
- Object.setPrototypeOf(this, _InternalServiceException.prototype);
300
- this.Message = opts.Message;
301
- }
302
- };
303
- var ThrottlingException = class _ThrottlingException extends MarketplaceCatalogServiceException {
304
- static {
305
- __name(this, "ThrottlingException");
306
- }
307
- name = "ThrottlingException";
308
- $fault = "client";
309
- Message;
310
- /**
311
- * @internal
312
- */
313
- constructor(opts) {
314
- super({
315
- name: "ThrottlingException",
316
- $fault: "client",
317
- ...opts
444
+ let body;
445
+ b.m("GET").h(headers).q(query).b(body);
446
+ return b.build();
447
+ };
448
+ const se_DescribeEntityCommand = async (input, context) => {
449
+ const b = core.requestBuilder(input, context);
450
+ const headers = {};
451
+ b.bp("/DescribeEntity");
452
+ const query = smithyClient.map({
453
+ [_c]: [, smithyClient.expectNonNull(input[_C], `Catalog`)],
454
+ [_eI]: [, smithyClient.expectNonNull(input[_EI], `EntityId`)],
318
455
  });
319
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
320
- this.Message = opts.Message;
321
- }
322
- };
323
- var ValidationException = class _ValidationException extends MarketplaceCatalogServiceException {
324
- static {
325
- __name(this, "ValidationException");
326
- }
327
- name = "ValidationException";
328
- $fault = "client";
329
- Message;
330
- /**
331
- * @internal
332
- */
333
- constructor(opts) {
334
- super({
335
- name: "ValidationException",
336
- $fault: "client",
337
- ...opts
456
+ let body;
457
+ b.m("GET").h(headers).q(query).b(body);
458
+ return b.build();
459
+ };
460
+ const se_GetResourcePolicyCommand = async (input, context) => {
461
+ const b = core.requestBuilder(input, context);
462
+ const headers = {};
463
+ b.bp("/GetResourcePolicy");
464
+ const query = smithyClient.map({
465
+ [_rA]: [, smithyClient.expectNonNull(input[_RA], `ResourceArn`)],
338
466
  });
339
- Object.setPrototypeOf(this, _ValidationException.prototype);
340
- this.Message = opts.Message;
341
- }
342
- };
343
- var ResourceInUseException = class _ResourceInUseException extends MarketplaceCatalogServiceException {
344
- static {
345
- __name(this, "ResourceInUseException");
346
- }
347
- name = "ResourceInUseException";
348
- $fault = "client";
349
- Message;
350
- /**
351
- * @internal
352
- */
353
- constructor(opts) {
354
- super({
355
- name: "ResourceInUseException",
356
- $fault: "client",
357
- ...opts
467
+ let body;
468
+ b.m("GET").h(headers).q(query).b(body);
469
+ return b.build();
470
+ };
471
+ const se_ListChangeSetsCommand = async (input, context) => {
472
+ const b = core.requestBuilder(input, context);
473
+ const headers = {
474
+ "content-type": "application/json",
475
+ };
476
+ b.bp("/ListChangeSets");
477
+ let body;
478
+ body = JSON.stringify(smithyClient.take(input, {
479
+ Catalog: [],
480
+ FilterList: (_) => smithyClient._json(_),
481
+ MaxResults: [],
482
+ NextToken: [],
483
+ Sort: (_) => smithyClient._json(_),
484
+ }));
485
+ b.m("POST").h(headers).b(body);
486
+ return b.build();
487
+ };
488
+ const se_ListEntitiesCommand = async (input, context) => {
489
+ const b = core.requestBuilder(input, context);
490
+ const headers = {
491
+ "content-type": "application/json",
492
+ };
493
+ b.bp("/ListEntities");
494
+ let body;
495
+ body = JSON.stringify(smithyClient.take(input, {
496
+ Catalog: [],
497
+ EntityType: [],
498
+ EntityTypeFilters: (_) => smithyClient._json(_),
499
+ EntityTypeSort: (_) => smithyClient._json(_),
500
+ FilterList: (_) => smithyClient._json(_),
501
+ MaxResults: [],
502
+ NextToken: [],
503
+ OwnershipType: [],
504
+ Sort: (_) => smithyClient._json(_),
505
+ }));
506
+ b.m("POST").h(headers).b(body);
507
+ return b.build();
508
+ };
509
+ const se_ListTagsForResourceCommand = async (input, context) => {
510
+ const b = core.requestBuilder(input, context);
511
+ const headers = {
512
+ "content-type": "application/json",
513
+ };
514
+ b.bp("/ListTagsForResource");
515
+ let body;
516
+ body = JSON.stringify(smithyClient.take(input, {
517
+ ResourceArn: [],
518
+ }));
519
+ b.m("POST").h(headers).b(body);
520
+ return b.build();
521
+ };
522
+ const se_PutResourcePolicyCommand = async (input, context) => {
523
+ const b = core.requestBuilder(input, context);
524
+ const headers = {
525
+ "content-type": "application/json",
526
+ };
527
+ b.bp("/PutResourcePolicy");
528
+ let body;
529
+ body = JSON.stringify(smithyClient.take(input, {
530
+ Policy: [],
531
+ ResourceArn: [],
532
+ }));
533
+ b.m("POST").h(headers).b(body);
534
+ return b.build();
535
+ };
536
+ const se_StartChangeSetCommand = async (input, context) => {
537
+ const b = core.requestBuilder(input, context);
538
+ const headers = {
539
+ "content-type": "application/json",
540
+ };
541
+ b.bp("/StartChangeSet");
542
+ let body;
543
+ body = JSON.stringify(smithyClient.take(input, {
544
+ Catalog: [],
545
+ ChangeSet: (_) => se_RequestedChangeList(_),
546
+ ChangeSetName: [],
547
+ ChangeSetTags: (_) => smithyClient._json(_),
548
+ ClientRequestToken: [true, (_) => _ ?? uuid.v4()],
549
+ Intent: [],
550
+ }));
551
+ b.m("POST").h(headers).b(body);
552
+ return b.build();
553
+ };
554
+ const se_TagResourceCommand = async (input, context) => {
555
+ const b = core.requestBuilder(input, context);
556
+ const headers = {
557
+ "content-type": "application/json",
558
+ };
559
+ b.bp("/TagResource");
560
+ let body;
561
+ body = JSON.stringify(smithyClient.take(input, {
562
+ ResourceArn: [],
563
+ Tags: (_) => smithyClient._json(_),
564
+ }));
565
+ b.m("POST").h(headers).b(body);
566
+ return b.build();
567
+ };
568
+ const se_UntagResourceCommand = async (input, context) => {
569
+ const b = core.requestBuilder(input, context);
570
+ const headers = {
571
+ "content-type": "application/json",
572
+ };
573
+ b.bp("/UntagResource");
574
+ let body;
575
+ body = JSON.stringify(smithyClient.take(input, {
576
+ ResourceArn: [],
577
+ TagKeys: (_) => smithyClient._json(_),
578
+ }));
579
+ b.m("POST").h(headers).b(body);
580
+ return b.build();
581
+ };
582
+ const de_BatchDescribeEntitiesCommand = async (output, context) => {
583
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
584
+ return de_CommandError(output, context);
585
+ }
586
+ const contents = smithyClient.map({
587
+ $metadata: deserializeMetadata(output),
358
588
  });
359
- Object.setPrototypeOf(this, _ResourceInUseException.prototype);
360
- this.Message = opts.Message;
361
- }
362
- };
363
- var ResourceNotFoundException = class _ResourceNotFoundException extends MarketplaceCatalogServiceException {
364
- static {
365
- __name(this, "ResourceNotFoundException");
366
- }
367
- name = "ResourceNotFoundException";
368
- $fault = "client";
369
- Message;
370
- /**
371
- * @internal
372
- */
373
- constructor(opts) {
374
- super({
375
- name: "ResourceNotFoundException",
376
- $fault: "client",
377
- ...opts
589
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
590
+ const doc = smithyClient.take(data, {
591
+ EntityDetails: (_) => de_EntityDetails(_),
592
+ Errors: smithyClient._json,
378
593
  });
379
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
380
- this.Message = opts.Message;
381
- }
382
- };
383
- var FailureCode = {
384
- ClientError: "CLIENT_ERROR",
385
- ServerFault: "SERVER_FAULT"
386
- };
387
- var Intent = {
388
- APPLY: "APPLY",
389
- VALIDATE: "VALIDATE"
390
- };
391
- var ChangeStatus = {
392
- APPLYING: "APPLYING",
393
- CANCELLED: "CANCELLED",
394
- FAILED: "FAILED",
395
- PREPARING: "PREPARING",
396
- SUCCEEDED: "SUCCEEDED"
397
- };
398
- var ResourceNotSupportedException = class _ResourceNotSupportedException extends MarketplaceCatalogServiceException {
399
- static {
400
- __name(this, "ResourceNotSupportedException");
401
- }
402
- name = "ResourceNotSupportedException";
403
- $fault = "client";
404
- Message;
405
- /**
406
- * @internal
407
- */
408
- constructor(opts) {
409
- super({
410
- name: "ResourceNotSupportedException",
411
- $fault: "client",
412
- ...opts
594
+ Object.assign(contents, doc);
595
+ return contents;
596
+ };
597
+ const de_CancelChangeSetCommand = async (output, context) => {
598
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
599
+ return de_CommandError(output, context);
600
+ }
601
+ const contents = smithyClient.map({
602
+ $metadata: deserializeMetadata(output),
413
603
  });
414
- Object.setPrototypeOf(this, _ResourceNotSupportedException.prototype);
415
- this.Message = opts.Message;
416
- }
417
- };
418
- var ContainerProductVisibilityString = {
419
- Draft: "Draft",
420
- Limited: "Limited",
421
- Public: "Public",
422
- Restricted: "Restricted"
423
- };
424
- var DataProductVisibilityString = {
425
- Draft: "Draft",
426
- Limited: "Limited",
427
- Public: "Public",
428
- Restricted: "Restricted",
429
- Unavailable: "Unavailable"
430
- };
431
- var MachineLearningProductVisibilityString = {
432
- Draft: "Draft",
433
- Limited: "Limited",
434
- Public: "Public",
435
- Restricted: "Restricted"
436
- };
437
- var OfferStateString = {
438
- Draft: "Draft",
439
- Released: "Released"
440
- };
441
- var OfferTargetingString = {
442
- BuyerAccounts: "BuyerAccounts",
443
- CountryCodes: "CountryCodes",
444
- None: "None",
445
- ParticipatingPrograms: "ParticipatingPrograms"
446
- };
447
- var ResaleAuthorizationStatusString = {
448
- Active: "Active",
449
- Draft: "Draft",
450
- Restricted: "Restricted"
451
- };
452
- var SaaSProductVisibilityString = {
453
- Draft: "Draft",
454
- Limited: "Limited",
455
- Public: "Public",
456
- Restricted: "Restricted"
457
- };
458
- var EntityTypeFilters;
459
- ((EntityTypeFilters3) => {
460
- EntityTypeFilters3.visit = /* @__PURE__ */ __name((value, visitor) => {
461
- if (value.DataProductFilters !== void 0) return visitor.DataProductFilters(value.DataProductFilters);
462
- if (value.SaaSProductFilters !== void 0) return visitor.SaaSProductFilters(value.SaaSProductFilters);
463
- if (value.AmiProductFilters !== void 0) return visitor.AmiProductFilters(value.AmiProductFilters);
464
- if (value.OfferFilters !== void 0) return visitor.OfferFilters(value.OfferFilters);
465
- if (value.ContainerProductFilters !== void 0)
466
- return visitor.ContainerProductFilters(value.ContainerProductFilters);
467
- if (value.ResaleAuthorizationFilters !== void 0)
468
- return visitor.ResaleAuthorizationFilters(value.ResaleAuthorizationFilters);
469
- if (value.MachineLearningProductFilters !== void 0)
470
- return visitor.MachineLearningProductFilters(value.MachineLearningProductFilters);
471
- return visitor._(value.$unknown[0], value.$unknown[1]);
472
- }, "visit");
473
- })(EntityTypeFilters || (EntityTypeFilters = {}));
474
- var ContainerProductSortBy = {
475
- EntityId: "EntityId",
476
- LastModifiedDate: "LastModifiedDate",
477
- ProductTitle: "ProductTitle",
478
- Visibility: "Visibility"
479
- };
480
- var DataProductSortBy = {
481
- EntityId: "EntityId",
482
- LastModifiedDate: "LastModifiedDate",
483
- ProductTitle: "ProductTitle",
484
- Visibility: "Visibility"
485
- };
486
- var MachineLearningProductSortBy = {
487
- EntityId: "EntityId",
488
- LastModifiedDate: "LastModifiedDate",
489
- ProductTitle: "ProductTitle",
490
- Visibility: "Visibility"
491
- };
492
- var OfferSortBy = {
493
- AvailabilityEndDate: "AvailabilityEndDate",
494
- BuyerAccounts: "BuyerAccounts",
495
- EntityId: "EntityId",
496
- LastModifiedDate: "LastModifiedDate",
497
- Name: "Name",
498
- ProductId: "ProductId",
499
- ReleaseDate: "ReleaseDate",
500
- ResaleAuthorizationId: "ResaleAuthorizationId",
501
- State: "State",
502
- Targeting: "Targeting"
503
- };
504
- var ResaleAuthorizationSortBy = {
505
- AvailabilityEndDate: "AvailabilityEndDate",
506
- CreatedDate: "CreatedDate",
507
- EntityId: "EntityId",
508
- LastModifiedDate: "LastModifiedDate",
509
- ManufacturerAccountId: "ManufacturerAccountId",
510
- ManufacturerLegalName: "ManufacturerLegalName",
511
- Name: "Name",
512
- OfferExtendedStatus: "OfferExtendedStatus",
513
- ProductId: "ProductId",
514
- ProductName: "ProductName",
515
- ResellerAccountID: "ResellerAccountID",
516
- ResellerLegalName: "ResellerLegalName",
517
- Status: "Status"
518
- };
519
- var SaaSProductSortBy = {
520
- EntityId: "EntityId",
521
- LastModifiedDate: "LastModifiedDate",
522
- ProductTitle: "ProductTitle",
523
- Visibility: "Visibility"
524
- };
525
- var EntityTypeSort;
526
- ((EntityTypeSort3) => {
527
- EntityTypeSort3.visit = /* @__PURE__ */ __name((value, visitor) => {
528
- if (value.DataProductSort !== void 0) return visitor.DataProductSort(value.DataProductSort);
529
- if (value.SaaSProductSort !== void 0) return visitor.SaaSProductSort(value.SaaSProductSort);
530
- if (value.AmiProductSort !== void 0) return visitor.AmiProductSort(value.AmiProductSort);
531
- if (value.OfferSort !== void 0) return visitor.OfferSort(value.OfferSort);
532
- if (value.ContainerProductSort !== void 0) return visitor.ContainerProductSort(value.ContainerProductSort);
533
- if (value.ResaleAuthorizationSort !== void 0)
534
- return visitor.ResaleAuthorizationSort(value.ResaleAuthorizationSort);
535
- if (value.MachineLearningProductSort !== void 0)
536
- return visitor.MachineLearningProductSort(value.MachineLearningProductSort);
537
- return visitor._(value.$unknown[0], value.$unknown[1]);
538
- }, "visit");
539
- })(EntityTypeSort || (EntityTypeSort = {}));
540
- var OwnershipType = {
541
- SELF: "SELF",
542
- SHARED: "SHARED"
543
- };
544
- var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends MarketplaceCatalogServiceException {
545
- static {
546
- __name(this, "ServiceQuotaExceededException");
547
- }
548
- name = "ServiceQuotaExceededException";
549
- $fault = "client";
550
- Message;
551
- /**
552
- * @internal
553
- */
554
- constructor(opts) {
555
- super({
556
- name: "ServiceQuotaExceededException",
557
- $fault: "client",
558
- ...opts
604
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
605
+ const doc = smithyClient.take(data, {
606
+ ChangeSetArn: smithyClient.expectString,
607
+ ChangeSetId: smithyClient.expectString,
559
608
  });
560
- Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
561
- this.Message = opts.Message;
562
- }
609
+ Object.assign(contents, doc);
610
+ return contents;
563
611
  };
564
-
565
- // src/protocols/Aws_restJson1.ts
566
- var se_BatchDescribeEntitiesCommand = /* @__PURE__ */ __name(async (input, context) => {
567
- const b = (0, import_core.requestBuilder)(input, context);
568
- const headers = {
569
- "content-type": "application/json"
570
- };
571
- b.bp("/BatchDescribeEntities");
572
- let body;
573
- body = JSON.stringify(
574
- (0, import_smithy_client.take)(input, {
575
- EntityRequestList: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "EntityRequestList")
576
- })
577
- );
578
- b.m("POST").h(headers).b(body);
579
- return b.build();
580
- }, "se_BatchDescribeEntitiesCommand");
581
- var se_CancelChangeSetCommand = /* @__PURE__ */ __name(async (input, context) => {
582
- const b = (0, import_core.requestBuilder)(input, context);
583
- const headers = {};
584
- b.bp("/CancelChangeSet");
585
- const query = (0, import_smithy_client.map)({
586
- [_c]: [, (0, import_smithy_client.expectNonNull)(input[_C], `Catalog`)],
587
- [_cSI]: [, (0, import_smithy_client.expectNonNull)(input[_CSI], `ChangeSetId`)]
588
- });
589
- let body;
590
- b.m("PATCH").h(headers).q(query).b(body);
591
- return b.build();
592
- }, "se_CancelChangeSetCommand");
593
- var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
594
- const b = (0, import_core.requestBuilder)(input, context);
595
- const headers = {};
596
- b.bp("/DeleteResourcePolicy");
597
- const query = (0, import_smithy_client.map)({
598
- [_rA]: [, (0, import_smithy_client.expectNonNull)(input[_RA], `ResourceArn`)]
599
- });
600
- let body;
601
- b.m("DELETE").h(headers).q(query).b(body);
602
- return b.build();
603
- }, "se_DeleteResourcePolicyCommand");
604
- var se_DescribeChangeSetCommand = /* @__PURE__ */ __name(async (input, context) => {
605
- const b = (0, import_core.requestBuilder)(input, context);
606
- const headers = {};
607
- b.bp("/DescribeChangeSet");
608
- const query = (0, import_smithy_client.map)({
609
- [_c]: [, (0, import_smithy_client.expectNonNull)(input[_C], `Catalog`)],
610
- [_cSI]: [, (0, import_smithy_client.expectNonNull)(input[_CSI], `ChangeSetId`)]
611
- });
612
- let body;
613
- b.m("GET").h(headers).q(query).b(body);
614
- return b.build();
615
- }, "se_DescribeChangeSetCommand");
616
- var se_DescribeEntityCommand = /* @__PURE__ */ __name(async (input, context) => {
617
- const b = (0, import_core.requestBuilder)(input, context);
618
- const headers = {};
619
- b.bp("/DescribeEntity");
620
- const query = (0, import_smithy_client.map)({
621
- [_c]: [, (0, import_smithy_client.expectNonNull)(input[_C], `Catalog`)],
622
- [_eI]: [, (0, import_smithy_client.expectNonNull)(input[_EI], `EntityId`)]
623
- });
624
- let body;
625
- b.m("GET").h(headers).q(query).b(body);
626
- return b.build();
627
- }, "se_DescribeEntityCommand");
628
- var se_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
629
- const b = (0, import_core.requestBuilder)(input, context);
630
- const headers = {};
631
- b.bp("/GetResourcePolicy");
632
- const query = (0, import_smithy_client.map)({
633
- [_rA]: [, (0, import_smithy_client.expectNonNull)(input[_RA], `ResourceArn`)]
634
- });
635
- let body;
636
- b.m("GET").h(headers).q(query).b(body);
637
- return b.build();
638
- }, "se_GetResourcePolicyCommand");
639
- var se_ListChangeSetsCommand = /* @__PURE__ */ __name(async (input, context) => {
640
- const b = (0, import_core.requestBuilder)(input, context);
641
- const headers = {
642
- "content-type": "application/json"
643
- };
644
- b.bp("/ListChangeSets");
645
- let body;
646
- body = JSON.stringify(
647
- (0, import_smithy_client.take)(input, {
648
- Catalog: [],
649
- FilterList: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "FilterList"),
650
- MaxResults: [],
651
- NextToken: [],
652
- Sort: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Sort")
653
- })
654
- );
655
- b.m("POST").h(headers).b(body);
656
- return b.build();
657
- }, "se_ListChangeSetsCommand");
658
- var se_ListEntitiesCommand = /* @__PURE__ */ __name(async (input, context) => {
659
- const b = (0, import_core.requestBuilder)(input, context);
660
- const headers = {
661
- "content-type": "application/json"
662
- };
663
- b.bp("/ListEntities");
664
- let body;
665
- body = JSON.stringify(
666
- (0, import_smithy_client.take)(input, {
667
- Catalog: [],
668
- EntityType: [],
669
- EntityTypeFilters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "EntityTypeFilters"),
670
- EntityTypeSort: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "EntityTypeSort"),
671
- FilterList: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "FilterList"),
672
- MaxResults: [],
673
- NextToken: [],
674
- OwnershipType: [],
675
- Sort: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Sort")
676
- })
677
- );
678
- b.m("POST").h(headers).b(body);
679
- return b.build();
680
- }, "se_ListEntitiesCommand");
681
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
682
- const b = (0, import_core.requestBuilder)(input, context);
683
- const headers = {
684
- "content-type": "application/json"
685
- };
686
- b.bp("/ListTagsForResource");
687
- let body;
688
- body = JSON.stringify(
689
- (0, import_smithy_client.take)(input, {
690
- ResourceArn: []
691
- })
692
- );
693
- b.m("POST").h(headers).b(body);
694
- return b.build();
695
- }, "se_ListTagsForResourceCommand");
696
- var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
697
- const b = (0, import_core.requestBuilder)(input, context);
698
- const headers = {
699
- "content-type": "application/json"
700
- };
701
- b.bp("/PutResourcePolicy");
702
- let body;
703
- body = JSON.stringify(
704
- (0, import_smithy_client.take)(input, {
705
- Policy: [],
706
- ResourceArn: []
707
- })
708
- );
709
- b.m("POST").h(headers).b(body);
710
- return b.build();
711
- }, "se_PutResourcePolicyCommand");
712
- var se_StartChangeSetCommand = /* @__PURE__ */ __name(async (input, context) => {
713
- const b = (0, import_core.requestBuilder)(input, context);
714
- const headers = {
715
- "content-type": "application/json"
716
- };
717
- b.bp("/StartChangeSet");
718
- let body;
719
- body = JSON.stringify(
720
- (0, import_smithy_client.take)(input, {
721
- Catalog: [],
722
- ChangeSet: /* @__PURE__ */ __name((_) => se_RequestedChangeList(_, context), "ChangeSet"),
723
- ChangeSetName: [],
724
- ChangeSetTags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ChangeSetTags"),
725
- ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
726
- Intent: []
727
- })
728
- );
729
- b.m("POST").h(headers).b(body);
730
- return b.build();
731
- }, "se_StartChangeSetCommand");
732
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
733
- const b = (0, import_core.requestBuilder)(input, context);
734
- const headers = {
735
- "content-type": "application/json"
736
- };
737
- b.bp("/TagResource");
738
- let body;
739
- body = JSON.stringify(
740
- (0, import_smithy_client.take)(input, {
741
- ResourceArn: [],
742
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
743
- })
744
- );
745
- b.m("POST").h(headers).b(body);
746
- return b.build();
747
- }, "se_TagResourceCommand");
748
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
749
- const b = (0, import_core.requestBuilder)(input, context);
750
- const headers = {
751
- "content-type": "application/json"
752
- };
753
- b.bp("/UntagResource");
754
- let body;
755
- body = JSON.stringify(
756
- (0, import_smithy_client.take)(input, {
757
- ResourceArn: [],
758
- TagKeys: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "TagKeys")
759
- })
760
- );
761
- b.m("POST").h(headers).b(body);
762
- return b.build();
763
- }, "se_UntagResourceCommand");
764
- var de_BatchDescribeEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
765
- if (output.statusCode !== 200 && output.statusCode >= 300) {
766
- return de_CommandError(output, context);
767
- }
768
- const contents = (0, import_smithy_client.map)({
769
- $metadata: deserializeMetadata(output)
770
- });
771
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
772
- const doc = (0, import_smithy_client.take)(data, {
773
- EntityDetails: /* @__PURE__ */ __name((_) => de_EntityDetails(_, context), "EntityDetails"),
774
- Errors: import_smithy_client._json
775
- });
776
- Object.assign(contents, doc);
777
- return contents;
778
- }, "de_BatchDescribeEntitiesCommand");
779
- var de_CancelChangeSetCommand = /* @__PURE__ */ __name(async (output, context) => {
780
- if (output.statusCode !== 200 && output.statusCode >= 300) {
781
- return de_CommandError(output, context);
782
- }
783
- const contents = (0, import_smithy_client.map)({
784
- $metadata: deserializeMetadata(output)
785
- });
786
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
787
- const doc = (0, import_smithy_client.take)(data, {
788
- ChangeSetArn: import_smithy_client.expectString,
789
- ChangeSetId: import_smithy_client.expectString
790
- });
791
- Object.assign(contents, doc);
792
- return contents;
793
- }, "de_CancelChangeSetCommand");
794
- var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
795
- if (output.statusCode !== 200 && output.statusCode >= 300) {
796
- return de_CommandError(output, context);
797
- }
798
- const contents = (0, import_smithy_client.map)({
799
- $metadata: deserializeMetadata(output)
800
- });
801
- await (0, import_smithy_client.collectBody)(output.body, context);
802
- return contents;
803
- }, "de_DeleteResourcePolicyCommand");
804
- var de_DescribeChangeSetCommand = /* @__PURE__ */ __name(async (output, context) => {
805
- if (output.statusCode !== 200 && output.statusCode >= 300) {
806
- return de_CommandError(output, context);
807
- }
808
- const contents = (0, import_smithy_client.map)({
809
- $metadata: deserializeMetadata(output)
810
- });
811
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
812
- const doc = (0, import_smithy_client.take)(data, {
813
- ChangeSet: /* @__PURE__ */ __name((_) => de_ChangeSetDescription(_, context), "ChangeSet"),
814
- ChangeSetArn: import_smithy_client.expectString,
815
- ChangeSetId: import_smithy_client.expectString,
816
- ChangeSetName: import_smithy_client.expectString,
817
- EndTime: import_smithy_client.expectString,
818
- FailureCode: import_smithy_client.expectString,
819
- FailureDescription: import_smithy_client.expectString,
820
- Intent: import_smithy_client.expectString,
821
- StartTime: import_smithy_client.expectString,
822
- Status: import_smithy_client.expectString
823
- });
824
- Object.assign(contents, doc);
825
- return contents;
826
- }, "de_DescribeChangeSetCommand");
827
- var de_DescribeEntityCommand = /* @__PURE__ */ __name(async (output, context) => {
828
- if (output.statusCode !== 200 && output.statusCode >= 300) {
829
- return de_CommandError(output, context);
830
- }
831
- const contents = (0, import_smithy_client.map)({
832
- $metadata: deserializeMetadata(output)
833
- });
834
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
835
- const doc = (0, import_smithy_client.take)(data, {
836
- Details: import_smithy_client.expectString,
837
- DetailsDocument: /* @__PURE__ */ __name((_) => de_JsonDocumentType(_, context), "DetailsDocument"),
838
- EntityArn: import_smithy_client.expectString,
839
- EntityIdentifier: import_smithy_client.expectString,
840
- EntityType: import_smithy_client.expectString,
841
- LastModifiedDate: import_smithy_client.expectString
842
- });
843
- Object.assign(contents, doc);
844
- return contents;
845
- }, "de_DescribeEntityCommand");
846
- var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
847
- if (output.statusCode !== 200 && output.statusCode >= 300) {
848
- return de_CommandError(output, context);
849
- }
850
- const contents = (0, import_smithy_client.map)({
851
- $metadata: deserializeMetadata(output)
852
- });
853
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
854
- const doc = (0, import_smithy_client.take)(data, {
855
- Policy: import_smithy_client.expectString
856
- });
857
- Object.assign(contents, doc);
858
- return contents;
859
- }, "de_GetResourcePolicyCommand");
860
- var de_ListChangeSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
861
- if (output.statusCode !== 200 && output.statusCode >= 300) {
862
- return de_CommandError(output, context);
863
- }
864
- const contents = (0, import_smithy_client.map)({
865
- $metadata: deserializeMetadata(output)
866
- });
867
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
868
- const doc = (0, import_smithy_client.take)(data, {
869
- ChangeSetSummaryList: import_smithy_client._json,
870
- NextToken: import_smithy_client.expectString
871
- });
872
- Object.assign(contents, doc);
873
- return contents;
874
- }, "de_ListChangeSetsCommand");
875
- var de_ListEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
876
- if (output.statusCode !== 200 && output.statusCode >= 300) {
877
- return de_CommandError(output, context);
878
- }
879
- const contents = (0, import_smithy_client.map)({
880
- $metadata: deserializeMetadata(output)
881
- });
882
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
883
- const doc = (0, import_smithy_client.take)(data, {
884
- EntitySummaryList: import_smithy_client._json,
885
- NextToken: import_smithy_client.expectString
886
- });
887
- Object.assign(contents, doc);
888
- return contents;
889
- }, "de_ListEntitiesCommand");
890
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
891
- if (output.statusCode !== 200 && output.statusCode >= 300) {
892
- return de_CommandError(output, context);
893
- }
894
- const contents = (0, import_smithy_client.map)({
895
- $metadata: deserializeMetadata(output)
896
- });
897
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
898
- const doc = (0, import_smithy_client.take)(data, {
899
- ResourceArn: import_smithy_client.expectString,
900
- Tags: import_smithy_client._json
901
- });
902
- Object.assign(contents, doc);
903
- return contents;
904
- }, "de_ListTagsForResourceCommand");
905
- var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
906
- if (output.statusCode !== 200 && output.statusCode >= 300) {
907
- return de_CommandError(output, context);
908
- }
909
- const contents = (0, import_smithy_client.map)({
910
- $metadata: deserializeMetadata(output)
911
- });
912
- await (0, import_smithy_client.collectBody)(output.body, context);
913
- return contents;
914
- }, "de_PutResourcePolicyCommand");
915
- var de_StartChangeSetCommand = /* @__PURE__ */ __name(async (output, context) => {
916
- if (output.statusCode !== 200 && output.statusCode >= 300) {
917
- return de_CommandError(output, context);
918
- }
919
- const contents = (0, import_smithy_client.map)({
920
- $metadata: deserializeMetadata(output)
921
- });
922
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
923
- const doc = (0, import_smithy_client.take)(data, {
924
- ChangeSetArn: import_smithy_client.expectString,
925
- ChangeSetId: import_smithy_client.expectString
926
- });
927
- Object.assign(contents, doc);
928
- return contents;
929
- }, "de_StartChangeSetCommand");
930
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
931
- if (output.statusCode !== 200 && output.statusCode >= 300) {
932
- return de_CommandError(output, context);
933
- }
934
- const contents = (0, import_smithy_client.map)({
935
- $metadata: deserializeMetadata(output)
936
- });
937
- await (0, import_smithy_client.collectBody)(output.body, context);
938
- return contents;
939
- }, "de_TagResourceCommand");
940
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
941
- if (output.statusCode !== 200 && output.statusCode >= 300) {
942
- return de_CommandError(output, context);
943
- }
944
- const contents = (0, import_smithy_client.map)({
945
- $metadata: deserializeMetadata(output)
946
- });
947
- await (0, import_smithy_client.collectBody)(output.body, context);
948
- return contents;
949
- }, "de_UntagResourceCommand");
950
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
951
- const parsedOutput = {
952
- ...output,
953
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
954
- };
955
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
956
- switch (errorCode) {
957
- case "AccessDeniedException":
958
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
959
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
960
- case "InternalServiceException":
961
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
962
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
963
- case "ThrottlingException":
964
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
965
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
966
- case "ValidationException":
967
- case "com.amazonaws.marketplacecatalog#ValidationException":
968
- throw await de_ValidationExceptionRes(parsedOutput, context);
969
- case "ResourceInUseException":
970
- case "com.amazonaws.marketplacecatalog#ResourceInUseException":
971
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
972
- case "ResourceNotFoundException":
973
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
974
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
975
- case "ResourceNotSupportedException":
976
- case "com.amazonaws.marketplacecatalog#ResourceNotSupportedException":
977
- throw await de_ResourceNotSupportedExceptionRes(parsedOutput, context);
978
- case "ServiceQuotaExceededException":
979
- case "com.amazonaws.marketplacecatalog#ServiceQuotaExceededException":
980
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
981
- default:
982
- const parsedBody = parsedOutput.body;
983
- return throwDefaultError({
984
- output,
985
- parsedBody,
986
- errorCode
987
- });
988
- }
989
- }, "de_CommandError");
990
- var throwDefaultError = (0, import_smithy_client.withBaseException)(MarketplaceCatalogServiceException);
991
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
992
- const contents = (0, import_smithy_client.map)({});
993
- const data = parsedOutput.body;
994
- const doc = (0, import_smithy_client.take)(data, {
995
- Message: import_smithy_client.expectString
996
- });
997
- Object.assign(contents, doc);
998
- const exception = new AccessDeniedException({
999
- $metadata: deserializeMetadata(parsedOutput),
1000
- ...contents
1001
- });
1002
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1003
- }, "de_AccessDeniedExceptionRes");
1004
- var de_InternalServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1005
- const contents = (0, import_smithy_client.map)({});
1006
- const data = parsedOutput.body;
1007
- const doc = (0, import_smithy_client.take)(data, {
1008
- Message: import_smithy_client.expectString
1009
- });
1010
- Object.assign(contents, doc);
1011
- const exception = new InternalServiceException({
1012
- $metadata: deserializeMetadata(parsedOutput),
1013
- ...contents
1014
- });
1015
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1016
- }, "de_InternalServiceExceptionRes");
1017
- var de_ResourceInUseExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1018
- const contents = (0, import_smithy_client.map)({});
1019
- const data = parsedOutput.body;
1020
- const doc = (0, import_smithy_client.take)(data, {
1021
- Message: import_smithy_client.expectString
1022
- });
1023
- Object.assign(contents, doc);
1024
- const exception = new ResourceInUseException({
1025
- $metadata: deserializeMetadata(parsedOutput),
1026
- ...contents
1027
- });
1028
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1029
- }, "de_ResourceInUseExceptionRes");
1030
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1031
- const contents = (0, import_smithy_client.map)({});
1032
- const data = parsedOutput.body;
1033
- const doc = (0, import_smithy_client.take)(data, {
1034
- Message: import_smithy_client.expectString
1035
- });
1036
- Object.assign(contents, doc);
1037
- const exception = new ResourceNotFoundException({
1038
- $metadata: deserializeMetadata(parsedOutput),
1039
- ...contents
1040
- });
1041
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1042
- }, "de_ResourceNotFoundExceptionRes");
1043
- var de_ResourceNotSupportedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1044
- const contents = (0, import_smithy_client.map)({});
1045
- const data = parsedOutput.body;
1046
- const doc = (0, import_smithy_client.take)(data, {
1047
- Message: import_smithy_client.expectString
1048
- });
1049
- Object.assign(contents, doc);
1050
- const exception = new ResourceNotSupportedException({
1051
- $metadata: deserializeMetadata(parsedOutput),
1052
- ...contents
1053
- });
1054
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1055
- }, "de_ResourceNotSupportedExceptionRes");
1056
- var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1057
- const contents = (0, import_smithy_client.map)({});
1058
- const data = parsedOutput.body;
1059
- const doc = (0, import_smithy_client.take)(data, {
1060
- Message: import_smithy_client.expectString
1061
- });
1062
- Object.assign(contents, doc);
1063
- const exception = new ServiceQuotaExceededException({
1064
- $metadata: deserializeMetadata(parsedOutput),
1065
- ...contents
1066
- });
1067
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1068
- }, "de_ServiceQuotaExceededExceptionRes");
1069
- var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1070
- const contents = (0, import_smithy_client.map)({});
1071
- const data = parsedOutput.body;
1072
- const doc = (0, import_smithy_client.take)(data, {
1073
- Message: import_smithy_client.expectString
1074
- });
1075
- Object.assign(contents, doc);
1076
- const exception = new ThrottlingException({
1077
- $metadata: deserializeMetadata(parsedOutput),
1078
- ...contents
1079
- });
1080
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1081
- }, "de_ThrottlingExceptionRes");
1082
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1083
- const contents = (0, import_smithy_client.map)({});
1084
- const data = parsedOutput.body;
1085
- const doc = (0, import_smithy_client.take)(data, {
1086
- Message: import_smithy_client.expectString
1087
- });
1088
- Object.assign(contents, doc);
1089
- const exception = new ValidationException({
1090
- $metadata: deserializeMetadata(parsedOutput),
1091
- ...contents
1092
- });
1093
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1094
- }, "de_ValidationExceptionRes");
1095
- var se_Change = /* @__PURE__ */ __name((input, context) => {
1096
- return (0, import_smithy_client.take)(input, {
1097
- ChangeName: [],
1098
- ChangeType: [],
1099
- Details: [],
1100
- DetailsDocument: /* @__PURE__ */ __name((_) => se_JsonDocumentType(_, context), "DetailsDocument"),
1101
- Entity: import_smithy_client._json,
1102
- EntityTags: import_smithy_client._json
1103
- });
1104
- }, "se_Change");
1105
- var se_JsonDocumentType = /* @__PURE__ */ __name((input, context) => {
1106
- return input;
1107
- }, "se_JsonDocumentType");
1108
- var se_RequestedChangeList = /* @__PURE__ */ __name((input, context) => {
1109
- return input.filter((e) => e != null).map((entry) => {
1110
- return se_Change(entry, context);
1111
- });
1112
- }, "se_RequestedChangeList");
1113
- var de_ChangeSetDescription = /* @__PURE__ */ __name((output, context) => {
1114
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1115
- return de_ChangeSummary(entry, context);
1116
- });
1117
- return retVal;
1118
- }, "de_ChangeSetDescription");
1119
- var de_ChangeSummary = /* @__PURE__ */ __name((output, context) => {
1120
- return (0, import_smithy_client.take)(output, {
1121
- ChangeName: import_smithy_client.expectString,
1122
- ChangeType: import_smithy_client.expectString,
1123
- Details: import_smithy_client.expectString,
1124
- DetailsDocument: /* @__PURE__ */ __name((_) => de_JsonDocumentType(_, context), "DetailsDocument"),
1125
- Entity: import_smithy_client._json,
1126
- ErrorDetailList: import_smithy_client._json
1127
- });
1128
- }, "de_ChangeSummary");
1129
- var de_EntityDetail = /* @__PURE__ */ __name((output, context) => {
1130
- return (0, import_smithy_client.take)(output, {
1131
- DetailsDocument: /* @__PURE__ */ __name((_) => de_JsonDocumentType(_, context), "DetailsDocument"),
1132
- EntityArn: import_smithy_client.expectString,
1133
- EntityIdentifier: import_smithy_client.expectString,
1134
- EntityType: import_smithy_client.expectString,
1135
- LastModifiedDate: import_smithy_client.expectString
1136
- });
1137
- }, "de_EntityDetail");
1138
- var de_EntityDetails = /* @__PURE__ */ __name((output, context) => {
1139
- return Object.entries(output).reduce((acc, [key, value]) => {
1140
- if (value === null) {
1141
- return acc;
612
+ const de_DeleteResourcePolicyCommand = async (output, context) => {
613
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
614
+ return de_CommandError(output, context);
1142
615
  }
1143
- acc[key] = de_EntityDetail(value, context);
1144
- return acc;
1145
- }, {});
1146
- }, "de_EntityDetails");
1147
- var de_JsonDocumentType = /* @__PURE__ */ __name((output, context) => {
1148
- return output;
1149
- }, "de_JsonDocumentType");
1150
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1151
- httpStatusCode: output.statusCode,
1152
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1153
- extendedRequestId: output.headers["x-amz-id-2"],
1154
- cfId: output.headers["x-amz-cf-id"]
1155
- }), "deserializeMetadata");
1156
- var _C = "Catalog";
1157
- var _CSI = "ChangeSetId";
1158
- var _EI = "EntityId";
1159
- var _RA = "ResourceArn";
1160
- var _c = "catalog";
1161
- var _cSI = "changeSetId";
1162
- var _eI = "entityId";
1163
- var _rA = "resourceArn";
1164
-
1165
- // src/commands/BatchDescribeEntitiesCommand.ts
1166
- var BatchDescribeEntitiesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1167
- return [
1168
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1169
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1170
- ];
1171
- }).s("AWSMPSeymour", "BatchDescribeEntities", {}).n("MarketplaceCatalogClient", "BatchDescribeEntitiesCommand").f(void 0, void 0).ser(se_BatchDescribeEntitiesCommand).de(de_BatchDescribeEntitiesCommand).build() {
1172
- static {
1173
- __name(this, "BatchDescribeEntitiesCommand");
1174
- }
616
+ const contents = smithyClient.map({
617
+ $metadata: deserializeMetadata(output),
618
+ });
619
+ await smithyClient.collectBody(output.body, context);
620
+ return contents;
1175
621
  };
1176
-
1177
- // src/commands/CancelChangeSetCommand.ts
1178
-
1179
-
1180
-
1181
- var CancelChangeSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1182
- return [
1183
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1184
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1185
- ];
1186
- }).s("AWSMPSeymour", "CancelChangeSet", {}).n("MarketplaceCatalogClient", "CancelChangeSetCommand").f(void 0, void 0).ser(se_CancelChangeSetCommand).de(de_CancelChangeSetCommand).build() {
1187
- static {
1188
- __name(this, "CancelChangeSetCommand");
1189
- }
622
+ const de_DescribeChangeSetCommand = async (output, context) => {
623
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
624
+ return de_CommandError(output, context);
625
+ }
626
+ const contents = smithyClient.map({
627
+ $metadata: deserializeMetadata(output),
628
+ });
629
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
630
+ const doc = smithyClient.take(data, {
631
+ ChangeSet: (_) => de_ChangeSetDescription(_),
632
+ ChangeSetArn: smithyClient.expectString,
633
+ ChangeSetId: smithyClient.expectString,
634
+ ChangeSetName: smithyClient.expectString,
635
+ EndTime: smithyClient.expectString,
636
+ FailureCode: smithyClient.expectString,
637
+ FailureDescription: smithyClient.expectString,
638
+ Intent: smithyClient.expectString,
639
+ StartTime: smithyClient.expectString,
640
+ Status: smithyClient.expectString,
641
+ });
642
+ Object.assign(contents, doc);
643
+ return contents;
1190
644
  };
1191
-
1192
- // src/commands/DeleteResourcePolicyCommand.ts
1193
-
1194
-
1195
-
1196
- var DeleteResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1197
- return [
1198
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1199
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1200
- ];
1201
- }).s("AWSMPSeymour", "DeleteResourcePolicy", {}).n("MarketplaceCatalogClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
1202
- static {
1203
- __name(this, "DeleteResourcePolicyCommand");
1204
- }
645
+ const de_DescribeEntityCommand = async (output, context) => {
646
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
647
+ return de_CommandError(output, context);
648
+ }
649
+ const contents = smithyClient.map({
650
+ $metadata: deserializeMetadata(output),
651
+ });
652
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
653
+ const doc = smithyClient.take(data, {
654
+ Details: smithyClient.expectString,
655
+ DetailsDocument: (_) => de_JsonDocumentType(_),
656
+ EntityArn: smithyClient.expectString,
657
+ EntityIdentifier: smithyClient.expectString,
658
+ EntityType: smithyClient.expectString,
659
+ LastModifiedDate: smithyClient.expectString,
660
+ });
661
+ Object.assign(contents, doc);
662
+ return contents;
1205
663
  };
1206
-
1207
- // src/commands/DescribeChangeSetCommand.ts
1208
-
1209
-
1210
-
1211
- var DescribeChangeSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1212
- return [
1213
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1214
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1215
- ];
1216
- }).s("AWSMPSeymour", "DescribeChangeSet", {}).n("MarketplaceCatalogClient", "DescribeChangeSetCommand").f(void 0, void 0).ser(se_DescribeChangeSetCommand).de(de_DescribeChangeSetCommand).build() {
1217
- static {
1218
- __name(this, "DescribeChangeSetCommand");
1219
- }
664
+ const de_GetResourcePolicyCommand = async (output, context) => {
665
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
666
+ return de_CommandError(output, context);
667
+ }
668
+ const contents = smithyClient.map({
669
+ $metadata: deserializeMetadata(output),
670
+ });
671
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
672
+ const doc = smithyClient.take(data, {
673
+ Policy: smithyClient.expectString,
674
+ });
675
+ Object.assign(contents, doc);
676
+ return contents;
1220
677
  };
1221
-
1222
- // src/commands/DescribeEntityCommand.ts
1223
-
1224
-
1225
-
1226
- var DescribeEntityCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1227
- return [
1228
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1229
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1230
- ];
1231
- }).s("AWSMPSeymour", "DescribeEntity", {}).n("MarketplaceCatalogClient", "DescribeEntityCommand").f(void 0, void 0).ser(se_DescribeEntityCommand).de(de_DescribeEntityCommand).build() {
1232
- static {
1233
- __name(this, "DescribeEntityCommand");
1234
- }
678
+ const de_ListChangeSetsCommand = async (output, context) => {
679
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
680
+ return de_CommandError(output, context);
681
+ }
682
+ const contents = smithyClient.map({
683
+ $metadata: deserializeMetadata(output),
684
+ });
685
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
686
+ const doc = smithyClient.take(data, {
687
+ ChangeSetSummaryList: smithyClient._json,
688
+ NextToken: smithyClient.expectString,
689
+ });
690
+ Object.assign(contents, doc);
691
+ return contents;
1235
692
  };
1236
-
1237
- // src/commands/GetResourcePolicyCommand.ts
1238
-
1239
-
1240
-
1241
- var GetResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1242
- return [
1243
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1244
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1245
- ];
1246
- }).s("AWSMPSeymour", "GetResourcePolicy", {}).n("MarketplaceCatalogClient", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {
1247
- static {
1248
- __name(this, "GetResourcePolicyCommand");
1249
- }
693
+ const de_ListEntitiesCommand = async (output, context) => {
694
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
695
+ return de_CommandError(output, context);
696
+ }
697
+ const contents = smithyClient.map({
698
+ $metadata: deserializeMetadata(output),
699
+ });
700
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
701
+ const doc = smithyClient.take(data, {
702
+ EntitySummaryList: smithyClient._json,
703
+ NextToken: smithyClient.expectString,
704
+ });
705
+ Object.assign(contents, doc);
706
+ return contents;
1250
707
  };
1251
-
1252
- // src/commands/ListChangeSetsCommand.ts
1253
-
1254
-
1255
-
1256
- var ListChangeSetsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1257
- return [
1258
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1259
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1260
- ];
1261
- }).s("AWSMPSeymour", "ListChangeSets", {}).n("MarketplaceCatalogClient", "ListChangeSetsCommand").f(void 0, void 0).ser(se_ListChangeSetsCommand).de(de_ListChangeSetsCommand).build() {
1262
- static {
1263
- __name(this, "ListChangeSetsCommand");
1264
- }
708
+ const de_ListTagsForResourceCommand = async (output, context) => {
709
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
710
+ return de_CommandError(output, context);
711
+ }
712
+ const contents = smithyClient.map({
713
+ $metadata: deserializeMetadata(output),
714
+ });
715
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
716
+ const doc = smithyClient.take(data, {
717
+ ResourceArn: smithyClient.expectString,
718
+ Tags: smithyClient._json,
719
+ });
720
+ Object.assign(contents, doc);
721
+ return contents;
1265
722
  };
1266
-
1267
- // src/commands/ListEntitiesCommand.ts
1268
-
1269
-
1270
-
1271
- var ListEntitiesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1272
- return [
1273
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1274
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1275
- ];
1276
- }).s("AWSMPSeymour", "ListEntities", {}).n("MarketplaceCatalogClient", "ListEntitiesCommand").f(void 0, void 0).ser(se_ListEntitiesCommand).de(de_ListEntitiesCommand).build() {
1277
- static {
1278
- __name(this, "ListEntitiesCommand");
1279
- }
723
+ const de_PutResourcePolicyCommand = async (output, context) => {
724
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
725
+ return de_CommandError(output, context);
726
+ }
727
+ const contents = smithyClient.map({
728
+ $metadata: deserializeMetadata(output),
729
+ });
730
+ await smithyClient.collectBody(output.body, context);
731
+ return contents;
1280
732
  };
1281
-
1282
- // src/commands/ListTagsForResourceCommand.ts
1283
-
1284
-
1285
-
1286
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1287
- return [
1288
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1289
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1290
- ];
1291
- }).s("AWSMPSeymour", "ListTagsForResource", {}).n("MarketplaceCatalogClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1292
- static {
1293
- __name(this, "ListTagsForResourceCommand");
1294
- }
733
+ const de_StartChangeSetCommand = async (output, context) => {
734
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
735
+ return de_CommandError(output, context);
736
+ }
737
+ const contents = smithyClient.map({
738
+ $metadata: deserializeMetadata(output),
739
+ });
740
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
741
+ const doc = smithyClient.take(data, {
742
+ ChangeSetArn: smithyClient.expectString,
743
+ ChangeSetId: smithyClient.expectString,
744
+ });
745
+ Object.assign(contents, doc);
746
+ return contents;
1295
747
  };
1296
-
1297
- // src/commands/PutResourcePolicyCommand.ts
1298
-
1299
-
1300
-
1301
- var PutResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1302
- return [
1303
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1304
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1305
- ];
1306
- }).s("AWSMPSeymour", "PutResourcePolicy", {}).n("MarketplaceCatalogClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
1307
- static {
1308
- __name(this, "PutResourcePolicyCommand");
1309
- }
748
+ const de_TagResourceCommand = async (output, context) => {
749
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
750
+ return de_CommandError(output, context);
751
+ }
752
+ const contents = smithyClient.map({
753
+ $metadata: deserializeMetadata(output),
754
+ });
755
+ await smithyClient.collectBody(output.body, context);
756
+ return contents;
1310
757
  };
1311
-
1312
- // src/commands/StartChangeSetCommand.ts
1313
-
1314
-
1315
-
1316
- var StartChangeSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1317
- return [
1318
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1319
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1320
- ];
1321
- }).s("AWSMPSeymour", "StartChangeSet", {}).n("MarketplaceCatalogClient", "StartChangeSetCommand").f(void 0, void 0).ser(se_StartChangeSetCommand).de(de_StartChangeSetCommand).build() {
1322
- static {
1323
- __name(this, "StartChangeSetCommand");
1324
- }
758
+ const de_UntagResourceCommand = async (output, context) => {
759
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
760
+ return de_CommandError(output, context);
761
+ }
762
+ const contents = smithyClient.map({
763
+ $metadata: deserializeMetadata(output),
764
+ });
765
+ await smithyClient.collectBody(output.body, context);
766
+ return contents;
1325
767
  };
1326
-
1327
- // src/commands/TagResourceCommand.ts
1328
-
1329
-
1330
-
1331
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1332
- return [
1333
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1334
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1335
- ];
1336
- }).s("AWSMPSeymour", "TagResource", {}).n("MarketplaceCatalogClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1337
- static {
1338
- __name(this, "TagResourceCommand");
1339
- }
768
+ const de_CommandError = async (output, context) => {
769
+ const parsedOutput = {
770
+ ...output,
771
+ body: await core$1.parseJsonErrorBody(output.body, context),
772
+ };
773
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
774
+ switch (errorCode) {
775
+ case "AccessDeniedException":
776
+ case "com.amazonaws.marketplacecatalog#AccessDeniedException":
777
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
778
+ case "InternalServiceException":
779
+ case "com.amazonaws.marketplacecatalog#InternalServiceException":
780
+ throw await de_InternalServiceExceptionRes(parsedOutput);
781
+ case "ThrottlingException":
782
+ case "com.amazonaws.marketplacecatalog#ThrottlingException":
783
+ throw await de_ThrottlingExceptionRes(parsedOutput);
784
+ case "ValidationException":
785
+ case "com.amazonaws.marketplacecatalog#ValidationException":
786
+ throw await de_ValidationExceptionRes(parsedOutput);
787
+ case "ResourceInUseException":
788
+ case "com.amazonaws.marketplacecatalog#ResourceInUseException":
789
+ throw await de_ResourceInUseExceptionRes(parsedOutput);
790
+ case "ResourceNotFoundException":
791
+ case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
792
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
793
+ case "ResourceNotSupportedException":
794
+ case "com.amazonaws.marketplacecatalog#ResourceNotSupportedException":
795
+ throw await de_ResourceNotSupportedExceptionRes(parsedOutput);
796
+ case "ServiceQuotaExceededException":
797
+ case "com.amazonaws.marketplacecatalog#ServiceQuotaExceededException":
798
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
799
+ default:
800
+ const parsedBody = parsedOutput.body;
801
+ return throwDefaultError({
802
+ output,
803
+ parsedBody,
804
+ errorCode,
805
+ });
806
+ }
1340
807
  };
1341
-
1342
- // src/commands/UntagResourceCommand.ts
1343
-
1344
-
1345
-
1346
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1347
- return [
1348
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1349
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1350
- ];
1351
- }).s("AWSMPSeymour", "UntagResource", {}).n("MarketplaceCatalogClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1352
- static {
1353
- __name(this, "UntagResourceCommand");
1354
- }
808
+ const throwDefaultError = smithyClient.withBaseException(MarketplaceCatalogServiceException);
809
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
810
+ const contents = smithyClient.map({});
811
+ const data = parsedOutput.body;
812
+ const doc = smithyClient.take(data, {
813
+ Message: smithyClient.expectString,
814
+ });
815
+ Object.assign(contents, doc);
816
+ const exception = new AccessDeniedException({
817
+ $metadata: deserializeMetadata(parsedOutput),
818
+ ...contents,
819
+ });
820
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1355
821
  };
822
+ const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
823
+ const contents = smithyClient.map({});
824
+ const data = parsedOutput.body;
825
+ const doc = smithyClient.take(data, {
826
+ Message: smithyClient.expectString,
827
+ });
828
+ Object.assign(contents, doc);
829
+ const exception = new InternalServiceException({
830
+ $metadata: deserializeMetadata(parsedOutput),
831
+ ...contents,
832
+ });
833
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
834
+ };
835
+ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
836
+ const contents = smithyClient.map({});
837
+ const data = parsedOutput.body;
838
+ const doc = smithyClient.take(data, {
839
+ Message: smithyClient.expectString,
840
+ });
841
+ Object.assign(contents, doc);
842
+ const exception = new ResourceInUseException({
843
+ $metadata: deserializeMetadata(parsedOutput),
844
+ ...contents,
845
+ });
846
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
847
+ };
848
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
849
+ const contents = smithyClient.map({});
850
+ const data = parsedOutput.body;
851
+ const doc = smithyClient.take(data, {
852
+ Message: smithyClient.expectString,
853
+ });
854
+ Object.assign(contents, doc);
855
+ const exception = new ResourceNotFoundException({
856
+ $metadata: deserializeMetadata(parsedOutput),
857
+ ...contents,
858
+ });
859
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
860
+ };
861
+ const de_ResourceNotSupportedExceptionRes = async (parsedOutput, context) => {
862
+ const contents = smithyClient.map({});
863
+ const data = parsedOutput.body;
864
+ const doc = smithyClient.take(data, {
865
+ Message: smithyClient.expectString,
866
+ });
867
+ Object.assign(contents, doc);
868
+ const exception = new ResourceNotSupportedException({
869
+ $metadata: deserializeMetadata(parsedOutput),
870
+ ...contents,
871
+ });
872
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
873
+ };
874
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
875
+ const contents = smithyClient.map({});
876
+ const data = parsedOutput.body;
877
+ const doc = smithyClient.take(data, {
878
+ Message: smithyClient.expectString,
879
+ });
880
+ Object.assign(contents, doc);
881
+ const exception = new ServiceQuotaExceededException({
882
+ $metadata: deserializeMetadata(parsedOutput),
883
+ ...contents,
884
+ });
885
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
886
+ };
887
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
888
+ const contents = smithyClient.map({});
889
+ const data = parsedOutput.body;
890
+ const doc = smithyClient.take(data, {
891
+ Message: smithyClient.expectString,
892
+ });
893
+ Object.assign(contents, doc);
894
+ const exception = new ThrottlingException({
895
+ $metadata: deserializeMetadata(parsedOutput),
896
+ ...contents,
897
+ });
898
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
899
+ };
900
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
901
+ const contents = smithyClient.map({});
902
+ const data = parsedOutput.body;
903
+ const doc = smithyClient.take(data, {
904
+ Message: smithyClient.expectString,
905
+ });
906
+ Object.assign(contents, doc);
907
+ const exception = new ValidationException({
908
+ $metadata: deserializeMetadata(parsedOutput),
909
+ ...contents,
910
+ });
911
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
912
+ };
913
+ const se_Change = (input, context) => {
914
+ return smithyClient.take(input, {
915
+ ChangeName: [],
916
+ ChangeType: [],
917
+ Details: [],
918
+ DetailsDocument: (_) => se_JsonDocumentType(_),
919
+ Entity: smithyClient._json,
920
+ EntityTags: smithyClient._json,
921
+ });
922
+ };
923
+ const se_JsonDocumentType = (input, context) => {
924
+ return input;
925
+ };
926
+ const se_RequestedChangeList = (input, context) => {
927
+ return input
928
+ .filter((e) => e != null)
929
+ .map((entry) => {
930
+ return se_Change(entry);
931
+ });
932
+ };
933
+ const de_ChangeSetDescription = (output, context) => {
934
+ const retVal = (output || [])
935
+ .filter((e) => e != null)
936
+ .map((entry) => {
937
+ return de_ChangeSummary(entry);
938
+ });
939
+ return retVal;
940
+ };
941
+ const de_ChangeSummary = (output, context) => {
942
+ return smithyClient.take(output, {
943
+ ChangeName: smithyClient.expectString,
944
+ ChangeType: smithyClient.expectString,
945
+ Details: smithyClient.expectString,
946
+ DetailsDocument: (_) => de_JsonDocumentType(_),
947
+ Entity: smithyClient._json,
948
+ ErrorDetailList: smithyClient._json,
949
+ });
950
+ };
951
+ const de_EntityDetail = (output, context) => {
952
+ return smithyClient.take(output, {
953
+ DetailsDocument: (_) => de_JsonDocumentType(_),
954
+ EntityArn: smithyClient.expectString,
955
+ EntityIdentifier: smithyClient.expectString,
956
+ EntityType: smithyClient.expectString,
957
+ LastModifiedDate: smithyClient.expectString,
958
+ });
959
+ };
960
+ const de_EntityDetails = (output, context) => {
961
+ return Object.entries(output).reduce((acc, [key, value]) => {
962
+ if (value === null) {
963
+ return acc;
964
+ }
965
+ acc[key] = de_EntityDetail(value);
966
+ return acc;
967
+ }, {});
968
+ };
969
+ const de_JsonDocumentType = (output, context) => {
970
+ return output;
971
+ };
972
+ const deserializeMetadata = (output) => ({
973
+ httpStatusCode: output.statusCode,
974
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
975
+ extendedRequestId: output.headers["x-amz-id-2"],
976
+ cfId: output.headers["x-amz-cf-id"],
977
+ });
978
+ const _C = "Catalog";
979
+ const _CSI = "ChangeSetId";
980
+ const _EI = "EntityId";
981
+ const _RA = "ResourceArn";
982
+ const _c = "catalog";
983
+ const _cSI = "changeSetId";
984
+ const _eI = "entityId";
985
+ const _rA = "resourceArn";
986
+
987
+ class BatchDescribeEntitiesCommand extends smithyClient.Command
988
+ .classBuilder()
989
+ .ep(commonParams)
990
+ .m(function (Command, cs, config, o) {
991
+ return [
992
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
993
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
994
+ ];
995
+ })
996
+ .s("AWSMPSeymour", "BatchDescribeEntities", {})
997
+ .n("MarketplaceCatalogClient", "BatchDescribeEntitiesCommand")
998
+ .f(void 0, void 0)
999
+ .ser(se_BatchDescribeEntitiesCommand)
1000
+ .de(de_BatchDescribeEntitiesCommand)
1001
+ .build() {
1002
+ }
1003
+
1004
+ class CancelChangeSetCommand extends smithyClient.Command
1005
+ .classBuilder()
1006
+ .ep(commonParams)
1007
+ .m(function (Command, cs, config, o) {
1008
+ return [
1009
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1010
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1011
+ ];
1012
+ })
1013
+ .s("AWSMPSeymour", "CancelChangeSet", {})
1014
+ .n("MarketplaceCatalogClient", "CancelChangeSetCommand")
1015
+ .f(void 0, void 0)
1016
+ .ser(se_CancelChangeSetCommand)
1017
+ .de(de_CancelChangeSetCommand)
1018
+ .build() {
1019
+ }
1020
+
1021
+ class DeleteResourcePolicyCommand extends smithyClient.Command
1022
+ .classBuilder()
1023
+ .ep(commonParams)
1024
+ .m(function (Command, cs, config, o) {
1025
+ return [
1026
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1027
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1028
+ ];
1029
+ })
1030
+ .s("AWSMPSeymour", "DeleteResourcePolicy", {})
1031
+ .n("MarketplaceCatalogClient", "DeleteResourcePolicyCommand")
1032
+ .f(void 0, void 0)
1033
+ .ser(se_DeleteResourcePolicyCommand)
1034
+ .de(de_DeleteResourcePolicyCommand)
1035
+ .build() {
1036
+ }
1037
+
1038
+ class DescribeChangeSetCommand extends smithyClient.Command
1039
+ .classBuilder()
1040
+ .ep(commonParams)
1041
+ .m(function (Command, cs, config, o) {
1042
+ return [
1043
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1044
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1045
+ ];
1046
+ })
1047
+ .s("AWSMPSeymour", "DescribeChangeSet", {})
1048
+ .n("MarketplaceCatalogClient", "DescribeChangeSetCommand")
1049
+ .f(void 0, void 0)
1050
+ .ser(se_DescribeChangeSetCommand)
1051
+ .de(de_DescribeChangeSetCommand)
1052
+ .build() {
1053
+ }
1054
+
1055
+ class DescribeEntityCommand extends smithyClient.Command
1056
+ .classBuilder()
1057
+ .ep(commonParams)
1058
+ .m(function (Command, cs, config, o) {
1059
+ return [
1060
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1061
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1062
+ ];
1063
+ })
1064
+ .s("AWSMPSeymour", "DescribeEntity", {})
1065
+ .n("MarketplaceCatalogClient", "DescribeEntityCommand")
1066
+ .f(void 0, void 0)
1067
+ .ser(se_DescribeEntityCommand)
1068
+ .de(de_DescribeEntityCommand)
1069
+ .build() {
1070
+ }
1071
+
1072
+ class GetResourcePolicyCommand extends smithyClient.Command
1073
+ .classBuilder()
1074
+ .ep(commonParams)
1075
+ .m(function (Command, cs, config, o) {
1076
+ return [
1077
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1078
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1079
+ ];
1080
+ })
1081
+ .s("AWSMPSeymour", "GetResourcePolicy", {})
1082
+ .n("MarketplaceCatalogClient", "GetResourcePolicyCommand")
1083
+ .f(void 0, void 0)
1084
+ .ser(se_GetResourcePolicyCommand)
1085
+ .de(de_GetResourcePolicyCommand)
1086
+ .build() {
1087
+ }
1088
+
1089
+ class ListChangeSetsCommand extends smithyClient.Command
1090
+ .classBuilder()
1091
+ .ep(commonParams)
1092
+ .m(function (Command, cs, config, o) {
1093
+ return [
1094
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1095
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1096
+ ];
1097
+ })
1098
+ .s("AWSMPSeymour", "ListChangeSets", {})
1099
+ .n("MarketplaceCatalogClient", "ListChangeSetsCommand")
1100
+ .f(void 0, void 0)
1101
+ .ser(se_ListChangeSetsCommand)
1102
+ .de(de_ListChangeSetsCommand)
1103
+ .build() {
1104
+ }
1105
+
1106
+ class ListEntitiesCommand extends smithyClient.Command
1107
+ .classBuilder()
1108
+ .ep(commonParams)
1109
+ .m(function (Command, cs, config, o) {
1110
+ return [
1111
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1112
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1113
+ ];
1114
+ })
1115
+ .s("AWSMPSeymour", "ListEntities", {})
1116
+ .n("MarketplaceCatalogClient", "ListEntitiesCommand")
1117
+ .f(void 0, void 0)
1118
+ .ser(se_ListEntitiesCommand)
1119
+ .de(de_ListEntitiesCommand)
1120
+ .build() {
1121
+ }
1122
+
1123
+ class ListTagsForResourceCommand extends smithyClient.Command
1124
+ .classBuilder()
1125
+ .ep(commonParams)
1126
+ .m(function (Command, cs, config, o) {
1127
+ return [
1128
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1129
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1130
+ ];
1131
+ })
1132
+ .s("AWSMPSeymour", "ListTagsForResource", {})
1133
+ .n("MarketplaceCatalogClient", "ListTagsForResourceCommand")
1134
+ .f(void 0, void 0)
1135
+ .ser(se_ListTagsForResourceCommand)
1136
+ .de(de_ListTagsForResourceCommand)
1137
+ .build() {
1138
+ }
1139
+
1140
+ class PutResourcePolicyCommand extends smithyClient.Command
1141
+ .classBuilder()
1142
+ .ep(commonParams)
1143
+ .m(function (Command, cs, config, o) {
1144
+ return [
1145
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1146
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1147
+ ];
1148
+ })
1149
+ .s("AWSMPSeymour", "PutResourcePolicy", {})
1150
+ .n("MarketplaceCatalogClient", "PutResourcePolicyCommand")
1151
+ .f(void 0, void 0)
1152
+ .ser(se_PutResourcePolicyCommand)
1153
+ .de(de_PutResourcePolicyCommand)
1154
+ .build() {
1155
+ }
1156
+
1157
+ class StartChangeSetCommand extends smithyClient.Command
1158
+ .classBuilder()
1159
+ .ep(commonParams)
1160
+ .m(function (Command, cs, config, o) {
1161
+ return [
1162
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1163
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1164
+ ];
1165
+ })
1166
+ .s("AWSMPSeymour", "StartChangeSet", {})
1167
+ .n("MarketplaceCatalogClient", "StartChangeSetCommand")
1168
+ .f(void 0, void 0)
1169
+ .ser(se_StartChangeSetCommand)
1170
+ .de(de_StartChangeSetCommand)
1171
+ .build() {
1172
+ }
1173
+
1174
+ class TagResourceCommand extends smithyClient.Command
1175
+ .classBuilder()
1176
+ .ep(commonParams)
1177
+ .m(function (Command, cs, config, o) {
1178
+ return [
1179
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1180
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1181
+ ];
1182
+ })
1183
+ .s("AWSMPSeymour", "TagResource", {})
1184
+ .n("MarketplaceCatalogClient", "TagResourceCommand")
1185
+ .f(void 0, void 0)
1186
+ .ser(se_TagResourceCommand)
1187
+ .de(de_TagResourceCommand)
1188
+ .build() {
1189
+ }
1190
+
1191
+ class UntagResourceCommand extends smithyClient.Command
1192
+ .classBuilder()
1193
+ .ep(commonParams)
1194
+ .m(function (Command, cs, config, o) {
1195
+ return [
1196
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1197
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1198
+ ];
1199
+ })
1200
+ .s("AWSMPSeymour", "UntagResource", {})
1201
+ .n("MarketplaceCatalogClient", "UntagResourceCommand")
1202
+ .f(void 0, void 0)
1203
+ .ser(se_UntagResourceCommand)
1204
+ .de(de_UntagResourceCommand)
1205
+ .build() {
1206
+ }
1207
+
1208
+ const commands = {
1209
+ BatchDescribeEntitiesCommand,
1210
+ CancelChangeSetCommand,
1211
+ DeleteResourcePolicyCommand,
1212
+ DescribeChangeSetCommand,
1213
+ DescribeEntityCommand,
1214
+ GetResourcePolicyCommand,
1215
+ ListChangeSetsCommand,
1216
+ ListEntitiesCommand,
1217
+ ListTagsForResourceCommand,
1218
+ PutResourcePolicyCommand,
1219
+ StartChangeSetCommand,
1220
+ TagResourceCommand,
1221
+ UntagResourceCommand,
1222
+ };
1223
+ class MarketplaceCatalog extends MarketplaceCatalogClient {
1224
+ }
1225
+ smithyClient.createAggregatedClient(commands, MarketplaceCatalog);
1356
1226
 
1357
- // src/MarketplaceCatalog.ts
1358
- var commands = {
1359
- BatchDescribeEntitiesCommand,
1360
- CancelChangeSetCommand,
1361
- DeleteResourcePolicyCommand,
1362
- DescribeChangeSetCommand,
1363
- DescribeEntityCommand,
1364
- GetResourcePolicyCommand,
1365
- ListChangeSetsCommand,
1366
- ListEntitiesCommand,
1367
- ListTagsForResourceCommand,
1368
- PutResourcePolicyCommand,
1369
- StartChangeSetCommand,
1370
- TagResourceCommand,
1371
- UntagResourceCommand
1372
- };
1373
- var MarketplaceCatalog = class extends MarketplaceCatalogClient {
1374
- static {
1375
- __name(this, "MarketplaceCatalog");
1376
- }
1377
- };
1378
- (0, import_smithy_client.createAggregatedClient)(commands, MarketplaceCatalog);
1379
-
1380
- // src/pagination/ListChangeSetsPaginator.ts
1381
-
1382
- var paginateListChangeSets = (0, import_core.createPaginator)(MarketplaceCatalogClient, ListChangeSetsCommand, "NextToken", "NextToken", "MaxResults");
1383
-
1384
- // src/pagination/ListEntitiesPaginator.ts
1227
+ const paginateListChangeSets = core.createPaginator(MarketplaceCatalogClient, ListChangeSetsCommand, "NextToken", "NextToken", "MaxResults");
1385
1228
 
1386
- var paginateListEntities = (0, import_core.createPaginator)(MarketplaceCatalogClient, ListEntitiesCommand, "NextToken", "NextToken", "MaxResults");
1387
- // Annotate the CommonJS export names for ESM import in node:
1229
+ const paginateListEntities = core.createPaginator(MarketplaceCatalogClient, ListEntitiesCommand, "NextToken", "NextToken", "MaxResults");
1388
1230
 
1389
- 0 && (module.exports = {
1390
- MarketplaceCatalogServiceException,
1391
- __Client,
1392
- MarketplaceCatalogClient,
1393
- MarketplaceCatalog,
1394
- $Command,
1395
- BatchDescribeEntitiesCommand,
1396
- CancelChangeSetCommand,
1397
- DeleteResourcePolicyCommand,
1398
- DescribeChangeSetCommand,
1399
- DescribeEntityCommand,
1400
- GetResourcePolicyCommand,
1401
- ListChangeSetsCommand,
1402
- ListEntitiesCommand,
1403
- ListTagsForResourceCommand,
1404
- PutResourcePolicyCommand,
1405
- StartChangeSetCommand,
1406
- TagResourceCommand,
1407
- UntagResourceCommand,
1408
- paginateListChangeSets,
1409
- paginateListEntities,
1410
- AccessDeniedException,
1411
- AmiProductVisibilityString,
1412
- AmiProductSortBy,
1413
- SortOrder,
1414
- InternalServiceException,
1415
- ThrottlingException,
1416
- ValidationException,
1417
- ResourceInUseException,
1418
- ResourceNotFoundException,
1419
- FailureCode,
1420
- Intent,
1421
- ChangeStatus,
1422
- ResourceNotSupportedException,
1423
- ContainerProductVisibilityString,
1424
- DataProductVisibilityString,
1425
- MachineLearningProductVisibilityString,
1426
- OfferStateString,
1427
- OfferTargetingString,
1428
- ResaleAuthorizationStatusString,
1429
- SaaSProductVisibilityString,
1430
- EntityTypeFilters,
1431
- ContainerProductSortBy,
1432
- DataProductSortBy,
1433
- MachineLearningProductSortBy,
1434
- OfferSortBy,
1435
- ResaleAuthorizationSortBy,
1436
- SaaSProductSortBy,
1437
- EntityTypeSort,
1438
- OwnershipType,
1439
- ServiceQuotaExceededException
1231
+ Object.defineProperty(exports, "$Command", {
1232
+ enumerable: true,
1233
+ get: function () { return smithyClient.Command; }
1440
1234
  });
1441
-
1235
+ Object.defineProperty(exports, "__Client", {
1236
+ enumerable: true,
1237
+ get: function () { return smithyClient.Client; }
1238
+ });
1239
+ exports.AccessDeniedException = AccessDeniedException;
1240
+ exports.AmiProductSortBy = AmiProductSortBy;
1241
+ exports.AmiProductVisibilityString = AmiProductVisibilityString;
1242
+ exports.BatchDescribeEntitiesCommand = BatchDescribeEntitiesCommand;
1243
+ exports.CancelChangeSetCommand = CancelChangeSetCommand;
1244
+ exports.ChangeStatus = ChangeStatus;
1245
+ exports.ContainerProductSortBy = ContainerProductSortBy;
1246
+ exports.ContainerProductVisibilityString = ContainerProductVisibilityString;
1247
+ exports.DataProductSortBy = DataProductSortBy;
1248
+ exports.DataProductVisibilityString = DataProductVisibilityString;
1249
+ exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
1250
+ exports.DescribeChangeSetCommand = DescribeChangeSetCommand;
1251
+ exports.DescribeEntityCommand = DescribeEntityCommand;
1252
+ exports.FailureCode = FailureCode;
1253
+ exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
1254
+ exports.Intent = Intent;
1255
+ exports.InternalServiceException = InternalServiceException;
1256
+ exports.ListChangeSetsCommand = ListChangeSetsCommand;
1257
+ exports.ListEntitiesCommand = ListEntitiesCommand;
1258
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1259
+ exports.MachineLearningProductSortBy = MachineLearningProductSortBy;
1260
+ exports.MachineLearningProductVisibilityString = MachineLearningProductVisibilityString;
1261
+ exports.MarketplaceCatalog = MarketplaceCatalog;
1262
+ exports.MarketplaceCatalogClient = MarketplaceCatalogClient;
1263
+ exports.MarketplaceCatalogServiceException = MarketplaceCatalogServiceException;
1264
+ exports.OfferSortBy = OfferSortBy;
1265
+ exports.OfferStateString = OfferStateString;
1266
+ exports.OfferTargetingString = OfferTargetingString;
1267
+ exports.OwnershipType = OwnershipType;
1268
+ exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
1269
+ exports.ResaleAuthorizationSortBy = ResaleAuthorizationSortBy;
1270
+ exports.ResaleAuthorizationStatusString = ResaleAuthorizationStatusString;
1271
+ exports.ResourceInUseException = ResourceInUseException;
1272
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1273
+ exports.ResourceNotSupportedException = ResourceNotSupportedException;
1274
+ exports.SaaSProductSortBy = SaaSProductSortBy;
1275
+ exports.SaaSProductVisibilityString = SaaSProductVisibilityString;
1276
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1277
+ exports.SortOrder = SortOrder;
1278
+ exports.StartChangeSetCommand = StartChangeSetCommand;
1279
+ exports.TagResourceCommand = TagResourceCommand;
1280
+ exports.ThrottlingException = ThrottlingException;
1281
+ exports.UntagResourceCommand = UntagResourceCommand;
1282
+ exports.ValidationException = ValidationException;
1283
+ exports.paginateListChangeSets = paginateListChangeSets;
1284
+ exports.paginateListEntities = paginateListEntities;