@aws-sdk/client-ssm-sap 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/ListApplicationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListComponentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDatabasesPaginator.js +2 -24
- package/dist-cjs/pagination/ListOperationsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +79 -205
- package/dist-es/pagination/ListApplicationsPaginator.js +2 -23
- package/dist-es/pagination/ListComponentsPaginator.js +2 -23
- package/dist-es/pagination/ListDatabasesPaginator.js +2 -23
- package/dist-es/pagination/ListOperationsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +80 -206
- package/dist-types/pagination/ListApplicationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListComponentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDatabasesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOperationsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListComponentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDatabasesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOperationsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListComponentsCommand, } from "../commands/ListComponentsCommand";
|
|
2
3
|
import { SsmSapClient } from "../SsmSapClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListComponentsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListComponents(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 SsmSapClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SsmSap | SsmSapClient");
|
|
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 paginateListComponents = createPaginator(SsmSapClient, ListComponentsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDatabasesCommand, } from "../commands/ListDatabasesCommand";
|
|
2
3
|
import { SsmSapClient } from "../SsmSapClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDatabasesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDatabases(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 SsmSapClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SsmSap | SsmSapClient");
|
|
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 paginateListDatabases = createPaginator(SsmSapClient, ListDatabasesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListOperationsCommand, } from "../commands/ListOperationsCommand";
|
|
2
3
|
import { SsmSapClient } from "../SsmSapClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListOperationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListOperations(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 SsmSapClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SsmSap | SsmSapClient");
|
|
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 paginateListOperations = createPaginator(SsmSapClient, ListOperationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,98 +1,70 @@
|
|
|
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 { ConflictException, InternalServerException, ResourceNotFoundException, UnauthorizedException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { SsmSapServiceException as __BaseException } from "../models/SsmSapServiceException";
|
|
5
5
|
export const se_DeleteResourcePermissionCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
b.bp("/delete-resource-permission");
|
|
11
11
|
let body;
|
|
12
12
|
body = JSON.stringify(take(input, {
|
|
13
13
|
ActionType: [],
|
|
14
14
|
ResourceArn: [],
|
|
15
15
|
SourceResourceArn: [],
|
|
16
16
|
}));
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
hostname,
|
|
20
|
-
port,
|
|
21
|
-
method: "POST",
|
|
22
|
-
headers,
|
|
23
|
-
path: resolvedPath,
|
|
24
|
-
body,
|
|
25
|
-
});
|
|
17
|
+
b.m("POST").h(headers).b(body);
|
|
18
|
+
return b.build();
|
|
26
19
|
};
|
|
27
20
|
export const se_DeregisterApplicationCommand = async (input, context) => {
|
|
28
|
-
const
|
|
21
|
+
const b = rb(input, context);
|
|
29
22
|
const headers = {
|
|
30
23
|
"content-type": "application/json",
|
|
31
24
|
};
|
|
32
|
-
|
|
25
|
+
b.bp("/deregister-application");
|
|
33
26
|
let body;
|
|
34
27
|
body = JSON.stringify(take(input, {
|
|
35
28
|
ApplicationId: [],
|
|
36
29
|
}));
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
hostname,
|
|
40
|
-
port,
|
|
41
|
-
method: "POST",
|
|
42
|
-
headers,
|
|
43
|
-
path: resolvedPath,
|
|
44
|
-
body,
|
|
45
|
-
});
|
|
30
|
+
b.m("POST").h(headers).b(body);
|
|
31
|
+
return b.build();
|
|
46
32
|
};
|
|
47
33
|
export const se_GetApplicationCommand = async (input, context) => {
|
|
48
|
-
const
|
|
34
|
+
const b = rb(input, context);
|
|
49
35
|
const headers = {
|
|
50
36
|
"content-type": "application/json",
|
|
51
37
|
};
|
|
52
|
-
|
|
38
|
+
b.bp("/get-application");
|
|
53
39
|
let body;
|
|
54
40
|
body = JSON.stringify(take(input, {
|
|
55
41
|
AppRegistryArn: [],
|
|
56
42
|
ApplicationArn: [],
|
|
57
43
|
ApplicationId: [],
|
|
58
44
|
}));
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
hostname,
|
|
62
|
-
port,
|
|
63
|
-
method: "POST",
|
|
64
|
-
headers,
|
|
65
|
-
path: resolvedPath,
|
|
66
|
-
body,
|
|
67
|
-
});
|
|
45
|
+
b.m("POST").h(headers).b(body);
|
|
46
|
+
return b.build();
|
|
68
47
|
};
|
|
69
48
|
export const se_GetComponentCommand = async (input, context) => {
|
|
70
|
-
const
|
|
49
|
+
const b = rb(input, context);
|
|
71
50
|
const headers = {
|
|
72
51
|
"content-type": "application/json",
|
|
73
52
|
};
|
|
74
|
-
|
|
53
|
+
b.bp("/get-component");
|
|
75
54
|
let body;
|
|
76
55
|
body = JSON.stringify(take(input, {
|
|
77
56
|
ApplicationId: [],
|
|
78
57
|
ComponentId: [],
|
|
79
58
|
}));
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
hostname,
|
|
83
|
-
port,
|
|
84
|
-
method: "POST",
|
|
85
|
-
headers,
|
|
86
|
-
path: resolvedPath,
|
|
87
|
-
body,
|
|
88
|
-
});
|
|
59
|
+
b.m("POST").h(headers).b(body);
|
|
60
|
+
return b.build();
|
|
89
61
|
};
|
|
90
62
|
export const se_GetDatabaseCommand = async (input, context) => {
|
|
91
|
-
const
|
|
63
|
+
const b = rb(input, context);
|
|
92
64
|
const headers = {
|
|
93
65
|
"content-type": "application/json",
|
|
94
66
|
};
|
|
95
|
-
|
|
67
|
+
b.bp("/get-database");
|
|
96
68
|
let body;
|
|
97
69
|
body = JSON.stringify(take(input, {
|
|
98
70
|
ApplicationId: [],
|
|
@@ -100,107 +72,72 @@ export const se_GetDatabaseCommand = async (input, context) => {
|
|
|
100
72
|
DatabaseArn: [],
|
|
101
73
|
DatabaseId: [],
|
|
102
74
|
}));
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
hostname,
|
|
106
|
-
port,
|
|
107
|
-
method: "POST",
|
|
108
|
-
headers,
|
|
109
|
-
path: resolvedPath,
|
|
110
|
-
body,
|
|
111
|
-
});
|
|
75
|
+
b.m("POST").h(headers).b(body);
|
|
76
|
+
return b.build();
|
|
112
77
|
};
|
|
113
78
|
export const se_GetOperationCommand = async (input, context) => {
|
|
114
|
-
const
|
|
79
|
+
const b = rb(input, context);
|
|
115
80
|
const headers = {
|
|
116
81
|
"content-type": "application/json",
|
|
117
82
|
};
|
|
118
|
-
|
|
83
|
+
b.bp("/get-operation");
|
|
119
84
|
let body;
|
|
120
85
|
body = JSON.stringify(take(input, {
|
|
121
86
|
OperationId: [],
|
|
122
87
|
}));
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
hostname,
|
|
126
|
-
port,
|
|
127
|
-
method: "POST",
|
|
128
|
-
headers,
|
|
129
|
-
path: resolvedPath,
|
|
130
|
-
body,
|
|
131
|
-
});
|
|
88
|
+
b.m("POST").h(headers).b(body);
|
|
89
|
+
return b.build();
|
|
132
90
|
};
|
|
133
91
|
export const se_GetResourcePermissionCommand = async (input, context) => {
|
|
134
|
-
const
|
|
92
|
+
const b = rb(input, context);
|
|
135
93
|
const headers = {
|
|
136
94
|
"content-type": "application/json",
|
|
137
95
|
};
|
|
138
|
-
|
|
96
|
+
b.bp("/get-resource-permission");
|
|
139
97
|
let body;
|
|
140
98
|
body = JSON.stringify(take(input, {
|
|
141
99
|
ActionType: [],
|
|
142
100
|
ResourceArn: [],
|
|
143
101
|
}));
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
hostname,
|
|
147
|
-
port,
|
|
148
|
-
method: "POST",
|
|
149
|
-
headers,
|
|
150
|
-
path: resolvedPath,
|
|
151
|
-
body,
|
|
152
|
-
});
|
|
102
|
+
b.m("POST").h(headers).b(body);
|
|
103
|
+
return b.build();
|
|
153
104
|
};
|
|
154
105
|
export const se_ListApplicationsCommand = async (input, context) => {
|
|
155
|
-
const
|
|
106
|
+
const b = rb(input, context);
|
|
156
107
|
const headers = {
|
|
157
108
|
"content-type": "application/json",
|
|
158
109
|
};
|
|
159
|
-
|
|
110
|
+
b.bp("/list-applications");
|
|
160
111
|
let body;
|
|
161
112
|
body = JSON.stringify(take(input, {
|
|
162
113
|
Filters: (_) => _json(_),
|
|
163
114
|
MaxResults: [],
|
|
164
115
|
NextToken: [],
|
|
165
116
|
}));
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
hostname,
|
|
169
|
-
port,
|
|
170
|
-
method: "POST",
|
|
171
|
-
headers,
|
|
172
|
-
path: resolvedPath,
|
|
173
|
-
body,
|
|
174
|
-
});
|
|
117
|
+
b.m("POST").h(headers).b(body);
|
|
118
|
+
return b.build();
|
|
175
119
|
};
|
|
176
120
|
export const se_ListComponentsCommand = async (input, context) => {
|
|
177
|
-
const
|
|
121
|
+
const b = rb(input, context);
|
|
178
122
|
const headers = {
|
|
179
123
|
"content-type": "application/json",
|
|
180
124
|
};
|
|
181
|
-
|
|
125
|
+
b.bp("/list-components");
|
|
182
126
|
let body;
|
|
183
127
|
body = JSON.stringify(take(input, {
|
|
184
128
|
ApplicationId: [],
|
|
185
129
|
MaxResults: [],
|
|
186
130
|
NextToken: [],
|
|
187
131
|
}));
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
hostname,
|
|
191
|
-
port,
|
|
192
|
-
method: "POST",
|
|
193
|
-
headers,
|
|
194
|
-
path: resolvedPath,
|
|
195
|
-
body,
|
|
196
|
-
});
|
|
132
|
+
b.m("POST").h(headers).b(body);
|
|
133
|
+
return b.build();
|
|
197
134
|
};
|
|
198
135
|
export const se_ListDatabasesCommand = async (input, context) => {
|
|
199
|
-
const
|
|
136
|
+
const b = rb(input, context);
|
|
200
137
|
const headers = {
|
|
201
138
|
"content-type": "application/json",
|
|
202
139
|
};
|
|
203
|
-
|
|
140
|
+
b.bp("/list-databases");
|
|
204
141
|
let body;
|
|
205
142
|
body = JSON.stringify(take(input, {
|
|
206
143
|
ApplicationId: [],
|
|
@@ -208,22 +145,15 @@ export const se_ListDatabasesCommand = async (input, context) => {
|
|
|
208
145
|
MaxResults: [],
|
|
209
146
|
NextToken: [],
|
|
210
147
|
}));
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
hostname,
|
|
214
|
-
port,
|
|
215
|
-
method: "POST",
|
|
216
|
-
headers,
|
|
217
|
-
path: resolvedPath,
|
|
218
|
-
body,
|
|
219
|
-
});
|
|
148
|
+
b.m("POST").h(headers).b(body);
|
|
149
|
+
return b.build();
|
|
220
150
|
};
|
|
221
151
|
export const se_ListOperationsCommand = async (input, context) => {
|
|
222
|
-
const
|
|
152
|
+
const b = rb(input, context);
|
|
223
153
|
const headers = {
|
|
224
154
|
"content-type": "application/json",
|
|
225
155
|
};
|
|
226
|
-
|
|
156
|
+
b.bp("/list-operations");
|
|
227
157
|
let body;
|
|
228
158
|
body = JSON.stringify(take(input, {
|
|
229
159
|
ApplicationId: [],
|
|
@@ -231,60 +161,39 @@ export const se_ListOperationsCommand = async (input, context) => {
|
|
|
231
161
|
MaxResults: [],
|
|
232
162
|
NextToken: [],
|
|
233
163
|
}));
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
hostname,
|
|
237
|
-
port,
|
|
238
|
-
method: "POST",
|
|
239
|
-
headers,
|
|
240
|
-
path: resolvedPath,
|
|
241
|
-
body,
|
|
242
|
-
});
|
|
164
|
+
b.m("POST").h(headers).b(body);
|
|
165
|
+
return b.build();
|
|
243
166
|
};
|
|
244
167
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
245
|
-
const
|
|
168
|
+
const b = rb(input, context);
|
|
246
169
|
const headers = {};
|
|
247
|
-
|
|
248
|
-
|
|
170
|
+
b.bp("/tags/{resourceArn}");
|
|
171
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
249
172
|
let body;
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
hostname,
|
|
253
|
-
port,
|
|
254
|
-
method: "GET",
|
|
255
|
-
headers,
|
|
256
|
-
path: resolvedPath,
|
|
257
|
-
body,
|
|
258
|
-
});
|
|
173
|
+
b.m("GET").h(headers).b(body);
|
|
174
|
+
return b.build();
|
|
259
175
|
};
|
|
260
176
|
export const se_PutResourcePermissionCommand = async (input, context) => {
|
|
261
|
-
const
|
|
177
|
+
const b = rb(input, context);
|
|
262
178
|
const headers = {
|
|
263
179
|
"content-type": "application/json",
|
|
264
180
|
};
|
|
265
|
-
|
|
181
|
+
b.bp("/put-resource-permission");
|
|
266
182
|
let body;
|
|
267
183
|
body = JSON.stringify(take(input, {
|
|
268
184
|
ActionType: [],
|
|
269
185
|
ResourceArn: [],
|
|
270
186
|
SourceResourceArn: [],
|
|
271
187
|
}));
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
hostname,
|
|
275
|
-
port,
|
|
276
|
-
method: "POST",
|
|
277
|
-
headers,
|
|
278
|
-
path: resolvedPath,
|
|
279
|
-
body,
|
|
280
|
-
});
|
|
188
|
+
b.m("POST").h(headers).b(body);
|
|
189
|
+
return b.build();
|
|
281
190
|
};
|
|
282
191
|
export const se_RegisterApplicationCommand = async (input, context) => {
|
|
283
|
-
const
|
|
192
|
+
const b = rb(input, context);
|
|
284
193
|
const headers = {
|
|
285
194
|
"content-type": "application/json",
|
|
286
195
|
};
|
|
287
|
-
|
|
196
|
+
b.bp("/register-application");
|
|
288
197
|
let body;
|
|
289
198
|
body = JSON.stringify(take(input, {
|
|
290
199
|
ApplicationId: [],
|
|
@@ -296,86 +205,57 @@ export const se_RegisterApplicationCommand = async (input, context) => {
|
|
|
296
205
|
Sid: [],
|
|
297
206
|
Tags: (_) => _json(_),
|
|
298
207
|
}));
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
hostname,
|
|
302
|
-
port,
|
|
303
|
-
method: "POST",
|
|
304
|
-
headers,
|
|
305
|
-
path: resolvedPath,
|
|
306
|
-
body,
|
|
307
|
-
});
|
|
208
|
+
b.m("POST").h(headers).b(body);
|
|
209
|
+
return b.build();
|
|
308
210
|
};
|
|
309
211
|
export const se_StartApplicationRefreshCommand = async (input, context) => {
|
|
310
|
-
const
|
|
212
|
+
const b = rb(input, context);
|
|
311
213
|
const headers = {
|
|
312
214
|
"content-type": "application/json",
|
|
313
215
|
};
|
|
314
|
-
|
|
216
|
+
b.bp("/start-application-refresh");
|
|
315
217
|
let body;
|
|
316
218
|
body = JSON.stringify(take(input, {
|
|
317
219
|
ApplicationId: [],
|
|
318
220
|
}));
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
hostname,
|
|
322
|
-
port,
|
|
323
|
-
method: "POST",
|
|
324
|
-
headers,
|
|
325
|
-
path: resolvedPath,
|
|
326
|
-
body,
|
|
327
|
-
});
|
|
221
|
+
b.m("POST").h(headers).b(body);
|
|
222
|
+
return b.build();
|
|
328
223
|
};
|
|
329
224
|
export const se_TagResourceCommand = async (input, context) => {
|
|
330
|
-
const
|
|
225
|
+
const b = rb(input, context);
|
|
331
226
|
const headers = {
|
|
332
227
|
"content-type": "application/json",
|
|
333
228
|
};
|
|
334
|
-
|
|
335
|
-
|
|
229
|
+
b.bp("/tags/{resourceArn}");
|
|
230
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
336
231
|
let body;
|
|
337
232
|
body = JSON.stringify(take(input, {
|
|
338
233
|
tags: (_) => _json(_),
|
|
339
234
|
}));
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
hostname,
|
|
343
|
-
port,
|
|
344
|
-
method: "POST",
|
|
345
|
-
headers,
|
|
346
|
-
path: resolvedPath,
|
|
347
|
-
body,
|
|
348
|
-
});
|
|
235
|
+
b.m("POST").h(headers).b(body);
|
|
236
|
+
return b.build();
|
|
349
237
|
};
|
|
350
238
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
351
|
-
const
|
|
239
|
+
const b = rb(input, context);
|
|
352
240
|
const headers = {};
|
|
353
|
-
|
|
354
|
-
|
|
241
|
+
b.bp("/tags/{resourceArn}");
|
|
242
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
355
243
|
const query = map({
|
|
356
|
-
|
|
244
|
+
[_tK]: [
|
|
357
245
|
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
358
|
-
() => (input
|
|
246
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
359
247
|
],
|
|
360
248
|
});
|
|
361
249
|
let body;
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
hostname,
|
|
365
|
-
port,
|
|
366
|
-
method: "DELETE",
|
|
367
|
-
headers,
|
|
368
|
-
path: resolvedPath,
|
|
369
|
-
query,
|
|
370
|
-
body,
|
|
371
|
-
});
|
|
250
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
251
|
+
return b.build();
|
|
372
252
|
};
|
|
373
253
|
export const se_UpdateApplicationSettingsCommand = async (input, context) => {
|
|
374
|
-
const
|
|
254
|
+
const b = rb(input, context);
|
|
375
255
|
const headers = {
|
|
376
256
|
"content-type": "application/json",
|
|
377
257
|
};
|
|
378
|
-
|
|
258
|
+
b.bp("/update-application-settings");
|
|
379
259
|
let body;
|
|
380
260
|
body = JSON.stringify(take(input, {
|
|
381
261
|
ApplicationId: [],
|
|
@@ -384,15 +264,8 @@ export const se_UpdateApplicationSettingsCommand = async (input, context) => {
|
|
|
384
264
|
CredentialsToRemove: (_) => _json(_),
|
|
385
265
|
DatabaseArn: [],
|
|
386
266
|
}));
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
hostname,
|
|
390
|
-
port,
|
|
391
|
-
method: "POST",
|
|
392
|
-
headers,
|
|
393
|
-
path: resolvedPath,
|
|
394
|
-
body,
|
|
395
|
-
});
|
|
267
|
+
b.m("POST").h(headers).b(body);
|
|
268
|
+
return b.build();
|
|
396
269
|
};
|
|
397
270
|
export const de_DeleteResourcePermissionCommand = async (output, context) => {
|
|
398
271
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1262,6 +1135,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1262
1135
|
value !== "" &&
|
|
1263
1136
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1264
1137
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1138
|
+
const _tK = "tagKeys";
|
|
1265
1139
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1266
1140
|
if (encoded.length) {
|
|
1267
1141
|
return JSON.parse(encoded);
|
|
@@ -4,4 +4,4 @@ import { SsmSapPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListApplications: (config: SsmSapPaginationConfiguration, input: ListApplicationsCommandInput, ...rest: any[]) => Paginator<ListApplicationsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SsmSapPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListComponents: (config: SsmSapPaginationConfiguration, input: ListComponentsCommandInput, ...rest: any[]) => Paginator<ListComponentsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SsmSapPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDatabases: (config: SsmSapPaginationConfiguration, input: ListDatabasesCommandInput, ...rest: any[]) => Paginator<ListDatabasesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SsmSapPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListOperations: (config: SsmSapPaginationConfiguration, input: ListOperationsCommandInput, ...rest: any[]) => Paginator<ListOperationsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListApplicationsCommandOutput,
|
|
5
5
|
} from "../commands/ListApplicationsCommand";
|
|
6
6
|
import { SsmSapPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListApplications: (
|
|
8
8
|
config: SsmSapPaginationConfiguration,
|
|
9
9
|
input: ListApplicationsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListApplicationsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListComponentsCommandOutput,
|
|
5
5
|
} from "../commands/ListComponentsCommand";
|
|
6
6
|
import { SsmSapPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListComponents: (
|
|
8
8
|
config: SsmSapPaginationConfiguration,
|
|
9
9
|
input: ListComponentsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListComponentsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDatabasesCommandOutput,
|
|
5
5
|
} from "../commands/ListDatabasesCommand";
|
|
6
6
|
import { SsmSapPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDatabases: (
|
|
8
8
|
config: SsmSapPaginationConfiguration,
|
|
9
9
|
input: ListDatabasesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDatabasesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListOperationsCommandOutput,
|
|
5
5
|
} from "../commands/ListOperationsCommand";
|
|
6
6
|
import { SsmSapPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListOperations: (
|
|
8
8
|
config: SsmSapPaginationConfiguration,
|
|
9
9
|
input: ListOperationsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListOperationsCommandOutput>;
|