@aws-sdk/client-resource-groups 3.658.1 → 3.662.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -1
- package/dist-cjs/index.js +367 -35
- package/dist-es/ResourceGroups.js +10 -0
- package/dist-es/commands/CancelTagSyncTaskCommand.js +22 -0
- package/dist-es/commands/GetTagSyncTaskCommand.js +22 -0
- package/dist-es/commands/ListGroupingStatusesCommand.js +22 -0
- package/dist-es/commands/ListTagSyncTasksCommand.js +22 -0
- package/dist-es/commands/StartTagSyncTaskCommand.js +22 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +43 -22
- package/dist-es/pagination/ListGroupingStatusesPaginator.js +4 -0
- package/dist-es/pagination/ListTagSyncTasksPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +204 -4
- package/dist-types/ResourceGroups.d.ts +37 -1
- package/dist-types/ResourceGroupsClient.d.ts +8 -3
- package/dist-types/commands/CancelTagSyncTaskCommand.d.ts +104 -0
- package/dist-types/commands/CreateGroupCommand.d.ts +9 -0
- package/dist-types/commands/DeleteGroupCommand.d.ts +6 -0
- package/dist-types/commands/GetGroupCommand.d.ts +6 -0
- package/dist-types/commands/GetTagSyncTaskCommand.d.ts +112 -0
- package/dist-types/commands/GetTagsCommand.d.ts +1 -1
- package/dist-types/commands/GroupResourcesCommand.d.ts +7 -3
- package/dist-types/commands/ListGroupResourcesCommand.d.ts +1 -1
- package/dist-types/commands/ListGroupingStatusesCommand.d.ts +109 -0
- package/dist-types/commands/ListGroupsCommand.d.ts +11 -1
- package/dist-types/commands/ListTagSyncTasksCommand.d.ts +122 -0
- package/dist-types/commands/StartTagSyncTaskCommand.d.ts +122 -0
- package/dist-types/commands/TagCommand.d.ts +1 -1
- package/dist-types/commands/UpdateGroupCommand.d.ts +9 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/index.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +622 -93
- package/dist-types/pagination/ListGroupingStatusesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTagSyncTasksPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/ResourceGroups.d.ts +86 -0
- package/dist-types/ts3.4/ResourceGroupsClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CancelTagSyncTaskCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/GetTagSyncTaskCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListGroupingStatusesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagSyncTasksCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/StartTagSyncTaskCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +158 -38
- package/dist-types/ts3.4/pagination/ListGroupingStatusesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTagSyncTasksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +35 -35
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
|
+
import { CancelTagSyncTaskCommand, } from "./commands/CancelTagSyncTaskCommand";
|
|
2
3
|
import { CreateGroupCommand } from "./commands/CreateGroupCommand";
|
|
3
4
|
import { DeleteGroupCommand } from "./commands/DeleteGroupCommand";
|
|
4
5
|
import { GetAccountSettingsCommand, } from "./commands/GetAccountSettingsCommand";
|
|
@@ -6,11 +7,15 @@ import { GetGroupCommand } from "./commands/GetGroupCommand";
|
|
|
6
7
|
import { GetGroupConfigurationCommand, } from "./commands/GetGroupConfigurationCommand";
|
|
7
8
|
import { GetGroupQueryCommand, } from "./commands/GetGroupQueryCommand";
|
|
8
9
|
import { GetTagsCommand } from "./commands/GetTagsCommand";
|
|
10
|
+
import { GetTagSyncTaskCommand, } from "./commands/GetTagSyncTaskCommand";
|
|
9
11
|
import { GroupResourcesCommand, } from "./commands/GroupResourcesCommand";
|
|
12
|
+
import { ListGroupingStatusesCommand, } from "./commands/ListGroupingStatusesCommand";
|
|
10
13
|
import { ListGroupResourcesCommand, } from "./commands/ListGroupResourcesCommand";
|
|
11
14
|
import { ListGroupsCommand } from "./commands/ListGroupsCommand";
|
|
15
|
+
import { ListTagSyncTasksCommand, } from "./commands/ListTagSyncTasksCommand";
|
|
12
16
|
import { PutGroupConfigurationCommand, } from "./commands/PutGroupConfigurationCommand";
|
|
13
17
|
import { SearchResourcesCommand, } from "./commands/SearchResourcesCommand";
|
|
18
|
+
import { StartTagSyncTaskCommand, } from "./commands/StartTagSyncTaskCommand";
|
|
14
19
|
import { TagCommand } from "./commands/TagCommand";
|
|
15
20
|
import { UngroupResourcesCommand, } from "./commands/UngroupResourcesCommand";
|
|
16
21
|
import { UntagCommand } from "./commands/UntagCommand";
|
|
@@ -19,6 +24,7 @@ import { UpdateGroupCommand } from "./commands/UpdateGroupCommand";
|
|
|
19
24
|
import { UpdateGroupQueryCommand, } from "./commands/UpdateGroupQueryCommand";
|
|
20
25
|
import { ResourceGroupsClient } from "./ResourceGroupsClient";
|
|
21
26
|
const commands = {
|
|
27
|
+
CancelTagSyncTaskCommand,
|
|
22
28
|
CreateGroupCommand,
|
|
23
29
|
DeleteGroupCommand,
|
|
24
30
|
GetAccountSettingsCommand,
|
|
@@ -26,11 +32,15 @@ const commands = {
|
|
|
26
32
|
GetGroupConfigurationCommand,
|
|
27
33
|
GetGroupQueryCommand,
|
|
28
34
|
GetTagsCommand,
|
|
35
|
+
GetTagSyncTaskCommand,
|
|
29
36
|
GroupResourcesCommand,
|
|
37
|
+
ListGroupingStatusesCommand,
|
|
30
38
|
ListGroupResourcesCommand,
|
|
31
39
|
ListGroupsCommand,
|
|
40
|
+
ListTagSyncTasksCommand,
|
|
32
41
|
PutGroupConfigurationCommand,
|
|
33
42
|
SearchResourcesCommand,
|
|
43
|
+
StartTagSyncTaskCommand,
|
|
34
44
|
TagCommand,
|
|
35
45
|
UngroupResourcesCommand,
|
|
36
46
|
UntagCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_CancelTagSyncTaskCommand, se_CancelTagSyncTaskCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CancelTagSyncTaskCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("Ardi", "CancelTagSyncTask", {})
|
|
17
|
+
.n("ResourceGroupsClient", "CancelTagSyncTaskCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_CancelTagSyncTaskCommand)
|
|
20
|
+
.de(de_CancelTagSyncTaskCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_GetTagSyncTaskCommand, se_GetTagSyncTaskCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetTagSyncTaskCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("Ardi", "GetTagSyncTask", {})
|
|
17
|
+
.n("ResourceGroupsClient", "GetTagSyncTaskCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_GetTagSyncTaskCommand)
|
|
20
|
+
.de(de_GetTagSyncTaskCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListGroupingStatusesCommand, se_ListGroupingStatusesCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListGroupingStatusesCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("Ardi", "ListGroupingStatuses", {})
|
|
17
|
+
.n("ResourceGroupsClient", "ListGroupingStatusesCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListGroupingStatusesCommand)
|
|
20
|
+
.de(de_ListGroupingStatusesCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListTagSyncTasksCommand, se_ListTagSyncTasksCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListTagSyncTasksCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("Ardi", "ListTagSyncTasks", {})
|
|
17
|
+
.n("ResourceGroupsClient", "ListTagSyncTasksCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListTagSyncTasksCommand)
|
|
20
|
+
.de(de_ListTagSyncTasksCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_StartTagSyncTaskCommand, se_StartTagSyncTaskCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class StartTagSyncTaskCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("Ardi", "StartTagSyncTask", {})
|
|
17
|
+
.n("ResourceGroupsClient", "StartTagSyncTaskCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_StartTagSyncTaskCommand)
|
|
20
|
+
.de(de_StartTagSyncTaskCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
+
export * from "./CancelTagSyncTaskCommand";
|
|
1
2
|
export * from "./CreateGroupCommand";
|
|
2
3
|
export * from "./DeleteGroupCommand";
|
|
3
4
|
export * from "./GetAccountSettingsCommand";
|
|
4
5
|
export * from "./GetGroupCommand";
|
|
5
6
|
export * from "./GetGroupConfigurationCommand";
|
|
6
7
|
export * from "./GetGroupQueryCommand";
|
|
8
|
+
export * from "./GetTagSyncTaskCommand";
|
|
7
9
|
export * from "./GetTagsCommand";
|
|
8
10
|
export * from "./GroupResourcesCommand";
|
|
9
11
|
export * from "./ListGroupResourcesCommand";
|
|
12
|
+
export * from "./ListGroupingStatusesCommand";
|
|
10
13
|
export * from "./ListGroupsCommand";
|
|
14
|
+
export * from "./ListTagSyncTasksCommand";
|
|
11
15
|
export * from "./PutGroupConfigurationCommand";
|
|
12
16
|
export * from "./SearchResourcesCommand";
|
|
17
|
+
export * from "./StartTagSyncTaskCommand";
|
|
13
18
|
export * from "./TagCommand";
|
|
14
19
|
export * from "./UngroupResourcesCommand";
|
|
15
20
|
export * from "./UntagCommand";
|
|
@@ -22,15 +22,6 @@ export class BadRequestException extends __BaseException {
|
|
|
22
22
|
this.Message = opts.Message;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
export const QueryType = {
|
|
26
|
-
CLOUDFORMATION_STACK_1_0: "CLOUDFORMATION_STACK_1_0",
|
|
27
|
-
TAG_FILTERS_1_0: "TAG_FILTERS_1_0",
|
|
28
|
-
};
|
|
29
|
-
export const GroupConfigurationStatus = {
|
|
30
|
-
UPDATE_COMPLETE: "UPDATE_COMPLETE",
|
|
31
|
-
UPDATE_FAILED: "UPDATE_FAILED",
|
|
32
|
-
UPDATING: "UPDATING",
|
|
33
|
-
};
|
|
34
25
|
export class ForbiddenException extends __BaseException {
|
|
35
26
|
constructor(opts) {
|
|
36
27
|
super({
|
|
@@ -83,6 +74,28 @@ export class TooManyRequestsException extends __BaseException {
|
|
|
83
74
|
this.Message = opts.Message;
|
|
84
75
|
}
|
|
85
76
|
}
|
|
77
|
+
export class UnauthorizedException extends __BaseException {
|
|
78
|
+
constructor(opts) {
|
|
79
|
+
super({
|
|
80
|
+
name: "UnauthorizedException",
|
|
81
|
+
$fault: "client",
|
|
82
|
+
...opts,
|
|
83
|
+
});
|
|
84
|
+
this.name = "UnauthorizedException";
|
|
85
|
+
this.$fault = "client";
|
|
86
|
+
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
87
|
+
this.Message = opts.Message;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
export const QueryType = {
|
|
91
|
+
CLOUDFORMATION_STACK_1_0: "CLOUDFORMATION_STACK_1_0",
|
|
92
|
+
TAG_FILTERS_1_0: "TAG_FILTERS_1_0",
|
|
93
|
+
};
|
|
94
|
+
export const GroupConfigurationStatus = {
|
|
95
|
+
UPDATE_COMPLETE: "UPDATE_COMPLETE",
|
|
96
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
97
|
+
UPDATING: "UPDATING",
|
|
98
|
+
};
|
|
86
99
|
export class NotFoundException extends __BaseException {
|
|
87
100
|
constructor(opts) {
|
|
88
101
|
super({
|
|
@@ -96,6 +109,24 @@ export class NotFoundException extends __BaseException {
|
|
|
96
109
|
this.Message = opts.Message;
|
|
97
110
|
}
|
|
98
111
|
}
|
|
112
|
+
export const TagSyncTaskStatus = {
|
|
113
|
+
ACTIVE: "ACTIVE",
|
|
114
|
+
ERROR: "ERROR",
|
|
115
|
+
};
|
|
116
|
+
export const ListGroupingStatusesFilterName = {
|
|
117
|
+
ResourceArn: "resource-arn",
|
|
118
|
+
Status: "status",
|
|
119
|
+
};
|
|
120
|
+
export const GroupingType = {
|
|
121
|
+
GROUP: "GROUP",
|
|
122
|
+
UNGROUP: "UNGROUP",
|
|
123
|
+
};
|
|
124
|
+
export const GroupingStatus = {
|
|
125
|
+
FAILED: "FAILED",
|
|
126
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
127
|
+
SKIPPED: "SKIPPED",
|
|
128
|
+
SUCCESS: "SUCCESS",
|
|
129
|
+
};
|
|
99
130
|
export const ResourceFilterName = {
|
|
100
131
|
ResourceType: "resource-type",
|
|
101
132
|
};
|
|
@@ -108,20 +139,10 @@ export const QueryErrorCode = {
|
|
|
108
139
|
export const ResourceStatusValue = {
|
|
109
140
|
Pending: "PENDING",
|
|
110
141
|
};
|
|
111
|
-
export class UnauthorizedException extends __BaseException {
|
|
112
|
-
constructor(opts) {
|
|
113
|
-
super({
|
|
114
|
-
name: "UnauthorizedException",
|
|
115
|
-
$fault: "client",
|
|
116
|
-
...opts,
|
|
117
|
-
});
|
|
118
|
-
this.name = "UnauthorizedException";
|
|
119
|
-
this.$fault = "client";
|
|
120
|
-
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
121
|
-
this.Message = opts.Message;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
142
|
export const GroupFilterName = {
|
|
125
143
|
ConfigurationType: "configuration-type",
|
|
144
|
+
Criticality: "criticality",
|
|
145
|
+
DisplayName: "display-name",
|
|
146
|
+
Owner: "owner",
|
|
126
147
|
ResourceType: "resource-type",
|
|
127
148
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListGroupingStatusesCommand, } from "../commands/ListGroupingStatusesCommand";
|
|
3
|
+
import { ResourceGroupsClient } from "../ResourceGroupsClient";
|
|
4
|
+
export const paginateListGroupingStatuses = createPaginator(ResourceGroupsClient, ListGroupingStatusesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListTagSyncTasksCommand, } from "../commands/ListTagSyncTasksCommand";
|
|
3
|
+
import { ResourceGroupsClient } from "../ResourceGroupsClient";
|
|
4
|
+
export const paginateListTagSyncTasks = createPaginator(ResourceGroupsClient, ListTagSyncTasksCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { BadRequestException, ForbiddenException, InternalServerErrorException, MethodNotAllowedException, NotFoundException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
|
|
5
5
|
import { ResourceGroupsServiceException as __BaseException } from "../models/ResourceGroupsServiceException";
|
|
6
|
+
export const se_CancelTagSyncTaskCommand = async (input, context) => {
|
|
7
|
+
const b = rb(input, context);
|
|
8
|
+
const headers = {
|
|
9
|
+
"content-type": "application/json",
|
|
10
|
+
};
|
|
11
|
+
b.bp("/cancel-tag-sync-task");
|
|
12
|
+
let body;
|
|
13
|
+
body = JSON.stringify(take(input, {
|
|
14
|
+
TaskArn: [],
|
|
15
|
+
}));
|
|
16
|
+
b.m("POST").h(headers).b(body);
|
|
17
|
+
return b.build();
|
|
18
|
+
};
|
|
6
19
|
export const se_CreateGroupCommand = async (input, context) => {
|
|
7
20
|
const b = rb(input, context);
|
|
8
21
|
const headers = {
|
|
@@ -12,8 +25,11 @@ export const se_CreateGroupCommand = async (input, context) => {
|
|
|
12
25
|
let body;
|
|
13
26
|
body = JSON.stringify(take(input, {
|
|
14
27
|
Configuration: (_) => _json(_),
|
|
28
|
+
Criticality: [],
|
|
15
29
|
Description: [],
|
|
30
|
+
DisplayName: [],
|
|
16
31
|
Name: [],
|
|
32
|
+
Owner: [],
|
|
17
33
|
ResourceQuery: (_) => _json(_),
|
|
18
34
|
Tags: (_) => _json(_),
|
|
19
35
|
}));
|
|
@@ -92,6 +108,19 @@ export const se_GetTagsCommand = async (input, context) => {
|
|
|
92
108
|
b.m("GET").h(headers).b(body);
|
|
93
109
|
return b.build();
|
|
94
110
|
};
|
|
111
|
+
export const se_GetTagSyncTaskCommand = async (input, context) => {
|
|
112
|
+
const b = rb(input, context);
|
|
113
|
+
const headers = {
|
|
114
|
+
"content-type": "application/json",
|
|
115
|
+
};
|
|
116
|
+
b.bp("/get-tag-sync-task");
|
|
117
|
+
let body;
|
|
118
|
+
body = JSON.stringify(take(input, {
|
|
119
|
+
TaskArn: [],
|
|
120
|
+
}));
|
|
121
|
+
b.m("POST").h(headers).b(body);
|
|
122
|
+
return b.build();
|
|
123
|
+
};
|
|
95
124
|
export const se_GroupResourcesCommand = async (input, context) => {
|
|
96
125
|
const b = rb(input, context);
|
|
97
126
|
const headers = {
|
|
@@ -106,6 +135,22 @@ export const se_GroupResourcesCommand = async (input, context) => {
|
|
|
106
135
|
b.m("POST").h(headers).b(body);
|
|
107
136
|
return b.build();
|
|
108
137
|
};
|
|
138
|
+
export const se_ListGroupingStatusesCommand = async (input, context) => {
|
|
139
|
+
const b = rb(input, context);
|
|
140
|
+
const headers = {
|
|
141
|
+
"content-type": "application/json",
|
|
142
|
+
};
|
|
143
|
+
b.bp("/list-grouping-statuses");
|
|
144
|
+
let body;
|
|
145
|
+
body = JSON.stringify(take(input, {
|
|
146
|
+
Filters: (_) => _json(_),
|
|
147
|
+
Group: [],
|
|
148
|
+
MaxResults: [],
|
|
149
|
+
NextToken: [],
|
|
150
|
+
}));
|
|
151
|
+
b.m("POST").h(headers).b(body);
|
|
152
|
+
return b.build();
|
|
153
|
+
};
|
|
109
154
|
export const se_ListGroupResourcesCommand = async (input, context) => {
|
|
110
155
|
const b = rb(input, context);
|
|
111
156
|
const headers = {
|
|
@@ -140,6 +185,21 @@ export const se_ListGroupsCommand = async (input, context) => {
|
|
|
140
185
|
b.m("POST").h(headers).q(query).b(body);
|
|
141
186
|
return b.build();
|
|
142
187
|
};
|
|
188
|
+
export const se_ListTagSyncTasksCommand = async (input, context) => {
|
|
189
|
+
const b = rb(input, context);
|
|
190
|
+
const headers = {
|
|
191
|
+
"content-type": "application/json",
|
|
192
|
+
};
|
|
193
|
+
b.bp("/list-tag-sync-tasks");
|
|
194
|
+
let body;
|
|
195
|
+
body = JSON.stringify(take(input, {
|
|
196
|
+
Filters: (_) => _json(_),
|
|
197
|
+
MaxResults: [],
|
|
198
|
+
NextToken: [],
|
|
199
|
+
}));
|
|
200
|
+
b.m("POST").h(headers).b(body);
|
|
201
|
+
return b.build();
|
|
202
|
+
};
|
|
143
203
|
export const se_PutGroupConfigurationCommand = async (input, context) => {
|
|
144
204
|
const b = rb(input, context);
|
|
145
205
|
const headers = {
|
|
@@ -169,6 +229,22 @@ export const se_SearchResourcesCommand = async (input, context) => {
|
|
|
169
229
|
b.m("POST").h(headers).b(body);
|
|
170
230
|
return b.build();
|
|
171
231
|
};
|
|
232
|
+
export const se_StartTagSyncTaskCommand = async (input, context) => {
|
|
233
|
+
const b = rb(input, context);
|
|
234
|
+
const headers = {
|
|
235
|
+
"content-type": "application/json",
|
|
236
|
+
};
|
|
237
|
+
b.bp("/start-tag-sync-task");
|
|
238
|
+
let body;
|
|
239
|
+
body = JSON.stringify(take(input, {
|
|
240
|
+
Group: [],
|
|
241
|
+
RoleArn: [],
|
|
242
|
+
TagKey: [],
|
|
243
|
+
TagValue: [],
|
|
244
|
+
}));
|
|
245
|
+
b.m("POST").h(headers).b(body);
|
|
246
|
+
return b.build();
|
|
247
|
+
};
|
|
172
248
|
export const se_TagCommand = async (input, context) => {
|
|
173
249
|
const b = rb(input, context);
|
|
174
250
|
const headers = {
|
|
@@ -232,9 +308,12 @@ export const se_UpdateGroupCommand = async (input, context) => {
|
|
|
232
308
|
b.bp("/update-group");
|
|
233
309
|
let body;
|
|
234
310
|
body = JSON.stringify(take(input, {
|
|
311
|
+
Criticality: [],
|
|
235
312
|
Description: [],
|
|
313
|
+
DisplayName: [],
|
|
236
314
|
Group: [],
|
|
237
315
|
GroupName: [],
|
|
316
|
+
Owner: [],
|
|
238
317
|
}));
|
|
239
318
|
b.m("POST").h(headers).b(body);
|
|
240
319
|
return b.build();
|
|
@@ -254,6 +333,16 @@ export const se_UpdateGroupQueryCommand = async (input, context) => {
|
|
|
254
333
|
b.m("POST").h(headers).b(body);
|
|
255
334
|
return b.build();
|
|
256
335
|
};
|
|
336
|
+
export const de_CancelTagSyncTaskCommand = async (output, context) => {
|
|
337
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
338
|
+
return de_CommandError(output, context);
|
|
339
|
+
}
|
|
340
|
+
const contents = map({
|
|
341
|
+
$metadata: deserializeMetadata(output),
|
|
342
|
+
});
|
|
343
|
+
await collectBody(output.body, context);
|
|
344
|
+
return contents;
|
|
345
|
+
};
|
|
257
346
|
export const de_CreateGroupCommand = async (output, context) => {
|
|
258
347
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
259
348
|
return de_CommandError(output, context);
|
|
@@ -356,6 +445,28 @@ export const de_GetTagsCommand = async (output, context) => {
|
|
|
356
445
|
Object.assign(contents, doc);
|
|
357
446
|
return contents;
|
|
358
447
|
};
|
|
448
|
+
export const de_GetTagSyncTaskCommand = async (output, context) => {
|
|
449
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
450
|
+
return de_CommandError(output, context);
|
|
451
|
+
}
|
|
452
|
+
const contents = map({
|
|
453
|
+
$metadata: deserializeMetadata(output),
|
|
454
|
+
});
|
|
455
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
456
|
+
const doc = take(data, {
|
|
457
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
458
|
+
ErrorMessage: __expectString,
|
|
459
|
+
GroupArn: __expectString,
|
|
460
|
+
GroupName: __expectString,
|
|
461
|
+
RoleArn: __expectString,
|
|
462
|
+
Status: __expectString,
|
|
463
|
+
TagKey: __expectString,
|
|
464
|
+
TagValue: __expectString,
|
|
465
|
+
TaskArn: __expectString,
|
|
466
|
+
});
|
|
467
|
+
Object.assign(contents, doc);
|
|
468
|
+
return contents;
|
|
469
|
+
};
|
|
359
470
|
export const de_GroupResourcesCommand = async (output, context) => {
|
|
360
471
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
361
472
|
return de_CommandError(output, context);
|
|
@@ -372,6 +483,22 @@ export const de_GroupResourcesCommand = async (output, context) => {
|
|
|
372
483
|
Object.assign(contents, doc);
|
|
373
484
|
return contents;
|
|
374
485
|
};
|
|
486
|
+
export const de_ListGroupingStatusesCommand = async (output, context) => {
|
|
487
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
488
|
+
return de_CommandError(output, context);
|
|
489
|
+
}
|
|
490
|
+
const contents = map({
|
|
491
|
+
$metadata: deserializeMetadata(output),
|
|
492
|
+
});
|
|
493
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
494
|
+
const doc = take(data, {
|
|
495
|
+
Group: __expectString,
|
|
496
|
+
GroupingStatuses: (_) => de_GroupingStatusesList(_, context),
|
|
497
|
+
NextToken: __expectString,
|
|
498
|
+
});
|
|
499
|
+
Object.assign(contents, doc);
|
|
500
|
+
return contents;
|
|
501
|
+
};
|
|
375
502
|
export const de_ListGroupResourcesCommand = async (output, context) => {
|
|
376
503
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
377
504
|
return de_CommandError(output, context);
|
|
@@ -405,6 +532,21 @@ export const de_ListGroupsCommand = async (output, context) => {
|
|
|
405
532
|
Object.assign(contents, doc);
|
|
406
533
|
return contents;
|
|
407
534
|
};
|
|
535
|
+
export const de_ListTagSyncTasksCommand = async (output, context) => {
|
|
536
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
537
|
+
return de_CommandError(output, context);
|
|
538
|
+
}
|
|
539
|
+
const contents = map({
|
|
540
|
+
$metadata: deserializeMetadata(output),
|
|
541
|
+
});
|
|
542
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
543
|
+
const doc = take(data, {
|
|
544
|
+
NextToken: __expectString,
|
|
545
|
+
TagSyncTasks: (_) => de_TagSyncTaskList(_, context),
|
|
546
|
+
});
|
|
547
|
+
Object.assign(contents, doc);
|
|
548
|
+
return contents;
|
|
549
|
+
};
|
|
408
550
|
export const de_PutGroupConfigurationCommand = async (output, context) => {
|
|
409
551
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
410
552
|
return de_CommandError(output, context);
|
|
@@ -431,6 +573,25 @@ export const de_SearchResourcesCommand = async (output, context) => {
|
|
|
431
573
|
Object.assign(contents, doc);
|
|
432
574
|
return contents;
|
|
433
575
|
};
|
|
576
|
+
export const de_StartTagSyncTaskCommand = async (output, context) => {
|
|
577
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
578
|
+
return de_CommandError(output, context);
|
|
579
|
+
}
|
|
580
|
+
const contents = map({
|
|
581
|
+
$metadata: deserializeMetadata(output),
|
|
582
|
+
});
|
|
583
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
584
|
+
const doc = take(data, {
|
|
585
|
+
GroupArn: __expectString,
|
|
586
|
+
GroupName: __expectString,
|
|
587
|
+
RoleArn: __expectString,
|
|
588
|
+
TagKey: __expectString,
|
|
589
|
+
TagValue: __expectString,
|
|
590
|
+
TaskArn: __expectString,
|
|
591
|
+
});
|
|
592
|
+
Object.assign(contents, doc);
|
|
593
|
+
return contents;
|
|
594
|
+
};
|
|
434
595
|
export const de_TagCommand = async (output, context) => {
|
|
435
596
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
436
597
|
return de_CommandError(output, context);
|
|
@@ -541,12 +702,12 @@ const de_CommandError = async (output, context) => {
|
|
|
541
702
|
case "TooManyRequestsException":
|
|
542
703
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
543
704
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
544
|
-
case "NotFoundException":
|
|
545
|
-
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
546
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
547
705
|
case "UnauthorizedException":
|
|
548
706
|
case "com.amazonaws.resourcegroups#UnauthorizedException":
|
|
549
707
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
708
|
+
case "NotFoundException":
|
|
709
|
+
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
710
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
550
711
|
default:
|
|
551
712
|
const parsedBody = parsedOutput.body;
|
|
552
713
|
return throwDefaultError({
|
|
@@ -648,6 +809,45 @@ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
|
648
809
|
});
|
|
649
810
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
650
811
|
};
|
|
812
|
+
const de_GroupingStatusesItem = (output, context) => {
|
|
813
|
+
return take(output, {
|
|
814
|
+
Action: __expectString,
|
|
815
|
+
ErrorCode: __expectString,
|
|
816
|
+
ErrorMessage: __expectString,
|
|
817
|
+
ResourceArn: __expectString,
|
|
818
|
+
Status: __expectString,
|
|
819
|
+
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
820
|
+
});
|
|
821
|
+
};
|
|
822
|
+
const de_GroupingStatusesList = (output, context) => {
|
|
823
|
+
const retVal = (output || [])
|
|
824
|
+
.filter((e) => e != null)
|
|
825
|
+
.map((entry) => {
|
|
826
|
+
return de_GroupingStatusesItem(entry, context);
|
|
827
|
+
});
|
|
828
|
+
return retVal;
|
|
829
|
+
};
|
|
830
|
+
const de_TagSyncTaskItem = (output, context) => {
|
|
831
|
+
return take(output, {
|
|
832
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
833
|
+
ErrorMessage: __expectString,
|
|
834
|
+
GroupArn: __expectString,
|
|
835
|
+
GroupName: __expectString,
|
|
836
|
+
RoleArn: __expectString,
|
|
837
|
+
Status: __expectString,
|
|
838
|
+
TagKey: __expectString,
|
|
839
|
+
TagValue: __expectString,
|
|
840
|
+
TaskArn: __expectString,
|
|
841
|
+
});
|
|
842
|
+
};
|
|
843
|
+
const de_TagSyncTaskList = (output, context) => {
|
|
844
|
+
const retVal = (output || [])
|
|
845
|
+
.filter((e) => e != null)
|
|
846
|
+
.map((entry) => {
|
|
847
|
+
return de_TagSyncTaskItem(entry, context);
|
|
848
|
+
});
|
|
849
|
+
return retVal;
|
|
850
|
+
};
|
|
651
851
|
const deserializeMetadata = (output) => ({
|
|
652
852
|
httpStatusCode: output.statusCode,
|
|
653
853
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|