@aws-sdk/client-service-catalog-appregistry 3.490.0 → 3.496.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/ServiceCatalogAppRegistry.js +1 -59
- package/dist-cjs/ServiceCatalogAppRegistryClient.js +1 -43
- package/dist-cjs/commands/AssociateAttributeGroupCommand.js +1 -28
- package/dist-cjs/commands/AssociateResourceCommand.js +1 -28
- package/dist-cjs/commands/CreateApplicationCommand.js +1 -28
- package/dist-cjs/commands/CreateAttributeGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteApplicationCommand.js +1 -28
- package/dist-cjs/commands/DeleteAttributeGroupCommand.js +1 -28
- package/dist-cjs/commands/DisassociateAttributeGroupCommand.js +1 -28
- package/dist-cjs/commands/DisassociateResourceCommand.js +1 -28
- package/dist-cjs/commands/GetApplicationCommand.js +1 -28
- package/dist-cjs/commands/GetAssociatedResourceCommand.js +1 -28
- package/dist-cjs/commands/GetAttributeGroupCommand.js +1 -28
- package/dist-cjs/commands/GetConfigurationCommand.js +1 -28
- package/dist-cjs/commands/ListApplicationsCommand.js +1 -28
- package/dist-cjs/commands/ListAssociatedAttributeGroupsCommand.js +1 -28
- package/dist-cjs/commands/ListAssociatedResourcesCommand.js +1 -28
- package/dist-cjs/commands/ListAttributeGroupsCommand.js +1 -28
- package/dist-cjs/commands/ListAttributeGroupsForApplicationCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PutConfigurationCommand.js +1 -28
- package/dist-cjs/commands/SyncResourceCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateApplicationCommand.js +1 -28
- package/dist-cjs/commands/UpdateAttributeGroupCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -27
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2328 -11
- package/dist-cjs/models/ServiceCatalogAppRegistryServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -114
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListApplicationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListAssociatedAttributeGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/ListAssociatedResourcesPaginator.js +1 -7
- package/dist-cjs/pagination/ListAttributeGroupsForApplicationPaginator.js +1 -7
- package/dist-cjs/pagination/ListAttributeGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -9
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1549
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,2329 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
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 src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
ApplicationTagStatus: () => ApplicationTagStatus,
|
|
25
|
+
AssociateAttributeGroupCommand: () => AssociateAttributeGroupCommand,
|
|
26
|
+
AssociateResourceCommand: () => AssociateResourceCommand,
|
|
27
|
+
AssociationOption: () => AssociationOption,
|
|
28
|
+
ConflictException: () => ConflictException,
|
|
29
|
+
CreateApplicationCommand: () => CreateApplicationCommand,
|
|
30
|
+
CreateAttributeGroupCommand: () => CreateAttributeGroupCommand,
|
|
31
|
+
DeleteApplicationCommand: () => DeleteApplicationCommand,
|
|
32
|
+
DeleteAttributeGroupCommand: () => DeleteAttributeGroupCommand,
|
|
33
|
+
DisassociateAttributeGroupCommand: () => DisassociateAttributeGroupCommand,
|
|
34
|
+
DisassociateResourceCommand: () => DisassociateResourceCommand,
|
|
35
|
+
GetApplicationCommand: () => GetApplicationCommand,
|
|
36
|
+
GetAssociatedResourceCommand: () => GetAssociatedResourceCommand,
|
|
37
|
+
GetAttributeGroupCommand: () => GetAttributeGroupCommand,
|
|
38
|
+
GetConfigurationCommand: () => GetConfigurationCommand,
|
|
39
|
+
InternalServerException: () => InternalServerException,
|
|
40
|
+
ListApplicationsCommand: () => ListApplicationsCommand,
|
|
41
|
+
ListAssociatedAttributeGroupsCommand: () => ListAssociatedAttributeGroupsCommand,
|
|
42
|
+
ListAssociatedResourcesCommand: () => ListAssociatedResourcesCommand,
|
|
43
|
+
ListAttributeGroupsCommand: () => ListAttributeGroupsCommand,
|
|
44
|
+
ListAttributeGroupsForApplicationCommand: () => ListAttributeGroupsForApplicationCommand,
|
|
45
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
46
|
+
PutConfigurationCommand: () => PutConfigurationCommand,
|
|
47
|
+
ResourceGroupState: () => ResourceGroupState,
|
|
48
|
+
ResourceItemStatus: () => ResourceItemStatus,
|
|
49
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
50
|
+
ResourceType: () => ResourceType,
|
|
51
|
+
ServiceCatalogAppRegistry: () => ServiceCatalogAppRegistry,
|
|
52
|
+
ServiceCatalogAppRegistryClient: () => ServiceCatalogAppRegistryClient,
|
|
53
|
+
ServiceCatalogAppRegistryServiceException: () => ServiceCatalogAppRegistryServiceException,
|
|
54
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
55
|
+
SyncAction: () => SyncAction,
|
|
56
|
+
SyncResourceCommand: () => SyncResourceCommand,
|
|
57
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
58
|
+
ThrottlingException: () => ThrottlingException,
|
|
59
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
60
|
+
UpdateApplicationCommand: () => UpdateApplicationCommand,
|
|
61
|
+
UpdateAttributeGroupCommand: () => UpdateAttributeGroupCommand,
|
|
62
|
+
ValidationException: () => ValidationException,
|
|
63
|
+
__Client: () => import_smithy_client.Client,
|
|
64
|
+
paginateListApplications: () => paginateListApplications,
|
|
65
|
+
paginateListAssociatedAttributeGroups: () => paginateListAssociatedAttributeGroups,
|
|
66
|
+
paginateListAssociatedResources: () => paginateListAssociatedResources,
|
|
67
|
+
paginateListAttributeGroups: () => paginateListAttributeGroups,
|
|
68
|
+
paginateListAttributeGroupsForApplication: () => paginateListAttributeGroupsForApplication
|
|
69
|
+
});
|
|
70
|
+
module.exports = __toCommonJS(src_exports);
|
|
71
|
+
|
|
72
|
+
// src/ServiceCatalogAppRegistryClient.ts
|
|
73
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
74
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
75
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
76
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
77
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
78
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
79
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
80
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
81
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
// src/endpoint/EndpointParameters.ts
|
|
85
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
86
|
+
return {
|
|
87
|
+
...options,
|
|
88
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
89
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
90
|
+
defaultSigningName: "servicecatalog"
|
|
91
|
+
};
|
|
92
|
+
}, "resolveClientEndpointParameters");
|
|
93
|
+
var commonParams = {
|
|
94
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
95
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
96
|
+
Region: { type: "builtInParams", name: "region" },
|
|
97
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
// src/ServiceCatalogAppRegistryClient.ts
|
|
101
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
102
|
+
|
|
103
|
+
// src/runtimeExtensions.ts
|
|
104
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
105
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
106
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
107
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
108
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
109
|
+
const extensionConfiguration = {
|
|
110
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
111
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
112
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
113
|
+
};
|
|
114
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
115
|
+
return {
|
|
116
|
+
...runtimeConfig,
|
|
117
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
118
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
119
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
120
|
+
};
|
|
121
|
+
}, "resolveRuntimeExtensions");
|
|
122
|
+
|
|
123
|
+
// src/ServiceCatalogAppRegistryClient.ts
|
|
124
|
+
var _ServiceCatalogAppRegistryClient = class _ServiceCatalogAppRegistryClient extends import_smithy_client.Client {
|
|
125
|
+
constructor(...[configuration]) {
|
|
126
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
127
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
128
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
129
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
130
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
131
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
132
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
133
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
134
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
135
|
+
super(_config_8);
|
|
136
|
+
this.config = _config_8;
|
|
137
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
138
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
139
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
140
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
141
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
142
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
143
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
147
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
148
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
149
|
+
*/
|
|
150
|
+
destroy() {
|
|
151
|
+
super.destroy();
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
__name(_ServiceCatalogAppRegistryClient, "ServiceCatalogAppRegistryClient");
|
|
155
|
+
var ServiceCatalogAppRegistryClient = _ServiceCatalogAppRegistryClient;
|
|
156
|
+
|
|
157
|
+
// src/ServiceCatalogAppRegistry.ts
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
// src/commands/AssociateAttributeGroupCommand.ts
|
|
161
|
+
|
|
162
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
163
|
+
|
|
164
|
+
var import_types = require("@smithy/types");
|
|
165
|
+
|
|
166
|
+
// src/protocols/Aws_restJson1.ts
|
|
167
|
+
var import_core = require("@smithy/core");
|
|
168
|
+
|
|
169
|
+
var import_uuid = require("uuid");
|
|
170
|
+
|
|
171
|
+
// src/models/ServiceCatalogAppRegistryServiceException.ts
|
|
172
|
+
|
|
173
|
+
var _ServiceCatalogAppRegistryServiceException = class _ServiceCatalogAppRegistryServiceException extends import_smithy_client.ServiceException {
|
|
174
|
+
/**
|
|
175
|
+
* @internal
|
|
176
|
+
*/
|
|
177
|
+
constructor(options) {
|
|
178
|
+
super(options);
|
|
179
|
+
Object.setPrototypeOf(this, _ServiceCatalogAppRegistryServiceException.prototype);
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
__name(_ServiceCatalogAppRegistryServiceException, "ServiceCatalogAppRegistryServiceException");
|
|
183
|
+
var ServiceCatalogAppRegistryServiceException = _ServiceCatalogAppRegistryServiceException;
|
|
184
|
+
|
|
185
|
+
// src/models/models_0.ts
|
|
186
|
+
var ApplicationTagStatus = {
|
|
187
|
+
FAILURE: "FAILURE",
|
|
188
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
189
|
+
SUCCESS: "SUCCESS"
|
|
190
|
+
};
|
|
191
|
+
var _ConflictException = class _ConflictException extends ServiceCatalogAppRegistryServiceException {
|
|
192
|
+
/**
|
|
193
|
+
* @internal
|
|
194
|
+
*/
|
|
195
|
+
constructor(opts) {
|
|
196
|
+
super({
|
|
197
|
+
name: "ConflictException",
|
|
198
|
+
$fault: "client",
|
|
199
|
+
...opts
|
|
200
|
+
});
|
|
201
|
+
this.name = "ConflictException";
|
|
202
|
+
this.$fault = "client";
|
|
203
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
__name(_ConflictException, "ConflictException");
|
|
207
|
+
var ConflictException = _ConflictException;
|
|
208
|
+
var _InternalServerException = class _InternalServerException extends ServiceCatalogAppRegistryServiceException {
|
|
209
|
+
/**
|
|
210
|
+
* @internal
|
|
211
|
+
*/
|
|
212
|
+
constructor(opts) {
|
|
213
|
+
super({
|
|
214
|
+
name: "InternalServerException",
|
|
215
|
+
$fault: "server",
|
|
216
|
+
...opts
|
|
217
|
+
});
|
|
218
|
+
this.name = "InternalServerException";
|
|
219
|
+
this.$fault = "server";
|
|
220
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
__name(_InternalServerException, "InternalServerException");
|
|
224
|
+
var InternalServerException = _InternalServerException;
|
|
225
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends ServiceCatalogAppRegistryServiceException {
|
|
226
|
+
/**
|
|
227
|
+
* @internal
|
|
228
|
+
*/
|
|
229
|
+
constructor(opts) {
|
|
230
|
+
super({
|
|
231
|
+
name: "ResourceNotFoundException",
|
|
232
|
+
$fault: "client",
|
|
233
|
+
...opts
|
|
234
|
+
});
|
|
235
|
+
this.name = "ResourceNotFoundException";
|
|
236
|
+
this.$fault = "client";
|
|
237
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
241
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
242
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends ServiceCatalogAppRegistryServiceException {
|
|
243
|
+
/**
|
|
244
|
+
* @internal
|
|
245
|
+
*/
|
|
246
|
+
constructor(opts) {
|
|
247
|
+
super({
|
|
248
|
+
name: "ServiceQuotaExceededException",
|
|
249
|
+
$fault: "client",
|
|
250
|
+
...opts
|
|
251
|
+
});
|
|
252
|
+
this.name = "ServiceQuotaExceededException";
|
|
253
|
+
this.$fault = "client";
|
|
254
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
258
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
259
|
+
var _ValidationException = class _ValidationException extends ServiceCatalogAppRegistryServiceException {
|
|
260
|
+
/**
|
|
261
|
+
* @internal
|
|
262
|
+
*/
|
|
263
|
+
constructor(opts) {
|
|
264
|
+
super({
|
|
265
|
+
name: "ValidationException",
|
|
266
|
+
$fault: "client",
|
|
267
|
+
...opts
|
|
268
|
+
});
|
|
269
|
+
this.name = "ValidationException";
|
|
270
|
+
this.$fault = "client";
|
|
271
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
__name(_ValidationException, "ValidationException");
|
|
275
|
+
var ValidationException = _ValidationException;
|
|
276
|
+
var AssociationOption = {
|
|
277
|
+
APPLY_APPLICATION_TAG: "APPLY_APPLICATION_TAG",
|
|
278
|
+
SKIP_APPLICATION_TAG: "SKIP_APPLICATION_TAG"
|
|
279
|
+
};
|
|
280
|
+
var ResourceType = {
|
|
281
|
+
CFN_STACK: "CFN_STACK",
|
|
282
|
+
RESOURCE_TAG_VALUE: "RESOURCE_TAG_VALUE"
|
|
283
|
+
};
|
|
284
|
+
var _ThrottlingException = class _ThrottlingException extends ServiceCatalogAppRegistryServiceException {
|
|
285
|
+
/**
|
|
286
|
+
* @internal
|
|
287
|
+
*/
|
|
288
|
+
constructor(opts) {
|
|
289
|
+
super({
|
|
290
|
+
name: "ThrottlingException",
|
|
291
|
+
$fault: "client",
|
|
292
|
+
...opts
|
|
293
|
+
});
|
|
294
|
+
this.name = "ThrottlingException";
|
|
295
|
+
this.$fault = "client";
|
|
296
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
297
|
+
this.serviceCode = opts.serviceCode;
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
301
|
+
var ThrottlingException = _ThrottlingException;
|
|
302
|
+
var ResourceGroupState = {
|
|
303
|
+
CREATE_COMPLETE: "CREATE_COMPLETE",
|
|
304
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
305
|
+
CREATING: "CREATING",
|
|
306
|
+
UPDATE_COMPLETE: "UPDATE_COMPLETE",
|
|
307
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
308
|
+
UPDATING: "UPDATING"
|
|
309
|
+
};
|
|
310
|
+
var ResourceItemStatus = {
|
|
311
|
+
FAILED: "FAILED",
|
|
312
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
313
|
+
SKIPPED: "SKIPPED",
|
|
314
|
+
SUCCESS: "SUCCESS"
|
|
315
|
+
};
|
|
316
|
+
var SyncAction = {
|
|
317
|
+
NO_ACTION: "NO_ACTION",
|
|
318
|
+
START_SYNC: "START_SYNC"
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
// src/protocols/Aws_restJson1.ts
|
|
322
|
+
var se_AssociateAttributeGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
323
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
324
|
+
const headers = {};
|
|
325
|
+
b.bp("/applications/{application}/attribute-groups/{attributeGroup}");
|
|
326
|
+
b.p("application", () => input.application, "{application}", false);
|
|
327
|
+
b.p("attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
328
|
+
let body;
|
|
329
|
+
b.m("PUT").h(headers).b(body);
|
|
330
|
+
return b.build();
|
|
331
|
+
}, "se_AssociateAttributeGroupCommand");
|
|
332
|
+
var se_AssociateResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
333
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
334
|
+
const headers = {
|
|
335
|
+
"content-type": "application/json"
|
|
336
|
+
};
|
|
337
|
+
b.bp("/applications/{application}/resources/{resourceType}/{resource}");
|
|
338
|
+
b.p("application", () => input.application, "{application}", false);
|
|
339
|
+
b.p("resourceType", () => input.resourceType, "{resourceType}", false);
|
|
340
|
+
b.p("resource", () => input.resource, "{resource}", false);
|
|
341
|
+
let body;
|
|
342
|
+
body = JSON.stringify(
|
|
343
|
+
(0, import_smithy_client.take)(input, {
|
|
344
|
+
options: (_) => (0, import_smithy_client._json)(_)
|
|
345
|
+
})
|
|
346
|
+
);
|
|
347
|
+
b.m("PUT").h(headers).b(body);
|
|
348
|
+
return b.build();
|
|
349
|
+
}, "se_AssociateResourceCommand");
|
|
350
|
+
var se_CreateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
351
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
352
|
+
const headers = {
|
|
353
|
+
"content-type": "application/json"
|
|
354
|
+
};
|
|
355
|
+
b.bp("/applications");
|
|
356
|
+
let body;
|
|
357
|
+
body = JSON.stringify(
|
|
358
|
+
(0, import_smithy_client.take)(input, {
|
|
359
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
360
|
+
description: [],
|
|
361
|
+
name: [],
|
|
362
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
363
|
+
})
|
|
364
|
+
);
|
|
365
|
+
b.m("POST").h(headers).b(body);
|
|
366
|
+
return b.build();
|
|
367
|
+
}, "se_CreateApplicationCommand");
|
|
368
|
+
var se_CreateAttributeGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
369
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
370
|
+
const headers = {
|
|
371
|
+
"content-type": "application/json"
|
|
372
|
+
};
|
|
373
|
+
b.bp("/attribute-groups");
|
|
374
|
+
let body;
|
|
375
|
+
body = JSON.stringify(
|
|
376
|
+
(0, import_smithy_client.take)(input, {
|
|
377
|
+
attributes: [],
|
|
378
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
379
|
+
description: [],
|
|
380
|
+
name: [],
|
|
381
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
382
|
+
})
|
|
383
|
+
);
|
|
384
|
+
b.m("POST").h(headers).b(body);
|
|
385
|
+
return b.build();
|
|
386
|
+
}, "se_CreateAttributeGroupCommand");
|
|
387
|
+
var se_DeleteApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
388
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
389
|
+
const headers = {};
|
|
390
|
+
b.bp("/applications/{application}");
|
|
391
|
+
b.p("application", () => input.application, "{application}", false);
|
|
392
|
+
let body;
|
|
393
|
+
b.m("DELETE").h(headers).b(body);
|
|
394
|
+
return b.build();
|
|
395
|
+
}, "se_DeleteApplicationCommand");
|
|
396
|
+
var se_DeleteAttributeGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
397
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
398
|
+
const headers = {};
|
|
399
|
+
b.bp("/attribute-groups/{attributeGroup}");
|
|
400
|
+
b.p("attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
401
|
+
let body;
|
|
402
|
+
b.m("DELETE").h(headers).b(body);
|
|
403
|
+
return b.build();
|
|
404
|
+
}, "se_DeleteAttributeGroupCommand");
|
|
405
|
+
var se_DisassociateAttributeGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
406
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
407
|
+
const headers = {};
|
|
408
|
+
b.bp("/applications/{application}/attribute-groups/{attributeGroup}");
|
|
409
|
+
b.p("application", () => input.application, "{application}", false);
|
|
410
|
+
b.p("attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
411
|
+
let body;
|
|
412
|
+
b.m("DELETE").h(headers).b(body);
|
|
413
|
+
return b.build();
|
|
414
|
+
}, "se_DisassociateAttributeGroupCommand");
|
|
415
|
+
var se_DisassociateResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
416
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
417
|
+
const headers = {};
|
|
418
|
+
b.bp("/applications/{application}/resources/{resourceType}/{resource}");
|
|
419
|
+
b.p("application", () => input.application, "{application}", false);
|
|
420
|
+
b.p("resourceType", () => input.resourceType, "{resourceType}", false);
|
|
421
|
+
b.p("resource", () => input.resource, "{resource}", false);
|
|
422
|
+
let body;
|
|
423
|
+
b.m("DELETE").h(headers).b(body);
|
|
424
|
+
return b.build();
|
|
425
|
+
}, "se_DisassociateResourceCommand");
|
|
426
|
+
var se_GetApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
427
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
428
|
+
const headers = {};
|
|
429
|
+
b.bp("/applications/{application}");
|
|
430
|
+
b.p("application", () => input.application, "{application}", false);
|
|
431
|
+
let body;
|
|
432
|
+
b.m("GET").h(headers).b(body);
|
|
433
|
+
return b.build();
|
|
434
|
+
}, "se_GetApplicationCommand");
|
|
435
|
+
var se_GetAssociatedResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
436
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
437
|
+
const headers = {};
|
|
438
|
+
b.bp("/applications/{application}/resources/{resourceType}/{resource}");
|
|
439
|
+
b.p("application", () => input.application, "{application}", false);
|
|
440
|
+
b.p("resourceType", () => input.resourceType, "{resourceType}", false);
|
|
441
|
+
b.p("resource", () => input.resource, "{resource}", false);
|
|
442
|
+
const query = (0, import_smithy_client.map)({
|
|
443
|
+
[_nT]: [, input[_nT]],
|
|
444
|
+
[_rTS]: [() => input.resourceTagStatus !== void 0, () => (input[_rTS] || []).map((_entry) => _entry)],
|
|
445
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
446
|
+
});
|
|
447
|
+
let body;
|
|
448
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
449
|
+
return b.build();
|
|
450
|
+
}, "se_GetAssociatedResourceCommand");
|
|
451
|
+
var se_GetAttributeGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
452
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
453
|
+
const headers = {};
|
|
454
|
+
b.bp("/attribute-groups/{attributeGroup}");
|
|
455
|
+
b.p("attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
456
|
+
let body;
|
|
457
|
+
b.m("GET").h(headers).b(body);
|
|
458
|
+
return b.build();
|
|
459
|
+
}, "se_GetAttributeGroupCommand");
|
|
460
|
+
var se_GetConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
461
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
462
|
+
const headers = {
|
|
463
|
+
"content-type": "application/json"
|
|
464
|
+
};
|
|
465
|
+
b.bp("/configuration");
|
|
466
|
+
let body;
|
|
467
|
+
body = "";
|
|
468
|
+
b.m("GET").h(headers).b(body);
|
|
469
|
+
return b.build();
|
|
470
|
+
}, "se_GetConfigurationCommand");
|
|
471
|
+
var se_ListApplicationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
472
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
473
|
+
const headers = {};
|
|
474
|
+
b.bp("/applications");
|
|
475
|
+
const query = (0, import_smithy_client.map)({
|
|
476
|
+
[_nT]: [, input[_nT]],
|
|
477
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
478
|
+
});
|
|
479
|
+
let body;
|
|
480
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
481
|
+
return b.build();
|
|
482
|
+
}, "se_ListApplicationsCommand");
|
|
483
|
+
var se_ListAssociatedAttributeGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
484
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
485
|
+
const headers = {};
|
|
486
|
+
b.bp("/applications/{application}/attribute-groups");
|
|
487
|
+
b.p("application", () => input.application, "{application}", false);
|
|
488
|
+
const query = (0, import_smithy_client.map)({
|
|
489
|
+
[_nT]: [, input[_nT]],
|
|
490
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
491
|
+
});
|
|
492
|
+
let body;
|
|
493
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
494
|
+
return b.build();
|
|
495
|
+
}, "se_ListAssociatedAttributeGroupsCommand");
|
|
496
|
+
var se_ListAssociatedResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
497
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
498
|
+
const headers = {};
|
|
499
|
+
b.bp("/applications/{application}/resources");
|
|
500
|
+
b.p("application", () => input.application, "{application}", false);
|
|
501
|
+
const query = (0, import_smithy_client.map)({
|
|
502
|
+
[_nT]: [, input[_nT]],
|
|
503
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
504
|
+
});
|
|
505
|
+
let body;
|
|
506
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
507
|
+
return b.build();
|
|
508
|
+
}, "se_ListAssociatedResourcesCommand");
|
|
509
|
+
var se_ListAttributeGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
510
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
511
|
+
const headers = {};
|
|
512
|
+
b.bp("/attribute-groups");
|
|
513
|
+
const query = (0, import_smithy_client.map)({
|
|
514
|
+
[_nT]: [, input[_nT]],
|
|
515
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
516
|
+
});
|
|
517
|
+
let body;
|
|
518
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
519
|
+
return b.build();
|
|
520
|
+
}, "se_ListAttributeGroupsCommand");
|
|
521
|
+
var se_ListAttributeGroupsForApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
522
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
523
|
+
const headers = {};
|
|
524
|
+
b.bp("/applications/{application}/attribute-group-details");
|
|
525
|
+
b.p("application", () => input.application, "{application}", false);
|
|
526
|
+
const query = (0, import_smithy_client.map)({
|
|
527
|
+
[_nT]: [, input[_nT]],
|
|
528
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
529
|
+
});
|
|
530
|
+
let body;
|
|
531
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
532
|
+
return b.build();
|
|
533
|
+
}, "se_ListAttributeGroupsForApplicationCommand");
|
|
534
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
535
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
536
|
+
const headers = {};
|
|
537
|
+
b.bp("/tags/{resourceArn}");
|
|
538
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
539
|
+
let body;
|
|
540
|
+
b.m("GET").h(headers).b(body);
|
|
541
|
+
return b.build();
|
|
542
|
+
}, "se_ListTagsForResourceCommand");
|
|
543
|
+
var se_PutConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
544
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
545
|
+
const headers = {
|
|
546
|
+
"content-type": "application/json"
|
|
547
|
+
};
|
|
548
|
+
b.bp("/configuration");
|
|
549
|
+
let body;
|
|
550
|
+
body = JSON.stringify(
|
|
551
|
+
(0, import_smithy_client.take)(input, {
|
|
552
|
+
configuration: (_) => (0, import_smithy_client._json)(_)
|
|
553
|
+
})
|
|
554
|
+
);
|
|
555
|
+
b.m("PUT").h(headers).b(body);
|
|
556
|
+
return b.build();
|
|
557
|
+
}, "se_PutConfigurationCommand");
|
|
558
|
+
var se_SyncResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
559
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
560
|
+
const headers = {};
|
|
561
|
+
b.bp("/sync/{resourceType}/{resource}");
|
|
562
|
+
b.p("resourceType", () => input.resourceType, "{resourceType}", false);
|
|
563
|
+
b.p("resource", () => input.resource, "{resource}", false);
|
|
564
|
+
let body;
|
|
565
|
+
b.m("POST").h(headers).b(body);
|
|
566
|
+
return b.build();
|
|
567
|
+
}, "se_SyncResourceCommand");
|
|
568
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
569
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
570
|
+
const headers = {
|
|
571
|
+
"content-type": "application/json"
|
|
572
|
+
};
|
|
573
|
+
b.bp("/tags/{resourceArn}");
|
|
574
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
575
|
+
let body;
|
|
576
|
+
body = JSON.stringify(
|
|
577
|
+
(0, import_smithy_client.take)(input, {
|
|
578
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
579
|
+
})
|
|
580
|
+
);
|
|
581
|
+
b.m("POST").h(headers).b(body);
|
|
582
|
+
return b.build();
|
|
583
|
+
}, "se_TagResourceCommand");
|
|
584
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
585
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
586
|
+
const headers = {};
|
|
587
|
+
b.bp("/tags/{resourceArn}");
|
|
588
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
589
|
+
const query = (0, import_smithy_client.map)({
|
|
590
|
+
[_tK]: [
|
|
591
|
+
(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
592
|
+
() => (input[_tK] || []).map((_entry) => _entry)
|
|
593
|
+
]
|
|
594
|
+
});
|
|
595
|
+
let body;
|
|
596
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
597
|
+
return b.build();
|
|
598
|
+
}, "se_UntagResourceCommand");
|
|
599
|
+
var se_UpdateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
600
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
601
|
+
const headers = {
|
|
602
|
+
"content-type": "application/json"
|
|
603
|
+
};
|
|
604
|
+
b.bp("/applications/{application}");
|
|
605
|
+
b.p("application", () => input.application, "{application}", false);
|
|
606
|
+
let body;
|
|
607
|
+
body = JSON.stringify(
|
|
608
|
+
(0, import_smithy_client.take)(input, {
|
|
609
|
+
description: [],
|
|
610
|
+
name: []
|
|
611
|
+
})
|
|
612
|
+
);
|
|
613
|
+
b.m("PATCH").h(headers).b(body);
|
|
614
|
+
return b.build();
|
|
615
|
+
}, "se_UpdateApplicationCommand");
|
|
616
|
+
var se_UpdateAttributeGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
617
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
618
|
+
const headers = {
|
|
619
|
+
"content-type": "application/json"
|
|
620
|
+
};
|
|
621
|
+
b.bp("/attribute-groups/{attributeGroup}");
|
|
622
|
+
b.p("attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
623
|
+
let body;
|
|
624
|
+
body = JSON.stringify(
|
|
625
|
+
(0, import_smithy_client.take)(input, {
|
|
626
|
+
attributes: [],
|
|
627
|
+
description: [],
|
|
628
|
+
name: []
|
|
629
|
+
})
|
|
630
|
+
);
|
|
631
|
+
b.m("PATCH").h(headers).b(body);
|
|
632
|
+
return b.build();
|
|
633
|
+
}, "se_UpdateAttributeGroupCommand");
|
|
634
|
+
var de_AssociateAttributeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
635
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
636
|
+
return de_AssociateAttributeGroupCommandError(output, context);
|
|
637
|
+
}
|
|
638
|
+
const contents = (0, import_smithy_client.map)({
|
|
639
|
+
$metadata: deserializeMetadata(output)
|
|
640
|
+
});
|
|
641
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
642
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
643
|
+
applicationArn: import_smithy_client.expectString,
|
|
644
|
+
attributeGroupArn: import_smithy_client.expectString
|
|
645
|
+
});
|
|
646
|
+
Object.assign(contents, doc);
|
|
647
|
+
return contents;
|
|
648
|
+
}, "de_AssociateAttributeGroupCommand");
|
|
649
|
+
var de_AssociateAttributeGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
650
|
+
const parsedOutput = {
|
|
651
|
+
...output,
|
|
652
|
+
body: await parseErrorBody(output.body, context)
|
|
653
|
+
};
|
|
654
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
655
|
+
switch (errorCode) {
|
|
656
|
+
case "ConflictException":
|
|
657
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
658
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
659
|
+
case "InternalServerException":
|
|
660
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
661
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
662
|
+
case "ResourceNotFoundException":
|
|
663
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
664
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
665
|
+
case "ServiceQuotaExceededException":
|
|
666
|
+
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
667
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
668
|
+
case "ValidationException":
|
|
669
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
670
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
671
|
+
default:
|
|
672
|
+
const parsedBody = parsedOutput.body;
|
|
673
|
+
return throwDefaultError({
|
|
674
|
+
output,
|
|
675
|
+
parsedBody,
|
|
676
|
+
errorCode
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
}, "de_AssociateAttributeGroupCommandError");
|
|
680
|
+
var de_AssociateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
681
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
682
|
+
return de_AssociateResourceCommandError(output, context);
|
|
683
|
+
}
|
|
684
|
+
const contents = (0, import_smithy_client.map)({
|
|
685
|
+
$metadata: deserializeMetadata(output)
|
|
686
|
+
});
|
|
687
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
688
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
689
|
+
applicationArn: import_smithy_client.expectString,
|
|
690
|
+
options: import_smithy_client._json,
|
|
691
|
+
resourceArn: import_smithy_client.expectString
|
|
692
|
+
});
|
|
693
|
+
Object.assign(contents, doc);
|
|
694
|
+
return contents;
|
|
695
|
+
}, "de_AssociateResourceCommand");
|
|
696
|
+
var de_AssociateResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
697
|
+
const parsedOutput = {
|
|
698
|
+
...output,
|
|
699
|
+
body: await parseErrorBody(output.body, context)
|
|
700
|
+
};
|
|
701
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
702
|
+
switch (errorCode) {
|
|
703
|
+
case "ConflictException":
|
|
704
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
705
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
706
|
+
case "InternalServerException":
|
|
707
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
708
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
709
|
+
case "ResourceNotFoundException":
|
|
710
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
711
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
712
|
+
case "ServiceQuotaExceededException":
|
|
713
|
+
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
714
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
715
|
+
case "ThrottlingException":
|
|
716
|
+
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
717
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
718
|
+
case "ValidationException":
|
|
719
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
720
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
721
|
+
default:
|
|
722
|
+
const parsedBody = parsedOutput.body;
|
|
723
|
+
return throwDefaultError({
|
|
724
|
+
output,
|
|
725
|
+
parsedBody,
|
|
726
|
+
errorCode
|
|
727
|
+
});
|
|
728
|
+
}
|
|
729
|
+
}, "de_AssociateResourceCommandError");
|
|
730
|
+
var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
731
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
732
|
+
return de_CreateApplicationCommandError(output, context);
|
|
733
|
+
}
|
|
734
|
+
const contents = (0, import_smithy_client.map)({
|
|
735
|
+
$metadata: deserializeMetadata(output)
|
|
736
|
+
});
|
|
737
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
738
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
739
|
+
application: (_) => de_Application(_, context)
|
|
740
|
+
});
|
|
741
|
+
Object.assign(contents, doc);
|
|
742
|
+
return contents;
|
|
743
|
+
}, "de_CreateApplicationCommand");
|
|
744
|
+
var de_CreateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
745
|
+
const parsedOutput = {
|
|
746
|
+
...output,
|
|
747
|
+
body: await parseErrorBody(output.body, context)
|
|
748
|
+
};
|
|
749
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
750
|
+
switch (errorCode) {
|
|
751
|
+
case "ConflictException":
|
|
752
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
753
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
754
|
+
case "InternalServerException":
|
|
755
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
756
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
757
|
+
case "ServiceQuotaExceededException":
|
|
758
|
+
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
759
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
760
|
+
case "ThrottlingException":
|
|
761
|
+
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
762
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
763
|
+
case "ValidationException":
|
|
764
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
765
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
766
|
+
default:
|
|
767
|
+
const parsedBody = parsedOutput.body;
|
|
768
|
+
return throwDefaultError({
|
|
769
|
+
output,
|
|
770
|
+
parsedBody,
|
|
771
|
+
errorCode
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
}, "de_CreateApplicationCommandError");
|
|
775
|
+
var de_CreateAttributeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
776
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
777
|
+
return de_CreateAttributeGroupCommandError(output, context);
|
|
778
|
+
}
|
|
779
|
+
const contents = (0, import_smithy_client.map)({
|
|
780
|
+
$metadata: deserializeMetadata(output)
|
|
781
|
+
});
|
|
782
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
783
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
784
|
+
attributeGroup: (_) => de_AttributeGroup(_, context)
|
|
785
|
+
});
|
|
786
|
+
Object.assign(contents, doc);
|
|
787
|
+
return contents;
|
|
788
|
+
}, "de_CreateAttributeGroupCommand");
|
|
789
|
+
var de_CreateAttributeGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
790
|
+
const parsedOutput = {
|
|
791
|
+
...output,
|
|
792
|
+
body: await parseErrorBody(output.body, context)
|
|
793
|
+
};
|
|
794
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
795
|
+
switch (errorCode) {
|
|
796
|
+
case "ConflictException":
|
|
797
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
798
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
799
|
+
case "InternalServerException":
|
|
800
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
801
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
802
|
+
case "ServiceQuotaExceededException":
|
|
803
|
+
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
804
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
805
|
+
case "ValidationException":
|
|
806
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
807
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
808
|
+
default:
|
|
809
|
+
const parsedBody = parsedOutput.body;
|
|
810
|
+
return throwDefaultError({
|
|
811
|
+
output,
|
|
812
|
+
parsedBody,
|
|
813
|
+
errorCode
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
}, "de_CreateAttributeGroupCommandError");
|
|
817
|
+
var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
818
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
819
|
+
return de_DeleteApplicationCommandError(output, context);
|
|
820
|
+
}
|
|
821
|
+
const contents = (0, import_smithy_client.map)({
|
|
822
|
+
$metadata: deserializeMetadata(output)
|
|
823
|
+
});
|
|
824
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
825
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
826
|
+
application: (_) => de_ApplicationSummary(_, context)
|
|
827
|
+
});
|
|
828
|
+
Object.assign(contents, doc);
|
|
829
|
+
return contents;
|
|
830
|
+
}, "de_DeleteApplicationCommand");
|
|
831
|
+
var de_DeleteApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
832
|
+
const parsedOutput = {
|
|
833
|
+
...output,
|
|
834
|
+
body: await parseErrorBody(output.body, context)
|
|
835
|
+
};
|
|
836
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
|
+
switch (errorCode) {
|
|
838
|
+
case "InternalServerException":
|
|
839
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
840
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
841
|
+
case "ResourceNotFoundException":
|
|
842
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
843
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
844
|
+
case "ValidationException":
|
|
845
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
846
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
847
|
+
default:
|
|
848
|
+
const parsedBody = parsedOutput.body;
|
|
849
|
+
return throwDefaultError({
|
|
850
|
+
output,
|
|
851
|
+
parsedBody,
|
|
852
|
+
errorCode
|
|
853
|
+
});
|
|
854
|
+
}
|
|
855
|
+
}, "de_DeleteApplicationCommandError");
|
|
856
|
+
var de_DeleteAttributeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
857
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
858
|
+
return de_DeleteAttributeGroupCommandError(output, context);
|
|
859
|
+
}
|
|
860
|
+
const contents = (0, import_smithy_client.map)({
|
|
861
|
+
$metadata: deserializeMetadata(output)
|
|
862
|
+
});
|
|
863
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
864
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
865
|
+
attributeGroup: (_) => de_AttributeGroupSummary(_, context)
|
|
866
|
+
});
|
|
867
|
+
Object.assign(contents, doc);
|
|
868
|
+
return contents;
|
|
869
|
+
}, "de_DeleteAttributeGroupCommand");
|
|
870
|
+
var de_DeleteAttributeGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
871
|
+
const parsedOutput = {
|
|
872
|
+
...output,
|
|
873
|
+
body: await parseErrorBody(output.body, context)
|
|
874
|
+
};
|
|
875
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
876
|
+
switch (errorCode) {
|
|
877
|
+
case "InternalServerException":
|
|
878
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
879
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
880
|
+
case "ResourceNotFoundException":
|
|
881
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
882
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
883
|
+
case "ValidationException":
|
|
884
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
885
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
886
|
+
default:
|
|
887
|
+
const parsedBody = parsedOutput.body;
|
|
888
|
+
return throwDefaultError({
|
|
889
|
+
output,
|
|
890
|
+
parsedBody,
|
|
891
|
+
errorCode
|
|
892
|
+
});
|
|
893
|
+
}
|
|
894
|
+
}, "de_DeleteAttributeGroupCommandError");
|
|
895
|
+
var de_DisassociateAttributeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
896
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
897
|
+
return de_DisassociateAttributeGroupCommandError(output, context);
|
|
898
|
+
}
|
|
899
|
+
const contents = (0, import_smithy_client.map)({
|
|
900
|
+
$metadata: deserializeMetadata(output)
|
|
901
|
+
});
|
|
902
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
903
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
904
|
+
applicationArn: import_smithy_client.expectString,
|
|
905
|
+
attributeGroupArn: import_smithy_client.expectString
|
|
906
|
+
});
|
|
907
|
+
Object.assign(contents, doc);
|
|
908
|
+
return contents;
|
|
909
|
+
}, "de_DisassociateAttributeGroupCommand");
|
|
910
|
+
var de_DisassociateAttributeGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
911
|
+
const parsedOutput = {
|
|
912
|
+
...output,
|
|
913
|
+
body: await parseErrorBody(output.body, context)
|
|
914
|
+
};
|
|
915
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
916
|
+
switch (errorCode) {
|
|
917
|
+
case "InternalServerException":
|
|
918
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
919
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
920
|
+
case "ResourceNotFoundException":
|
|
921
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
922
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
923
|
+
case "ValidationException":
|
|
924
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
925
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
926
|
+
default:
|
|
927
|
+
const parsedBody = parsedOutput.body;
|
|
928
|
+
return throwDefaultError({
|
|
929
|
+
output,
|
|
930
|
+
parsedBody,
|
|
931
|
+
errorCode
|
|
932
|
+
});
|
|
933
|
+
}
|
|
934
|
+
}, "de_DisassociateAttributeGroupCommandError");
|
|
935
|
+
var de_DisassociateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
936
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
937
|
+
return de_DisassociateResourceCommandError(output, context);
|
|
938
|
+
}
|
|
939
|
+
const contents = (0, import_smithy_client.map)({
|
|
940
|
+
$metadata: deserializeMetadata(output)
|
|
941
|
+
});
|
|
942
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
943
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
944
|
+
applicationArn: import_smithy_client.expectString,
|
|
945
|
+
resourceArn: import_smithy_client.expectString
|
|
946
|
+
});
|
|
947
|
+
Object.assign(contents, doc);
|
|
948
|
+
return contents;
|
|
949
|
+
}, "de_DisassociateResourceCommand");
|
|
950
|
+
var de_DisassociateResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
951
|
+
const parsedOutput = {
|
|
952
|
+
...output,
|
|
953
|
+
body: await parseErrorBody(output.body, context)
|
|
954
|
+
};
|
|
955
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
956
|
+
switch (errorCode) {
|
|
957
|
+
case "InternalServerException":
|
|
958
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
959
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
960
|
+
case "ResourceNotFoundException":
|
|
961
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
962
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
963
|
+
case "ThrottlingException":
|
|
964
|
+
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
965
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
966
|
+
case "ValidationException":
|
|
967
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
968
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
969
|
+
default:
|
|
970
|
+
const parsedBody = parsedOutput.body;
|
|
971
|
+
return throwDefaultError({
|
|
972
|
+
output,
|
|
973
|
+
parsedBody,
|
|
974
|
+
errorCode
|
|
975
|
+
});
|
|
976
|
+
}
|
|
977
|
+
}, "de_DisassociateResourceCommandError");
|
|
978
|
+
var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
979
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
980
|
+
return de_GetApplicationCommandError(output, context);
|
|
981
|
+
}
|
|
982
|
+
const contents = (0, import_smithy_client.map)({
|
|
983
|
+
$metadata: deserializeMetadata(output)
|
|
984
|
+
});
|
|
985
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
986
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
987
|
+
applicationTag: import_smithy_client._json,
|
|
988
|
+
arn: import_smithy_client.expectString,
|
|
989
|
+
associatedResourceCount: import_smithy_client.expectInt32,
|
|
990
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
991
|
+
description: import_smithy_client.expectString,
|
|
992
|
+
id: import_smithy_client.expectString,
|
|
993
|
+
integrations: import_smithy_client._json,
|
|
994
|
+
lastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
995
|
+
name: import_smithy_client.expectString,
|
|
996
|
+
tags: import_smithy_client._json
|
|
997
|
+
});
|
|
998
|
+
Object.assign(contents, doc);
|
|
999
|
+
return contents;
|
|
1000
|
+
}, "de_GetApplicationCommand");
|
|
1001
|
+
var de_GetApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1002
|
+
const parsedOutput = {
|
|
1003
|
+
...output,
|
|
1004
|
+
body: await parseErrorBody(output.body, context)
|
|
1005
|
+
};
|
|
1006
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1007
|
+
switch (errorCode) {
|
|
1008
|
+
case "ConflictException":
|
|
1009
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1010
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1011
|
+
case "InternalServerException":
|
|
1012
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1013
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1014
|
+
case "ResourceNotFoundException":
|
|
1015
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1016
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1017
|
+
case "ValidationException":
|
|
1018
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1019
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1020
|
+
default:
|
|
1021
|
+
const parsedBody = parsedOutput.body;
|
|
1022
|
+
return throwDefaultError({
|
|
1023
|
+
output,
|
|
1024
|
+
parsedBody,
|
|
1025
|
+
errorCode
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
}, "de_GetApplicationCommandError");
|
|
1029
|
+
var de_GetAssociatedResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1030
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1031
|
+
return de_GetAssociatedResourceCommandError(output, context);
|
|
1032
|
+
}
|
|
1033
|
+
const contents = (0, import_smithy_client.map)({
|
|
1034
|
+
$metadata: deserializeMetadata(output)
|
|
1035
|
+
});
|
|
1036
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1037
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1038
|
+
applicationTagResult: import_smithy_client._json,
|
|
1039
|
+
options: import_smithy_client._json,
|
|
1040
|
+
resource: (_) => de_Resource(_, context)
|
|
1041
|
+
});
|
|
1042
|
+
Object.assign(contents, doc);
|
|
1043
|
+
return contents;
|
|
1044
|
+
}, "de_GetAssociatedResourceCommand");
|
|
1045
|
+
var de_GetAssociatedResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1046
|
+
const parsedOutput = {
|
|
1047
|
+
...output,
|
|
1048
|
+
body: await parseErrorBody(output.body, context)
|
|
1049
|
+
};
|
|
1050
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1051
|
+
switch (errorCode) {
|
|
1052
|
+
case "InternalServerException":
|
|
1053
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1054
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1055
|
+
case "ResourceNotFoundException":
|
|
1056
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1057
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1058
|
+
case "ValidationException":
|
|
1059
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1060
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1061
|
+
default:
|
|
1062
|
+
const parsedBody = parsedOutput.body;
|
|
1063
|
+
return throwDefaultError({
|
|
1064
|
+
output,
|
|
1065
|
+
parsedBody,
|
|
1066
|
+
errorCode
|
|
1067
|
+
});
|
|
1068
|
+
}
|
|
1069
|
+
}, "de_GetAssociatedResourceCommandError");
|
|
1070
|
+
var de_GetAttributeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1071
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1072
|
+
return de_GetAttributeGroupCommandError(output, context);
|
|
1073
|
+
}
|
|
1074
|
+
const contents = (0, import_smithy_client.map)({
|
|
1075
|
+
$metadata: deserializeMetadata(output)
|
|
1076
|
+
});
|
|
1077
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1078
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1079
|
+
arn: import_smithy_client.expectString,
|
|
1080
|
+
attributes: import_smithy_client.expectString,
|
|
1081
|
+
createdBy: import_smithy_client.expectString,
|
|
1082
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1083
|
+
description: import_smithy_client.expectString,
|
|
1084
|
+
id: import_smithy_client.expectString,
|
|
1085
|
+
lastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1086
|
+
name: import_smithy_client.expectString,
|
|
1087
|
+
tags: import_smithy_client._json
|
|
1088
|
+
});
|
|
1089
|
+
Object.assign(contents, doc);
|
|
1090
|
+
return contents;
|
|
1091
|
+
}, "de_GetAttributeGroupCommand");
|
|
1092
|
+
var de_GetAttributeGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1093
|
+
const parsedOutput = {
|
|
1094
|
+
...output,
|
|
1095
|
+
body: await parseErrorBody(output.body, context)
|
|
1096
|
+
};
|
|
1097
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1098
|
+
switch (errorCode) {
|
|
1099
|
+
case "ConflictException":
|
|
1100
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1101
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1102
|
+
case "InternalServerException":
|
|
1103
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1104
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1105
|
+
case "ResourceNotFoundException":
|
|
1106
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1107
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1108
|
+
case "ValidationException":
|
|
1109
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1110
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1111
|
+
default:
|
|
1112
|
+
const parsedBody = parsedOutput.body;
|
|
1113
|
+
return throwDefaultError({
|
|
1114
|
+
output,
|
|
1115
|
+
parsedBody,
|
|
1116
|
+
errorCode
|
|
1117
|
+
});
|
|
1118
|
+
}
|
|
1119
|
+
}, "de_GetAttributeGroupCommandError");
|
|
1120
|
+
var de_GetConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1121
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1122
|
+
return de_GetConfigurationCommandError(output, context);
|
|
1123
|
+
}
|
|
1124
|
+
const contents = (0, import_smithy_client.map)({
|
|
1125
|
+
$metadata: deserializeMetadata(output)
|
|
1126
|
+
});
|
|
1127
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1128
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1129
|
+
configuration: import_smithy_client._json
|
|
1130
|
+
});
|
|
1131
|
+
Object.assign(contents, doc);
|
|
1132
|
+
return contents;
|
|
1133
|
+
}, "de_GetConfigurationCommand");
|
|
1134
|
+
var de_GetConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1135
|
+
const parsedOutput = {
|
|
1136
|
+
...output,
|
|
1137
|
+
body: await parseErrorBody(output.body, context)
|
|
1138
|
+
};
|
|
1139
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1140
|
+
switch (errorCode) {
|
|
1141
|
+
case "InternalServerException":
|
|
1142
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1143
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1144
|
+
default:
|
|
1145
|
+
const parsedBody = parsedOutput.body;
|
|
1146
|
+
return throwDefaultError({
|
|
1147
|
+
output,
|
|
1148
|
+
parsedBody,
|
|
1149
|
+
errorCode
|
|
1150
|
+
});
|
|
1151
|
+
}
|
|
1152
|
+
}, "de_GetConfigurationCommandError");
|
|
1153
|
+
var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1154
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1155
|
+
return de_ListApplicationsCommandError(output, context);
|
|
1156
|
+
}
|
|
1157
|
+
const contents = (0, import_smithy_client.map)({
|
|
1158
|
+
$metadata: deserializeMetadata(output)
|
|
1159
|
+
});
|
|
1160
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1161
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1162
|
+
applications: (_) => de_ApplicationSummaries(_, context),
|
|
1163
|
+
nextToken: import_smithy_client.expectString
|
|
1164
|
+
});
|
|
1165
|
+
Object.assign(contents, doc);
|
|
1166
|
+
return contents;
|
|
1167
|
+
}, "de_ListApplicationsCommand");
|
|
1168
|
+
var de_ListApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1169
|
+
const parsedOutput = {
|
|
1170
|
+
...output,
|
|
1171
|
+
body: await parseErrorBody(output.body, context)
|
|
1172
|
+
};
|
|
1173
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1174
|
+
switch (errorCode) {
|
|
1175
|
+
case "InternalServerException":
|
|
1176
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1177
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1178
|
+
case "ValidationException":
|
|
1179
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1180
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1181
|
+
default:
|
|
1182
|
+
const parsedBody = parsedOutput.body;
|
|
1183
|
+
return throwDefaultError({
|
|
1184
|
+
output,
|
|
1185
|
+
parsedBody,
|
|
1186
|
+
errorCode
|
|
1187
|
+
});
|
|
1188
|
+
}
|
|
1189
|
+
}, "de_ListApplicationsCommandError");
|
|
1190
|
+
var de_ListAssociatedAttributeGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1191
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1192
|
+
return de_ListAssociatedAttributeGroupsCommandError(output, context);
|
|
1193
|
+
}
|
|
1194
|
+
const contents = (0, import_smithy_client.map)({
|
|
1195
|
+
$metadata: deserializeMetadata(output)
|
|
1196
|
+
});
|
|
1197
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1198
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1199
|
+
attributeGroups: import_smithy_client._json,
|
|
1200
|
+
nextToken: import_smithy_client.expectString
|
|
1201
|
+
});
|
|
1202
|
+
Object.assign(contents, doc);
|
|
1203
|
+
return contents;
|
|
1204
|
+
}, "de_ListAssociatedAttributeGroupsCommand");
|
|
1205
|
+
var de_ListAssociatedAttributeGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1206
|
+
const parsedOutput = {
|
|
1207
|
+
...output,
|
|
1208
|
+
body: await parseErrorBody(output.body, context)
|
|
1209
|
+
};
|
|
1210
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1211
|
+
switch (errorCode) {
|
|
1212
|
+
case "InternalServerException":
|
|
1213
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1214
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1215
|
+
case "ResourceNotFoundException":
|
|
1216
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1217
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1218
|
+
case "ValidationException":
|
|
1219
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1220
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1221
|
+
default:
|
|
1222
|
+
const parsedBody = parsedOutput.body;
|
|
1223
|
+
return throwDefaultError({
|
|
1224
|
+
output,
|
|
1225
|
+
parsedBody,
|
|
1226
|
+
errorCode
|
|
1227
|
+
});
|
|
1228
|
+
}
|
|
1229
|
+
}, "de_ListAssociatedAttributeGroupsCommandError");
|
|
1230
|
+
var de_ListAssociatedResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1231
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1232
|
+
return de_ListAssociatedResourcesCommandError(output, context);
|
|
1233
|
+
}
|
|
1234
|
+
const contents = (0, import_smithy_client.map)({
|
|
1235
|
+
$metadata: deserializeMetadata(output)
|
|
1236
|
+
});
|
|
1237
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1238
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1239
|
+
nextToken: import_smithy_client.expectString,
|
|
1240
|
+
resources: import_smithy_client._json
|
|
1241
|
+
});
|
|
1242
|
+
Object.assign(contents, doc);
|
|
1243
|
+
return contents;
|
|
1244
|
+
}, "de_ListAssociatedResourcesCommand");
|
|
1245
|
+
var de_ListAssociatedResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1246
|
+
const parsedOutput = {
|
|
1247
|
+
...output,
|
|
1248
|
+
body: await parseErrorBody(output.body, context)
|
|
1249
|
+
};
|
|
1250
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1251
|
+
switch (errorCode) {
|
|
1252
|
+
case "InternalServerException":
|
|
1253
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1254
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1255
|
+
case "ResourceNotFoundException":
|
|
1256
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1257
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1258
|
+
case "ValidationException":
|
|
1259
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1260
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1261
|
+
default:
|
|
1262
|
+
const parsedBody = parsedOutput.body;
|
|
1263
|
+
return throwDefaultError({
|
|
1264
|
+
output,
|
|
1265
|
+
parsedBody,
|
|
1266
|
+
errorCode
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1269
|
+
}, "de_ListAssociatedResourcesCommandError");
|
|
1270
|
+
var de_ListAttributeGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1271
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1272
|
+
return de_ListAttributeGroupsCommandError(output, context);
|
|
1273
|
+
}
|
|
1274
|
+
const contents = (0, import_smithy_client.map)({
|
|
1275
|
+
$metadata: deserializeMetadata(output)
|
|
1276
|
+
});
|
|
1277
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1278
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1279
|
+
attributeGroups: (_) => de_AttributeGroupSummaries(_, context),
|
|
1280
|
+
nextToken: import_smithy_client.expectString
|
|
1281
|
+
});
|
|
1282
|
+
Object.assign(contents, doc);
|
|
1283
|
+
return contents;
|
|
1284
|
+
}, "de_ListAttributeGroupsCommand");
|
|
1285
|
+
var de_ListAttributeGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1286
|
+
const parsedOutput = {
|
|
1287
|
+
...output,
|
|
1288
|
+
body: await parseErrorBody(output.body, context)
|
|
1289
|
+
};
|
|
1290
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1291
|
+
switch (errorCode) {
|
|
1292
|
+
case "InternalServerException":
|
|
1293
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1294
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1295
|
+
case "ValidationException":
|
|
1296
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1297
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1298
|
+
default:
|
|
1299
|
+
const parsedBody = parsedOutput.body;
|
|
1300
|
+
return throwDefaultError({
|
|
1301
|
+
output,
|
|
1302
|
+
parsedBody,
|
|
1303
|
+
errorCode
|
|
1304
|
+
});
|
|
1305
|
+
}
|
|
1306
|
+
}, "de_ListAttributeGroupsCommandError");
|
|
1307
|
+
var de_ListAttributeGroupsForApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1308
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1309
|
+
return de_ListAttributeGroupsForApplicationCommandError(output, context);
|
|
1310
|
+
}
|
|
1311
|
+
const contents = (0, import_smithy_client.map)({
|
|
1312
|
+
$metadata: deserializeMetadata(output)
|
|
1313
|
+
});
|
|
1314
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1315
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1316
|
+
attributeGroupsDetails: import_smithy_client._json,
|
|
1317
|
+
nextToken: import_smithy_client.expectString
|
|
1318
|
+
});
|
|
1319
|
+
Object.assign(contents, doc);
|
|
1320
|
+
return contents;
|
|
1321
|
+
}, "de_ListAttributeGroupsForApplicationCommand");
|
|
1322
|
+
var de_ListAttributeGroupsForApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1323
|
+
const parsedOutput = {
|
|
1324
|
+
...output,
|
|
1325
|
+
body: await parseErrorBody(output.body, context)
|
|
1326
|
+
};
|
|
1327
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1328
|
+
switch (errorCode) {
|
|
1329
|
+
case "InternalServerException":
|
|
1330
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1331
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1332
|
+
case "ResourceNotFoundException":
|
|
1333
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1334
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1335
|
+
case "ValidationException":
|
|
1336
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1337
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1338
|
+
default:
|
|
1339
|
+
const parsedBody = parsedOutput.body;
|
|
1340
|
+
return throwDefaultError({
|
|
1341
|
+
output,
|
|
1342
|
+
parsedBody,
|
|
1343
|
+
errorCode
|
|
1344
|
+
});
|
|
1345
|
+
}
|
|
1346
|
+
}, "de_ListAttributeGroupsForApplicationCommandError");
|
|
1347
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1348
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1349
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1350
|
+
}
|
|
1351
|
+
const contents = (0, import_smithy_client.map)({
|
|
1352
|
+
$metadata: deserializeMetadata(output)
|
|
1353
|
+
});
|
|
1354
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1355
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1356
|
+
tags: import_smithy_client._json
|
|
1357
|
+
});
|
|
1358
|
+
Object.assign(contents, doc);
|
|
1359
|
+
return contents;
|
|
1360
|
+
}, "de_ListTagsForResourceCommand");
|
|
1361
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1362
|
+
const parsedOutput = {
|
|
1363
|
+
...output,
|
|
1364
|
+
body: await parseErrorBody(output.body, context)
|
|
1365
|
+
};
|
|
1366
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
|
+
switch (errorCode) {
|
|
1368
|
+
case "InternalServerException":
|
|
1369
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1370
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1371
|
+
case "ResourceNotFoundException":
|
|
1372
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1373
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1374
|
+
case "ValidationException":
|
|
1375
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1376
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1377
|
+
default:
|
|
1378
|
+
const parsedBody = parsedOutput.body;
|
|
1379
|
+
return throwDefaultError({
|
|
1380
|
+
output,
|
|
1381
|
+
parsedBody,
|
|
1382
|
+
errorCode
|
|
1383
|
+
});
|
|
1384
|
+
}
|
|
1385
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1386
|
+
var de_PutConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1387
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1388
|
+
return de_PutConfigurationCommandError(output, context);
|
|
1389
|
+
}
|
|
1390
|
+
const contents = (0, import_smithy_client.map)({
|
|
1391
|
+
$metadata: deserializeMetadata(output)
|
|
1392
|
+
});
|
|
1393
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1394
|
+
return contents;
|
|
1395
|
+
}, "de_PutConfigurationCommand");
|
|
1396
|
+
var de_PutConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1397
|
+
const parsedOutput = {
|
|
1398
|
+
...output,
|
|
1399
|
+
body: await parseErrorBody(output.body, context)
|
|
1400
|
+
};
|
|
1401
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1402
|
+
switch (errorCode) {
|
|
1403
|
+
case "ConflictException":
|
|
1404
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1405
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1406
|
+
case "InternalServerException":
|
|
1407
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1408
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1409
|
+
case "ValidationException":
|
|
1410
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1411
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1412
|
+
default:
|
|
1413
|
+
const parsedBody = parsedOutput.body;
|
|
1414
|
+
return throwDefaultError({
|
|
1415
|
+
output,
|
|
1416
|
+
parsedBody,
|
|
1417
|
+
errorCode
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1420
|
+
}, "de_PutConfigurationCommandError");
|
|
1421
|
+
var de_SyncResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1422
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1423
|
+
return de_SyncResourceCommandError(output, context);
|
|
1424
|
+
}
|
|
1425
|
+
const contents = (0, import_smithy_client.map)({
|
|
1426
|
+
$metadata: deserializeMetadata(output)
|
|
1427
|
+
});
|
|
1428
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1429
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1430
|
+
actionTaken: import_smithy_client.expectString,
|
|
1431
|
+
applicationArn: import_smithy_client.expectString,
|
|
1432
|
+
resourceArn: import_smithy_client.expectString
|
|
1433
|
+
});
|
|
1434
|
+
Object.assign(contents, doc);
|
|
1435
|
+
return contents;
|
|
1436
|
+
}, "de_SyncResourceCommand");
|
|
1437
|
+
var de_SyncResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1438
|
+
const parsedOutput = {
|
|
1439
|
+
...output,
|
|
1440
|
+
body: await parseErrorBody(output.body, context)
|
|
1441
|
+
};
|
|
1442
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
|
+
switch (errorCode) {
|
|
1444
|
+
case "ConflictException":
|
|
1445
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1446
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1447
|
+
case "InternalServerException":
|
|
1448
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1449
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1450
|
+
case "ResourceNotFoundException":
|
|
1451
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1452
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1453
|
+
case "ThrottlingException":
|
|
1454
|
+
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
1455
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1456
|
+
case "ValidationException":
|
|
1457
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1458
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1459
|
+
default:
|
|
1460
|
+
const parsedBody = parsedOutput.body;
|
|
1461
|
+
return throwDefaultError({
|
|
1462
|
+
output,
|
|
1463
|
+
parsedBody,
|
|
1464
|
+
errorCode
|
|
1465
|
+
});
|
|
1466
|
+
}
|
|
1467
|
+
}, "de_SyncResourceCommandError");
|
|
1468
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1469
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1470
|
+
return de_TagResourceCommandError(output, context);
|
|
1471
|
+
}
|
|
1472
|
+
const contents = (0, import_smithy_client.map)({
|
|
1473
|
+
$metadata: deserializeMetadata(output)
|
|
1474
|
+
});
|
|
1475
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1476
|
+
return contents;
|
|
1477
|
+
}, "de_TagResourceCommand");
|
|
1478
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1479
|
+
const parsedOutput = {
|
|
1480
|
+
...output,
|
|
1481
|
+
body: await parseErrorBody(output.body, context)
|
|
1482
|
+
};
|
|
1483
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
|
+
switch (errorCode) {
|
|
1485
|
+
case "InternalServerException":
|
|
1486
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1487
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1488
|
+
case "ResourceNotFoundException":
|
|
1489
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1490
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1491
|
+
case "ValidationException":
|
|
1492
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1493
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1494
|
+
default:
|
|
1495
|
+
const parsedBody = parsedOutput.body;
|
|
1496
|
+
return throwDefaultError({
|
|
1497
|
+
output,
|
|
1498
|
+
parsedBody,
|
|
1499
|
+
errorCode
|
|
1500
|
+
});
|
|
1501
|
+
}
|
|
1502
|
+
}, "de_TagResourceCommandError");
|
|
1503
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1504
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1505
|
+
return de_UntagResourceCommandError(output, context);
|
|
1506
|
+
}
|
|
1507
|
+
const contents = (0, import_smithy_client.map)({
|
|
1508
|
+
$metadata: deserializeMetadata(output)
|
|
1509
|
+
});
|
|
1510
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1511
|
+
return contents;
|
|
1512
|
+
}, "de_UntagResourceCommand");
|
|
1513
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1514
|
+
const parsedOutput = {
|
|
1515
|
+
...output,
|
|
1516
|
+
body: await parseErrorBody(output.body, context)
|
|
1517
|
+
};
|
|
1518
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1519
|
+
switch (errorCode) {
|
|
1520
|
+
case "InternalServerException":
|
|
1521
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1522
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1523
|
+
case "ResourceNotFoundException":
|
|
1524
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1525
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1526
|
+
case "ValidationException":
|
|
1527
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1528
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1529
|
+
default:
|
|
1530
|
+
const parsedBody = parsedOutput.body;
|
|
1531
|
+
return throwDefaultError({
|
|
1532
|
+
output,
|
|
1533
|
+
parsedBody,
|
|
1534
|
+
errorCode
|
|
1535
|
+
});
|
|
1536
|
+
}
|
|
1537
|
+
}, "de_UntagResourceCommandError");
|
|
1538
|
+
var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1539
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1540
|
+
return de_UpdateApplicationCommandError(output, context);
|
|
1541
|
+
}
|
|
1542
|
+
const contents = (0, import_smithy_client.map)({
|
|
1543
|
+
$metadata: deserializeMetadata(output)
|
|
1544
|
+
});
|
|
1545
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1546
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1547
|
+
application: (_) => de_Application(_, context)
|
|
1548
|
+
});
|
|
1549
|
+
Object.assign(contents, doc);
|
|
1550
|
+
return contents;
|
|
1551
|
+
}, "de_UpdateApplicationCommand");
|
|
1552
|
+
var de_UpdateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1553
|
+
const parsedOutput = {
|
|
1554
|
+
...output,
|
|
1555
|
+
body: await parseErrorBody(output.body, context)
|
|
1556
|
+
};
|
|
1557
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1558
|
+
switch (errorCode) {
|
|
1559
|
+
case "ConflictException":
|
|
1560
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1561
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1562
|
+
case "InternalServerException":
|
|
1563
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1564
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1565
|
+
case "ResourceNotFoundException":
|
|
1566
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1567
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1568
|
+
case "ThrottlingException":
|
|
1569
|
+
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
1570
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1571
|
+
case "ValidationException":
|
|
1572
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1573
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1574
|
+
default:
|
|
1575
|
+
const parsedBody = parsedOutput.body;
|
|
1576
|
+
return throwDefaultError({
|
|
1577
|
+
output,
|
|
1578
|
+
parsedBody,
|
|
1579
|
+
errorCode
|
|
1580
|
+
});
|
|
1581
|
+
}
|
|
1582
|
+
}, "de_UpdateApplicationCommandError");
|
|
1583
|
+
var de_UpdateAttributeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1584
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1585
|
+
return de_UpdateAttributeGroupCommandError(output, context);
|
|
1586
|
+
}
|
|
1587
|
+
const contents = (0, import_smithy_client.map)({
|
|
1588
|
+
$metadata: deserializeMetadata(output)
|
|
1589
|
+
});
|
|
1590
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1591
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1592
|
+
attributeGroup: (_) => de_AttributeGroup(_, context)
|
|
1593
|
+
});
|
|
1594
|
+
Object.assign(contents, doc);
|
|
1595
|
+
return contents;
|
|
1596
|
+
}, "de_UpdateAttributeGroupCommand");
|
|
1597
|
+
var de_UpdateAttributeGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1598
|
+
const parsedOutput = {
|
|
1599
|
+
...output,
|
|
1600
|
+
body: await parseErrorBody(output.body, context)
|
|
1601
|
+
};
|
|
1602
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1603
|
+
switch (errorCode) {
|
|
1604
|
+
case "ConflictException":
|
|
1605
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1606
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1607
|
+
case "InternalServerException":
|
|
1608
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1609
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1610
|
+
case "ResourceNotFoundException":
|
|
1611
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1612
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1613
|
+
case "ValidationException":
|
|
1614
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1615
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1616
|
+
default:
|
|
1617
|
+
const parsedBody = parsedOutput.body;
|
|
1618
|
+
return throwDefaultError({
|
|
1619
|
+
output,
|
|
1620
|
+
parsedBody,
|
|
1621
|
+
errorCode
|
|
1622
|
+
});
|
|
1623
|
+
}
|
|
1624
|
+
}, "de_UpdateAttributeGroupCommandError");
|
|
1625
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(ServiceCatalogAppRegistryServiceException);
|
|
1626
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1627
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1628
|
+
const data = parsedOutput.body;
|
|
1629
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1630
|
+
message: import_smithy_client.expectString
|
|
1631
|
+
});
|
|
1632
|
+
Object.assign(contents, doc);
|
|
1633
|
+
const exception = new ConflictException({
|
|
1634
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1635
|
+
...contents
|
|
1636
|
+
});
|
|
1637
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1638
|
+
}, "de_ConflictExceptionRes");
|
|
1639
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1640
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1641
|
+
const data = parsedOutput.body;
|
|
1642
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1643
|
+
message: import_smithy_client.expectString
|
|
1644
|
+
});
|
|
1645
|
+
Object.assign(contents, doc);
|
|
1646
|
+
const exception = new InternalServerException({
|
|
1647
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1648
|
+
...contents
|
|
1649
|
+
});
|
|
1650
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1651
|
+
}, "de_InternalServerExceptionRes");
|
|
1652
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1653
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1654
|
+
const data = parsedOutput.body;
|
|
1655
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1656
|
+
message: import_smithy_client.expectString
|
|
1657
|
+
});
|
|
1658
|
+
Object.assign(contents, doc);
|
|
1659
|
+
const exception = new ResourceNotFoundException({
|
|
1660
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1661
|
+
...contents
|
|
1662
|
+
});
|
|
1663
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1664
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1665
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1666
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1667
|
+
const data = parsedOutput.body;
|
|
1668
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1669
|
+
message: import_smithy_client.expectString
|
|
1670
|
+
});
|
|
1671
|
+
Object.assign(contents, doc);
|
|
1672
|
+
const exception = new ServiceQuotaExceededException({
|
|
1673
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1674
|
+
...contents
|
|
1675
|
+
});
|
|
1676
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1677
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1678
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1679
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1680
|
+
const data = parsedOutput.body;
|
|
1681
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1682
|
+
message: import_smithy_client.expectString,
|
|
1683
|
+
serviceCode: import_smithy_client.expectString
|
|
1684
|
+
});
|
|
1685
|
+
Object.assign(contents, doc);
|
|
1686
|
+
const exception = new ThrottlingException({
|
|
1687
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1688
|
+
...contents
|
|
1689
|
+
});
|
|
1690
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1691
|
+
}, "de_ThrottlingExceptionRes");
|
|
1692
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1693
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1694
|
+
const data = parsedOutput.body;
|
|
1695
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1696
|
+
message: import_smithy_client.expectString
|
|
1697
|
+
});
|
|
1698
|
+
Object.assign(contents, doc);
|
|
1699
|
+
const exception = new ValidationException({
|
|
1700
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1701
|
+
...contents
|
|
1702
|
+
});
|
|
1703
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1704
|
+
}, "de_ValidationExceptionRes");
|
|
1705
|
+
var de_Application = /* @__PURE__ */ __name((output, context) => {
|
|
1706
|
+
return (0, import_smithy_client.take)(output, {
|
|
1707
|
+
applicationTag: import_smithy_client._json,
|
|
1708
|
+
arn: import_smithy_client.expectString,
|
|
1709
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1710
|
+
description: import_smithy_client.expectString,
|
|
1711
|
+
id: import_smithy_client.expectString,
|
|
1712
|
+
lastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1713
|
+
name: import_smithy_client.expectString,
|
|
1714
|
+
tags: import_smithy_client._json
|
|
1715
|
+
});
|
|
1716
|
+
}, "de_Application");
|
|
1717
|
+
var de_ApplicationSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
1718
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1719
|
+
return de_ApplicationSummary(entry, context);
|
|
1720
|
+
});
|
|
1721
|
+
return retVal;
|
|
1722
|
+
}, "de_ApplicationSummaries");
|
|
1723
|
+
var de_ApplicationSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1724
|
+
return (0, import_smithy_client.take)(output, {
|
|
1725
|
+
arn: import_smithy_client.expectString,
|
|
1726
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1727
|
+
description: import_smithy_client.expectString,
|
|
1728
|
+
id: import_smithy_client.expectString,
|
|
1729
|
+
lastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1730
|
+
name: import_smithy_client.expectString
|
|
1731
|
+
});
|
|
1732
|
+
}, "de_ApplicationSummary");
|
|
1733
|
+
var de_AttributeGroup = /* @__PURE__ */ __name((output, context) => {
|
|
1734
|
+
return (0, import_smithy_client.take)(output, {
|
|
1735
|
+
arn: import_smithy_client.expectString,
|
|
1736
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1737
|
+
description: import_smithy_client.expectString,
|
|
1738
|
+
id: import_smithy_client.expectString,
|
|
1739
|
+
lastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1740
|
+
name: import_smithy_client.expectString,
|
|
1741
|
+
tags: import_smithy_client._json
|
|
1742
|
+
});
|
|
1743
|
+
}, "de_AttributeGroup");
|
|
1744
|
+
var de_AttributeGroupSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
1745
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1746
|
+
return de_AttributeGroupSummary(entry, context);
|
|
1747
|
+
});
|
|
1748
|
+
return retVal;
|
|
1749
|
+
}, "de_AttributeGroupSummaries");
|
|
1750
|
+
var de_AttributeGroupSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1751
|
+
return (0, import_smithy_client.take)(output, {
|
|
1752
|
+
arn: import_smithy_client.expectString,
|
|
1753
|
+
createdBy: import_smithy_client.expectString,
|
|
1754
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1755
|
+
description: import_smithy_client.expectString,
|
|
1756
|
+
id: import_smithy_client.expectString,
|
|
1757
|
+
lastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1758
|
+
name: import_smithy_client.expectString
|
|
1759
|
+
});
|
|
1760
|
+
}, "de_AttributeGroupSummary");
|
|
1761
|
+
var de_Resource = /* @__PURE__ */ __name((output, context) => {
|
|
1762
|
+
return (0, import_smithy_client.take)(output, {
|
|
1763
|
+
arn: import_smithy_client.expectString,
|
|
1764
|
+
associationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1765
|
+
integrations: import_smithy_client._json,
|
|
1766
|
+
name: import_smithy_client.expectString
|
|
1767
|
+
});
|
|
1768
|
+
}, "de_Resource");
|
|
1769
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1770
|
+
httpStatusCode: output.statusCode,
|
|
1771
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1772
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1773
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1774
|
+
}), "deserializeMetadata");
|
|
1775
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1776
|
+
var _mR = "maxResults";
|
|
1777
|
+
var _nT = "nextToken";
|
|
1778
|
+
var _rTS = "resourceTagStatus";
|
|
1779
|
+
var _tK = "tagKeys";
|
|
1780
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1781
|
+
if (encoded.length) {
|
|
1782
|
+
return JSON.parse(encoded);
|
|
1783
|
+
}
|
|
1784
|
+
return {};
|
|
1785
|
+
}), "parseBody");
|
|
1786
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1787
|
+
const value = await parseBody(errorBody, context);
|
|
1788
|
+
value.message = value.message ?? value.Message;
|
|
1789
|
+
return value;
|
|
1790
|
+
}, "parseErrorBody");
|
|
1791
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1792
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1793
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1794
|
+
let cleanValue = rawValue;
|
|
1795
|
+
if (typeof cleanValue === "number") {
|
|
1796
|
+
cleanValue = cleanValue.toString();
|
|
1797
|
+
}
|
|
1798
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1799
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1800
|
+
}
|
|
1801
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1802
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1803
|
+
}
|
|
1804
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1805
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1806
|
+
}
|
|
1807
|
+
return cleanValue;
|
|
1808
|
+
}, "sanitizeErrorCode");
|
|
1809
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1810
|
+
if (headerKey !== void 0) {
|
|
1811
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1812
|
+
}
|
|
1813
|
+
if (data.code !== void 0) {
|
|
1814
|
+
return sanitizeErrorCode(data.code);
|
|
1815
|
+
}
|
|
1816
|
+
if (data["__type"] !== void 0) {
|
|
1817
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1818
|
+
}
|
|
1819
|
+
}, "loadRestJsonErrorCode");
|
|
1820
|
+
|
|
1821
|
+
// src/commands/AssociateAttributeGroupCommand.ts
|
|
1822
|
+
var _AssociateAttributeGroupCommand = class _AssociateAttributeGroupCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1823
|
+
...commonParams
|
|
1824
|
+
}).m(function(Command, cs, config, o) {
|
|
1825
|
+
return [
|
|
1826
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1827
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1828
|
+
];
|
|
1829
|
+
}).s("AWS242AppRegistry", "AssociateAttributeGroup", {}).n("ServiceCatalogAppRegistryClient", "AssociateAttributeGroupCommand").f(void 0, void 0).ser(se_AssociateAttributeGroupCommand).de(de_AssociateAttributeGroupCommand).build() {
|
|
1830
|
+
};
|
|
1831
|
+
__name(_AssociateAttributeGroupCommand, "AssociateAttributeGroupCommand");
|
|
1832
|
+
var AssociateAttributeGroupCommand = _AssociateAttributeGroupCommand;
|
|
1833
|
+
|
|
1834
|
+
// src/commands/AssociateResourceCommand.ts
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
var _AssociateResourceCommand = class _AssociateResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1840
|
+
...commonParams
|
|
1841
|
+
}).m(function(Command, cs, config, o) {
|
|
1842
|
+
return [
|
|
1843
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1844
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1845
|
+
];
|
|
1846
|
+
}).s("AWS242AppRegistry", "AssociateResource", {}).n("ServiceCatalogAppRegistryClient", "AssociateResourceCommand").f(void 0, void 0).ser(se_AssociateResourceCommand).de(de_AssociateResourceCommand).build() {
|
|
1847
|
+
};
|
|
1848
|
+
__name(_AssociateResourceCommand, "AssociateResourceCommand");
|
|
1849
|
+
var AssociateResourceCommand = _AssociateResourceCommand;
|
|
1850
|
+
|
|
1851
|
+
// src/commands/CreateApplicationCommand.ts
|
|
1852
|
+
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
var _CreateApplicationCommand = class _CreateApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1857
|
+
...commonParams
|
|
1858
|
+
}).m(function(Command, cs, config, o) {
|
|
1859
|
+
return [
|
|
1860
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1861
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1862
|
+
];
|
|
1863
|
+
}).s("AWS242AppRegistry", "CreateApplication", {}).n("ServiceCatalogAppRegistryClient", "CreateApplicationCommand").f(void 0, void 0).ser(se_CreateApplicationCommand).de(de_CreateApplicationCommand).build() {
|
|
1864
|
+
};
|
|
1865
|
+
__name(_CreateApplicationCommand, "CreateApplicationCommand");
|
|
1866
|
+
var CreateApplicationCommand = _CreateApplicationCommand;
|
|
1867
|
+
|
|
1868
|
+
// src/commands/CreateAttributeGroupCommand.ts
|
|
1869
|
+
|
|
1870
|
+
|
|
1871
|
+
|
|
1872
|
+
|
|
1873
|
+
var _CreateAttributeGroupCommand = class _CreateAttributeGroupCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1874
|
+
...commonParams
|
|
1875
|
+
}).m(function(Command, cs, config, o) {
|
|
1876
|
+
return [
|
|
1877
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1878
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1879
|
+
];
|
|
1880
|
+
}).s("AWS242AppRegistry", "CreateAttributeGroup", {}).n("ServiceCatalogAppRegistryClient", "CreateAttributeGroupCommand").f(void 0, void 0).ser(se_CreateAttributeGroupCommand).de(de_CreateAttributeGroupCommand).build() {
|
|
1881
|
+
};
|
|
1882
|
+
__name(_CreateAttributeGroupCommand, "CreateAttributeGroupCommand");
|
|
1883
|
+
var CreateAttributeGroupCommand = _CreateAttributeGroupCommand;
|
|
1884
|
+
|
|
1885
|
+
// src/commands/DeleteApplicationCommand.ts
|
|
1886
|
+
|
|
1887
|
+
|
|
1888
|
+
|
|
1889
|
+
|
|
1890
|
+
var _DeleteApplicationCommand = class _DeleteApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1891
|
+
...commonParams
|
|
1892
|
+
}).m(function(Command, cs, config, o) {
|
|
1893
|
+
return [
|
|
1894
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1895
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1896
|
+
];
|
|
1897
|
+
}).s("AWS242AppRegistry", "DeleteApplication", {}).n("ServiceCatalogAppRegistryClient", "DeleteApplicationCommand").f(void 0, void 0).ser(se_DeleteApplicationCommand).de(de_DeleteApplicationCommand).build() {
|
|
1898
|
+
};
|
|
1899
|
+
__name(_DeleteApplicationCommand, "DeleteApplicationCommand");
|
|
1900
|
+
var DeleteApplicationCommand = _DeleteApplicationCommand;
|
|
1901
|
+
|
|
1902
|
+
// src/commands/DeleteAttributeGroupCommand.ts
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
|
|
1906
|
+
|
|
1907
|
+
var _DeleteAttributeGroupCommand = class _DeleteAttributeGroupCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1908
|
+
...commonParams
|
|
1909
|
+
}).m(function(Command, cs, config, o) {
|
|
1910
|
+
return [
|
|
1911
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1912
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1913
|
+
];
|
|
1914
|
+
}).s("AWS242AppRegistry", "DeleteAttributeGroup", {}).n("ServiceCatalogAppRegistryClient", "DeleteAttributeGroupCommand").f(void 0, void 0).ser(se_DeleteAttributeGroupCommand).de(de_DeleteAttributeGroupCommand).build() {
|
|
1915
|
+
};
|
|
1916
|
+
__name(_DeleteAttributeGroupCommand, "DeleteAttributeGroupCommand");
|
|
1917
|
+
var DeleteAttributeGroupCommand = _DeleteAttributeGroupCommand;
|
|
1918
|
+
|
|
1919
|
+
// src/commands/DisassociateAttributeGroupCommand.ts
|
|
1920
|
+
|
|
1921
|
+
|
|
1922
|
+
|
|
1923
|
+
|
|
1924
|
+
var _DisassociateAttributeGroupCommand = class _DisassociateAttributeGroupCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1925
|
+
...commonParams
|
|
1926
|
+
}).m(function(Command, cs, config, o) {
|
|
1927
|
+
return [
|
|
1928
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1929
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1930
|
+
];
|
|
1931
|
+
}).s("AWS242AppRegistry", "DisassociateAttributeGroup", {}).n("ServiceCatalogAppRegistryClient", "DisassociateAttributeGroupCommand").f(void 0, void 0).ser(se_DisassociateAttributeGroupCommand).de(de_DisassociateAttributeGroupCommand).build() {
|
|
1932
|
+
};
|
|
1933
|
+
__name(_DisassociateAttributeGroupCommand, "DisassociateAttributeGroupCommand");
|
|
1934
|
+
var DisassociateAttributeGroupCommand = _DisassociateAttributeGroupCommand;
|
|
1935
|
+
|
|
1936
|
+
// src/commands/DisassociateResourceCommand.ts
|
|
1937
|
+
|
|
1938
|
+
|
|
1939
|
+
|
|
1940
|
+
|
|
1941
|
+
var _DisassociateResourceCommand = class _DisassociateResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1942
|
+
...commonParams
|
|
1943
|
+
}).m(function(Command, cs, config, o) {
|
|
1944
|
+
return [
|
|
1945
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1946
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1947
|
+
];
|
|
1948
|
+
}).s("AWS242AppRegistry", "DisassociateResource", {}).n("ServiceCatalogAppRegistryClient", "DisassociateResourceCommand").f(void 0, void 0).ser(se_DisassociateResourceCommand).de(de_DisassociateResourceCommand).build() {
|
|
1949
|
+
};
|
|
1950
|
+
__name(_DisassociateResourceCommand, "DisassociateResourceCommand");
|
|
1951
|
+
var DisassociateResourceCommand = _DisassociateResourceCommand;
|
|
1952
|
+
|
|
1953
|
+
// src/commands/GetApplicationCommand.ts
|
|
1954
|
+
|
|
1955
|
+
|
|
1956
|
+
|
|
1957
|
+
|
|
1958
|
+
var _GetApplicationCommand = class _GetApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1959
|
+
...commonParams
|
|
1960
|
+
}).m(function(Command, cs, config, o) {
|
|
1961
|
+
return [
|
|
1962
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1963
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1964
|
+
];
|
|
1965
|
+
}).s("AWS242AppRegistry", "GetApplication", {}).n("ServiceCatalogAppRegistryClient", "GetApplicationCommand").f(void 0, void 0).ser(se_GetApplicationCommand).de(de_GetApplicationCommand).build() {
|
|
1966
|
+
};
|
|
1967
|
+
__name(_GetApplicationCommand, "GetApplicationCommand");
|
|
1968
|
+
var GetApplicationCommand = _GetApplicationCommand;
|
|
1969
|
+
|
|
1970
|
+
// src/commands/GetAssociatedResourceCommand.ts
|
|
1971
|
+
|
|
1972
|
+
|
|
1973
|
+
|
|
1974
|
+
|
|
1975
|
+
var _GetAssociatedResourceCommand = class _GetAssociatedResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1976
|
+
...commonParams
|
|
1977
|
+
}).m(function(Command, cs, config, o) {
|
|
1978
|
+
return [
|
|
1979
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1980
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1981
|
+
];
|
|
1982
|
+
}).s("AWS242AppRegistry", "GetAssociatedResource", {}).n("ServiceCatalogAppRegistryClient", "GetAssociatedResourceCommand").f(void 0, void 0).ser(se_GetAssociatedResourceCommand).de(de_GetAssociatedResourceCommand).build() {
|
|
1983
|
+
};
|
|
1984
|
+
__name(_GetAssociatedResourceCommand, "GetAssociatedResourceCommand");
|
|
1985
|
+
var GetAssociatedResourceCommand = _GetAssociatedResourceCommand;
|
|
1986
|
+
|
|
1987
|
+
// src/commands/GetAttributeGroupCommand.ts
|
|
1988
|
+
|
|
1989
|
+
|
|
1990
|
+
|
|
1991
|
+
|
|
1992
|
+
var _GetAttributeGroupCommand = class _GetAttributeGroupCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1993
|
+
...commonParams
|
|
1994
|
+
}).m(function(Command, cs, config, o) {
|
|
1995
|
+
return [
|
|
1996
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1997
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1998
|
+
];
|
|
1999
|
+
}).s("AWS242AppRegistry", "GetAttributeGroup", {}).n("ServiceCatalogAppRegistryClient", "GetAttributeGroupCommand").f(void 0, void 0).ser(se_GetAttributeGroupCommand).de(de_GetAttributeGroupCommand).build() {
|
|
2000
|
+
};
|
|
2001
|
+
__name(_GetAttributeGroupCommand, "GetAttributeGroupCommand");
|
|
2002
|
+
var GetAttributeGroupCommand = _GetAttributeGroupCommand;
|
|
2003
|
+
|
|
2004
|
+
// src/commands/GetConfigurationCommand.ts
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
|
|
2008
|
+
|
|
2009
|
+
var _GetConfigurationCommand = class _GetConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2010
|
+
...commonParams
|
|
2011
|
+
}).m(function(Command, cs, config, o) {
|
|
2012
|
+
return [
|
|
2013
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2014
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2015
|
+
];
|
|
2016
|
+
}).s("AWS242AppRegistry", "GetConfiguration", {}).n("ServiceCatalogAppRegistryClient", "GetConfigurationCommand").f(void 0, void 0).ser(se_GetConfigurationCommand).de(de_GetConfigurationCommand).build() {
|
|
2017
|
+
};
|
|
2018
|
+
__name(_GetConfigurationCommand, "GetConfigurationCommand");
|
|
2019
|
+
var GetConfigurationCommand = _GetConfigurationCommand;
|
|
2020
|
+
|
|
2021
|
+
// src/commands/ListApplicationsCommand.ts
|
|
2022
|
+
|
|
2023
|
+
|
|
2024
|
+
|
|
2025
|
+
|
|
2026
|
+
var _ListApplicationsCommand = class _ListApplicationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2027
|
+
...commonParams
|
|
2028
|
+
}).m(function(Command, cs, config, o) {
|
|
2029
|
+
return [
|
|
2030
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2031
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2032
|
+
];
|
|
2033
|
+
}).s("AWS242AppRegistry", "ListApplications", {}).n("ServiceCatalogAppRegistryClient", "ListApplicationsCommand").f(void 0, void 0).ser(se_ListApplicationsCommand).de(de_ListApplicationsCommand).build() {
|
|
2034
|
+
};
|
|
2035
|
+
__name(_ListApplicationsCommand, "ListApplicationsCommand");
|
|
2036
|
+
var ListApplicationsCommand = _ListApplicationsCommand;
|
|
2037
|
+
|
|
2038
|
+
// src/commands/ListAssociatedAttributeGroupsCommand.ts
|
|
2039
|
+
|
|
2040
|
+
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
var _ListAssociatedAttributeGroupsCommand = class _ListAssociatedAttributeGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2044
|
+
...commonParams
|
|
2045
|
+
}).m(function(Command, cs, config, o) {
|
|
2046
|
+
return [
|
|
2047
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2048
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2049
|
+
];
|
|
2050
|
+
}).s("AWS242AppRegistry", "ListAssociatedAttributeGroups", {}).n("ServiceCatalogAppRegistryClient", "ListAssociatedAttributeGroupsCommand").f(void 0, void 0).ser(se_ListAssociatedAttributeGroupsCommand).de(de_ListAssociatedAttributeGroupsCommand).build() {
|
|
2051
|
+
};
|
|
2052
|
+
__name(_ListAssociatedAttributeGroupsCommand, "ListAssociatedAttributeGroupsCommand");
|
|
2053
|
+
var ListAssociatedAttributeGroupsCommand = _ListAssociatedAttributeGroupsCommand;
|
|
2054
|
+
|
|
2055
|
+
// src/commands/ListAssociatedResourcesCommand.ts
|
|
2056
|
+
|
|
2057
|
+
|
|
2058
|
+
|
|
2059
|
+
|
|
2060
|
+
var _ListAssociatedResourcesCommand = class _ListAssociatedResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2061
|
+
...commonParams
|
|
2062
|
+
}).m(function(Command, cs, config, o) {
|
|
2063
|
+
return [
|
|
2064
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2065
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2066
|
+
];
|
|
2067
|
+
}).s("AWS242AppRegistry", "ListAssociatedResources", {}).n("ServiceCatalogAppRegistryClient", "ListAssociatedResourcesCommand").f(void 0, void 0).ser(se_ListAssociatedResourcesCommand).de(de_ListAssociatedResourcesCommand).build() {
|
|
2068
|
+
};
|
|
2069
|
+
__name(_ListAssociatedResourcesCommand, "ListAssociatedResourcesCommand");
|
|
2070
|
+
var ListAssociatedResourcesCommand = _ListAssociatedResourcesCommand;
|
|
2071
|
+
|
|
2072
|
+
// src/commands/ListAttributeGroupsCommand.ts
|
|
2073
|
+
|
|
2074
|
+
|
|
2075
|
+
|
|
2076
|
+
|
|
2077
|
+
var _ListAttributeGroupsCommand = class _ListAttributeGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2078
|
+
...commonParams
|
|
2079
|
+
}).m(function(Command, cs, config, o) {
|
|
2080
|
+
return [
|
|
2081
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2082
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2083
|
+
];
|
|
2084
|
+
}).s("AWS242AppRegistry", "ListAttributeGroups", {}).n("ServiceCatalogAppRegistryClient", "ListAttributeGroupsCommand").f(void 0, void 0).ser(se_ListAttributeGroupsCommand).de(de_ListAttributeGroupsCommand).build() {
|
|
2085
|
+
};
|
|
2086
|
+
__name(_ListAttributeGroupsCommand, "ListAttributeGroupsCommand");
|
|
2087
|
+
var ListAttributeGroupsCommand = _ListAttributeGroupsCommand;
|
|
2088
|
+
|
|
2089
|
+
// src/commands/ListAttributeGroupsForApplicationCommand.ts
|
|
2090
|
+
|
|
2091
|
+
|
|
2092
|
+
|
|
2093
|
+
|
|
2094
|
+
var _ListAttributeGroupsForApplicationCommand = class _ListAttributeGroupsForApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2095
|
+
...commonParams
|
|
2096
|
+
}).m(function(Command, cs, config, o) {
|
|
2097
|
+
return [
|
|
2098
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2099
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2100
|
+
];
|
|
2101
|
+
}).s("AWS242AppRegistry", "ListAttributeGroupsForApplication", {}).n("ServiceCatalogAppRegistryClient", "ListAttributeGroupsForApplicationCommand").f(void 0, void 0).ser(se_ListAttributeGroupsForApplicationCommand).de(de_ListAttributeGroupsForApplicationCommand).build() {
|
|
2102
|
+
};
|
|
2103
|
+
__name(_ListAttributeGroupsForApplicationCommand, "ListAttributeGroupsForApplicationCommand");
|
|
2104
|
+
var ListAttributeGroupsForApplicationCommand = _ListAttributeGroupsForApplicationCommand;
|
|
2105
|
+
|
|
2106
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
|
|
2110
|
+
|
|
2111
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2112
|
+
...commonParams
|
|
2113
|
+
}).m(function(Command, cs, config, o) {
|
|
2114
|
+
return [
|
|
2115
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2116
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2117
|
+
];
|
|
2118
|
+
}).s("AWS242AppRegistry", "ListTagsForResource", {}).n("ServiceCatalogAppRegistryClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
2119
|
+
};
|
|
2120
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
2121
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
2122
|
+
|
|
2123
|
+
// src/commands/PutConfigurationCommand.ts
|
|
2124
|
+
|
|
2125
|
+
|
|
2126
|
+
|
|
2127
|
+
|
|
2128
|
+
var _PutConfigurationCommand = class _PutConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2129
|
+
...commonParams
|
|
2130
|
+
}).m(function(Command, cs, config, o) {
|
|
2131
|
+
return [
|
|
2132
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2133
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2134
|
+
];
|
|
2135
|
+
}).s("AWS242AppRegistry", "PutConfiguration", {}).n("ServiceCatalogAppRegistryClient", "PutConfigurationCommand").f(void 0, void 0).ser(se_PutConfigurationCommand).de(de_PutConfigurationCommand).build() {
|
|
2136
|
+
};
|
|
2137
|
+
__name(_PutConfigurationCommand, "PutConfigurationCommand");
|
|
2138
|
+
var PutConfigurationCommand = _PutConfigurationCommand;
|
|
2139
|
+
|
|
2140
|
+
// src/commands/SyncResourceCommand.ts
|
|
2141
|
+
|
|
2142
|
+
|
|
2143
|
+
|
|
2144
|
+
|
|
2145
|
+
var _SyncResourceCommand = class _SyncResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2146
|
+
...commonParams
|
|
2147
|
+
}).m(function(Command, cs, config, o) {
|
|
2148
|
+
return [
|
|
2149
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2150
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2151
|
+
];
|
|
2152
|
+
}).s("AWS242AppRegistry", "SyncResource", {}).n("ServiceCatalogAppRegistryClient", "SyncResourceCommand").f(void 0, void 0).ser(se_SyncResourceCommand).de(de_SyncResourceCommand).build() {
|
|
2153
|
+
};
|
|
2154
|
+
__name(_SyncResourceCommand, "SyncResourceCommand");
|
|
2155
|
+
var SyncResourceCommand = _SyncResourceCommand;
|
|
2156
|
+
|
|
2157
|
+
// src/commands/TagResourceCommand.ts
|
|
2158
|
+
|
|
2159
|
+
|
|
2160
|
+
|
|
2161
|
+
|
|
2162
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2163
|
+
...commonParams
|
|
2164
|
+
}).m(function(Command, cs, config, o) {
|
|
2165
|
+
return [
|
|
2166
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2167
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2168
|
+
];
|
|
2169
|
+
}).s("AWS242AppRegistry", "TagResource", {}).n("ServiceCatalogAppRegistryClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
2170
|
+
};
|
|
2171
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
2172
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
2173
|
+
|
|
2174
|
+
// src/commands/UntagResourceCommand.ts
|
|
2175
|
+
|
|
2176
|
+
|
|
2177
|
+
|
|
2178
|
+
|
|
2179
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2180
|
+
...commonParams
|
|
2181
|
+
}).m(function(Command, cs, config, o) {
|
|
2182
|
+
return [
|
|
2183
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2184
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2185
|
+
];
|
|
2186
|
+
}).s("AWS242AppRegistry", "UntagResource", {}).n("ServiceCatalogAppRegistryClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
2187
|
+
};
|
|
2188
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
2189
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
2190
|
+
|
|
2191
|
+
// src/commands/UpdateApplicationCommand.ts
|
|
2192
|
+
|
|
2193
|
+
|
|
2194
|
+
|
|
2195
|
+
|
|
2196
|
+
var _UpdateApplicationCommand = class _UpdateApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2197
|
+
...commonParams
|
|
2198
|
+
}).m(function(Command, cs, config, o) {
|
|
2199
|
+
return [
|
|
2200
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2201
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2202
|
+
];
|
|
2203
|
+
}).s("AWS242AppRegistry", "UpdateApplication", {}).n("ServiceCatalogAppRegistryClient", "UpdateApplicationCommand").f(void 0, void 0).ser(se_UpdateApplicationCommand).de(de_UpdateApplicationCommand).build() {
|
|
2204
|
+
};
|
|
2205
|
+
__name(_UpdateApplicationCommand, "UpdateApplicationCommand");
|
|
2206
|
+
var UpdateApplicationCommand = _UpdateApplicationCommand;
|
|
2207
|
+
|
|
2208
|
+
// src/commands/UpdateAttributeGroupCommand.ts
|
|
2209
|
+
|
|
2210
|
+
|
|
2211
|
+
|
|
2212
|
+
|
|
2213
|
+
var _UpdateAttributeGroupCommand = class _UpdateAttributeGroupCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2214
|
+
...commonParams
|
|
2215
|
+
}).m(function(Command, cs, config, o) {
|
|
2216
|
+
return [
|
|
2217
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2218
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2219
|
+
];
|
|
2220
|
+
}).s("AWS242AppRegistry", "UpdateAttributeGroup", {}).n("ServiceCatalogAppRegistryClient", "UpdateAttributeGroupCommand").f(void 0, void 0).ser(se_UpdateAttributeGroupCommand).de(de_UpdateAttributeGroupCommand).build() {
|
|
2221
|
+
};
|
|
2222
|
+
__name(_UpdateAttributeGroupCommand, "UpdateAttributeGroupCommand");
|
|
2223
|
+
var UpdateAttributeGroupCommand = _UpdateAttributeGroupCommand;
|
|
2224
|
+
|
|
2225
|
+
// src/ServiceCatalogAppRegistry.ts
|
|
2226
|
+
var commands = {
|
|
2227
|
+
AssociateAttributeGroupCommand,
|
|
2228
|
+
AssociateResourceCommand,
|
|
2229
|
+
CreateApplicationCommand,
|
|
2230
|
+
CreateAttributeGroupCommand,
|
|
2231
|
+
DeleteApplicationCommand,
|
|
2232
|
+
DeleteAttributeGroupCommand,
|
|
2233
|
+
DisassociateAttributeGroupCommand,
|
|
2234
|
+
DisassociateResourceCommand,
|
|
2235
|
+
GetApplicationCommand,
|
|
2236
|
+
GetAssociatedResourceCommand,
|
|
2237
|
+
GetAttributeGroupCommand,
|
|
2238
|
+
GetConfigurationCommand,
|
|
2239
|
+
ListApplicationsCommand,
|
|
2240
|
+
ListAssociatedAttributeGroupsCommand,
|
|
2241
|
+
ListAssociatedResourcesCommand,
|
|
2242
|
+
ListAttributeGroupsCommand,
|
|
2243
|
+
ListAttributeGroupsForApplicationCommand,
|
|
2244
|
+
ListTagsForResourceCommand,
|
|
2245
|
+
PutConfigurationCommand,
|
|
2246
|
+
SyncResourceCommand,
|
|
2247
|
+
TagResourceCommand,
|
|
2248
|
+
UntagResourceCommand,
|
|
2249
|
+
UpdateApplicationCommand,
|
|
2250
|
+
UpdateAttributeGroupCommand
|
|
2251
|
+
};
|
|
2252
|
+
var _ServiceCatalogAppRegistry = class _ServiceCatalogAppRegistry extends ServiceCatalogAppRegistryClient {
|
|
2253
|
+
};
|
|
2254
|
+
__name(_ServiceCatalogAppRegistry, "ServiceCatalogAppRegistry");
|
|
2255
|
+
var ServiceCatalogAppRegistry = _ServiceCatalogAppRegistry;
|
|
2256
|
+
(0, import_smithy_client.createAggregatedClient)(commands, ServiceCatalogAppRegistry);
|
|
2257
|
+
|
|
2258
|
+
// src/pagination/ListApplicationsPaginator.ts
|
|
2259
|
+
|
|
2260
|
+
var paginateListApplications = (0, import_core.createPaginator)(ServiceCatalogAppRegistryClient, ListApplicationsCommand, "nextToken", "nextToken", "maxResults");
|
|
2261
|
+
|
|
2262
|
+
// src/pagination/ListAssociatedAttributeGroupsPaginator.ts
|
|
2263
|
+
|
|
2264
|
+
var paginateListAssociatedAttributeGroups = (0, import_core.createPaginator)(ServiceCatalogAppRegistryClient, ListAssociatedAttributeGroupsCommand, "nextToken", "nextToken", "maxResults");
|
|
2265
|
+
|
|
2266
|
+
// src/pagination/ListAssociatedResourcesPaginator.ts
|
|
2267
|
+
|
|
2268
|
+
var paginateListAssociatedResources = (0, import_core.createPaginator)(ServiceCatalogAppRegistryClient, ListAssociatedResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
2269
|
+
|
|
2270
|
+
// src/pagination/ListAttributeGroupsForApplicationPaginator.ts
|
|
2271
|
+
|
|
2272
|
+
var paginateListAttributeGroupsForApplication = (0, import_core.createPaginator)(ServiceCatalogAppRegistryClient, ListAttributeGroupsForApplicationCommand, "nextToken", "nextToken", "maxResults");
|
|
2273
|
+
|
|
2274
|
+
// src/pagination/ListAttributeGroupsPaginator.ts
|
|
2275
|
+
|
|
2276
|
+
var paginateListAttributeGroups = (0, import_core.createPaginator)(ServiceCatalogAppRegistryClient, ListAttributeGroupsCommand, "nextToken", "nextToken", "maxResults");
|
|
2277
|
+
|
|
2278
|
+
// src/index.ts
|
|
2279
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
2280
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2281
|
+
|
|
2282
|
+
0 && (module.exports = {
|
|
2283
|
+
ApplicationTagStatus,
|
|
2284
|
+
AssociateAttributeGroupCommand,
|
|
2285
|
+
AssociateResourceCommand,
|
|
2286
|
+
AssociationOption,
|
|
2287
|
+
ConflictException,
|
|
2288
|
+
CreateApplicationCommand,
|
|
2289
|
+
CreateAttributeGroupCommand,
|
|
2290
|
+
DeleteApplicationCommand,
|
|
2291
|
+
DeleteAttributeGroupCommand,
|
|
2292
|
+
DisassociateAttributeGroupCommand,
|
|
2293
|
+
DisassociateResourceCommand,
|
|
2294
|
+
GetApplicationCommand,
|
|
2295
|
+
GetAssociatedResourceCommand,
|
|
2296
|
+
GetAttributeGroupCommand,
|
|
2297
|
+
GetConfigurationCommand,
|
|
2298
|
+
InternalServerException,
|
|
2299
|
+
ListApplicationsCommand,
|
|
2300
|
+
ListAssociatedAttributeGroupsCommand,
|
|
2301
|
+
ListAssociatedResourcesCommand,
|
|
2302
|
+
ListAttributeGroupsCommand,
|
|
2303
|
+
ListAttributeGroupsForApplicationCommand,
|
|
2304
|
+
ListTagsForResourceCommand,
|
|
2305
|
+
PutConfigurationCommand,
|
|
2306
|
+
ResourceGroupState,
|
|
2307
|
+
ResourceItemStatus,
|
|
2308
|
+
ResourceNotFoundException,
|
|
2309
|
+
ResourceType,
|
|
2310
|
+
ServiceCatalogAppRegistry,
|
|
2311
|
+
ServiceCatalogAppRegistryClient,
|
|
2312
|
+
ServiceCatalogAppRegistryServiceException,
|
|
2313
|
+
ServiceQuotaExceededException,
|
|
2314
|
+
SyncAction,
|
|
2315
|
+
SyncResourceCommand,
|
|
2316
|
+
TagResourceCommand,
|
|
2317
|
+
ThrottlingException,
|
|
2318
|
+
UntagResourceCommand,
|
|
2319
|
+
UpdateApplicationCommand,
|
|
2320
|
+
UpdateAttributeGroupCommand,
|
|
2321
|
+
ValidationException,
|
|
2322
|
+
__Client,
|
|
2323
|
+
paginateListApplications,
|
|
2324
|
+
paginateListAssociatedAttributeGroups,
|
|
2325
|
+
paginateListAssociatedResources,
|
|
2326
|
+
paginateListAttributeGroups,
|
|
2327
|
+
paginateListAttributeGroupsForApplication
|
|
2328
|
+
});
|
|
2329
|
+
|