@aws-sdk/client-synthetics 3.476.0 → 3.478.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/pagination/DescribeCanariesLastRunPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeCanariesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeRuntimeVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/GetCanaryRunsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssociatedGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListGroupResourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListGroupsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +107 -252
- package/dist-es/pagination/DescribeCanariesLastRunPaginator.js +2 -23
- package/dist-es/pagination/DescribeCanariesPaginator.js +2 -23
- package/dist-es/pagination/DescribeRuntimeVersionsPaginator.js +2 -23
- package/dist-es/pagination/GetCanaryRunsPaginator.js +2 -23
- package/dist-es/pagination/ListAssociatedGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListGroupResourcesPaginator.js +2 -23
- package/dist-es/pagination/ListGroupsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +108 -253
- package/dist-types/pagination/DescribeCanariesLastRunPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeCanariesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeRuntimeVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetCanaryRunsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssociatedGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGroupResourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGroupsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeCanariesLastRunPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeCanariesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeRuntimeVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetCanaryRunsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssociatedGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGroupResourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGroupsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetCanaryRunsCommand, } from "../commands/GetCanaryRunsCommand";
|
|
2
3
|
import { SyntheticsClient } from "../SyntheticsClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetCanaryRunsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetCanaryRuns(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SyntheticsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Synthetics | SyntheticsClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetCanaryRuns = createPaginator(SyntheticsClient, GetCanaryRunsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAssociatedGroupsCommand, } from "../commands/ListAssociatedGroupsCommand";
|
|
2
3
|
import { SyntheticsClient } from "../SyntheticsClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAssociatedGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAssociatedGroups(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SyntheticsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Synthetics | SyntheticsClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListAssociatedGroups = createPaginator(SyntheticsClient, ListAssociatedGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListGroupResourcesCommand, } from "../commands/ListGroupResourcesCommand";
|
|
2
3
|
import { SyntheticsClient } from "../SyntheticsClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListGroupResourcesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListGroupResources(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SyntheticsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Synthetics | SyntheticsClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListGroupResources = createPaginator(SyntheticsClient, ListGroupResourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListGroupsCommand } from "../commands/ListGroupsCommand";
|
|
2
3
|
import { SyntheticsClient } from "../SyntheticsClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListGroups(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SyntheticsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Synthetics | SyntheticsClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListGroups = createPaginator(SyntheticsClient, ListGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,34 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { BadRequestException, ConflictException, InternalFailureException, InternalServerException, NotFoundException, RequestEntityTooLargeException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { SyntheticsServiceException as __BaseException } from "../models/SyntheticsServiceException";
|
|
5
5
|
export const se_AssociateResourceCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
b.bp("/group/{GroupIdentifier}/associate");
|
|
11
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
12
12
|
let body;
|
|
13
13
|
body = JSON.stringify(take(input, {
|
|
14
14
|
ResourceArn: [],
|
|
15
15
|
}));
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
hostname,
|
|
19
|
-
port,
|
|
20
|
-
method: "PATCH",
|
|
21
|
-
headers,
|
|
22
|
-
path: resolvedPath,
|
|
23
|
-
body,
|
|
24
|
-
});
|
|
16
|
+
b.m("PATCH").h(headers).b(body);
|
|
17
|
+
return b.build();
|
|
25
18
|
};
|
|
26
19
|
export const se_CreateCanaryCommand = async (input, context) => {
|
|
27
|
-
const
|
|
20
|
+
const b = rb(input, context);
|
|
28
21
|
const headers = {
|
|
29
22
|
"content-type": "application/json",
|
|
30
23
|
};
|
|
31
|
-
|
|
24
|
+
b.bp("/canary");
|
|
32
25
|
let body;
|
|
33
26
|
body = JSON.stringify(take(input, {
|
|
34
27
|
ArtifactConfig: (_) => _json(_),
|
|
@@ -44,377 +37,242 @@ export const se_CreateCanaryCommand = async (input, context) => {
|
|
|
44
37
|
Tags: (_) => _json(_),
|
|
45
38
|
VpcConfig: (_) => _json(_),
|
|
46
39
|
}));
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
hostname,
|
|
50
|
-
port,
|
|
51
|
-
method: "POST",
|
|
52
|
-
headers,
|
|
53
|
-
path: resolvedPath,
|
|
54
|
-
body,
|
|
55
|
-
});
|
|
40
|
+
b.m("POST").h(headers).b(body);
|
|
41
|
+
return b.build();
|
|
56
42
|
};
|
|
57
43
|
export const se_CreateGroupCommand = async (input, context) => {
|
|
58
|
-
const
|
|
44
|
+
const b = rb(input, context);
|
|
59
45
|
const headers = {
|
|
60
46
|
"content-type": "application/json",
|
|
61
47
|
};
|
|
62
|
-
|
|
48
|
+
b.bp("/group");
|
|
63
49
|
let body;
|
|
64
50
|
body = JSON.stringify(take(input, {
|
|
65
51
|
Name: [],
|
|
66
52
|
Tags: (_) => _json(_),
|
|
67
53
|
}));
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
hostname,
|
|
71
|
-
port,
|
|
72
|
-
method: "POST",
|
|
73
|
-
headers,
|
|
74
|
-
path: resolvedPath,
|
|
75
|
-
body,
|
|
76
|
-
});
|
|
54
|
+
b.m("POST").h(headers).b(body);
|
|
55
|
+
return b.build();
|
|
77
56
|
};
|
|
78
57
|
export const se_DeleteCanaryCommand = async (input, context) => {
|
|
79
|
-
const
|
|
58
|
+
const b = rb(input, context);
|
|
80
59
|
const headers = {};
|
|
81
|
-
|
|
82
|
-
|
|
60
|
+
b.bp("/canary/{Name}");
|
|
61
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
83
62
|
const query = map({
|
|
84
|
-
|
|
63
|
+
[_dL]: [() => input.DeleteLambda !== void 0, () => input[_DL].toString()],
|
|
85
64
|
});
|
|
86
65
|
let body;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
hostname,
|
|
90
|
-
port,
|
|
91
|
-
method: "DELETE",
|
|
92
|
-
headers,
|
|
93
|
-
path: resolvedPath,
|
|
94
|
-
query,
|
|
95
|
-
body,
|
|
96
|
-
});
|
|
66
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
67
|
+
return b.build();
|
|
97
68
|
};
|
|
98
69
|
export const se_DeleteGroupCommand = async (input, context) => {
|
|
99
|
-
const
|
|
70
|
+
const b = rb(input, context);
|
|
100
71
|
const headers = {};
|
|
101
|
-
|
|
102
|
-
|
|
72
|
+
b.bp("/group/{GroupIdentifier}");
|
|
73
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
103
74
|
let body;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
hostname,
|
|
107
|
-
port,
|
|
108
|
-
method: "DELETE",
|
|
109
|
-
headers,
|
|
110
|
-
path: resolvedPath,
|
|
111
|
-
body,
|
|
112
|
-
});
|
|
75
|
+
b.m("DELETE").h(headers).b(body);
|
|
76
|
+
return b.build();
|
|
113
77
|
};
|
|
114
78
|
export const se_DescribeCanariesCommand = async (input, context) => {
|
|
115
|
-
const
|
|
79
|
+
const b = rb(input, context);
|
|
116
80
|
const headers = {
|
|
117
81
|
"content-type": "application/json",
|
|
118
82
|
};
|
|
119
|
-
|
|
83
|
+
b.bp("/canaries");
|
|
120
84
|
let body;
|
|
121
85
|
body = JSON.stringify(take(input, {
|
|
122
86
|
MaxResults: [],
|
|
123
87
|
Names: (_) => _json(_),
|
|
124
88
|
NextToken: [],
|
|
125
89
|
}));
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
hostname,
|
|
129
|
-
port,
|
|
130
|
-
method: "POST",
|
|
131
|
-
headers,
|
|
132
|
-
path: resolvedPath,
|
|
133
|
-
body,
|
|
134
|
-
});
|
|
90
|
+
b.m("POST").h(headers).b(body);
|
|
91
|
+
return b.build();
|
|
135
92
|
};
|
|
136
93
|
export const se_DescribeCanariesLastRunCommand = async (input, context) => {
|
|
137
|
-
const
|
|
94
|
+
const b = rb(input, context);
|
|
138
95
|
const headers = {
|
|
139
96
|
"content-type": "application/json",
|
|
140
97
|
};
|
|
141
|
-
|
|
98
|
+
b.bp("/canaries/last-run");
|
|
142
99
|
let body;
|
|
143
100
|
body = JSON.stringify(take(input, {
|
|
144
101
|
MaxResults: [],
|
|
145
102
|
Names: (_) => _json(_),
|
|
146
103
|
NextToken: [],
|
|
147
104
|
}));
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
hostname,
|
|
151
|
-
port,
|
|
152
|
-
method: "POST",
|
|
153
|
-
headers,
|
|
154
|
-
path: resolvedPath,
|
|
155
|
-
body,
|
|
156
|
-
});
|
|
105
|
+
b.m("POST").h(headers).b(body);
|
|
106
|
+
return b.build();
|
|
157
107
|
};
|
|
158
108
|
export const se_DescribeRuntimeVersionsCommand = async (input, context) => {
|
|
159
|
-
const
|
|
109
|
+
const b = rb(input, context);
|
|
160
110
|
const headers = {
|
|
161
111
|
"content-type": "application/json",
|
|
162
112
|
};
|
|
163
|
-
|
|
113
|
+
b.bp("/runtime-versions");
|
|
164
114
|
let body;
|
|
165
115
|
body = JSON.stringify(take(input, {
|
|
166
116
|
MaxResults: [],
|
|
167
117
|
NextToken: [],
|
|
168
118
|
}));
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
hostname,
|
|
172
|
-
port,
|
|
173
|
-
method: "POST",
|
|
174
|
-
headers,
|
|
175
|
-
path: resolvedPath,
|
|
176
|
-
body,
|
|
177
|
-
});
|
|
119
|
+
b.m("POST").h(headers).b(body);
|
|
120
|
+
return b.build();
|
|
178
121
|
};
|
|
179
122
|
export const se_DisassociateResourceCommand = async (input, context) => {
|
|
180
|
-
const
|
|
123
|
+
const b = rb(input, context);
|
|
181
124
|
const headers = {
|
|
182
125
|
"content-type": "application/json",
|
|
183
126
|
};
|
|
184
|
-
|
|
185
|
-
|
|
127
|
+
b.bp("/group/{GroupIdentifier}/disassociate");
|
|
128
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
186
129
|
let body;
|
|
187
130
|
body = JSON.stringify(take(input, {
|
|
188
131
|
ResourceArn: [],
|
|
189
132
|
}));
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
hostname,
|
|
193
|
-
port,
|
|
194
|
-
method: "PATCH",
|
|
195
|
-
headers,
|
|
196
|
-
path: resolvedPath,
|
|
197
|
-
body,
|
|
198
|
-
});
|
|
133
|
+
b.m("PATCH").h(headers).b(body);
|
|
134
|
+
return b.build();
|
|
199
135
|
};
|
|
200
136
|
export const se_GetCanaryCommand = async (input, context) => {
|
|
201
|
-
const
|
|
137
|
+
const b = rb(input, context);
|
|
202
138
|
const headers = {};
|
|
203
|
-
|
|
204
|
-
|
|
139
|
+
b.bp("/canary/{Name}");
|
|
140
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
205
141
|
let body;
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
hostname,
|
|
209
|
-
port,
|
|
210
|
-
method: "GET",
|
|
211
|
-
headers,
|
|
212
|
-
path: resolvedPath,
|
|
213
|
-
body,
|
|
214
|
-
});
|
|
142
|
+
b.m("GET").h(headers).b(body);
|
|
143
|
+
return b.build();
|
|
215
144
|
};
|
|
216
145
|
export const se_GetCanaryRunsCommand = async (input, context) => {
|
|
217
|
-
const
|
|
146
|
+
const b = rb(input, context);
|
|
218
147
|
const headers = {
|
|
219
148
|
"content-type": "application/json",
|
|
220
149
|
};
|
|
221
|
-
|
|
222
|
-
|
|
150
|
+
b.bp("/canary/{Name}/runs");
|
|
151
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
223
152
|
let body;
|
|
224
153
|
body = JSON.stringify(take(input, {
|
|
225
154
|
MaxResults: [],
|
|
226
155
|
NextToken: [],
|
|
227
156
|
}));
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
hostname,
|
|
231
|
-
port,
|
|
232
|
-
method: "POST",
|
|
233
|
-
headers,
|
|
234
|
-
path: resolvedPath,
|
|
235
|
-
body,
|
|
236
|
-
});
|
|
157
|
+
b.m("POST").h(headers).b(body);
|
|
158
|
+
return b.build();
|
|
237
159
|
};
|
|
238
160
|
export const se_GetGroupCommand = async (input, context) => {
|
|
239
|
-
const
|
|
161
|
+
const b = rb(input, context);
|
|
240
162
|
const headers = {};
|
|
241
|
-
|
|
242
|
-
|
|
163
|
+
b.bp("/group/{GroupIdentifier}");
|
|
164
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
243
165
|
let body;
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
hostname,
|
|
247
|
-
port,
|
|
248
|
-
method: "GET",
|
|
249
|
-
headers,
|
|
250
|
-
path: resolvedPath,
|
|
251
|
-
body,
|
|
252
|
-
});
|
|
166
|
+
b.m("GET").h(headers).b(body);
|
|
167
|
+
return b.build();
|
|
253
168
|
};
|
|
254
169
|
export const se_ListAssociatedGroupsCommand = async (input, context) => {
|
|
255
|
-
const
|
|
170
|
+
const b = rb(input, context);
|
|
256
171
|
const headers = {
|
|
257
172
|
"content-type": "application/json",
|
|
258
173
|
};
|
|
259
|
-
|
|
260
|
-
|
|
174
|
+
b.bp("/resource/{ResourceArn}/groups");
|
|
175
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
261
176
|
let body;
|
|
262
177
|
body = JSON.stringify(take(input, {
|
|
263
178
|
MaxResults: [],
|
|
264
179
|
NextToken: [],
|
|
265
180
|
}));
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
hostname,
|
|
269
|
-
port,
|
|
270
|
-
method: "POST",
|
|
271
|
-
headers,
|
|
272
|
-
path: resolvedPath,
|
|
273
|
-
body,
|
|
274
|
-
});
|
|
181
|
+
b.m("POST").h(headers).b(body);
|
|
182
|
+
return b.build();
|
|
275
183
|
};
|
|
276
184
|
export const se_ListGroupResourcesCommand = async (input, context) => {
|
|
277
|
-
const
|
|
185
|
+
const b = rb(input, context);
|
|
278
186
|
const headers = {
|
|
279
187
|
"content-type": "application/json",
|
|
280
188
|
};
|
|
281
|
-
|
|
282
|
-
|
|
189
|
+
b.bp("/group/{GroupIdentifier}/resources");
|
|
190
|
+
b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
|
|
283
191
|
let body;
|
|
284
192
|
body = JSON.stringify(take(input, {
|
|
285
193
|
MaxResults: [],
|
|
286
194
|
NextToken: [],
|
|
287
195
|
}));
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
hostname,
|
|
291
|
-
port,
|
|
292
|
-
method: "POST",
|
|
293
|
-
headers,
|
|
294
|
-
path: resolvedPath,
|
|
295
|
-
body,
|
|
296
|
-
});
|
|
196
|
+
b.m("POST").h(headers).b(body);
|
|
197
|
+
return b.build();
|
|
297
198
|
};
|
|
298
199
|
export const se_ListGroupsCommand = async (input, context) => {
|
|
299
|
-
const
|
|
200
|
+
const b = rb(input, context);
|
|
300
201
|
const headers = {
|
|
301
202
|
"content-type": "application/json",
|
|
302
203
|
};
|
|
303
|
-
|
|
204
|
+
b.bp("/groups");
|
|
304
205
|
let body;
|
|
305
206
|
body = JSON.stringify(take(input, {
|
|
306
207
|
MaxResults: [],
|
|
307
208
|
NextToken: [],
|
|
308
209
|
}));
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
hostname,
|
|
312
|
-
port,
|
|
313
|
-
method: "POST",
|
|
314
|
-
headers,
|
|
315
|
-
path: resolvedPath,
|
|
316
|
-
body,
|
|
317
|
-
});
|
|
210
|
+
b.m("POST").h(headers).b(body);
|
|
211
|
+
return b.build();
|
|
318
212
|
};
|
|
319
213
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
320
|
-
const
|
|
214
|
+
const b = rb(input, context);
|
|
321
215
|
const headers = {};
|
|
322
|
-
|
|
323
|
-
|
|
216
|
+
b.bp("/tags/{ResourceArn}");
|
|
217
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
324
218
|
let body;
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
hostname,
|
|
328
|
-
port,
|
|
329
|
-
method: "GET",
|
|
330
|
-
headers,
|
|
331
|
-
path: resolvedPath,
|
|
332
|
-
body,
|
|
333
|
-
});
|
|
219
|
+
b.m("GET").h(headers).b(body);
|
|
220
|
+
return b.build();
|
|
334
221
|
};
|
|
335
222
|
export const se_StartCanaryCommand = async (input, context) => {
|
|
336
|
-
const
|
|
223
|
+
const b = rb(input, context);
|
|
337
224
|
const headers = {};
|
|
338
|
-
|
|
339
|
-
|
|
225
|
+
b.bp("/canary/{Name}/start");
|
|
226
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
340
227
|
let body;
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
hostname,
|
|
344
|
-
port,
|
|
345
|
-
method: "POST",
|
|
346
|
-
headers,
|
|
347
|
-
path: resolvedPath,
|
|
348
|
-
body,
|
|
349
|
-
});
|
|
228
|
+
b.m("POST").h(headers).b(body);
|
|
229
|
+
return b.build();
|
|
350
230
|
};
|
|
351
231
|
export const se_StopCanaryCommand = async (input, context) => {
|
|
352
|
-
const
|
|
232
|
+
const b = rb(input, context);
|
|
353
233
|
const headers = {};
|
|
354
|
-
|
|
355
|
-
|
|
234
|
+
b.bp("/canary/{Name}/stop");
|
|
235
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
356
236
|
let body;
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
hostname,
|
|
360
|
-
port,
|
|
361
|
-
method: "POST",
|
|
362
|
-
headers,
|
|
363
|
-
path: resolvedPath,
|
|
364
|
-
body,
|
|
365
|
-
});
|
|
237
|
+
b.m("POST").h(headers).b(body);
|
|
238
|
+
return b.build();
|
|
366
239
|
};
|
|
367
240
|
export const se_TagResourceCommand = async (input, context) => {
|
|
368
|
-
const
|
|
241
|
+
const b = rb(input, context);
|
|
369
242
|
const headers = {
|
|
370
243
|
"content-type": "application/json",
|
|
371
244
|
};
|
|
372
|
-
|
|
373
|
-
|
|
245
|
+
b.bp("/tags/{ResourceArn}");
|
|
246
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
374
247
|
let body;
|
|
375
248
|
body = JSON.stringify(take(input, {
|
|
376
249
|
Tags: (_) => _json(_),
|
|
377
250
|
}));
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
hostname,
|
|
381
|
-
port,
|
|
382
|
-
method: "POST",
|
|
383
|
-
headers,
|
|
384
|
-
path: resolvedPath,
|
|
385
|
-
body,
|
|
386
|
-
});
|
|
251
|
+
b.m("POST").h(headers).b(body);
|
|
252
|
+
return b.build();
|
|
387
253
|
};
|
|
388
254
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
389
|
-
const
|
|
255
|
+
const b = rb(input, context);
|
|
390
256
|
const headers = {};
|
|
391
|
-
|
|
392
|
-
|
|
257
|
+
b.bp("/tags/{ResourceArn}");
|
|
258
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
393
259
|
const query = map({
|
|
394
|
-
|
|
260
|
+
[_tK]: [
|
|
395
261
|
__expectNonNull(input.TagKeys, `TagKeys`) != null,
|
|
396
|
-
() => (input
|
|
262
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
397
263
|
],
|
|
398
264
|
});
|
|
399
265
|
let body;
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
hostname,
|
|
403
|
-
port,
|
|
404
|
-
method: "DELETE",
|
|
405
|
-
headers,
|
|
406
|
-
path: resolvedPath,
|
|
407
|
-
query,
|
|
408
|
-
body,
|
|
409
|
-
});
|
|
266
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
267
|
+
return b.build();
|
|
410
268
|
};
|
|
411
269
|
export const se_UpdateCanaryCommand = async (input, context) => {
|
|
412
|
-
const
|
|
270
|
+
const b = rb(input, context);
|
|
413
271
|
const headers = {
|
|
414
272
|
"content-type": "application/json",
|
|
415
273
|
};
|
|
416
|
-
|
|
417
|
-
|
|
274
|
+
b.bp("/canary/{Name}");
|
|
275
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
418
276
|
let body;
|
|
419
277
|
body = JSON.stringify(take(input, {
|
|
420
278
|
ArtifactConfig: (_) => _json(_),
|
|
@@ -429,15 +287,8 @@ export const se_UpdateCanaryCommand = async (input, context) => {
|
|
|
429
287
|
VisualReference: (_) => _json(_),
|
|
430
288
|
VpcConfig: (_) => _json(_),
|
|
431
289
|
}));
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
hostname,
|
|
435
|
-
port,
|
|
436
|
-
method: "PATCH",
|
|
437
|
-
headers,
|
|
438
|
-
path: resolvedPath,
|
|
439
|
-
body,
|
|
440
|
-
});
|
|
290
|
+
b.m("PATCH").h(headers).b(body);
|
|
291
|
+
return b.build();
|
|
441
292
|
};
|
|
442
293
|
export const de_AssociateResourceCommand = async (output, context) => {
|
|
443
294
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1520,6 +1371,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1520
1371
|
value !== "" &&
|
|
1521
1372
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1522
1373
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1374
|
+
const _DL = "DeleteLambda";
|
|
1375
|
+
const _TK = "TagKeys";
|
|
1376
|
+
const _dL = "deleteLambda";
|
|
1377
|
+
const _tK = "tagKeys";
|
|
1523
1378
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1524
1379
|
if (encoded.length) {
|
|
1525
1380
|
return JSON.parse(encoded);
|