@aws-sdk/client-service-catalog-appregistry 3.211.0 → 3.213.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 +30 -0
- package/dist-cjs/commands/GetConfigurationCommand.js +46 -0
- package/dist-cjs/commands/PutConfigurationCommand.js +46 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +23 -2
- package/dist-cjs/protocols/Aws_restJson1.js +151 -9
- package/dist-es/ServiceCatalogAppRegistry.js +30 -0
- package/dist-es/commands/GetConfigurationCommand.js +42 -0
- package/dist-es/commands/PutConfigurationCommand.js +42 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +16 -0
- package/dist-es/protocols/Aws_restJson1.js +146 -8
- package/dist-types/ServiceCatalogAppRegistry.d.ts +41 -1
- package/dist-types/ServiceCatalogAppRegistryClient.d.ts +4 -2
- package/dist-types/commands/GetConfigurationCommand.d.ts +40 -0
- package/dist-types/commands/ListAssociatedResourcesCommand.d.ts +21 -1
- package/dist-types/commands/PutConfigurationCommand.d.ts +40 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +130 -7
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/ServiceCatalogAppRegistry.d.ts +34 -0
- package/dist-types/ts3.4/ServiceCatalogAppRegistryClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/GetConfigurationCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/PutConfigurationCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +33 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +28 -28
|
@@ -12,12 +12,14 @@ const DisassociateResourceCommand_1 = require("./commands/DisassociateResourceCo
|
|
|
12
12
|
const GetApplicationCommand_1 = require("./commands/GetApplicationCommand");
|
|
13
13
|
const GetAssociatedResourceCommand_1 = require("./commands/GetAssociatedResourceCommand");
|
|
14
14
|
const GetAttributeGroupCommand_1 = require("./commands/GetAttributeGroupCommand");
|
|
15
|
+
const GetConfigurationCommand_1 = require("./commands/GetConfigurationCommand");
|
|
15
16
|
const ListApplicationsCommand_1 = require("./commands/ListApplicationsCommand");
|
|
16
17
|
const ListAssociatedAttributeGroupsCommand_1 = require("./commands/ListAssociatedAttributeGroupsCommand");
|
|
17
18
|
const ListAssociatedResourcesCommand_1 = require("./commands/ListAssociatedResourcesCommand");
|
|
18
19
|
const ListAttributeGroupsCommand_1 = require("./commands/ListAttributeGroupsCommand");
|
|
19
20
|
const ListAttributeGroupsForApplicationCommand_1 = require("./commands/ListAttributeGroupsForApplicationCommand");
|
|
20
21
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
22
|
+
const PutConfigurationCommand_1 = require("./commands/PutConfigurationCommand");
|
|
21
23
|
const SyncResourceCommand_1 = require("./commands/SyncResourceCommand");
|
|
22
24
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
23
25
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
@@ -179,6 +181,20 @@ class ServiceCatalogAppRegistry extends ServiceCatalogAppRegistryClient_1.Servic
|
|
|
179
181
|
return this.send(command, optionsOrCb);
|
|
180
182
|
}
|
|
181
183
|
}
|
|
184
|
+
getConfiguration(args, optionsOrCb, cb) {
|
|
185
|
+
const command = new GetConfigurationCommand_1.GetConfigurationCommand(args);
|
|
186
|
+
if (typeof optionsOrCb === "function") {
|
|
187
|
+
this.send(command, optionsOrCb);
|
|
188
|
+
}
|
|
189
|
+
else if (typeof cb === "function") {
|
|
190
|
+
if (typeof optionsOrCb !== "object")
|
|
191
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
192
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
return this.send(command, optionsOrCb);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
182
198
|
listApplications(args, optionsOrCb, cb) {
|
|
183
199
|
const command = new ListApplicationsCommand_1.ListApplicationsCommand(args);
|
|
184
200
|
if (typeof optionsOrCb === "function") {
|
|
@@ -263,6 +279,20 @@ class ServiceCatalogAppRegistry extends ServiceCatalogAppRegistryClient_1.Servic
|
|
|
263
279
|
return this.send(command, optionsOrCb);
|
|
264
280
|
}
|
|
265
281
|
}
|
|
282
|
+
putConfiguration(args, optionsOrCb, cb) {
|
|
283
|
+
const command = new PutConfigurationCommand_1.PutConfigurationCommand(args);
|
|
284
|
+
if (typeof optionsOrCb === "function") {
|
|
285
|
+
this.send(command, optionsOrCb);
|
|
286
|
+
}
|
|
287
|
+
else if (typeof cb === "function") {
|
|
288
|
+
if (typeof optionsOrCb !== "object")
|
|
289
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
290
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
return this.send(command, optionsOrCb);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
266
296
|
syncResource(args, optionsOrCb, cb) {
|
|
267
297
|
const command = new SyncResourceCommand_1.SyncResourceCommand(args);
|
|
268
298
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetConfigurationCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class GetConfigurationCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetConfigurationCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ServiceCatalogAppRegistryClient";
|
|
28
|
+
const commandName = "GetConfigurationCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (input) => input,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.GetConfigurationResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1GetConfigurationCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1GetConfigurationCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.GetConfigurationCommand = GetConfigurationCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutConfigurationCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class PutConfigurationCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutConfigurationCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ServiceCatalogAppRegistryClient";
|
|
28
|
+
const commandName = "PutConfigurationCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.PutConfigurationRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: (output) => output,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1PutConfigurationCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1PutConfigurationCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.PutConfigurationCommand = PutConfigurationCommand;
|
|
@@ -12,12 +12,14 @@ tslib_1.__exportStar(require("./DisassociateResourceCommand"), exports);
|
|
|
12
12
|
tslib_1.__exportStar(require("./GetApplicationCommand"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./GetAssociatedResourceCommand"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./GetAttributeGroupCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./GetConfigurationCommand"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./ListApplicationsCommand"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./ListAssociatedAttributeGroupsCommand"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./ListAssociatedResourcesCommand"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./ListAttributeGroupsCommand"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./ListAttributeGroupsForApplicationCommand"), exports);
|
|
20
21
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./PutConfigurationCommand"), exports);
|
|
21
23
|
tslib_1.__exportStar(require("./SyncResourceCommand"), exports);
|
|
22
24
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
23
25
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateAttributeGroupResponseFilterSensitiveLog = exports.UpdateAttributeGroupRequestFilterSensitiveLog = exports.UpdateApplicationResponseFilterSensitiveLog = exports.UpdateApplicationRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.SyncResourceResponseFilterSensitiveLog = exports.SyncResourceRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = void 0;
|
|
3
|
+
exports.ListAssociatedResourcesResponseFilterSensitiveLog = exports.ResourceInfoFilterSensitiveLog = exports.ResourceDetailsFilterSensitiveLog = exports.ListAssociatedResourcesRequestFilterSensitiveLog = exports.ListAssociatedAttributeGroupsResponseFilterSensitiveLog = exports.ListAssociatedAttributeGroupsRequestFilterSensitiveLog = exports.ListApplicationsResponseFilterSensitiveLog = exports.ListApplicationsRequestFilterSensitiveLog = exports.GetConfigurationResponseFilterSensitiveLog = exports.GetAttributeGroupResponseFilterSensitiveLog = exports.GetAttributeGroupRequestFilterSensitiveLog = exports.GetAssociatedResourceResponseFilterSensitiveLog = exports.ResourceFilterSensitiveLog = exports.ResourceIntegrationsFilterSensitiveLog = exports.GetAssociatedResourceRequestFilterSensitiveLog = exports.GetApplicationResponseFilterSensitiveLog = exports.IntegrationsFilterSensitiveLog = exports.ResourceGroupFilterSensitiveLog = exports.GetApplicationRequestFilterSensitiveLog = exports.DisassociateResourceResponseFilterSensitiveLog = exports.DisassociateResourceRequestFilterSensitiveLog = exports.DisassociateAttributeGroupResponseFilterSensitiveLog = exports.DisassociateAttributeGroupRequestFilterSensitiveLog = exports.DeleteAttributeGroupResponseFilterSensitiveLog = exports.DeleteAttributeGroupRequestFilterSensitiveLog = exports.DeleteApplicationResponseFilterSensitiveLog = exports.DeleteApplicationRequestFilterSensitiveLog = exports.CreateAttributeGroupResponseFilterSensitiveLog = exports.CreateAttributeGroupRequestFilterSensitiveLog = exports.CreateApplicationResponseFilterSensitiveLog = exports.CreateApplicationRequestFilterSensitiveLog = exports.AttributeGroupSummaryFilterSensitiveLog = exports.AttributeGroupDetailsFilterSensitiveLog = exports.AttributeGroupFilterSensitiveLog = exports.AssociateResourceResponseFilterSensitiveLog = exports.AssociateResourceRequestFilterSensitiveLog = exports.AssociateAttributeGroupResponseFilterSensitiveLog = exports.AssociateAttributeGroupRequestFilterSensitiveLog = exports.AppRegistryConfigurationFilterSensitiveLog = exports.TagQueryConfigurationFilterSensitiveLog = exports.ApplicationSummaryFilterSensitiveLog = exports.ApplicationFilterSensitiveLog = exports.SyncAction = exports.ResourceGroupState = exports.ResourceType = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = void 0;
|
|
4
|
+
exports.UpdateAttributeGroupResponseFilterSensitiveLog = exports.UpdateAttributeGroupRequestFilterSensitiveLog = exports.UpdateApplicationResponseFilterSensitiveLog = exports.UpdateApplicationRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.SyncResourceResponseFilterSensitiveLog = exports.SyncResourceRequestFilterSensitiveLog = exports.PutConfigurationRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListAttributeGroupsForApplicationResponseFilterSensitiveLog = exports.ListAttributeGroupsForApplicationRequestFilterSensitiveLog = exports.ListAttributeGroupsResponseFilterSensitiveLog = exports.ListAttributeGroupsRequestFilterSensitiveLog = void 0;
|
|
5
5
|
const ServiceCatalogAppRegistryServiceException_1 = require("./ServiceCatalogAppRegistryServiceException");
|
|
6
6
|
class ConflictException extends ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException {
|
|
7
7
|
constructor(opts) {
|
|
@@ -71,6 +71,7 @@ exports.ValidationException = ValidationException;
|
|
|
71
71
|
var ResourceType;
|
|
72
72
|
(function (ResourceType) {
|
|
73
73
|
ResourceType["CFN_STACK"] = "CFN_STACK";
|
|
74
|
+
ResourceType["RESOURCE_TAG_VALUE"] = "RESOURCE_TAG_VALUE";
|
|
74
75
|
})(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
|
|
75
76
|
var ResourceGroupState;
|
|
76
77
|
(function (ResourceGroupState) {
|
|
@@ -94,6 +95,14 @@ const ApplicationSummaryFilterSensitiveLog = (obj) => ({
|
|
|
94
95
|
...obj,
|
|
95
96
|
});
|
|
96
97
|
exports.ApplicationSummaryFilterSensitiveLog = ApplicationSummaryFilterSensitiveLog;
|
|
98
|
+
const TagQueryConfigurationFilterSensitiveLog = (obj) => ({
|
|
99
|
+
...obj,
|
|
100
|
+
});
|
|
101
|
+
exports.TagQueryConfigurationFilterSensitiveLog = TagQueryConfigurationFilterSensitiveLog;
|
|
102
|
+
const AppRegistryConfigurationFilterSensitiveLog = (obj) => ({
|
|
103
|
+
...obj,
|
|
104
|
+
});
|
|
105
|
+
exports.AppRegistryConfigurationFilterSensitiveLog = AppRegistryConfigurationFilterSensitiveLog;
|
|
97
106
|
const AssociateAttributeGroupRequestFilterSensitiveLog = (obj) => ({
|
|
98
107
|
...obj,
|
|
99
108
|
});
|
|
@@ -210,6 +219,10 @@ const GetAttributeGroupResponseFilterSensitiveLog = (obj) => ({
|
|
|
210
219
|
...obj,
|
|
211
220
|
});
|
|
212
221
|
exports.GetAttributeGroupResponseFilterSensitiveLog = GetAttributeGroupResponseFilterSensitiveLog;
|
|
222
|
+
const GetConfigurationResponseFilterSensitiveLog = (obj) => ({
|
|
223
|
+
...obj,
|
|
224
|
+
});
|
|
225
|
+
exports.GetConfigurationResponseFilterSensitiveLog = GetConfigurationResponseFilterSensitiveLog;
|
|
213
226
|
const ListApplicationsRequestFilterSensitiveLog = (obj) => ({
|
|
214
227
|
...obj,
|
|
215
228
|
});
|
|
@@ -230,6 +243,10 @@ const ListAssociatedResourcesRequestFilterSensitiveLog = (obj) => ({
|
|
|
230
243
|
...obj,
|
|
231
244
|
});
|
|
232
245
|
exports.ListAssociatedResourcesRequestFilterSensitiveLog = ListAssociatedResourcesRequestFilterSensitiveLog;
|
|
246
|
+
const ResourceDetailsFilterSensitiveLog = (obj) => ({
|
|
247
|
+
...obj,
|
|
248
|
+
});
|
|
249
|
+
exports.ResourceDetailsFilterSensitiveLog = ResourceDetailsFilterSensitiveLog;
|
|
233
250
|
const ResourceInfoFilterSensitiveLog = (obj) => ({
|
|
234
251
|
...obj,
|
|
235
252
|
});
|
|
@@ -262,6 +279,10 @@ const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
|
|
|
262
279
|
...obj,
|
|
263
280
|
});
|
|
264
281
|
exports.ListTagsForResourceResponseFilterSensitiveLog = ListTagsForResourceResponseFilterSensitiveLog;
|
|
282
|
+
const PutConfigurationRequestFilterSensitiveLog = (obj) => ({
|
|
283
|
+
...obj,
|
|
284
|
+
});
|
|
285
|
+
exports.PutConfigurationRequestFilterSensitiveLog = PutConfigurationRequestFilterSensitiveLog;
|
|
265
286
|
const SyncResourceRequestFilterSensitiveLog = (obj) => ({
|
|
266
287
|
...obj,
|
|
267
288
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1UpdateAttributeGroupCommand = exports.deserializeAws_restJson1UpdateApplicationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SyncResourceCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListAttributeGroupsForApplicationCommand = exports.deserializeAws_restJson1ListAttributeGroupsCommand = exports.deserializeAws_restJson1ListAssociatedResourcesCommand = exports.deserializeAws_restJson1ListAssociatedAttributeGroupsCommand = exports.deserializeAws_restJson1ListApplicationsCommand = exports.deserializeAws_restJson1GetAttributeGroupCommand = exports.deserializeAws_restJson1GetAssociatedResourceCommand = exports.deserializeAws_restJson1GetApplicationCommand = exports.deserializeAws_restJson1DisassociateResourceCommand = exports.deserializeAws_restJson1DisassociateAttributeGroupCommand = exports.deserializeAws_restJson1DeleteAttributeGroupCommand = exports.deserializeAws_restJson1DeleteApplicationCommand = exports.deserializeAws_restJson1CreateAttributeGroupCommand = exports.deserializeAws_restJson1CreateApplicationCommand = exports.deserializeAws_restJson1AssociateResourceCommand = exports.deserializeAws_restJson1AssociateAttributeGroupCommand = exports.serializeAws_restJson1UpdateAttributeGroupCommand = exports.serializeAws_restJson1UpdateApplicationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SyncResourceCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListAttributeGroupsForApplicationCommand = exports.serializeAws_restJson1ListAttributeGroupsCommand = exports.serializeAws_restJson1ListAssociatedResourcesCommand = exports.serializeAws_restJson1ListAssociatedAttributeGroupsCommand = exports.serializeAws_restJson1ListApplicationsCommand = exports.serializeAws_restJson1GetAttributeGroupCommand = exports.serializeAws_restJson1GetAssociatedResourceCommand = exports.serializeAws_restJson1GetApplicationCommand = exports.serializeAws_restJson1DisassociateResourceCommand = exports.serializeAws_restJson1DisassociateAttributeGroupCommand = exports.serializeAws_restJson1DeleteAttributeGroupCommand = exports.serializeAws_restJson1DeleteApplicationCommand = exports.serializeAws_restJson1CreateAttributeGroupCommand = exports.serializeAws_restJson1CreateApplicationCommand = exports.serializeAws_restJson1AssociateResourceCommand = exports.serializeAws_restJson1AssociateAttributeGroupCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1UpdateAttributeGroupCommand = exports.deserializeAws_restJson1UpdateApplicationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SyncResourceCommand = exports.deserializeAws_restJson1PutConfigurationCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListAttributeGroupsForApplicationCommand = exports.deserializeAws_restJson1ListAttributeGroupsCommand = exports.deserializeAws_restJson1ListAssociatedResourcesCommand = exports.deserializeAws_restJson1ListAssociatedAttributeGroupsCommand = exports.deserializeAws_restJson1ListApplicationsCommand = exports.deserializeAws_restJson1GetConfigurationCommand = exports.deserializeAws_restJson1GetAttributeGroupCommand = exports.deserializeAws_restJson1GetAssociatedResourceCommand = exports.deserializeAws_restJson1GetApplicationCommand = exports.deserializeAws_restJson1DisassociateResourceCommand = exports.deserializeAws_restJson1DisassociateAttributeGroupCommand = exports.deserializeAws_restJson1DeleteAttributeGroupCommand = exports.deserializeAws_restJson1DeleteApplicationCommand = exports.deserializeAws_restJson1CreateAttributeGroupCommand = exports.deserializeAws_restJson1CreateApplicationCommand = exports.deserializeAws_restJson1AssociateResourceCommand = exports.deserializeAws_restJson1AssociateAttributeGroupCommand = exports.serializeAws_restJson1UpdateAttributeGroupCommand = exports.serializeAws_restJson1UpdateApplicationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SyncResourceCommand = exports.serializeAws_restJson1PutConfigurationCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListAttributeGroupsForApplicationCommand = exports.serializeAws_restJson1ListAttributeGroupsCommand = exports.serializeAws_restJson1ListAssociatedResourcesCommand = exports.serializeAws_restJson1ListAssociatedAttributeGroupsCommand = exports.serializeAws_restJson1ListApplicationsCommand = exports.serializeAws_restJson1GetConfigurationCommand = exports.serializeAws_restJson1GetAttributeGroupCommand = exports.serializeAws_restJson1GetAssociatedResourceCommand = exports.serializeAws_restJson1GetApplicationCommand = exports.serializeAws_restJson1DisassociateResourceCommand = exports.serializeAws_restJson1DisassociateAttributeGroupCommand = exports.serializeAws_restJson1DeleteAttributeGroupCommand = exports.serializeAws_restJson1DeleteApplicationCommand = exports.serializeAws_restJson1CreateAttributeGroupCommand = exports.serializeAws_restJson1CreateApplicationCommand = exports.serializeAws_restJson1AssociateResourceCommand = exports.serializeAws_restJson1AssociateAttributeGroupCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
@@ -221,6 +221,25 @@ const serializeAws_restJson1GetAttributeGroupCommand = async (input, context) =>
|
|
|
221
221
|
});
|
|
222
222
|
};
|
|
223
223
|
exports.serializeAws_restJson1GetAttributeGroupCommand = serializeAws_restJson1GetAttributeGroupCommand;
|
|
224
|
+
const serializeAws_restJson1GetConfigurationCommand = async (input, context) => {
|
|
225
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
226
|
+
const headers = {
|
|
227
|
+
"content-type": "application/json",
|
|
228
|
+
};
|
|
229
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration";
|
|
230
|
+
let body;
|
|
231
|
+
body = "";
|
|
232
|
+
return new protocol_http_1.HttpRequest({
|
|
233
|
+
protocol,
|
|
234
|
+
hostname,
|
|
235
|
+
port,
|
|
236
|
+
method: "GET",
|
|
237
|
+
headers,
|
|
238
|
+
path: resolvedPath,
|
|
239
|
+
body,
|
|
240
|
+
});
|
|
241
|
+
};
|
|
242
|
+
exports.serializeAws_restJson1GetConfigurationCommand = serializeAws_restJson1GetConfigurationCommand;
|
|
224
243
|
const serializeAws_restJson1ListApplicationsCommand = async (input, context) => {
|
|
225
244
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
226
245
|
const headers = {};
|
|
@@ -348,6 +367,29 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
348
367
|
});
|
|
349
368
|
};
|
|
350
369
|
exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
|
|
370
|
+
const serializeAws_restJson1PutConfigurationCommand = async (input, context) => {
|
|
371
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
372
|
+
const headers = {
|
|
373
|
+
"content-type": "application/json",
|
|
374
|
+
};
|
|
375
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration";
|
|
376
|
+
let body;
|
|
377
|
+
body = JSON.stringify({
|
|
378
|
+
...(input.configuration != null && {
|
|
379
|
+
configuration: serializeAws_restJson1AppRegistryConfiguration(input.configuration, context),
|
|
380
|
+
}),
|
|
381
|
+
});
|
|
382
|
+
return new protocol_http_1.HttpRequest({
|
|
383
|
+
protocol,
|
|
384
|
+
hostname,
|
|
385
|
+
port,
|
|
386
|
+
method: "PUT",
|
|
387
|
+
headers,
|
|
388
|
+
path: resolvedPath,
|
|
389
|
+
body,
|
|
390
|
+
});
|
|
391
|
+
};
|
|
392
|
+
exports.serializeAws_restJson1PutConfigurationCommand = serializeAws_restJson1PutConfigurationCommand;
|
|
351
393
|
const serializeAws_restJson1SyncResourceCommand = async (input, context) => {
|
|
352
394
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
353
395
|
const headers = {};
|
|
@@ -977,6 +1019,40 @@ const deserializeAws_restJson1GetAttributeGroupCommandError = async (output, con
|
|
|
977
1019
|
});
|
|
978
1020
|
}
|
|
979
1021
|
};
|
|
1022
|
+
const deserializeAws_restJson1GetConfigurationCommand = async (output, context) => {
|
|
1023
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1024
|
+
return deserializeAws_restJson1GetConfigurationCommandError(output, context);
|
|
1025
|
+
}
|
|
1026
|
+
const contents = map({
|
|
1027
|
+
$metadata: deserializeMetadata(output),
|
|
1028
|
+
});
|
|
1029
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1030
|
+
if (data.configuration != null) {
|
|
1031
|
+
contents.configuration = deserializeAws_restJson1AppRegistryConfiguration(data.configuration, context);
|
|
1032
|
+
}
|
|
1033
|
+
return contents;
|
|
1034
|
+
};
|
|
1035
|
+
exports.deserializeAws_restJson1GetConfigurationCommand = deserializeAws_restJson1GetConfigurationCommand;
|
|
1036
|
+
const deserializeAws_restJson1GetConfigurationCommandError = async (output, context) => {
|
|
1037
|
+
const parsedOutput = {
|
|
1038
|
+
...output,
|
|
1039
|
+
body: await parseErrorBody(output.body, context),
|
|
1040
|
+
};
|
|
1041
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1042
|
+
switch (errorCode) {
|
|
1043
|
+
case "InternalServerException":
|
|
1044
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1045
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1046
|
+
default:
|
|
1047
|
+
const parsedBody = parsedOutput.body;
|
|
1048
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1049
|
+
output,
|
|
1050
|
+
parsedBody,
|
|
1051
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
1052
|
+
errorCode,
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1055
|
+
};
|
|
980
1056
|
const deserializeAws_restJson1ListApplicationsCommand = async (output, context) => {
|
|
981
1057
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
982
1058
|
return deserializeAws_restJson1ListApplicationsCommandError(output, context);
|
|
@@ -1226,6 +1302,43 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1226
1302
|
});
|
|
1227
1303
|
}
|
|
1228
1304
|
};
|
|
1305
|
+
const deserializeAws_restJson1PutConfigurationCommand = async (output, context) => {
|
|
1306
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1307
|
+
return deserializeAws_restJson1PutConfigurationCommandError(output, context);
|
|
1308
|
+
}
|
|
1309
|
+
const contents = map({
|
|
1310
|
+
$metadata: deserializeMetadata(output),
|
|
1311
|
+
});
|
|
1312
|
+
await collectBody(output.body, context);
|
|
1313
|
+
return contents;
|
|
1314
|
+
};
|
|
1315
|
+
exports.deserializeAws_restJson1PutConfigurationCommand = deserializeAws_restJson1PutConfigurationCommand;
|
|
1316
|
+
const deserializeAws_restJson1PutConfigurationCommandError = async (output, context) => {
|
|
1317
|
+
const parsedOutput = {
|
|
1318
|
+
...output,
|
|
1319
|
+
body: await parseErrorBody(output.body, context),
|
|
1320
|
+
};
|
|
1321
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1322
|
+
switch (errorCode) {
|
|
1323
|
+
case "ConflictException":
|
|
1324
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1325
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1326
|
+
case "InternalServerException":
|
|
1327
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1328
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1329
|
+
case "ValidationException":
|
|
1330
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1331
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1332
|
+
default:
|
|
1333
|
+
const parsedBody = parsedOutput.body;
|
|
1334
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1335
|
+
output,
|
|
1336
|
+
parsedBody,
|
|
1337
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
1338
|
+
errorCode,
|
|
1339
|
+
});
|
|
1340
|
+
}
|
|
1341
|
+
};
|
|
1229
1342
|
const deserializeAws_restJson1SyncResourceCommand = async (output, context) => {
|
|
1230
1343
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1231
1344
|
return deserializeAws_restJson1SyncResourceCommandError(output, context);
|
|
@@ -1493,15 +1606,25 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1493
1606
|
});
|
|
1494
1607
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1495
1608
|
};
|
|
1609
|
+
const serializeAws_restJson1AppRegistryConfiguration = (input, context) => {
|
|
1610
|
+
return {
|
|
1611
|
+
...(input.tagQueryConfiguration != null && {
|
|
1612
|
+
tagQueryConfiguration: serializeAws_restJson1TagQueryConfiguration(input.tagQueryConfiguration, context),
|
|
1613
|
+
}),
|
|
1614
|
+
};
|
|
1615
|
+
};
|
|
1616
|
+
const serializeAws_restJson1TagQueryConfiguration = (input, context) => {
|
|
1617
|
+
return {
|
|
1618
|
+
...(input.tagKey != null && { tagKey: input.tagKey }),
|
|
1619
|
+
};
|
|
1620
|
+
};
|
|
1496
1621
|
const serializeAws_restJson1Tags = (input, context) => {
|
|
1497
1622
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1498
1623
|
if (value === null) {
|
|
1499
1624
|
return acc;
|
|
1500
1625
|
}
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
[key]: value,
|
|
1504
|
-
};
|
|
1626
|
+
acc[key] = value;
|
|
1627
|
+
return acc;
|
|
1505
1628
|
}, {});
|
|
1506
1629
|
};
|
|
1507
1630
|
const deserializeAws_restJson1Application = (output, context) => {
|
|
@@ -1536,6 +1659,13 @@ const deserializeAws_restJson1ApplicationSummary = (output, context) => {
|
|
|
1536
1659
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1537
1660
|
};
|
|
1538
1661
|
};
|
|
1662
|
+
const deserializeAws_restJson1AppRegistryConfiguration = (output, context) => {
|
|
1663
|
+
return {
|
|
1664
|
+
tagQueryConfiguration: output.tagQueryConfiguration != null
|
|
1665
|
+
? deserializeAws_restJson1TagQueryConfiguration(output.tagQueryConfiguration, context)
|
|
1666
|
+
: undefined,
|
|
1667
|
+
};
|
|
1668
|
+
};
|
|
1539
1669
|
const deserializeAws_restJson1AttributeGroup = (output, context) => {
|
|
1540
1670
|
return {
|
|
1541
1671
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
@@ -1612,6 +1742,11 @@ const deserializeAws_restJson1Resource = (output, context) => {
|
|
|
1612
1742
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1613
1743
|
};
|
|
1614
1744
|
};
|
|
1745
|
+
const deserializeAws_restJson1ResourceDetails = (output, context) => {
|
|
1746
|
+
return {
|
|
1747
|
+
tagValue: (0, smithy_client_1.expectString)(output.tagValue),
|
|
1748
|
+
};
|
|
1749
|
+
};
|
|
1615
1750
|
const deserializeAws_restJson1ResourceGroup = (output, context) => {
|
|
1616
1751
|
return {
|
|
1617
1752
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
@@ -1623,6 +1758,10 @@ const deserializeAws_restJson1ResourceInfo = (output, context) => {
|
|
|
1623
1758
|
return {
|
|
1624
1759
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1625
1760
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1761
|
+
resourceDetails: output.resourceDetails != null
|
|
1762
|
+
? deserializeAws_restJson1ResourceDetails(output.resourceDetails, context)
|
|
1763
|
+
: undefined,
|
|
1764
|
+
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
1626
1765
|
};
|
|
1627
1766
|
};
|
|
1628
1767
|
const deserializeAws_restJson1ResourceIntegrations = (output, context) => {
|
|
@@ -1641,15 +1780,18 @@ const deserializeAws_restJson1Resources = (output, context) => {
|
|
|
1641
1780
|
});
|
|
1642
1781
|
return retVal;
|
|
1643
1782
|
};
|
|
1783
|
+
const deserializeAws_restJson1TagQueryConfiguration = (output, context) => {
|
|
1784
|
+
return {
|
|
1785
|
+
tagKey: (0, smithy_client_1.expectString)(output.tagKey),
|
|
1786
|
+
};
|
|
1787
|
+
};
|
|
1644
1788
|
const deserializeAws_restJson1Tags = (output, context) => {
|
|
1645
1789
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1646
1790
|
if (value === null) {
|
|
1647
1791
|
return acc;
|
|
1648
1792
|
}
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
[key]: (0, smithy_client_1.expectString)(value),
|
|
1652
|
-
};
|
|
1793
|
+
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1794
|
+
return acc;
|
|
1653
1795
|
}, {});
|
|
1654
1796
|
};
|
|
1655
1797
|
const deserializeMetadata = (output) => ({
|
|
@@ -9,12 +9,14 @@ import { DisassociateResourceCommand, } from "./commands/DisassociateResourceCom
|
|
|
9
9
|
import { GetApplicationCommand, } from "./commands/GetApplicationCommand";
|
|
10
10
|
import { GetAssociatedResourceCommand, } from "./commands/GetAssociatedResourceCommand";
|
|
11
11
|
import { GetAttributeGroupCommand, } from "./commands/GetAttributeGroupCommand";
|
|
12
|
+
import { GetConfigurationCommand, } from "./commands/GetConfigurationCommand";
|
|
12
13
|
import { ListApplicationsCommand, } from "./commands/ListApplicationsCommand";
|
|
13
14
|
import { ListAssociatedAttributeGroupsCommand, } from "./commands/ListAssociatedAttributeGroupsCommand";
|
|
14
15
|
import { ListAssociatedResourcesCommand, } from "./commands/ListAssociatedResourcesCommand";
|
|
15
16
|
import { ListAttributeGroupsCommand, } from "./commands/ListAttributeGroupsCommand";
|
|
16
17
|
import { ListAttributeGroupsForApplicationCommand, } from "./commands/ListAttributeGroupsForApplicationCommand";
|
|
17
18
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
19
|
+
import { PutConfigurationCommand, } from "./commands/PutConfigurationCommand";
|
|
18
20
|
import { SyncResourceCommand, } from "./commands/SyncResourceCommand";
|
|
19
21
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
20
22
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
@@ -176,6 +178,20 @@ export class ServiceCatalogAppRegistry extends ServiceCatalogAppRegistryClient {
|
|
|
176
178
|
return this.send(command, optionsOrCb);
|
|
177
179
|
}
|
|
178
180
|
}
|
|
181
|
+
getConfiguration(args, optionsOrCb, cb) {
|
|
182
|
+
const command = new GetConfigurationCommand(args);
|
|
183
|
+
if (typeof optionsOrCb === "function") {
|
|
184
|
+
this.send(command, optionsOrCb);
|
|
185
|
+
}
|
|
186
|
+
else if (typeof cb === "function") {
|
|
187
|
+
if (typeof optionsOrCb !== "object")
|
|
188
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
189
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
return this.send(command, optionsOrCb);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
179
195
|
listApplications(args, optionsOrCb, cb) {
|
|
180
196
|
const command = new ListApplicationsCommand(args);
|
|
181
197
|
if (typeof optionsOrCb === "function") {
|
|
@@ -260,6 +276,20 @@ export class ServiceCatalogAppRegistry extends ServiceCatalogAppRegistryClient {
|
|
|
260
276
|
return this.send(command, optionsOrCb);
|
|
261
277
|
}
|
|
262
278
|
}
|
|
279
|
+
putConfiguration(args, optionsOrCb, cb) {
|
|
280
|
+
const command = new PutConfigurationCommand(args);
|
|
281
|
+
if (typeof optionsOrCb === "function") {
|
|
282
|
+
this.send(command, optionsOrCb);
|
|
283
|
+
}
|
|
284
|
+
else if (typeof cb === "function") {
|
|
285
|
+
if (typeof optionsOrCb !== "object")
|
|
286
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
287
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
288
|
+
}
|
|
289
|
+
else {
|
|
290
|
+
return this.send(command, optionsOrCb);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
263
293
|
syncResource(args, optionsOrCb, cb) {
|
|
264
294
|
const command = new SyncResourceCommand(args);
|
|
265
295
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetConfigurationResponseFilterSensitiveLog } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetConfigurationCommand, serializeAws_restJson1GetConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class GetConfigurationCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetConfigurationCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ServiceCatalogAppRegistryClient";
|
|
25
|
+
const commandName = "GetConfigurationCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (input) => input,
|
|
31
|
+
outputFilterSensitiveLog: GetConfigurationResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1GetConfigurationCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1GetConfigurationCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { PutConfigurationRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1PutConfigurationCommand, serializeAws_restJson1PutConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class PutConfigurationCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, PutConfigurationCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ServiceCatalogAppRegistryClient";
|
|
25
|
+
const commandName = "PutConfigurationCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: PutConfigurationRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: (output) => output,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1PutConfigurationCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1PutConfigurationCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -9,12 +9,14 @@ export * from "./DisassociateResourceCommand";
|
|
|
9
9
|
export * from "./GetApplicationCommand";
|
|
10
10
|
export * from "./GetAssociatedResourceCommand";
|
|
11
11
|
export * from "./GetAttributeGroupCommand";
|
|
12
|
+
export * from "./GetConfigurationCommand";
|
|
12
13
|
export * from "./ListApplicationsCommand";
|
|
13
14
|
export * from "./ListAssociatedAttributeGroupsCommand";
|
|
14
15
|
export * from "./ListAssociatedResourcesCommand";
|
|
15
16
|
export * from "./ListAttributeGroupsCommand";
|
|
16
17
|
export * from "./ListAttributeGroupsForApplicationCommand";
|
|
17
18
|
export * from "./ListTagsForResourceCommand";
|
|
19
|
+
export * from "./PutConfigurationCommand";
|
|
18
20
|
export * from "./SyncResourceCommand";
|
|
19
21
|
export * from "./TagResourceCommand";
|
|
20
22
|
export * from "./UntagResourceCommand";
|