@aws-sdk/client-resource-groups 3.490.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/ResourceGroups.js +1 -47
- package/dist-cjs/ResourceGroupsClient.js +1 -43
- package/dist-cjs/commands/CreateGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteGroupCommand.js +1 -28
- package/dist-cjs/commands/GetAccountSettingsCommand.js +1 -28
- package/dist-cjs/commands/GetGroupCommand.js +1 -28
- package/dist-cjs/commands/GetGroupConfigurationCommand.js +1 -28
- package/dist-cjs/commands/GetGroupQueryCommand.js +1 -28
- package/dist-cjs/commands/GetTagsCommand.js +1 -28
- package/dist-cjs/commands/GroupResourcesCommand.js +1 -28
- package/dist-cjs/commands/ListGroupResourcesCommand.js +1 -28
- package/dist-cjs/commands/ListGroupsCommand.js +1 -28
- package/dist-cjs/commands/PutGroupConfigurationCommand.js +1 -28
- package/dist-cjs/commands/SearchResourcesCommand.js +1 -28
- package/dist-cjs/commands/TagCommand.js +1 -28
- package/dist-cjs/commands/UngroupResourcesCommand.js +1 -28
- package/dist-cjs/commands/UntagCommand.js +1 -28
- package/dist-cjs/commands/UpdateAccountSettingsCommand.js +1 -28
- package/dist-cjs/commands/UpdateGroupCommand.js +1 -28
- package/dist-cjs/commands/UpdateGroupQueryCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -21
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2024 -11
- package/dist-cjs/models/ResourceGroupsServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -136
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListGroupResourcesPaginator.js +1 -7
- package/dist-cjs/pagination/ListGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/SearchResourcesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -7
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1313
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,2025 @@
|
|
|
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
|
+
BadRequestException: () => BadRequestException,
|
|
25
|
+
CreateGroupCommand: () => CreateGroupCommand,
|
|
26
|
+
DeleteGroupCommand: () => DeleteGroupCommand,
|
|
27
|
+
ForbiddenException: () => ForbiddenException,
|
|
28
|
+
GetAccountSettingsCommand: () => GetAccountSettingsCommand,
|
|
29
|
+
GetGroupCommand: () => GetGroupCommand,
|
|
30
|
+
GetGroupConfigurationCommand: () => GetGroupConfigurationCommand,
|
|
31
|
+
GetGroupQueryCommand: () => GetGroupQueryCommand,
|
|
32
|
+
GetTagsCommand: () => GetTagsCommand,
|
|
33
|
+
GroupConfigurationStatus: () => GroupConfigurationStatus,
|
|
34
|
+
GroupFilterName: () => GroupFilterName,
|
|
35
|
+
GroupLifecycleEventsDesiredStatus: () => GroupLifecycleEventsDesiredStatus,
|
|
36
|
+
GroupLifecycleEventsStatus: () => GroupLifecycleEventsStatus,
|
|
37
|
+
GroupResourcesCommand: () => GroupResourcesCommand,
|
|
38
|
+
InternalServerErrorException: () => InternalServerErrorException,
|
|
39
|
+
ListGroupResourcesCommand: () => ListGroupResourcesCommand,
|
|
40
|
+
ListGroupsCommand: () => ListGroupsCommand,
|
|
41
|
+
MethodNotAllowedException: () => MethodNotAllowedException,
|
|
42
|
+
NotFoundException: () => NotFoundException,
|
|
43
|
+
PutGroupConfigurationCommand: () => PutGroupConfigurationCommand,
|
|
44
|
+
QueryErrorCode: () => QueryErrorCode,
|
|
45
|
+
QueryType: () => QueryType,
|
|
46
|
+
ResourceFilterName: () => ResourceFilterName,
|
|
47
|
+
ResourceGroups: () => ResourceGroups,
|
|
48
|
+
ResourceGroupsClient: () => ResourceGroupsClient,
|
|
49
|
+
ResourceGroupsServiceException: () => ResourceGroupsServiceException,
|
|
50
|
+
ResourceStatusValue: () => ResourceStatusValue,
|
|
51
|
+
SearchResourcesCommand: () => SearchResourcesCommand,
|
|
52
|
+
TagCommand: () => TagCommand,
|
|
53
|
+
TooManyRequestsException: () => TooManyRequestsException,
|
|
54
|
+
UnauthorizedException: () => UnauthorizedException,
|
|
55
|
+
UngroupResourcesCommand: () => UngroupResourcesCommand,
|
|
56
|
+
UntagCommand: () => UntagCommand,
|
|
57
|
+
UpdateAccountSettingsCommand: () => UpdateAccountSettingsCommand,
|
|
58
|
+
UpdateGroupCommand: () => UpdateGroupCommand,
|
|
59
|
+
UpdateGroupQueryCommand: () => UpdateGroupQueryCommand,
|
|
60
|
+
__Client: () => import_smithy_client.Client,
|
|
61
|
+
paginateListGroupResources: () => paginateListGroupResources,
|
|
62
|
+
paginateListGroups: () => paginateListGroups,
|
|
63
|
+
paginateSearchResources: () => paginateSearchResources
|
|
64
|
+
});
|
|
65
|
+
module.exports = __toCommonJS(src_exports);
|
|
66
|
+
|
|
67
|
+
// src/ResourceGroupsClient.ts
|
|
68
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
69
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
70
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
71
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
72
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
73
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
74
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
75
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
76
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
// src/endpoint/EndpointParameters.ts
|
|
80
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
81
|
+
return {
|
|
82
|
+
...options,
|
|
83
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
84
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
85
|
+
defaultSigningName: "resource-groups"
|
|
86
|
+
};
|
|
87
|
+
}, "resolveClientEndpointParameters");
|
|
88
|
+
var commonParams = {
|
|
89
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
90
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
91
|
+
Region: { type: "builtInParams", name: "region" },
|
|
92
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
// src/ResourceGroupsClient.ts
|
|
96
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
97
|
+
|
|
98
|
+
// src/runtimeExtensions.ts
|
|
99
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
100
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
101
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
102
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
103
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
104
|
+
const extensionConfiguration = {
|
|
105
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
106
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
107
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
108
|
+
};
|
|
109
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
110
|
+
return {
|
|
111
|
+
...runtimeConfig,
|
|
112
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
113
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
114
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
115
|
+
};
|
|
116
|
+
}, "resolveRuntimeExtensions");
|
|
117
|
+
|
|
118
|
+
// src/ResourceGroupsClient.ts
|
|
119
|
+
var _ResourceGroupsClient = class _ResourceGroupsClient extends import_smithy_client.Client {
|
|
120
|
+
constructor(...[configuration]) {
|
|
121
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
122
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
123
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
124
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
125
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
126
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
127
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
128
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
129
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
130
|
+
super(_config_8);
|
|
131
|
+
this.config = _config_8;
|
|
132
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
133
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
134
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
135
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
136
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
137
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
138
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
142
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
143
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
144
|
+
*/
|
|
145
|
+
destroy() {
|
|
146
|
+
super.destroy();
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
__name(_ResourceGroupsClient, "ResourceGroupsClient");
|
|
150
|
+
var ResourceGroupsClient = _ResourceGroupsClient;
|
|
151
|
+
|
|
152
|
+
// src/ResourceGroups.ts
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
// src/commands/CreateGroupCommand.ts
|
|
156
|
+
|
|
157
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
158
|
+
|
|
159
|
+
var import_types = require("@smithy/types");
|
|
160
|
+
|
|
161
|
+
// src/protocols/Aws_restJson1.ts
|
|
162
|
+
var import_core = require("@smithy/core");
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
// src/models/ResourceGroupsServiceException.ts
|
|
166
|
+
|
|
167
|
+
var _ResourceGroupsServiceException = class _ResourceGroupsServiceException extends import_smithy_client.ServiceException {
|
|
168
|
+
/**
|
|
169
|
+
* @internal
|
|
170
|
+
*/
|
|
171
|
+
constructor(options) {
|
|
172
|
+
super(options);
|
|
173
|
+
Object.setPrototypeOf(this, _ResourceGroupsServiceException.prototype);
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
__name(_ResourceGroupsServiceException, "ResourceGroupsServiceException");
|
|
177
|
+
var ResourceGroupsServiceException = _ResourceGroupsServiceException;
|
|
178
|
+
|
|
179
|
+
// src/models/models_0.ts
|
|
180
|
+
var GroupLifecycleEventsDesiredStatus = {
|
|
181
|
+
ACTIVE: "ACTIVE",
|
|
182
|
+
INACTIVE: "INACTIVE"
|
|
183
|
+
};
|
|
184
|
+
var GroupLifecycleEventsStatus = {
|
|
185
|
+
ACTIVE: "ACTIVE",
|
|
186
|
+
ERROR: "ERROR",
|
|
187
|
+
INACTIVE: "INACTIVE",
|
|
188
|
+
IN_PROGRESS: "IN_PROGRESS"
|
|
189
|
+
};
|
|
190
|
+
var _BadRequestException = class _BadRequestException extends ResourceGroupsServiceException {
|
|
191
|
+
/**
|
|
192
|
+
* @internal
|
|
193
|
+
*/
|
|
194
|
+
constructor(opts) {
|
|
195
|
+
super({
|
|
196
|
+
name: "BadRequestException",
|
|
197
|
+
$fault: "client",
|
|
198
|
+
...opts
|
|
199
|
+
});
|
|
200
|
+
this.name = "BadRequestException";
|
|
201
|
+
this.$fault = "client";
|
|
202
|
+
Object.setPrototypeOf(this, _BadRequestException.prototype);
|
|
203
|
+
this.Message = opts.Message;
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
__name(_BadRequestException, "BadRequestException");
|
|
207
|
+
var BadRequestException = _BadRequestException;
|
|
208
|
+
var QueryType = {
|
|
209
|
+
CLOUDFORMATION_STACK_1_0: "CLOUDFORMATION_STACK_1_0",
|
|
210
|
+
TAG_FILTERS_1_0: "TAG_FILTERS_1_0"
|
|
211
|
+
};
|
|
212
|
+
var GroupConfigurationStatus = {
|
|
213
|
+
UPDATE_COMPLETE: "UPDATE_COMPLETE",
|
|
214
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
215
|
+
UPDATING: "UPDATING"
|
|
216
|
+
};
|
|
217
|
+
var _ForbiddenException = class _ForbiddenException extends ResourceGroupsServiceException {
|
|
218
|
+
/**
|
|
219
|
+
* @internal
|
|
220
|
+
*/
|
|
221
|
+
constructor(opts) {
|
|
222
|
+
super({
|
|
223
|
+
name: "ForbiddenException",
|
|
224
|
+
$fault: "client",
|
|
225
|
+
...opts
|
|
226
|
+
});
|
|
227
|
+
this.name = "ForbiddenException";
|
|
228
|
+
this.$fault = "client";
|
|
229
|
+
Object.setPrototypeOf(this, _ForbiddenException.prototype);
|
|
230
|
+
this.Message = opts.Message;
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
__name(_ForbiddenException, "ForbiddenException");
|
|
234
|
+
var ForbiddenException = _ForbiddenException;
|
|
235
|
+
var _InternalServerErrorException = class _InternalServerErrorException extends ResourceGroupsServiceException {
|
|
236
|
+
/**
|
|
237
|
+
* @internal
|
|
238
|
+
*/
|
|
239
|
+
constructor(opts) {
|
|
240
|
+
super({
|
|
241
|
+
name: "InternalServerErrorException",
|
|
242
|
+
$fault: "server",
|
|
243
|
+
...opts
|
|
244
|
+
});
|
|
245
|
+
this.name = "InternalServerErrorException";
|
|
246
|
+
this.$fault = "server";
|
|
247
|
+
Object.setPrototypeOf(this, _InternalServerErrorException.prototype);
|
|
248
|
+
this.Message = opts.Message;
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
__name(_InternalServerErrorException, "InternalServerErrorException");
|
|
252
|
+
var InternalServerErrorException = _InternalServerErrorException;
|
|
253
|
+
var _MethodNotAllowedException = class _MethodNotAllowedException extends ResourceGroupsServiceException {
|
|
254
|
+
/**
|
|
255
|
+
* @internal
|
|
256
|
+
*/
|
|
257
|
+
constructor(opts) {
|
|
258
|
+
super({
|
|
259
|
+
name: "MethodNotAllowedException",
|
|
260
|
+
$fault: "client",
|
|
261
|
+
...opts
|
|
262
|
+
});
|
|
263
|
+
this.name = "MethodNotAllowedException";
|
|
264
|
+
this.$fault = "client";
|
|
265
|
+
Object.setPrototypeOf(this, _MethodNotAllowedException.prototype);
|
|
266
|
+
this.Message = opts.Message;
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
__name(_MethodNotAllowedException, "MethodNotAllowedException");
|
|
270
|
+
var MethodNotAllowedException = _MethodNotAllowedException;
|
|
271
|
+
var _TooManyRequestsException = class _TooManyRequestsException extends ResourceGroupsServiceException {
|
|
272
|
+
/**
|
|
273
|
+
* @internal
|
|
274
|
+
*/
|
|
275
|
+
constructor(opts) {
|
|
276
|
+
super({
|
|
277
|
+
name: "TooManyRequestsException",
|
|
278
|
+
$fault: "client",
|
|
279
|
+
...opts
|
|
280
|
+
});
|
|
281
|
+
this.name = "TooManyRequestsException";
|
|
282
|
+
this.$fault = "client";
|
|
283
|
+
Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
|
|
284
|
+
this.Message = opts.Message;
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
__name(_TooManyRequestsException, "TooManyRequestsException");
|
|
288
|
+
var TooManyRequestsException = _TooManyRequestsException;
|
|
289
|
+
var _NotFoundException = class _NotFoundException extends ResourceGroupsServiceException {
|
|
290
|
+
/**
|
|
291
|
+
* @internal
|
|
292
|
+
*/
|
|
293
|
+
constructor(opts) {
|
|
294
|
+
super({
|
|
295
|
+
name: "NotFoundException",
|
|
296
|
+
$fault: "client",
|
|
297
|
+
...opts
|
|
298
|
+
});
|
|
299
|
+
this.name = "NotFoundException";
|
|
300
|
+
this.$fault = "client";
|
|
301
|
+
Object.setPrototypeOf(this, _NotFoundException.prototype);
|
|
302
|
+
this.Message = opts.Message;
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
__name(_NotFoundException, "NotFoundException");
|
|
306
|
+
var NotFoundException = _NotFoundException;
|
|
307
|
+
var ResourceFilterName = {
|
|
308
|
+
ResourceType: "resource-type"
|
|
309
|
+
};
|
|
310
|
+
var QueryErrorCode = {
|
|
311
|
+
CLOUDFORMATION_STACK_INACTIVE: "CLOUDFORMATION_STACK_INACTIVE",
|
|
312
|
+
CLOUDFORMATION_STACK_NOT_EXISTING: "CLOUDFORMATION_STACK_NOT_EXISTING",
|
|
313
|
+
CLOUDFORMATION_STACK_UNASSUMABLE_ROLE: "CLOUDFORMATION_STACK_UNASSUMABLE_ROLE"
|
|
314
|
+
};
|
|
315
|
+
var ResourceStatusValue = {
|
|
316
|
+
Pending: "PENDING"
|
|
317
|
+
};
|
|
318
|
+
var _UnauthorizedException = class _UnauthorizedException extends ResourceGroupsServiceException {
|
|
319
|
+
/**
|
|
320
|
+
* @internal
|
|
321
|
+
*/
|
|
322
|
+
constructor(opts) {
|
|
323
|
+
super({
|
|
324
|
+
name: "UnauthorizedException",
|
|
325
|
+
$fault: "client",
|
|
326
|
+
...opts
|
|
327
|
+
});
|
|
328
|
+
this.name = "UnauthorizedException";
|
|
329
|
+
this.$fault = "client";
|
|
330
|
+
Object.setPrototypeOf(this, _UnauthorizedException.prototype);
|
|
331
|
+
this.Message = opts.Message;
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
__name(_UnauthorizedException, "UnauthorizedException");
|
|
335
|
+
var UnauthorizedException = _UnauthorizedException;
|
|
336
|
+
var GroupFilterName = {
|
|
337
|
+
ConfigurationType: "configuration-type",
|
|
338
|
+
ResourceType: "resource-type"
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
// src/protocols/Aws_restJson1.ts
|
|
342
|
+
var se_CreateGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
343
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
344
|
+
const headers = {
|
|
345
|
+
"content-type": "application/json"
|
|
346
|
+
};
|
|
347
|
+
b.bp("/groups");
|
|
348
|
+
let body;
|
|
349
|
+
body = JSON.stringify(
|
|
350
|
+
(0, import_smithy_client.take)(input, {
|
|
351
|
+
Configuration: (_) => (0, import_smithy_client._json)(_),
|
|
352
|
+
Description: [],
|
|
353
|
+
Name: [],
|
|
354
|
+
ResourceQuery: (_) => (0, import_smithy_client._json)(_),
|
|
355
|
+
Tags: (_) => (0, import_smithy_client._json)(_)
|
|
356
|
+
})
|
|
357
|
+
);
|
|
358
|
+
b.m("POST").h(headers).b(body);
|
|
359
|
+
return b.build();
|
|
360
|
+
}, "se_CreateGroupCommand");
|
|
361
|
+
var se_DeleteGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
362
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
363
|
+
const headers = {
|
|
364
|
+
"content-type": "application/json"
|
|
365
|
+
};
|
|
366
|
+
b.bp("/delete-group");
|
|
367
|
+
let body;
|
|
368
|
+
body = JSON.stringify(
|
|
369
|
+
(0, import_smithy_client.take)(input, {
|
|
370
|
+
Group: [],
|
|
371
|
+
GroupName: []
|
|
372
|
+
})
|
|
373
|
+
);
|
|
374
|
+
b.m("POST").h(headers).b(body);
|
|
375
|
+
return b.build();
|
|
376
|
+
}, "se_DeleteGroupCommand");
|
|
377
|
+
var se_GetAccountSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
378
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
379
|
+
const headers = {
|
|
380
|
+
"content-type": "application/json"
|
|
381
|
+
};
|
|
382
|
+
b.bp("/get-account-settings");
|
|
383
|
+
let body;
|
|
384
|
+
body = "";
|
|
385
|
+
b.m("POST").h(headers).b(body);
|
|
386
|
+
return b.build();
|
|
387
|
+
}, "se_GetAccountSettingsCommand");
|
|
388
|
+
var se_GetGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
389
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
390
|
+
const headers = {
|
|
391
|
+
"content-type": "application/json"
|
|
392
|
+
};
|
|
393
|
+
b.bp("/get-group");
|
|
394
|
+
let body;
|
|
395
|
+
body = JSON.stringify(
|
|
396
|
+
(0, import_smithy_client.take)(input, {
|
|
397
|
+
Group: [],
|
|
398
|
+
GroupName: []
|
|
399
|
+
})
|
|
400
|
+
);
|
|
401
|
+
b.m("POST").h(headers).b(body);
|
|
402
|
+
return b.build();
|
|
403
|
+
}, "se_GetGroupCommand");
|
|
404
|
+
var se_GetGroupConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
405
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
406
|
+
const headers = {
|
|
407
|
+
"content-type": "application/json"
|
|
408
|
+
};
|
|
409
|
+
b.bp("/get-group-configuration");
|
|
410
|
+
let body;
|
|
411
|
+
body = JSON.stringify(
|
|
412
|
+
(0, import_smithy_client.take)(input, {
|
|
413
|
+
Group: []
|
|
414
|
+
})
|
|
415
|
+
);
|
|
416
|
+
b.m("POST").h(headers).b(body);
|
|
417
|
+
return b.build();
|
|
418
|
+
}, "se_GetGroupConfigurationCommand");
|
|
419
|
+
var se_GetGroupQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
420
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
421
|
+
const headers = {
|
|
422
|
+
"content-type": "application/json"
|
|
423
|
+
};
|
|
424
|
+
b.bp("/get-group-query");
|
|
425
|
+
let body;
|
|
426
|
+
body = JSON.stringify(
|
|
427
|
+
(0, import_smithy_client.take)(input, {
|
|
428
|
+
Group: [],
|
|
429
|
+
GroupName: []
|
|
430
|
+
})
|
|
431
|
+
);
|
|
432
|
+
b.m("POST").h(headers).b(body);
|
|
433
|
+
return b.build();
|
|
434
|
+
}, "se_GetGroupQueryCommand");
|
|
435
|
+
var se_GetTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
436
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
437
|
+
const headers = {};
|
|
438
|
+
b.bp("/resources/{Arn}/tags");
|
|
439
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
440
|
+
let body;
|
|
441
|
+
b.m("GET").h(headers).b(body);
|
|
442
|
+
return b.build();
|
|
443
|
+
}, "se_GetTagsCommand");
|
|
444
|
+
var se_GroupResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
445
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
446
|
+
const headers = {
|
|
447
|
+
"content-type": "application/json"
|
|
448
|
+
};
|
|
449
|
+
b.bp("/group-resources");
|
|
450
|
+
let body;
|
|
451
|
+
body = JSON.stringify(
|
|
452
|
+
(0, import_smithy_client.take)(input, {
|
|
453
|
+
Group: [],
|
|
454
|
+
ResourceArns: (_) => (0, import_smithy_client._json)(_)
|
|
455
|
+
})
|
|
456
|
+
);
|
|
457
|
+
b.m("POST").h(headers).b(body);
|
|
458
|
+
return b.build();
|
|
459
|
+
}, "se_GroupResourcesCommand");
|
|
460
|
+
var se_ListGroupResourcesCommand = /* @__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("/list-group-resources");
|
|
466
|
+
let body;
|
|
467
|
+
body = JSON.stringify(
|
|
468
|
+
(0, import_smithy_client.take)(input, {
|
|
469
|
+
Filters: (_) => (0, import_smithy_client._json)(_),
|
|
470
|
+
Group: [],
|
|
471
|
+
GroupName: [],
|
|
472
|
+
MaxResults: [],
|
|
473
|
+
NextToken: []
|
|
474
|
+
})
|
|
475
|
+
);
|
|
476
|
+
b.m("POST").h(headers).b(body);
|
|
477
|
+
return b.build();
|
|
478
|
+
}, "se_ListGroupResourcesCommand");
|
|
479
|
+
var se_ListGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
480
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
481
|
+
const headers = {
|
|
482
|
+
"content-type": "application/json"
|
|
483
|
+
};
|
|
484
|
+
b.bp("/groups-list");
|
|
485
|
+
const query = (0, import_smithy_client.map)({
|
|
486
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
487
|
+
[_nT]: [, input[_NT]]
|
|
488
|
+
});
|
|
489
|
+
let body;
|
|
490
|
+
body = JSON.stringify(
|
|
491
|
+
(0, import_smithy_client.take)(input, {
|
|
492
|
+
Filters: (_) => (0, import_smithy_client._json)(_)
|
|
493
|
+
})
|
|
494
|
+
);
|
|
495
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
496
|
+
return b.build();
|
|
497
|
+
}, "se_ListGroupsCommand");
|
|
498
|
+
var se_PutGroupConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
499
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
500
|
+
const headers = {
|
|
501
|
+
"content-type": "application/json"
|
|
502
|
+
};
|
|
503
|
+
b.bp("/put-group-configuration");
|
|
504
|
+
let body;
|
|
505
|
+
body = JSON.stringify(
|
|
506
|
+
(0, import_smithy_client.take)(input, {
|
|
507
|
+
Configuration: (_) => (0, import_smithy_client._json)(_),
|
|
508
|
+
Group: []
|
|
509
|
+
})
|
|
510
|
+
);
|
|
511
|
+
b.m("POST").h(headers).b(body);
|
|
512
|
+
return b.build();
|
|
513
|
+
}, "se_PutGroupConfigurationCommand");
|
|
514
|
+
var se_SearchResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
515
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
516
|
+
const headers = {
|
|
517
|
+
"content-type": "application/json"
|
|
518
|
+
};
|
|
519
|
+
b.bp("/resources/search");
|
|
520
|
+
let body;
|
|
521
|
+
body = JSON.stringify(
|
|
522
|
+
(0, import_smithy_client.take)(input, {
|
|
523
|
+
MaxResults: [],
|
|
524
|
+
NextToken: [],
|
|
525
|
+
ResourceQuery: (_) => (0, import_smithy_client._json)(_)
|
|
526
|
+
})
|
|
527
|
+
);
|
|
528
|
+
b.m("POST").h(headers).b(body);
|
|
529
|
+
return b.build();
|
|
530
|
+
}, "se_SearchResourcesCommand");
|
|
531
|
+
var se_TagCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
532
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
533
|
+
const headers = {
|
|
534
|
+
"content-type": "application/json"
|
|
535
|
+
};
|
|
536
|
+
b.bp("/resources/{Arn}/tags");
|
|
537
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
538
|
+
let body;
|
|
539
|
+
body = JSON.stringify(
|
|
540
|
+
(0, import_smithy_client.take)(input, {
|
|
541
|
+
Tags: (_) => (0, import_smithy_client._json)(_)
|
|
542
|
+
})
|
|
543
|
+
);
|
|
544
|
+
b.m("PUT").h(headers).b(body);
|
|
545
|
+
return b.build();
|
|
546
|
+
}, "se_TagCommand");
|
|
547
|
+
var se_UngroupResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
548
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
549
|
+
const headers = {
|
|
550
|
+
"content-type": "application/json"
|
|
551
|
+
};
|
|
552
|
+
b.bp("/ungroup-resources");
|
|
553
|
+
let body;
|
|
554
|
+
body = JSON.stringify(
|
|
555
|
+
(0, import_smithy_client.take)(input, {
|
|
556
|
+
Group: [],
|
|
557
|
+
ResourceArns: (_) => (0, import_smithy_client._json)(_)
|
|
558
|
+
})
|
|
559
|
+
);
|
|
560
|
+
b.m("POST").h(headers).b(body);
|
|
561
|
+
return b.build();
|
|
562
|
+
}, "se_UngroupResourcesCommand");
|
|
563
|
+
var se_UntagCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
564
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
565
|
+
const headers = {
|
|
566
|
+
"content-type": "application/json"
|
|
567
|
+
};
|
|
568
|
+
b.bp("/resources/{Arn}/tags");
|
|
569
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
570
|
+
let body;
|
|
571
|
+
body = JSON.stringify(
|
|
572
|
+
(0, import_smithy_client.take)(input, {
|
|
573
|
+
Keys: (_) => (0, import_smithy_client._json)(_)
|
|
574
|
+
})
|
|
575
|
+
);
|
|
576
|
+
b.m("PATCH").h(headers).b(body);
|
|
577
|
+
return b.build();
|
|
578
|
+
}, "se_UntagCommand");
|
|
579
|
+
var se_UpdateAccountSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
580
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
581
|
+
const headers = {
|
|
582
|
+
"content-type": "application/json"
|
|
583
|
+
};
|
|
584
|
+
b.bp("/update-account-settings");
|
|
585
|
+
let body;
|
|
586
|
+
body = JSON.stringify(
|
|
587
|
+
(0, import_smithy_client.take)(input, {
|
|
588
|
+
GroupLifecycleEventsDesiredStatus: []
|
|
589
|
+
})
|
|
590
|
+
);
|
|
591
|
+
b.m("POST").h(headers).b(body);
|
|
592
|
+
return b.build();
|
|
593
|
+
}, "se_UpdateAccountSettingsCommand");
|
|
594
|
+
var se_UpdateGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
595
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
596
|
+
const headers = {
|
|
597
|
+
"content-type": "application/json"
|
|
598
|
+
};
|
|
599
|
+
b.bp("/update-group");
|
|
600
|
+
let body;
|
|
601
|
+
body = JSON.stringify(
|
|
602
|
+
(0, import_smithy_client.take)(input, {
|
|
603
|
+
Description: [],
|
|
604
|
+
Group: [],
|
|
605
|
+
GroupName: []
|
|
606
|
+
})
|
|
607
|
+
);
|
|
608
|
+
b.m("POST").h(headers).b(body);
|
|
609
|
+
return b.build();
|
|
610
|
+
}, "se_UpdateGroupCommand");
|
|
611
|
+
var se_UpdateGroupQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
612
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
613
|
+
const headers = {
|
|
614
|
+
"content-type": "application/json"
|
|
615
|
+
};
|
|
616
|
+
b.bp("/update-group-query");
|
|
617
|
+
let body;
|
|
618
|
+
body = JSON.stringify(
|
|
619
|
+
(0, import_smithy_client.take)(input, {
|
|
620
|
+
Group: [],
|
|
621
|
+
GroupName: [],
|
|
622
|
+
ResourceQuery: (_) => (0, import_smithy_client._json)(_)
|
|
623
|
+
})
|
|
624
|
+
);
|
|
625
|
+
b.m("POST").h(headers).b(body);
|
|
626
|
+
return b.build();
|
|
627
|
+
}, "se_UpdateGroupQueryCommand");
|
|
628
|
+
var de_CreateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
629
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
630
|
+
return de_CreateGroupCommandError(output, context);
|
|
631
|
+
}
|
|
632
|
+
const contents = (0, import_smithy_client.map)({
|
|
633
|
+
$metadata: deserializeMetadata(output)
|
|
634
|
+
});
|
|
635
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
636
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
637
|
+
Group: import_smithy_client._json,
|
|
638
|
+
GroupConfiguration: import_smithy_client._json,
|
|
639
|
+
ResourceQuery: import_smithy_client._json,
|
|
640
|
+
Tags: import_smithy_client._json
|
|
641
|
+
});
|
|
642
|
+
Object.assign(contents, doc);
|
|
643
|
+
return contents;
|
|
644
|
+
}, "de_CreateGroupCommand");
|
|
645
|
+
var de_CreateGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
646
|
+
const parsedOutput = {
|
|
647
|
+
...output,
|
|
648
|
+
body: await parseErrorBody(output.body, context)
|
|
649
|
+
};
|
|
650
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
651
|
+
switch (errorCode) {
|
|
652
|
+
case "BadRequestException":
|
|
653
|
+
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
654
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
655
|
+
case "ForbiddenException":
|
|
656
|
+
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
657
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
658
|
+
case "InternalServerErrorException":
|
|
659
|
+
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
660
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
661
|
+
case "MethodNotAllowedException":
|
|
662
|
+
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
663
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
664
|
+
case "TooManyRequestsException":
|
|
665
|
+
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
666
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
667
|
+
default:
|
|
668
|
+
const parsedBody = parsedOutput.body;
|
|
669
|
+
return throwDefaultError({
|
|
670
|
+
output,
|
|
671
|
+
parsedBody,
|
|
672
|
+
errorCode
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
}, "de_CreateGroupCommandError");
|
|
676
|
+
var de_DeleteGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
677
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
678
|
+
return de_DeleteGroupCommandError(output, context);
|
|
679
|
+
}
|
|
680
|
+
const contents = (0, import_smithy_client.map)({
|
|
681
|
+
$metadata: deserializeMetadata(output)
|
|
682
|
+
});
|
|
683
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
684
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
685
|
+
Group: import_smithy_client._json
|
|
686
|
+
});
|
|
687
|
+
Object.assign(contents, doc);
|
|
688
|
+
return contents;
|
|
689
|
+
}, "de_DeleteGroupCommand");
|
|
690
|
+
var de_DeleteGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
691
|
+
const parsedOutput = {
|
|
692
|
+
...output,
|
|
693
|
+
body: await parseErrorBody(output.body, context)
|
|
694
|
+
};
|
|
695
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
|
+
switch (errorCode) {
|
|
697
|
+
case "BadRequestException":
|
|
698
|
+
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
699
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
700
|
+
case "ForbiddenException":
|
|
701
|
+
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
702
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
703
|
+
case "InternalServerErrorException":
|
|
704
|
+
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
705
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
706
|
+
case "MethodNotAllowedException":
|
|
707
|
+
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
708
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
709
|
+
case "NotFoundException":
|
|
710
|
+
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
711
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
712
|
+
case "TooManyRequestsException":
|
|
713
|
+
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
714
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
715
|
+
default:
|
|
716
|
+
const parsedBody = parsedOutput.body;
|
|
717
|
+
return throwDefaultError({
|
|
718
|
+
output,
|
|
719
|
+
parsedBody,
|
|
720
|
+
errorCode
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
}, "de_DeleteGroupCommandError");
|
|
724
|
+
var de_GetAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
725
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
726
|
+
return de_GetAccountSettingsCommandError(output, context);
|
|
727
|
+
}
|
|
728
|
+
const contents = (0, import_smithy_client.map)({
|
|
729
|
+
$metadata: deserializeMetadata(output)
|
|
730
|
+
});
|
|
731
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
732
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
733
|
+
AccountSettings: import_smithy_client._json
|
|
734
|
+
});
|
|
735
|
+
Object.assign(contents, doc);
|
|
736
|
+
return contents;
|
|
737
|
+
}, "de_GetAccountSettingsCommand");
|
|
738
|
+
var de_GetAccountSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
739
|
+
const parsedOutput = {
|
|
740
|
+
...output,
|
|
741
|
+
body: await parseErrorBody(output.body, context)
|
|
742
|
+
};
|
|
743
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
|
+
switch (errorCode) {
|
|
745
|
+
case "BadRequestException":
|
|
746
|
+
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
747
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
748
|
+
case "ForbiddenException":
|
|
749
|
+
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
750
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
751
|
+
case "InternalServerErrorException":
|
|
752
|
+
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
753
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
754
|
+
case "MethodNotAllowedException":
|
|
755
|
+
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
756
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
757
|
+
case "TooManyRequestsException":
|
|
758
|
+
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
759
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
760
|
+
default:
|
|
761
|
+
const parsedBody = parsedOutput.body;
|
|
762
|
+
return throwDefaultError({
|
|
763
|
+
output,
|
|
764
|
+
parsedBody,
|
|
765
|
+
errorCode
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
}, "de_GetAccountSettingsCommandError");
|
|
769
|
+
var de_GetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
770
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
771
|
+
return de_GetGroupCommandError(output, context);
|
|
772
|
+
}
|
|
773
|
+
const contents = (0, import_smithy_client.map)({
|
|
774
|
+
$metadata: deserializeMetadata(output)
|
|
775
|
+
});
|
|
776
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
777
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
778
|
+
Group: import_smithy_client._json
|
|
779
|
+
});
|
|
780
|
+
Object.assign(contents, doc);
|
|
781
|
+
return contents;
|
|
782
|
+
}, "de_GetGroupCommand");
|
|
783
|
+
var de_GetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
784
|
+
const parsedOutput = {
|
|
785
|
+
...output,
|
|
786
|
+
body: await parseErrorBody(output.body, context)
|
|
787
|
+
};
|
|
788
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
|
+
switch (errorCode) {
|
|
790
|
+
case "BadRequestException":
|
|
791
|
+
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
792
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
793
|
+
case "ForbiddenException":
|
|
794
|
+
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
795
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
796
|
+
case "InternalServerErrorException":
|
|
797
|
+
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
798
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
799
|
+
case "MethodNotAllowedException":
|
|
800
|
+
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
801
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
802
|
+
case "NotFoundException":
|
|
803
|
+
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
804
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
805
|
+
case "TooManyRequestsException":
|
|
806
|
+
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
807
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
808
|
+
default:
|
|
809
|
+
const parsedBody = parsedOutput.body;
|
|
810
|
+
return throwDefaultError({
|
|
811
|
+
output,
|
|
812
|
+
parsedBody,
|
|
813
|
+
errorCode
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
}, "de_GetGroupCommandError");
|
|
817
|
+
var de_GetGroupConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
818
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
819
|
+
return de_GetGroupConfigurationCommandError(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
|
+
GroupConfiguration: import_smithy_client._json
|
|
827
|
+
});
|
|
828
|
+
Object.assign(contents, doc);
|
|
829
|
+
return contents;
|
|
830
|
+
}, "de_GetGroupConfigurationCommand");
|
|
831
|
+
var de_GetGroupConfigurationCommandError = /* @__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 "BadRequestException":
|
|
839
|
+
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
840
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
841
|
+
case "ForbiddenException":
|
|
842
|
+
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
843
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
844
|
+
case "InternalServerErrorException":
|
|
845
|
+
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
846
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
847
|
+
case "MethodNotAllowedException":
|
|
848
|
+
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
849
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
850
|
+
case "NotFoundException":
|
|
851
|
+
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
852
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
853
|
+
case "TooManyRequestsException":
|
|
854
|
+
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
855
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
856
|
+
default:
|
|
857
|
+
const parsedBody = parsedOutput.body;
|
|
858
|
+
return throwDefaultError({
|
|
859
|
+
output,
|
|
860
|
+
parsedBody,
|
|
861
|
+
errorCode
|
|
862
|
+
});
|
|
863
|
+
}
|
|
864
|
+
}, "de_GetGroupConfigurationCommandError");
|
|
865
|
+
var de_GetGroupQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
866
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
867
|
+
return de_GetGroupQueryCommandError(output, context);
|
|
868
|
+
}
|
|
869
|
+
const contents = (0, import_smithy_client.map)({
|
|
870
|
+
$metadata: deserializeMetadata(output)
|
|
871
|
+
});
|
|
872
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
873
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
874
|
+
GroupQuery: import_smithy_client._json
|
|
875
|
+
});
|
|
876
|
+
Object.assign(contents, doc);
|
|
877
|
+
return contents;
|
|
878
|
+
}, "de_GetGroupQueryCommand");
|
|
879
|
+
var de_GetGroupQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
880
|
+
const parsedOutput = {
|
|
881
|
+
...output,
|
|
882
|
+
body: await parseErrorBody(output.body, context)
|
|
883
|
+
};
|
|
884
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
885
|
+
switch (errorCode) {
|
|
886
|
+
case "BadRequestException":
|
|
887
|
+
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
888
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
889
|
+
case "ForbiddenException":
|
|
890
|
+
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
891
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
892
|
+
case "InternalServerErrorException":
|
|
893
|
+
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
894
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
895
|
+
case "MethodNotAllowedException":
|
|
896
|
+
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
897
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
898
|
+
case "NotFoundException":
|
|
899
|
+
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
900
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
901
|
+
case "TooManyRequestsException":
|
|
902
|
+
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
903
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
904
|
+
default:
|
|
905
|
+
const parsedBody = parsedOutput.body;
|
|
906
|
+
return throwDefaultError({
|
|
907
|
+
output,
|
|
908
|
+
parsedBody,
|
|
909
|
+
errorCode
|
|
910
|
+
});
|
|
911
|
+
}
|
|
912
|
+
}, "de_GetGroupQueryCommandError");
|
|
913
|
+
var de_GetTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
914
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
915
|
+
return de_GetTagsCommandError(output, context);
|
|
916
|
+
}
|
|
917
|
+
const contents = (0, import_smithy_client.map)({
|
|
918
|
+
$metadata: deserializeMetadata(output)
|
|
919
|
+
});
|
|
920
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
921
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
922
|
+
Arn: import_smithy_client.expectString,
|
|
923
|
+
Tags: import_smithy_client._json
|
|
924
|
+
});
|
|
925
|
+
Object.assign(contents, doc);
|
|
926
|
+
return contents;
|
|
927
|
+
}, "de_GetTagsCommand");
|
|
928
|
+
var de_GetTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
929
|
+
const parsedOutput = {
|
|
930
|
+
...output,
|
|
931
|
+
body: await parseErrorBody(output.body, context)
|
|
932
|
+
};
|
|
933
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
934
|
+
switch (errorCode) {
|
|
935
|
+
case "BadRequestException":
|
|
936
|
+
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
937
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
938
|
+
case "ForbiddenException":
|
|
939
|
+
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
940
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
941
|
+
case "InternalServerErrorException":
|
|
942
|
+
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
943
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
944
|
+
case "MethodNotAllowedException":
|
|
945
|
+
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
946
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
947
|
+
case "NotFoundException":
|
|
948
|
+
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
949
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
950
|
+
case "TooManyRequestsException":
|
|
951
|
+
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
952
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
953
|
+
default:
|
|
954
|
+
const parsedBody = parsedOutput.body;
|
|
955
|
+
return throwDefaultError({
|
|
956
|
+
output,
|
|
957
|
+
parsedBody,
|
|
958
|
+
errorCode
|
|
959
|
+
});
|
|
960
|
+
}
|
|
961
|
+
}, "de_GetTagsCommandError");
|
|
962
|
+
var de_GroupResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
963
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
964
|
+
return de_GroupResourcesCommandError(output, context);
|
|
965
|
+
}
|
|
966
|
+
const contents = (0, import_smithy_client.map)({
|
|
967
|
+
$metadata: deserializeMetadata(output)
|
|
968
|
+
});
|
|
969
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
970
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
971
|
+
Failed: import_smithy_client._json,
|
|
972
|
+
Pending: import_smithy_client._json,
|
|
973
|
+
Succeeded: import_smithy_client._json
|
|
974
|
+
});
|
|
975
|
+
Object.assign(contents, doc);
|
|
976
|
+
return contents;
|
|
977
|
+
}, "de_GroupResourcesCommand");
|
|
978
|
+
var de_GroupResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
979
|
+
const parsedOutput = {
|
|
980
|
+
...output,
|
|
981
|
+
body: await parseErrorBody(output.body, context)
|
|
982
|
+
};
|
|
983
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
984
|
+
switch (errorCode) {
|
|
985
|
+
case "BadRequestException":
|
|
986
|
+
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
987
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
988
|
+
case "ForbiddenException":
|
|
989
|
+
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
990
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
991
|
+
case "InternalServerErrorException":
|
|
992
|
+
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
993
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
994
|
+
case "MethodNotAllowedException":
|
|
995
|
+
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
996
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
997
|
+
case "NotFoundException":
|
|
998
|
+
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
999
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1000
|
+
case "TooManyRequestsException":
|
|
1001
|
+
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1002
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1003
|
+
default:
|
|
1004
|
+
const parsedBody = parsedOutput.body;
|
|
1005
|
+
return throwDefaultError({
|
|
1006
|
+
output,
|
|
1007
|
+
parsedBody,
|
|
1008
|
+
errorCode
|
|
1009
|
+
});
|
|
1010
|
+
}
|
|
1011
|
+
}, "de_GroupResourcesCommandError");
|
|
1012
|
+
var de_ListGroupResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1013
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1014
|
+
return de_ListGroupResourcesCommandError(output, context);
|
|
1015
|
+
}
|
|
1016
|
+
const contents = (0, import_smithy_client.map)({
|
|
1017
|
+
$metadata: deserializeMetadata(output)
|
|
1018
|
+
});
|
|
1019
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1020
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1021
|
+
NextToken: import_smithy_client.expectString,
|
|
1022
|
+
QueryErrors: import_smithy_client._json,
|
|
1023
|
+
ResourceIdentifiers: import_smithy_client._json,
|
|
1024
|
+
Resources: import_smithy_client._json
|
|
1025
|
+
});
|
|
1026
|
+
Object.assign(contents, doc);
|
|
1027
|
+
return contents;
|
|
1028
|
+
}, "de_ListGroupResourcesCommand");
|
|
1029
|
+
var de_ListGroupResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1030
|
+
const parsedOutput = {
|
|
1031
|
+
...output,
|
|
1032
|
+
body: await parseErrorBody(output.body, context)
|
|
1033
|
+
};
|
|
1034
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1035
|
+
switch (errorCode) {
|
|
1036
|
+
case "BadRequestException":
|
|
1037
|
+
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1038
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1039
|
+
case "ForbiddenException":
|
|
1040
|
+
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1041
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1042
|
+
case "InternalServerErrorException":
|
|
1043
|
+
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1044
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1045
|
+
case "MethodNotAllowedException":
|
|
1046
|
+
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1047
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1048
|
+
case "NotFoundException":
|
|
1049
|
+
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1050
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1051
|
+
case "TooManyRequestsException":
|
|
1052
|
+
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1053
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1054
|
+
case "UnauthorizedException":
|
|
1055
|
+
case "com.amazonaws.resourcegroups#UnauthorizedException":
|
|
1056
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1057
|
+
default:
|
|
1058
|
+
const parsedBody = parsedOutput.body;
|
|
1059
|
+
return throwDefaultError({
|
|
1060
|
+
output,
|
|
1061
|
+
parsedBody,
|
|
1062
|
+
errorCode
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1065
|
+
}, "de_ListGroupResourcesCommandError");
|
|
1066
|
+
var de_ListGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1067
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1068
|
+
return de_ListGroupsCommandError(output, context);
|
|
1069
|
+
}
|
|
1070
|
+
const contents = (0, import_smithy_client.map)({
|
|
1071
|
+
$metadata: deserializeMetadata(output)
|
|
1072
|
+
});
|
|
1073
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1074
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1075
|
+
GroupIdentifiers: import_smithy_client._json,
|
|
1076
|
+
Groups: import_smithy_client._json,
|
|
1077
|
+
NextToken: import_smithy_client.expectString
|
|
1078
|
+
});
|
|
1079
|
+
Object.assign(contents, doc);
|
|
1080
|
+
return contents;
|
|
1081
|
+
}, "de_ListGroupsCommand");
|
|
1082
|
+
var de_ListGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1083
|
+
const parsedOutput = {
|
|
1084
|
+
...output,
|
|
1085
|
+
body: await parseErrorBody(output.body, context)
|
|
1086
|
+
};
|
|
1087
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1088
|
+
switch (errorCode) {
|
|
1089
|
+
case "BadRequestException":
|
|
1090
|
+
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1091
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1092
|
+
case "ForbiddenException":
|
|
1093
|
+
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1094
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1095
|
+
case "InternalServerErrorException":
|
|
1096
|
+
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1097
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1098
|
+
case "MethodNotAllowedException":
|
|
1099
|
+
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1100
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1101
|
+
case "TooManyRequestsException":
|
|
1102
|
+
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1103
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1104
|
+
default:
|
|
1105
|
+
const parsedBody = parsedOutput.body;
|
|
1106
|
+
return throwDefaultError({
|
|
1107
|
+
output,
|
|
1108
|
+
parsedBody,
|
|
1109
|
+
errorCode
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1112
|
+
}, "de_ListGroupsCommandError");
|
|
1113
|
+
var de_PutGroupConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1114
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1115
|
+
return de_PutGroupConfigurationCommandError(output, context);
|
|
1116
|
+
}
|
|
1117
|
+
const contents = (0, import_smithy_client.map)({
|
|
1118
|
+
$metadata: deserializeMetadata(output)
|
|
1119
|
+
});
|
|
1120
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1121
|
+
return contents;
|
|
1122
|
+
}, "de_PutGroupConfigurationCommand");
|
|
1123
|
+
var de_PutGroupConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1124
|
+
const parsedOutput = {
|
|
1125
|
+
...output,
|
|
1126
|
+
body: await parseErrorBody(output.body, context)
|
|
1127
|
+
};
|
|
1128
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1129
|
+
switch (errorCode) {
|
|
1130
|
+
case "BadRequestException":
|
|
1131
|
+
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1132
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1133
|
+
case "ForbiddenException":
|
|
1134
|
+
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1135
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1136
|
+
case "InternalServerErrorException":
|
|
1137
|
+
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1138
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1139
|
+
case "MethodNotAllowedException":
|
|
1140
|
+
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1141
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1142
|
+
case "NotFoundException":
|
|
1143
|
+
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1144
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1145
|
+
case "TooManyRequestsException":
|
|
1146
|
+
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1147
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1148
|
+
default:
|
|
1149
|
+
const parsedBody = parsedOutput.body;
|
|
1150
|
+
return throwDefaultError({
|
|
1151
|
+
output,
|
|
1152
|
+
parsedBody,
|
|
1153
|
+
errorCode
|
|
1154
|
+
});
|
|
1155
|
+
}
|
|
1156
|
+
}, "de_PutGroupConfigurationCommandError");
|
|
1157
|
+
var de_SearchResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1158
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1159
|
+
return de_SearchResourcesCommandError(output, context);
|
|
1160
|
+
}
|
|
1161
|
+
const contents = (0, import_smithy_client.map)({
|
|
1162
|
+
$metadata: deserializeMetadata(output)
|
|
1163
|
+
});
|
|
1164
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1165
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1166
|
+
NextToken: import_smithy_client.expectString,
|
|
1167
|
+
QueryErrors: import_smithy_client._json,
|
|
1168
|
+
ResourceIdentifiers: import_smithy_client._json
|
|
1169
|
+
});
|
|
1170
|
+
Object.assign(contents, doc);
|
|
1171
|
+
return contents;
|
|
1172
|
+
}, "de_SearchResourcesCommand");
|
|
1173
|
+
var de_SearchResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1174
|
+
const parsedOutput = {
|
|
1175
|
+
...output,
|
|
1176
|
+
body: await parseErrorBody(output.body, context)
|
|
1177
|
+
};
|
|
1178
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
|
+
switch (errorCode) {
|
|
1180
|
+
case "BadRequestException":
|
|
1181
|
+
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1182
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1183
|
+
case "ForbiddenException":
|
|
1184
|
+
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1185
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1186
|
+
case "InternalServerErrorException":
|
|
1187
|
+
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1188
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1189
|
+
case "MethodNotAllowedException":
|
|
1190
|
+
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1191
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1192
|
+
case "TooManyRequestsException":
|
|
1193
|
+
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1194
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1195
|
+
case "UnauthorizedException":
|
|
1196
|
+
case "com.amazonaws.resourcegroups#UnauthorizedException":
|
|
1197
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1198
|
+
default:
|
|
1199
|
+
const parsedBody = parsedOutput.body;
|
|
1200
|
+
return throwDefaultError({
|
|
1201
|
+
output,
|
|
1202
|
+
parsedBody,
|
|
1203
|
+
errorCode
|
|
1204
|
+
});
|
|
1205
|
+
}
|
|
1206
|
+
}, "de_SearchResourcesCommandError");
|
|
1207
|
+
var de_TagCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1208
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1209
|
+
return de_TagCommandError(output, context);
|
|
1210
|
+
}
|
|
1211
|
+
const contents = (0, import_smithy_client.map)({
|
|
1212
|
+
$metadata: deserializeMetadata(output)
|
|
1213
|
+
});
|
|
1214
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1215
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1216
|
+
Arn: import_smithy_client.expectString,
|
|
1217
|
+
Tags: import_smithy_client._json
|
|
1218
|
+
});
|
|
1219
|
+
Object.assign(contents, doc);
|
|
1220
|
+
return contents;
|
|
1221
|
+
}, "de_TagCommand");
|
|
1222
|
+
var de_TagCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1223
|
+
const parsedOutput = {
|
|
1224
|
+
...output,
|
|
1225
|
+
body: await parseErrorBody(output.body, context)
|
|
1226
|
+
};
|
|
1227
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1228
|
+
switch (errorCode) {
|
|
1229
|
+
case "BadRequestException":
|
|
1230
|
+
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1231
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1232
|
+
case "ForbiddenException":
|
|
1233
|
+
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1234
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1235
|
+
case "InternalServerErrorException":
|
|
1236
|
+
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1237
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1238
|
+
case "MethodNotAllowedException":
|
|
1239
|
+
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1240
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1241
|
+
case "NotFoundException":
|
|
1242
|
+
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1243
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1244
|
+
case "TooManyRequestsException":
|
|
1245
|
+
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1246
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1247
|
+
default:
|
|
1248
|
+
const parsedBody = parsedOutput.body;
|
|
1249
|
+
return throwDefaultError({
|
|
1250
|
+
output,
|
|
1251
|
+
parsedBody,
|
|
1252
|
+
errorCode
|
|
1253
|
+
});
|
|
1254
|
+
}
|
|
1255
|
+
}, "de_TagCommandError");
|
|
1256
|
+
var de_UngroupResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1257
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1258
|
+
return de_UngroupResourcesCommandError(output, context);
|
|
1259
|
+
}
|
|
1260
|
+
const contents = (0, import_smithy_client.map)({
|
|
1261
|
+
$metadata: deserializeMetadata(output)
|
|
1262
|
+
});
|
|
1263
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1264
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1265
|
+
Failed: import_smithy_client._json,
|
|
1266
|
+
Pending: import_smithy_client._json,
|
|
1267
|
+
Succeeded: import_smithy_client._json
|
|
1268
|
+
});
|
|
1269
|
+
Object.assign(contents, doc);
|
|
1270
|
+
return contents;
|
|
1271
|
+
}, "de_UngroupResourcesCommand");
|
|
1272
|
+
var de_UngroupResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1273
|
+
const parsedOutput = {
|
|
1274
|
+
...output,
|
|
1275
|
+
body: await parseErrorBody(output.body, context)
|
|
1276
|
+
};
|
|
1277
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1278
|
+
switch (errorCode) {
|
|
1279
|
+
case "BadRequestException":
|
|
1280
|
+
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1281
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1282
|
+
case "ForbiddenException":
|
|
1283
|
+
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1284
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1285
|
+
case "InternalServerErrorException":
|
|
1286
|
+
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1287
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1288
|
+
case "MethodNotAllowedException":
|
|
1289
|
+
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1290
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1291
|
+
case "NotFoundException":
|
|
1292
|
+
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1293
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1294
|
+
case "TooManyRequestsException":
|
|
1295
|
+
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1296
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1297
|
+
default:
|
|
1298
|
+
const parsedBody = parsedOutput.body;
|
|
1299
|
+
return throwDefaultError({
|
|
1300
|
+
output,
|
|
1301
|
+
parsedBody,
|
|
1302
|
+
errorCode
|
|
1303
|
+
});
|
|
1304
|
+
}
|
|
1305
|
+
}, "de_UngroupResourcesCommandError");
|
|
1306
|
+
var de_UntagCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1307
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1308
|
+
return de_UntagCommandError(output, context);
|
|
1309
|
+
}
|
|
1310
|
+
const contents = (0, import_smithy_client.map)({
|
|
1311
|
+
$metadata: deserializeMetadata(output)
|
|
1312
|
+
});
|
|
1313
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1314
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1315
|
+
Arn: import_smithy_client.expectString,
|
|
1316
|
+
Keys: import_smithy_client._json
|
|
1317
|
+
});
|
|
1318
|
+
Object.assign(contents, doc);
|
|
1319
|
+
return contents;
|
|
1320
|
+
}, "de_UntagCommand");
|
|
1321
|
+
var de_UntagCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1322
|
+
const parsedOutput = {
|
|
1323
|
+
...output,
|
|
1324
|
+
body: await parseErrorBody(output.body, context)
|
|
1325
|
+
};
|
|
1326
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1327
|
+
switch (errorCode) {
|
|
1328
|
+
case "BadRequestException":
|
|
1329
|
+
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1330
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1331
|
+
case "ForbiddenException":
|
|
1332
|
+
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1333
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1334
|
+
case "InternalServerErrorException":
|
|
1335
|
+
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1336
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1337
|
+
case "MethodNotAllowedException":
|
|
1338
|
+
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1339
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1340
|
+
case "NotFoundException":
|
|
1341
|
+
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1342
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1343
|
+
case "TooManyRequestsException":
|
|
1344
|
+
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1345
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1346
|
+
default:
|
|
1347
|
+
const parsedBody = parsedOutput.body;
|
|
1348
|
+
return throwDefaultError({
|
|
1349
|
+
output,
|
|
1350
|
+
parsedBody,
|
|
1351
|
+
errorCode
|
|
1352
|
+
});
|
|
1353
|
+
}
|
|
1354
|
+
}, "de_UntagCommandError");
|
|
1355
|
+
var de_UpdateAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1356
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1357
|
+
return de_UpdateAccountSettingsCommandError(output, context);
|
|
1358
|
+
}
|
|
1359
|
+
const contents = (0, import_smithy_client.map)({
|
|
1360
|
+
$metadata: deserializeMetadata(output)
|
|
1361
|
+
});
|
|
1362
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1363
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1364
|
+
AccountSettings: import_smithy_client._json
|
|
1365
|
+
});
|
|
1366
|
+
Object.assign(contents, doc);
|
|
1367
|
+
return contents;
|
|
1368
|
+
}, "de_UpdateAccountSettingsCommand");
|
|
1369
|
+
var de_UpdateAccountSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1370
|
+
const parsedOutput = {
|
|
1371
|
+
...output,
|
|
1372
|
+
body: await parseErrorBody(output.body, context)
|
|
1373
|
+
};
|
|
1374
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1375
|
+
switch (errorCode) {
|
|
1376
|
+
case "BadRequestException":
|
|
1377
|
+
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1378
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1379
|
+
case "ForbiddenException":
|
|
1380
|
+
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1381
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1382
|
+
case "InternalServerErrorException":
|
|
1383
|
+
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1384
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1385
|
+
case "MethodNotAllowedException":
|
|
1386
|
+
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1387
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1388
|
+
case "TooManyRequestsException":
|
|
1389
|
+
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1390
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1391
|
+
default:
|
|
1392
|
+
const parsedBody = parsedOutput.body;
|
|
1393
|
+
return throwDefaultError({
|
|
1394
|
+
output,
|
|
1395
|
+
parsedBody,
|
|
1396
|
+
errorCode
|
|
1397
|
+
});
|
|
1398
|
+
}
|
|
1399
|
+
}, "de_UpdateAccountSettingsCommandError");
|
|
1400
|
+
var de_UpdateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1401
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1402
|
+
return de_UpdateGroupCommandError(output, context);
|
|
1403
|
+
}
|
|
1404
|
+
const contents = (0, import_smithy_client.map)({
|
|
1405
|
+
$metadata: deserializeMetadata(output)
|
|
1406
|
+
});
|
|
1407
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1408
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1409
|
+
Group: import_smithy_client._json
|
|
1410
|
+
});
|
|
1411
|
+
Object.assign(contents, doc);
|
|
1412
|
+
return contents;
|
|
1413
|
+
}, "de_UpdateGroupCommand");
|
|
1414
|
+
var de_UpdateGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1415
|
+
const parsedOutput = {
|
|
1416
|
+
...output,
|
|
1417
|
+
body: await parseErrorBody(output.body, context)
|
|
1418
|
+
};
|
|
1419
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1420
|
+
switch (errorCode) {
|
|
1421
|
+
case "BadRequestException":
|
|
1422
|
+
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1423
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1424
|
+
case "ForbiddenException":
|
|
1425
|
+
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1426
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1427
|
+
case "InternalServerErrorException":
|
|
1428
|
+
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1429
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1430
|
+
case "MethodNotAllowedException":
|
|
1431
|
+
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1432
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1433
|
+
case "NotFoundException":
|
|
1434
|
+
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1435
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1436
|
+
case "TooManyRequestsException":
|
|
1437
|
+
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1438
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1439
|
+
default:
|
|
1440
|
+
const parsedBody = parsedOutput.body;
|
|
1441
|
+
return throwDefaultError({
|
|
1442
|
+
output,
|
|
1443
|
+
parsedBody,
|
|
1444
|
+
errorCode
|
|
1445
|
+
});
|
|
1446
|
+
}
|
|
1447
|
+
}, "de_UpdateGroupCommandError");
|
|
1448
|
+
var de_UpdateGroupQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1449
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1450
|
+
return de_UpdateGroupQueryCommandError(output, context);
|
|
1451
|
+
}
|
|
1452
|
+
const contents = (0, import_smithy_client.map)({
|
|
1453
|
+
$metadata: deserializeMetadata(output)
|
|
1454
|
+
});
|
|
1455
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1456
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1457
|
+
GroupQuery: import_smithy_client._json
|
|
1458
|
+
});
|
|
1459
|
+
Object.assign(contents, doc);
|
|
1460
|
+
return contents;
|
|
1461
|
+
}, "de_UpdateGroupQueryCommand");
|
|
1462
|
+
var de_UpdateGroupQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1463
|
+
const parsedOutput = {
|
|
1464
|
+
...output,
|
|
1465
|
+
body: await parseErrorBody(output.body, context)
|
|
1466
|
+
};
|
|
1467
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1468
|
+
switch (errorCode) {
|
|
1469
|
+
case "BadRequestException":
|
|
1470
|
+
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1471
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1472
|
+
case "ForbiddenException":
|
|
1473
|
+
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1474
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1475
|
+
case "InternalServerErrorException":
|
|
1476
|
+
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1477
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1478
|
+
case "MethodNotAllowedException":
|
|
1479
|
+
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1480
|
+
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1481
|
+
case "NotFoundException":
|
|
1482
|
+
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1483
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1484
|
+
case "TooManyRequestsException":
|
|
1485
|
+
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1486
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1487
|
+
default:
|
|
1488
|
+
const parsedBody = parsedOutput.body;
|
|
1489
|
+
return throwDefaultError({
|
|
1490
|
+
output,
|
|
1491
|
+
parsedBody,
|
|
1492
|
+
errorCode
|
|
1493
|
+
});
|
|
1494
|
+
}
|
|
1495
|
+
}, "de_UpdateGroupQueryCommandError");
|
|
1496
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(ResourceGroupsServiceException);
|
|
1497
|
+
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1498
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1499
|
+
const data = parsedOutput.body;
|
|
1500
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1501
|
+
Message: import_smithy_client.expectString
|
|
1502
|
+
});
|
|
1503
|
+
Object.assign(contents, doc);
|
|
1504
|
+
const exception = new BadRequestException({
|
|
1505
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1506
|
+
...contents
|
|
1507
|
+
});
|
|
1508
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1509
|
+
}, "de_BadRequestExceptionRes");
|
|
1510
|
+
var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1511
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1512
|
+
const data = parsedOutput.body;
|
|
1513
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1514
|
+
Message: import_smithy_client.expectString
|
|
1515
|
+
});
|
|
1516
|
+
Object.assign(contents, doc);
|
|
1517
|
+
const exception = new ForbiddenException({
|
|
1518
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1519
|
+
...contents
|
|
1520
|
+
});
|
|
1521
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1522
|
+
}, "de_ForbiddenExceptionRes");
|
|
1523
|
+
var de_InternalServerErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1524
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1525
|
+
const data = parsedOutput.body;
|
|
1526
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1527
|
+
Message: import_smithy_client.expectString
|
|
1528
|
+
});
|
|
1529
|
+
Object.assign(contents, doc);
|
|
1530
|
+
const exception = new InternalServerErrorException({
|
|
1531
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1532
|
+
...contents
|
|
1533
|
+
});
|
|
1534
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1535
|
+
}, "de_InternalServerErrorExceptionRes");
|
|
1536
|
+
var de_MethodNotAllowedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1537
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1538
|
+
const data = parsedOutput.body;
|
|
1539
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1540
|
+
Message: import_smithy_client.expectString
|
|
1541
|
+
});
|
|
1542
|
+
Object.assign(contents, doc);
|
|
1543
|
+
const exception = new MethodNotAllowedException({
|
|
1544
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1545
|
+
...contents
|
|
1546
|
+
});
|
|
1547
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1548
|
+
}, "de_MethodNotAllowedExceptionRes");
|
|
1549
|
+
var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1550
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1551
|
+
const data = parsedOutput.body;
|
|
1552
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1553
|
+
Message: import_smithy_client.expectString
|
|
1554
|
+
});
|
|
1555
|
+
Object.assign(contents, doc);
|
|
1556
|
+
const exception = new NotFoundException({
|
|
1557
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1558
|
+
...contents
|
|
1559
|
+
});
|
|
1560
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1561
|
+
}, "de_NotFoundExceptionRes");
|
|
1562
|
+
var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1563
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1564
|
+
const data = parsedOutput.body;
|
|
1565
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1566
|
+
Message: import_smithy_client.expectString
|
|
1567
|
+
});
|
|
1568
|
+
Object.assign(contents, doc);
|
|
1569
|
+
const exception = new TooManyRequestsException({
|
|
1570
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1571
|
+
...contents
|
|
1572
|
+
});
|
|
1573
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1574
|
+
}, "de_TooManyRequestsExceptionRes");
|
|
1575
|
+
var de_UnauthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1576
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1577
|
+
const data = parsedOutput.body;
|
|
1578
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1579
|
+
Message: import_smithy_client.expectString
|
|
1580
|
+
});
|
|
1581
|
+
Object.assign(contents, doc);
|
|
1582
|
+
const exception = new UnauthorizedException({
|
|
1583
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1584
|
+
...contents
|
|
1585
|
+
});
|
|
1586
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1587
|
+
}, "de_UnauthorizedExceptionRes");
|
|
1588
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1589
|
+
httpStatusCode: output.statusCode,
|
|
1590
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1591
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1592
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1593
|
+
}), "deserializeMetadata");
|
|
1594
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1595
|
+
var _MR = "MaxResults";
|
|
1596
|
+
var _NT = "NextToken";
|
|
1597
|
+
var _mR = "maxResults";
|
|
1598
|
+
var _nT = "nextToken";
|
|
1599
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1600
|
+
if (encoded.length) {
|
|
1601
|
+
return JSON.parse(encoded);
|
|
1602
|
+
}
|
|
1603
|
+
return {};
|
|
1604
|
+
}), "parseBody");
|
|
1605
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1606
|
+
const value = await parseBody(errorBody, context);
|
|
1607
|
+
value.message = value.message ?? value.Message;
|
|
1608
|
+
return value;
|
|
1609
|
+
}, "parseErrorBody");
|
|
1610
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1611
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1612
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1613
|
+
let cleanValue = rawValue;
|
|
1614
|
+
if (typeof cleanValue === "number") {
|
|
1615
|
+
cleanValue = cleanValue.toString();
|
|
1616
|
+
}
|
|
1617
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1618
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1619
|
+
}
|
|
1620
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1621
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1622
|
+
}
|
|
1623
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1624
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1625
|
+
}
|
|
1626
|
+
return cleanValue;
|
|
1627
|
+
}, "sanitizeErrorCode");
|
|
1628
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1629
|
+
if (headerKey !== void 0) {
|
|
1630
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1631
|
+
}
|
|
1632
|
+
if (data.code !== void 0) {
|
|
1633
|
+
return sanitizeErrorCode(data.code);
|
|
1634
|
+
}
|
|
1635
|
+
if (data["__type"] !== void 0) {
|
|
1636
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1637
|
+
}
|
|
1638
|
+
}, "loadRestJsonErrorCode");
|
|
1639
|
+
|
|
1640
|
+
// src/commands/CreateGroupCommand.ts
|
|
1641
|
+
var _CreateGroupCommand = class _CreateGroupCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1642
|
+
...commonParams
|
|
1643
|
+
}).m(function(Command, cs, config, o) {
|
|
1644
|
+
return [
|
|
1645
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1646
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1647
|
+
];
|
|
1648
|
+
}).s("Ardi", "CreateGroup", {}).n("ResourceGroupsClient", "CreateGroupCommand").f(void 0, void 0).ser(se_CreateGroupCommand).de(de_CreateGroupCommand).build() {
|
|
1649
|
+
};
|
|
1650
|
+
__name(_CreateGroupCommand, "CreateGroupCommand");
|
|
1651
|
+
var CreateGroupCommand = _CreateGroupCommand;
|
|
1652
|
+
|
|
1653
|
+
// src/commands/DeleteGroupCommand.ts
|
|
1654
|
+
|
|
1655
|
+
|
|
1656
|
+
|
|
1657
|
+
|
|
1658
|
+
var _DeleteGroupCommand = class _DeleteGroupCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1659
|
+
...commonParams
|
|
1660
|
+
}).m(function(Command, cs, config, o) {
|
|
1661
|
+
return [
|
|
1662
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1663
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1664
|
+
];
|
|
1665
|
+
}).s("Ardi", "DeleteGroup", {}).n("ResourceGroupsClient", "DeleteGroupCommand").f(void 0, void 0).ser(se_DeleteGroupCommand).de(de_DeleteGroupCommand).build() {
|
|
1666
|
+
};
|
|
1667
|
+
__name(_DeleteGroupCommand, "DeleteGroupCommand");
|
|
1668
|
+
var DeleteGroupCommand = _DeleteGroupCommand;
|
|
1669
|
+
|
|
1670
|
+
// src/commands/GetAccountSettingsCommand.ts
|
|
1671
|
+
|
|
1672
|
+
|
|
1673
|
+
|
|
1674
|
+
|
|
1675
|
+
var _GetAccountSettingsCommand = class _GetAccountSettingsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1676
|
+
...commonParams
|
|
1677
|
+
}).m(function(Command, cs, config, o) {
|
|
1678
|
+
return [
|
|
1679
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1680
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1681
|
+
];
|
|
1682
|
+
}).s("Ardi", "GetAccountSettings", {}).n("ResourceGroupsClient", "GetAccountSettingsCommand").f(void 0, void 0).ser(se_GetAccountSettingsCommand).de(de_GetAccountSettingsCommand).build() {
|
|
1683
|
+
};
|
|
1684
|
+
__name(_GetAccountSettingsCommand, "GetAccountSettingsCommand");
|
|
1685
|
+
var GetAccountSettingsCommand = _GetAccountSettingsCommand;
|
|
1686
|
+
|
|
1687
|
+
// src/commands/GetGroupCommand.ts
|
|
1688
|
+
|
|
1689
|
+
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
var _GetGroupCommand = class _GetGroupCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1693
|
+
...commonParams
|
|
1694
|
+
}).m(function(Command, cs, config, o) {
|
|
1695
|
+
return [
|
|
1696
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1697
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1698
|
+
];
|
|
1699
|
+
}).s("Ardi", "GetGroup", {}).n("ResourceGroupsClient", "GetGroupCommand").f(void 0, void 0).ser(se_GetGroupCommand).de(de_GetGroupCommand).build() {
|
|
1700
|
+
};
|
|
1701
|
+
__name(_GetGroupCommand, "GetGroupCommand");
|
|
1702
|
+
var GetGroupCommand = _GetGroupCommand;
|
|
1703
|
+
|
|
1704
|
+
// src/commands/GetGroupConfigurationCommand.ts
|
|
1705
|
+
|
|
1706
|
+
|
|
1707
|
+
|
|
1708
|
+
|
|
1709
|
+
var _GetGroupConfigurationCommand = class _GetGroupConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1710
|
+
...commonParams
|
|
1711
|
+
}).m(function(Command, cs, config, o) {
|
|
1712
|
+
return [
|
|
1713
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1714
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1715
|
+
];
|
|
1716
|
+
}).s("Ardi", "GetGroupConfiguration", {}).n("ResourceGroupsClient", "GetGroupConfigurationCommand").f(void 0, void 0).ser(se_GetGroupConfigurationCommand).de(de_GetGroupConfigurationCommand).build() {
|
|
1717
|
+
};
|
|
1718
|
+
__name(_GetGroupConfigurationCommand, "GetGroupConfigurationCommand");
|
|
1719
|
+
var GetGroupConfigurationCommand = _GetGroupConfigurationCommand;
|
|
1720
|
+
|
|
1721
|
+
// src/commands/GetGroupQueryCommand.ts
|
|
1722
|
+
|
|
1723
|
+
|
|
1724
|
+
|
|
1725
|
+
|
|
1726
|
+
var _GetGroupQueryCommand = class _GetGroupQueryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1727
|
+
...commonParams
|
|
1728
|
+
}).m(function(Command, cs, config, o) {
|
|
1729
|
+
return [
|
|
1730
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1731
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1732
|
+
];
|
|
1733
|
+
}).s("Ardi", "GetGroupQuery", {}).n("ResourceGroupsClient", "GetGroupQueryCommand").f(void 0, void 0).ser(se_GetGroupQueryCommand).de(de_GetGroupQueryCommand).build() {
|
|
1734
|
+
};
|
|
1735
|
+
__name(_GetGroupQueryCommand, "GetGroupQueryCommand");
|
|
1736
|
+
var GetGroupQueryCommand = _GetGroupQueryCommand;
|
|
1737
|
+
|
|
1738
|
+
// src/commands/GetTagsCommand.ts
|
|
1739
|
+
|
|
1740
|
+
|
|
1741
|
+
|
|
1742
|
+
|
|
1743
|
+
var _GetTagsCommand = class _GetTagsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1744
|
+
...commonParams
|
|
1745
|
+
}).m(function(Command, cs, config, o) {
|
|
1746
|
+
return [
|
|
1747
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1748
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1749
|
+
];
|
|
1750
|
+
}).s("Ardi", "GetTags", {}).n("ResourceGroupsClient", "GetTagsCommand").f(void 0, void 0).ser(se_GetTagsCommand).de(de_GetTagsCommand).build() {
|
|
1751
|
+
};
|
|
1752
|
+
__name(_GetTagsCommand, "GetTagsCommand");
|
|
1753
|
+
var GetTagsCommand = _GetTagsCommand;
|
|
1754
|
+
|
|
1755
|
+
// src/commands/GroupResourcesCommand.ts
|
|
1756
|
+
|
|
1757
|
+
|
|
1758
|
+
|
|
1759
|
+
|
|
1760
|
+
var _GroupResourcesCommand = class _GroupResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1761
|
+
...commonParams
|
|
1762
|
+
}).m(function(Command, cs, config, o) {
|
|
1763
|
+
return [
|
|
1764
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1765
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1766
|
+
];
|
|
1767
|
+
}).s("Ardi", "GroupResources", {}).n("ResourceGroupsClient", "GroupResourcesCommand").f(void 0, void 0).ser(se_GroupResourcesCommand).de(de_GroupResourcesCommand).build() {
|
|
1768
|
+
};
|
|
1769
|
+
__name(_GroupResourcesCommand, "GroupResourcesCommand");
|
|
1770
|
+
var GroupResourcesCommand = _GroupResourcesCommand;
|
|
1771
|
+
|
|
1772
|
+
// src/commands/ListGroupResourcesCommand.ts
|
|
1773
|
+
|
|
1774
|
+
|
|
1775
|
+
|
|
1776
|
+
|
|
1777
|
+
var _ListGroupResourcesCommand = class _ListGroupResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1778
|
+
...commonParams
|
|
1779
|
+
}).m(function(Command, cs, config, o) {
|
|
1780
|
+
return [
|
|
1781
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1782
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1783
|
+
];
|
|
1784
|
+
}).s("Ardi", "ListGroupResources", {}).n("ResourceGroupsClient", "ListGroupResourcesCommand").f(void 0, void 0).ser(se_ListGroupResourcesCommand).de(de_ListGroupResourcesCommand).build() {
|
|
1785
|
+
};
|
|
1786
|
+
__name(_ListGroupResourcesCommand, "ListGroupResourcesCommand");
|
|
1787
|
+
var ListGroupResourcesCommand = _ListGroupResourcesCommand;
|
|
1788
|
+
|
|
1789
|
+
// src/commands/ListGroupsCommand.ts
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
var _ListGroupsCommand = class _ListGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1795
|
+
...commonParams
|
|
1796
|
+
}).m(function(Command, cs, config, o) {
|
|
1797
|
+
return [
|
|
1798
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1799
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1800
|
+
];
|
|
1801
|
+
}).s("Ardi", "ListGroups", {}).n("ResourceGroupsClient", "ListGroupsCommand").f(void 0, void 0).ser(se_ListGroupsCommand).de(de_ListGroupsCommand).build() {
|
|
1802
|
+
};
|
|
1803
|
+
__name(_ListGroupsCommand, "ListGroupsCommand");
|
|
1804
|
+
var ListGroupsCommand = _ListGroupsCommand;
|
|
1805
|
+
|
|
1806
|
+
// src/commands/PutGroupConfigurationCommand.ts
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
var _PutGroupConfigurationCommand = class _PutGroupConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1812
|
+
...commonParams
|
|
1813
|
+
}).m(function(Command, cs, config, o) {
|
|
1814
|
+
return [
|
|
1815
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1816
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1817
|
+
];
|
|
1818
|
+
}).s("Ardi", "PutGroupConfiguration", {}).n("ResourceGroupsClient", "PutGroupConfigurationCommand").f(void 0, void 0).ser(se_PutGroupConfigurationCommand).de(de_PutGroupConfigurationCommand).build() {
|
|
1819
|
+
};
|
|
1820
|
+
__name(_PutGroupConfigurationCommand, "PutGroupConfigurationCommand");
|
|
1821
|
+
var PutGroupConfigurationCommand = _PutGroupConfigurationCommand;
|
|
1822
|
+
|
|
1823
|
+
// src/commands/SearchResourcesCommand.ts
|
|
1824
|
+
|
|
1825
|
+
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
var _SearchResourcesCommand = class _SearchResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1829
|
+
...commonParams
|
|
1830
|
+
}).m(function(Command, cs, config, o) {
|
|
1831
|
+
return [
|
|
1832
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1833
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1834
|
+
];
|
|
1835
|
+
}).s("Ardi", "SearchResources", {}).n("ResourceGroupsClient", "SearchResourcesCommand").f(void 0, void 0).ser(se_SearchResourcesCommand).de(de_SearchResourcesCommand).build() {
|
|
1836
|
+
};
|
|
1837
|
+
__name(_SearchResourcesCommand, "SearchResourcesCommand");
|
|
1838
|
+
var SearchResourcesCommand = _SearchResourcesCommand;
|
|
1839
|
+
|
|
1840
|
+
// src/commands/TagCommand.ts
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
var _TagCommand = class _TagCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1846
|
+
...commonParams
|
|
1847
|
+
}).m(function(Command, cs, config, o) {
|
|
1848
|
+
return [
|
|
1849
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1850
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1851
|
+
];
|
|
1852
|
+
}).s("Ardi", "Tag", {}).n("ResourceGroupsClient", "TagCommand").f(void 0, void 0).ser(se_TagCommand).de(de_TagCommand).build() {
|
|
1853
|
+
};
|
|
1854
|
+
__name(_TagCommand, "TagCommand");
|
|
1855
|
+
var TagCommand = _TagCommand;
|
|
1856
|
+
|
|
1857
|
+
// src/commands/UngroupResourcesCommand.ts
|
|
1858
|
+
|
|
1859
|
+
|
|
1860
|
+
|
|
1861
|
+
|
|
1862
|
+
var _UngroupResourcesCommand = class _UngroupResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1863
|
+
...commonParams
|
|
1864
|
+
}).m(function(Command, cs, config, o) {
|
|
1865
|
+
return [
|
|
1866
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1867
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1868
|
+
];
|
|
1869
|
+
}).s("Ardi", "UngroupResources", {}).n("ResourceGroupsClient", "UngroupResourcesCommand").f(void 0, void 0).ser(se_UngroupResourcesCommand).de(de_UngroupResourcesCommand).build() {
|
|
1870
|
+
};
|
|
1871
|
+
__name(_UngroupResourcesCommand, "UngroupResourcesCommand");
|
|
1872
|
+
var UngroupResourcesCommand = _UngroupResourcesCommand;
|
|
1873
|
+
|
|
1874
|
+
// src/commands/UntagCommand.ts
|
|
1875
|
+
|
|
1876
|
+
|
|
1877
|
+
|
|
1878
|
+
|
|
1879
|
+
var _UntagCommand = class _UntagCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1880
|
+
...commonParams
|
|
1881
|
+
}).m(function(Command, cs, config, o) {
|
|
1882
|
+
return [
|
|
1883
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1884
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1885
|
+
];
|
|
1886
|
+
}).s("Ardi", "Untag", {}).n("ResourceGroupsClient", "UntagCommand").f(void 0, void 0).ser(se_UntagCommand).de(de_UntagCommand).build() {
|
|
1887
|
+
};
|
|
1888
|
+
__name(_UntagCommand, "UntagCommand");
|
|
1889
|
+
var UntagCommand = _UntagCommand;
|
|
1890
|
+
|
|
1891
|
+
// src/commands/UpdateAccountSettingsCommand.ts
|
|
1892
|
+
|
|
1893
|
+
|
|
1894
|
+
|
|
1895
|
+
|
|
1896
|
+
var _UpdateAccountSettingsCommand = class _UpdateAccountSettingsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1897
|
+
...commonParams
|
|
1898
|
+
}).m(function(Command, cs, config, o) {
|
|
1899
|
+
return [
|
|
1900
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1901
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1902
|
+
];
|
|
1903
|
+
}).s("Ardi", "UpdateAccountSettings", {}).n("ResourceGroupsClient", "UpdateAccountSettingsCommand").f(void 0, void 0).ser(se_UpdateAccountSettingsCommand).de(de_UpdateAccountSettingsCommand).build() {
|
|
1904
|
+
};
|
|
1905
|
+
__name(_UpdateAccountSettingsCommand, "UpdateAccountSettingsCommand");
|
|
1906
|
+
var UpdateAccountSettingsCommand = _UpdateAccountSettingsCommand;
|
|
1907
|
+
|
|
1908
|
+
// src/commands/UpdateGroupCommand.ts
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
|
|
1912
|
+
|
|
1913
|
+
var _UpdateGroupCommand = class _UpdateGroupCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1914
|
+
...commonParams
|
|
1915
|
+
}).m(function(Command, cs, config, o) {
|
|
1916
|
+
return [
|
|
1917
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1918
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1919
|
+
];
|
|
1920
|
+
}).s("Ardi", "UpdateGroup", {}).n("ResourceGroupsClient", "UpdateGroupCommand").f(void 0, void 0).ser(se_UpdateGroupCommand).de(de_UpdateGroupCommand).build() {
|
|
1921
|
+
};
|
|
1922
|
+
__name(_UpdateGroupCommand, "UpdateGroupCommand");
|
|
1923
|
+
var UpdateGroupCommand = _UpdateGroupCommand;
|
|
1924
|
+
|
|
1925
|
+
// src/commands/UpdateGroupQueryCommand.ts
|
|
1926
|
+
|
|
1927
|
+
|
|
1928
|
+
|
|
1929
|
+
|
|
1930
|
+
var _UpdateGroupQueryCommand = class _UpdateGroupQueryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1931
|
+
...commonParams
|
|
1932
|
+
}).m(function(Command, cs, config, o) {
|
|
1933
|
+
return [
|
|
1934
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1935
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1936
|
+
];
|
|
1937
|
+
}).s("Ardi", "UpdateGroupQuery", {}).n("ResourceGroupsClient", "UpdateGroupQueryCommand").f(void 0, void 0).ser(se_UpdateGroupQueryCommand).de(de_UpdateGroupQueryCommand).build() {
|
|
1938
|
+
};
|
|
1939
|
+
__name(_UpdateGroupQueryCommand, "UpdateGroupQueryCommand");
|
|
1940
|
+
var UpdateGroupQueryCommand = _UpdateGroupQueryCommand;
|
|
1941
|
+
|
|
1942
|
+
// src/ResourceGroups.ts
|
|
1943
|
+
var commands = {
|
|
1944
|
+
CreateGroupCommand,
|
|
1945
|
+
DeleteGroupCommand,
|
|
1946
|
+
GetAccountSettingsCommand,
|
|
1947
|
+
GetGroupCommand,
|
|
1948
|
+
GetGroupConfigurationCommand,
|
|
1949
|
+
GetGroupQueryCommand,
|
|
1950
|
+
GetTagsCommand,
|
|
1951
|
+
GroupResourcesCommand,
|
|
1952
|
+
ListGroupResourcesCommand,
|
|
1953
|
+
ListGroupsCommand,
|
|
1954
|
+
PutGroupConfigurationCommand,
|
|
1955
|
+
SearchResourcesCommand,
|
|
1956
|
+
TagCommand,
|
|
1957
|
+
UngroupResourcesCommand,
|
|
1958
|
+
UntagCommand,
|
|
1959
|
+
UpdateAccountSettingsCommand,
|
|
1960
|
+
UpdateGroupCommand,
|
|
1961
|
+
UpdateGroupQueryCommand
|
|
1962
|
+
};
|
|
1963
|
+
var _ResourceGroups = class _ResourceGroups extends ResourceGroupsClient {
|
|
1964
|
+
};
|
|
1965
|
+
__name(_ResourceGroups, "ResourceGroups");
|
|
1966
|
+
var ResourceGroups = _ResourceGroups;
|
|
1967
|
+
(0, import_smithy_client.createAggregatedClient)(commands, ResourceGroups);
|
|
1968
|
+
|
|
1969
|
+
// src/pagination/ListGroupResourcesPaginator.ts
|
|
1970
|
+
|
|
1971
|
+
var paginateListGroupResources = (0, import_core.createPaginator)(ResourceGroupsClient, ListGroupResourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1972
|
+
|
|
1973
|
+
// src/pagination/ListGroupsPaginator.ts
|
|
1974
|
+
|
|
1975
|
+
var paginateListGroups = (0, import_core.createPaginator)(ResourceGroupsClient, ListGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1976
|
+
|
|
1977
|
+
// src/pagination/SearchResourcesPaginator.ts
|
|
1978
|
+
|
|
1979
|
+
var paginateSearchResources = (0, import_core.createPaginator)(ResourceGroupsClient, SearchResourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1980
|
+
|
|
1981
|
+
// src/index.ts
|
|
1982
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1983
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1984
|
+
0 && (module.exports = {
|
|
1985
|
+
BadRequestException,
|
|
1986
|
+
CreateGroupCommand,
|
|
1987
|
+
DeleteGroupCommand,
|
|
1988
|
+
ForbiddenException,
|
|
1989
|
+
GetAccountSettingsCommand,
|
|
1990
|
+
GetGroupCommand,
|
|
1991
|
+
GetGroupConfigurationCommand,
|
|
1992
|
+
GetGroupQueryCommand,
|
|
1993
|
+
GetTagsCommand,
|
|
1994
|
+
GroupConfigurationStatus,
|
|
1995
|
+
GroupFilterName,
|
|
1996
|
+
GroupLifecycleEventsDesiredStatus,
|
|
1997
|
+
GroupLifecycleEventsStatus,
|
|
1998
|
+
GroupResourcesCommand,
|
|
1999
|
+
InternalServerErrorException,
|
|
2000
|
+
ListGroupResourcesCommand,
|
|
2001
|
+
ListGroupsCommand,
|
|
2002
|
+
MethodNotAllowedException,
|
|
2003
|
+
NotFoundException,
|
|
2004
|
+
PutGroupConfigurationCommand,
|
|
2005
|
+
QueryErrorCode,
|
|
2006
|
+
QueryType,
|
|
2007
|
+
ResourceFilterName,
|
|
2008
|
+
ResourceGroups,
|
|
2009
|
+
ResourceGroupsClient,
|
|
2010
|
+
ResourceGroupsServiceException,
|
|
2011
|
+
ResourceStatusValue,
|
|
2012
|
+
SearchResourcesCommand,
|
|
2013
|
+
TagCommand,
|
|
2014
|
+
TooManyRequestsException,
|
|
2015
|
+
UnauthorizedException,
|
|
2016
|
+
UngroupResourcesCommand,
|
|
2017
|
+
UntagCommand,
|
|
2018
|
+
UpdateAccountSettingsCommand,
|
|
2019
|
+
UpdateGroupCommand,
|
|
2020
|
+
UpdateGroupQueryCommand,
|
|
2021
|
+
__Client,
|
|
2022
|
+
paginateListGroupResources,
|
|
2023
|
+
paginateListGroups,
|
|
2024
|
+
paginateSearchResources
|
|
2025
|
+
});
|