@aws-sdk/client-appsync 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/README.md +2 -2
- package/dist-cjs/models/models_0.js +5 -1
- package/dist-cjs/protocols/Aws_restJson1.js +376 -828
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +377 -829
- package/dist-types/AppSync.d.ts +2 -2
- package/dist-types/AppSyncClient.d.ts +2 -2
- package/dist-types/commands/AssociateApiCommand.d.ts +3 -4
- package/dist-types/commands/AssociateMergedGraphqlApiCommand.d.ts +5 -6
- package/dist-types/commands/AssociateSourceGraphqlApiCommand.d.ts +5 -6
- package/dist-types/commands/CreateApiCacheCommand.d.ts +5 -6
- package/dist-types/commands/CreateApiKeyCommand.d.ts +3 -4
- package/dist-types/commands/CreateDataSourceCommand.d.ts +5 -6
- package/dist-types/commands/CreateDomainNameCommand.d.ts +2 -2
- package/dist-types/commands/CreateFunctionCommand.d.ts +4 -6
- package/dist-types/commands/CreateGraphqlApiCommand.d.ts +10 -4
- package/dist-types/commands/CreateResolverCommand.d.ts +7 -8
- package/dist-types/commands/CreateTypeCommand.d.ts +5 -6
- package/dist-types/commands/DeleteApiCacheCommand.d.ts +5 -6
- package/dist-types/commands/DeleteApiKeyCommand.d.ts +3 -4
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +5 -6
- package/dist-types/commands/DeleteDomainNameCommand.d.ts +5 -6
- package/dist-types/commands/DeleteFunctionCommand.d.ts +3 -4
- package/dist-types/commands/DeleteGraphqlApiCommand.d.ts +5 -6
- package/dist-types/commands/DeleteResolverCommand.d.ts +5 -6
- package/dist-types/commands/DeleteTypeCommand.d.ts +5 -6
- package/dist-types/commands/DisassociateApiCommand.d.ts +5 -6
- package/dist-types/commands/DisassociateMergedGraphqlApiCommand.d.ts +5 -6
- package/dist-types/commands/DisassociateSourceGraphqlApiCommand.d.ts +5 -6
- package/dist-types/commands/EvaluateCodeCommand.d.ts +7 -8
- package/dist-types/commands/EvaluateMappingTemplateCommand.d.ts +7 -8
- package/dist-types/commands/FlushApiCacheCommand.d.ts +5 -6
- package/dist-types/commands/GetApiAssociationCommand.d.ts +3 -4
- package/dist-types/commands/GetApiCacheCommand.d.ts +5 -6
- package/dist-types/commands/GetDataSourceCommand.d.ts +5 -6
- package/dist-types/commands/GetDataSourceIntrospectionCommand.d.ts +3 -4
- package/dist-types/commands/GetDomainNameCommand.d.ts +3 -4
- package/dist-types/commands/GetFunctionCommand.d.ts +3 -4
- package/dist-types/commands/GetGraphqlApiCommand.d.ts +6 -4
- package/dist-types/commands/GetIntrospectionSchemaCommand.d.ts +1 -2
- package/dist-types/commands/GetResolverCommand.d.ts +3 -4
- package/dist-types/commands/GetSchemaCreationStatusCommand.d.ts +3 -4
- package/dist-types/commands/GetSourceApiAssociationCommand.d.ts +3 -4
- package/dist-types/commands/GetTypeCommand.d.ts +5 -6
- package/dist-types/commands/ListApiKeysCommand.d.ts +6 -8
- package/dist-types/commands/ListDataSourcesCommand.d.ts +3 -4
- package/dist-types/commands/ListDomainNamesCommand.d.ts +2 -2
- package/dist-types/commands/ListFunctionsCommand.d.ts +3 -4
- package/dist-types/commands/ListGraphqlApisCommand.d.ts +5 -2
- package/dist-types/commands/ListResolversByFunctionCommand.d.ts +3 -4
- package/dist-types/commands/ListResolversCommand.d.ts +3 -4
- package/dist-types/commands/ListSourceApiAssociationsCommand.d.ts +3 -4
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -4
- package/dist-types/commands/ListTypesByAssociationCommand.d.ts +5 -6
- package/dist-types/commands/ListTypesCommand.d.ts +5 -6
- package/dist-types/commands/StartDataSourceIntrospectionCommand.d.ts +3 -4
- package/dist-types/commands/StartSchemaCreationCommand.d.ts +7 -8
- package/dist-types/commands/StartSchemaMergeCommand.d.ts +5 -6
- package/dist-types/commands/TagResourceCommand.d.ts +3 -4
- package/dist-types/commands/UntagResourceCommand.d.ts +3 -4
- package/dist-types/commands/UpdateApiCacheCommand.d.ts +5 -6
- package/dist-types/commands/UpdateApiKeyCommand.d.ts +3 -4
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +5 -6
- package/dist-types/commands/UpdateDomainNameCommand.d.ts +5 -6
- package/dist-types/commands/UpdateFunctionCommand.d.ts +3 -4
- package/dist-types/commands/UpdateGraphqlApiCommand.d.ts +11 -6
- package/dist-types/commands/UpdateResolverCommand.d.ts +5 -6
- package/dist-types/commands/UpdateSourceApiAssociationCommand.d.ts +5 -6
- package/dist-types/commands/UpdateTypeCommand.d.ts +5 -6
- package/dist-types/index.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +431 -383
- package/dist-types/ts3.4/models/models_0.d.ts +15 -0
- package/package.json +7 -6
|
@@ -1,84 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, 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, expectLong as __expectLong, 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 { AppSyncServiceException as __BaseException } from "../models/AppSyncServiceException";
|
|
4
4
|
import { AccessDeniedException, ApiKeyLimitExceededException, ApiKeyValidityOutOfBoundsException, ApiLimitExceededException, BadRequestException, ConcurrentModificationException, GraphQLSchemaException, InternalFailureException, LimitExceededException, NotFoundException, UnauthorizedException, } from "../models/models_0";
|
|
5
5
|
export const se_AssociateApiCommand = 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
|
-
|
|
12
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
|
|
10
|
+
b.bp("/v1/domainnames/{domainName}/apiassociation");
|
|
11
|
+
b.p("domainName", () => input.domainName, "{domainName}", false);
|
|
13
12
|
let body;
|
|
14
13
|
body = JSON.stringify(take(input, {
|
|
15
14
|
apiId: [],
|
|
16
15
|
}));
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
hostname,
|
|
20
|
-
port,
|
|
21
|
-
method: "POST",
|
|
22
|
-
headers,
|
|
23
|
-
path: resolvedPath,
|
|
24
|
-
body,
|
|
25
|
-
});
|
|
16
|
+
b.m("POST").h(headers).b(body);
|
|
17
|
+
return b.build();
|
|
26
18
|
};
|
|
27
19
|
export const se_AssociateMergedGraphqlApiCommand = async (input, context) => {
|
|
28
|
-
const
|
|
20
|
+
const b = rb(input, context);
|
|
29
21
|
const headers = {
|
|
30
22
|
"content-type": "application/json",
|
|
31
23
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "sourceApiIdentifier", () => input.sourceApiIdentifier, "{sourceApiIdentifier}", false);
|
|
24
|
+
b.bp("/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations");
|
|
25
|
+
b.p("sourceApiIdentifier", () => input.sourceApiIdentifier, "{sourceApiIdentifier}", false);
|
|
35
26
|
let body;
|
|
36
27
|
body = JSON.stringify(take(input, {
|
|
37
28
|
description: [],
|
|
38
29
|
mergedApiIdentifier: [],
|
|
39
30
|
sourceApiAssociationConfig: (_) => _json(_),
|
|
40
31
|
}));
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
hostname,
|
|
44
|
-
port,
|
|
45
|
-
method: "POST",
|
|
46
|
-
headers,
|
|
47
|
-
path: resolvedPath,
|
|
48
|
-
body,
|
|
49
|
-
});
|
|
32
|
+
b.m("POST").h(headers).b(body);
|
|
33
|
+
return b.build();
|
|
50
34
|
};
|
|
51
35
|
export const se_AssociateSourceGraphqlApiCommand = async (input, context) => {
|
|
52
|
-
const
|
|
36
|
+
const b = rb(input, context);
|
|
53
37
|
const headers = {
|
|
54
38
|
"content-type": "application/json",
|
|
55
39
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
40
|
+
b.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations");
|
|
41
|
+
b.p("mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
59
42
|
let body;
|
|
60
43
|
body = JSON.stringify(take(input, {
|
|
61
44
|
description: [],
|
|
62
45
|
sourceApiAssociationConfig: (_) => _json(_),
|
|
63
46
|
sourceApiIdentifier: [],
|
|
64
47
|
}));
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
hostname,
|
|
68
|
-
port,
|
|
69
|
-
method: "POST",
|
|
70
|
-
headers,
|
|
71
|
-
path: resolvedPath,
|
|
72
|
-
body,
|
|
73
|
-
});
|
|
48
|
+
b.m("POST").h(headers).b(body);
|
|
49
|
+
return b.build();
|
|
74
50
|
};
|
|
75
51
|
export const se_CreateApiCacheCommand = async (input, context) => {
|
|
76
|
-
const
|
|
52
|
+
const b = rb(input, context);
|
|
77
53
|
const headers = {
|
|
78
54
|
"content-type": "application/json",
|
|
79
55
|
};
|
|
80
|
-
|
|
81
|
-
|
|
56
|
+
b.bp("/v1/apis/{apiId}/ApiCaches");
|
|
57
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
82
58
|
let body;
|
|
83
59
|
body = JSON.stringify(take(input, {
|
|
84
60
|
apiCachingBehavior: [],
|
|
@@ -87,45 +63,31 @@ export const se_CreateApiCacheCommand = async (input, context) => {
|
|
|
87
63
|
ttl: [],
|
|
88
64
|
type: [],
|
|
89
65
|
}));
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
hostname,
|
|
93
|
-
port,
|
|
94
|
-
method: "POST",
|
|
95
|
-
headers,
|
|
96
|
-
path: resolvedPath,
|
|
97
|
-
body,
|
|
98
|
-
});
|
|
66
|
+
b.m("POST").h(headers).b(body);
|
|
67
|
+
return b.build();
|
|
99
68
|
};
|
|
100
69
|
export const se_CreateApiKeyCommand = async (input, context) => {
|
|
101
|
-
const
|
|
70
|
+
const b = rb(input, context);
|
|
102
71
|
const headers = {
|
|
103
72
|
"content-type": "application/json",
|
|
104
73
|
};
|
|
105
|
-
|
|
106
|
-
|
|
74
|
+
b.bp("/v1/apis/{apiId}/apikeys");
|
|
75
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
107
76
|
let body;
|
|
108
77
|
body = JSON.stringify(take(input, {
|
|
109
78
|
description: [],
|
|
110
79
|
expires: [],
|
|
111
80
|
}));
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
hostname,
|
|
115
|
-
port,
|
|
116
|
-
method: "POST",
|
|
117
|
-
headers,
|
|
118
|
-
path: resolvedPath,
|
|
119
|
-
body,
|
|
120
|
-
});
|
|
81
|
+
b.m("POST").h(headers).b(body);
|
|
82
|
+
return b.build();
|
|
121
83
|
};
|
|
122
84
|
export const se_CreateDataSourceCommand = async (input, context) => {
|
|
123
|
-
const
|
|
85
|
+
const b = rb(input, context);
|
|
124
86
|
const headers = {
|
|
125
87
|
"content-type": "application/json",
|
|
126
88
|
};
|
|
127
|
-
|
|
128
|
-
|
|
89
|
+
b.bp("/v1/apis/{apiId}/datasources");
|
|
90
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
129
91
|
let body;
|
|
130
92
|
body = JSON.stringify(take(input, {
|
|
131
93
|
description: [],
|
|
@@ -140,45 +102,31 @@ export const se_CreateDataSourceCommand = async (input, context) => {
|
|
|
140
102
|
serviceRoleArn: [],
|
|
141
103
|
type: [],
|
|
142
104
|
}));
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
hostname,
|
|
146
|
-
port,
|
|
147
|
-
method: "POST",
|
|
148
|
-
headers,
|
|
149
|
-
path: resolvedPath,
|
|
150
|
-
body,
|
|
151
|
-
});
|
|
105
|
+
b.m("POST").h(headers).b(body);
|
|
106
|
+
return b.build();
|
|
152
107
|
};
|
|
153
108
|
export const se_CreateDomainNameCommand = async (input, context) => {
|
|
154
|
-
const
|
|
109
|
+
const b = rb(input, context);
|
|
155
110
|
const headers = {
|
|
156
111
|
"content-type": "application/json",
|
|
157
112
|
};
|
|
158
|
-
|
|
113
|
+
b.bp("/v1/domainnames");
|
|
159
114
|
let body;
|
|
160
115
|
body = JSON.stringify(take(input, {
|
|
161
116
|
certificateArn: [],
|
|
162
117
|
description: [],
|
|
163
118
|
domainName: [],
|
|
164
119
|
}));
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
hostname,
|
|
168
|
-
port,
|
|
169
|
-
method: "POST",
|
|
170
|
-
headers,
|
|
171
|
-
path: resolvedPath,
|
|
172
|
-
body,
|
|
173
|
-
});
|
|
120
|
+
b.m("POST").h(headers).b(body);
|
|
121
|
+
return b.build();
|
|
174
122
|
};
|
|
175
123
|
export const se_CreateFunctionCommand = async (input, context) => {
|
|
176
|
-
const
|
|
124
|
+
const b = rb(input, context);
|
|
177
125
|
const headers = {
|
|
178
126
|
"content-type": "application/json",
|
|
179
127
|
};
|
|
180
|
-
|
|
181
|
-
|
|
128
|
+
b.bp("/v1/apis/{apiId}/functions");
|
|
129
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
182
130
|
let body;
|
|
183
131
|
body = JSON.stringify(take(input, {
|
|
184
132
|
code: [],
|
|
@@ -192,57 +140,45 @@ export const se_CreateFunctionCommand = async (input, context) => {
|
|
|
192
140
|
runtime: (_) => _json(_),
|
|
193
141
|
syncConfig: (_) => _json(_),
|
|
194
142
|
}));
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
hostname,
|
|
198
|
-
port,
|
|
199
|
-
method: "POST",
|
|
200
|
-
headers,
|
|
201
|
-
path: resolvedPath,
|
|
202
|
-
body,
|
|
203
|
-
});
|
|
143
|
+
b.m("POST").h(headers).b(body);
|
|
144
|
+
return b.build();
|
|
204
145
|
};
|
|
205
146
|
export const se_CreateGraphqlApiCommand = async (input, context) => {
|
|
206
|
-
const
|
|
147
|
+
const b = rb(input, context);
|
|
207
148
|
const headers = {
|
|
208
149
|
"content-type": "application/json",
|
|
209
150
|
};
|
|
210
|
-
|
|
151
|
+
b.bp("/v1/apis");
|
|
211
152
|
let body;
|
|
212
153
|
body = JSON.stringify(take(input, {
|
|
213
154
|
additionalAuthenticationProviders: (_) => _json(_),
|
|
214
155
|
apiType: [],
|
|
215
156
|
authenticationType: [],
|
|
157
|
+
introspectionConfig: [],
|
|
216
158
|
lambdaAuthorizerConfig: (_) => _json(_),
|
|
217
159
|
logConfig: (_) => _json(_),
|
|
218
160
|
mergedApiExecutionRoleArn: [],
|
|
219
161
|
name: [],
|
|
220
162
|
openIDConnectConfig: (_) => _json(_),
|
|
221
163
|
ownerContact: [],
|
|
164
|
+
queryDepthLimit: [],
|
|
165
|
+
resolverCountLimit: [],
|
|
222
166
|
tags: (_) => _json(_),
|
|
223
167
|
userPoolConfig: (_) => _json(_),
|
|
224
168
|
visibility: [],
|
|
225
169
|
xrayEnabled: [],
|
|
226
170
|
}));
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
hostname,
|
|
230
|
-
port,
|
|
231
|
-
method: "POST",
|
|
232
|
-
headers,
|
|
233
|
-
path: resolvedPath,
|
|
234
|
-
body,
|
|
235
|
-
});
|
|
171
|
+
b.m("POST").h(headers).b(body);
|
|
172
|
+
return b.build();
|
|
236
173
|
};
|
|
237
174
|
export const se_CreateResolverCommand = async (input, context) => {
|
|
238
|
-
const
|
|
175
|
+
const b = rb(input, context);
|
|
239
176
|
const headers = {
|
|
240
177
|
"content-type": "application/json",
|
|
241
178
|
};
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
|
|
179
|
+
b.bp("/v1/apis/{apiId}/types/{typeName}/resolvers");
|
|
180
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
181
|
+
b.p("typeName", () => input.typeName, "{typeName}", false);
|
|
246
182
|
let body;
|
|
247
183
|
body = JSON.stringify(take(input, {
|
|
248
184
|
cachingConfig: (_) => _json(_),
|
|
@@ -257,232 +193,137 @@ export const se_CreateResolverCommand = async (input, context) => {
|
|
|
257
193
|
runtime: (_) => _json(_),
|
|
258
194
|
syncConfig: (_) => _json(_),
|
|
259
195
|
}));
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
hostname,
|
|
263
|
-
port,
|
|
264
|
-
method: "POST",
|
|
265
|
-
headers,
|
|
266
|
-
path: resolvedPath,
|
|
267
|
-
body,
|
|
268
|
-
});
|
|
196
|
+
b.m("POST").h(headers).b(body);
|
|
197
|
+
return b.build();
|
|
269
198
|
};
|
|
270
199
|
export const se_CreateTypeCommand = async (input, context) => {
|
|
271
|
-
const
|
|
200
|
+
const b = rb(input, context);
|
|
272
201
|
const headers = {
|
|
273
202
|
"content-type": "application/json",
|
|
274
203
|
};
|
|
275
|
-
|
|
276
|
-
|
|
204
|
+
b.bp("/v1/apis/{apiId}/types");
|
|
205
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
277
206
|
let body;
|
|
278
207
|
body = JSON.stringify(take(input, {
|
|
279
208
|
definition: [],
|
|
280
209
|
format: [],
|
|
281
210
|
}));
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
hostname,
|
|
285
|
-
port,
|
|
286
|
-
method: "POST",
|
|
287
|
-
headers,
|
|
288
|
-
path: resolvedPath,
|
|
289
|
-
body,
|
|
290
|
-
});
|
|
211
|
+
b.m("POST").h(headers).b(body);
|
|
212
|
+
return b.build();
|
|
291
213
|
};
|
|
292
214
|
export const se_DeleteApiCacheCommand = async (input, context) => {
|
|
293
|
-
const
|
|
215
|
+
const b = rb(input, context);
|
|
294
216
|
const headers = {};
|
|
295
|
-
|
|
296
|
-
|
|
217
|
+
b.bp("/v1/apis/{apiId}/ApiCaches");
|
|
218
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
297
219
|
let body;
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
hostname,
|
|
301
|
-
port,
|
|
302
|
-
method: "DELETE",
|
|
303
|
-
headers,
|
|
304
|
-
path: resolvedPath,
|
|
305
|
-
body,
|
|
306
|
-
});
|
|
220
|
+
b.m("DELETE").h(headers).b(body);
|
|
221
|
+
return b.build();
|
|
307
222
|
};
|
|
308
223
|
export const se_DeleteApiKeyCommand = async (input, context) => {
|
|
309
|
-
const
|
|
224
|
+
const b = rb(input, context);
|
|
310
225
|
const headers = {};
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
226
|
+
b.bp("/v1/apis/{apiId}/apikeys/{id}");
|
|
227
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
228
|
+
b.p("id", () => input.id, "{id}", false);
|
|
314
229
|
let body;
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
hostname,
|
|
318
|
-
port,
|
|
319
|
-
method: "DELETE",
|
|
320
|
-
headers,
|
|
321
|
-
path: resolvedPath,
|
|
322
|
-
body,
|
|
323
|
-
});
|
|
230
|
+
b.m("DELETE").h(headers).b(body);
|
|
231
|
+
return b.build();
|
|
324
232
|
};
|
|
325
233
|
export const se_DeleteDataSourceCommand = async (input, context) => {
|
|
326
|
-
const
|
|
234
|
+
const b = rb(input, context);
|
|
327
235
|
const headers = {};
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
236
|
+
b.bp("/v1/apis/{apiId}/datasources/{name}");
|
|
237
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
238
|
+
b.p("name", () => input.name, "{name}", false);
|
|
331
239
|
let body;
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
hostname,
|
|
335
|
-
port,
|
|
336
|
-
method: "DELETE",
|
|
337
|
-
headers,
|
|
338
|
-
path: resolvedPath,
|
|
339
|
-
body,
|
|
340
|
-
});
|
|
240
|
+
b.m("DELETE").h(headers).b(body);
|
|
241
|
+
return b.build();
|
|
341
242
|
};
|
|
342
243
|
export const se_DeleteDomainNameCommand = async (input, context) => {
|
|
343
|
-
const
|
|
244
|
+
const b = rb(input, context);
|
|
344
245
|
const headers = {};
|
|
345
|
-
|
|
346
|
-
|
|
246
|
+
b.bp("/v1/domainnames/{domainName}");
|
|
247
|
+
b.p("domainName", () => input.domainName, "{domainName}", false);
|
|
347
248
|
let body;
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
hostname,
|
|
351
|
-
port,
|
|
352
|
-
method: "DELETE",
|
|
353
|
-
headers,
|
|
354
|
-
path: resolvedPath,
|
|
355
|
-
body,
|
|
356
|
-
});
|
|
249
|
+
b.m("DELETE").h(headers).b(body);
|
|
250
|
+
return b.build();
|
|
357
251
|
};
|
|
358
252
|
export const se_DeleteFunctionCommand = async (input, context) => {
|
|
359
|
-
const
|
|
253
|
+
const b = rb(input, context);
|
|
360
254
|
const headers = {};
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
255
|
+
b.bp("/v1/apis/{apiId}/functions/{functionId}");
|
|
256
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
257
|
+
b.p("functionId", () => input.functionId, "{functionId}", false);
|
|
364
258
|
let body;
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
hostname,
|
|
368
|
-
port,
|
|
369
|
-
method: "DELETE",
|
|
370
|
-
headers,
|
|
371
|
-
path: resolvedPath,
|
|
372
|
-
body,
|
|
373
|
-
});
|
|
259
|
+
b.m("DELETE").h(headers).b(body);
|
|
260
|
+
return b.build();
|
|
374
261
|
};
|
|
375
262
|
export const se_DeleteGraphqlApiCommand = async (input, context) => {
|
|
376
|
-
const
|
|
263
|
+
const b = rb(input, context);
|
|
377
264
|
const headers = {};
|
|
378
|
-
|
|
379
|
-
|
|
265
|
+
b.bp("/v1/apis/{apiId}");
|
|
266
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
380
267
|
let body;
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
hostname,
|
|
384
|
-
port,
|
|
385
|
-
method: "DELETE",
|
|
386
|
-
headers,
|
|
387
|
-
path: resolvedPath,
|
|
388
|
-
body,
|
|
389
|
-
});
|
|
268
|
+
b.m("DELETE").h(headers).b(body);
|
|
269
|
+
return b.build();
|
|
390
270
|
};
|
|
391
271
|
export const se_DeleteResolverCommand = async (input, context) => {
|
|
392
|
-
const
|
|
272
|
+
const b = rb(input, context);
|
|
393
273
|
const headers = {};
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "fieldName", () => input.fieldName, "{fieldName}", false);
|
|
274
|
+
b.bp("/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}");
|
|
275
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
276
|
+
b.p("typeName", () => input.typeName, "{typeName}", false);
|
|
277
|
+
b.p("fieldName", () => input.fieldName, "{fieldName}", false);
|
|
399
278
|
let body;
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
hostname,
|
|
403
|
-
port,
|
|
404
|
-
method: "DELETE",
|
|
405
|
-
headers,
|
|
406
|
-
path: resolvedPath,
|
|
407
|
-
body,
|
|
408
|
-
});
|
|
279
|
+
b.m("DELETE").h(headers).b(body);
|
|
280
|
+
return b.build();
|
|
409
281
|
};
|
|
410
282
|
export const se_DeleteTypeCommand = async (input, context) => {
|
|
411
|
-
const
|
|
283
|
+
const b = rb(input, context);
|
|
412
284
|
const headers = {};
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
285
|
+
b.bp("/v1/apis/{apiId}/types/{typeName}");
|
|
286
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
287
|
+
b.p("typeName", () => input.typeName, "{typeName}", false);
|
|
416
288
|
let body;
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
hostname,
|
|
420
|
-
port,
|
|
421
|
-
method: "DELETE",
|
|
422
|
-
headers,
|
|
423
|
-
path: resolvedPath,
|
|
424
|
-
body,
|
|
425
|
-
});
|
|
289
|
+
b.m("DELETE").h(headers).b(body);
|
|
290
|
+
return b.build();
|
|
426
291
|
};
|
|
427
292
|
export const se_DisassociateApiCommand = async (input, context) => {
|
|
428
|
-
const
|
|
293
|
+
const b = rb(input, context);
|
|
429
294
|
const headers = {};
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
|
|
295
|
+
b.bp("/v1/domainnames/{domainName}/apiassociation");
|
|
296
|
+
b.p("domainName", () => input.domainName, "{domainName}", false);
|
|
433
297
|
let body;
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
hostname,
|
|
437
|
-
port,
|
|
438
|
-
method: "DELETE",
|
|
439
|
-
headers,
|
|
440
|
-
path: resolvedPath,
|
|
441
|
-
body,
|
|
442
|
-
});
|
|
298
|
+
b.m("DELETE").h(headers).b(body);
|
|
299
|
+
return b.build();
|
|
443
300
|
};
|
|
444
301
|
export const se_DisassociateMergedGraphqlApiCommand = async (input, context) => {
|
|
445
|
-
const
|
|
302
|
+
const b = rb(input, context);
|
|
446
303
|
const headers = {};
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
304
|
+
b.bp("/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations/{associationId}");
|
|
305
|
+
b.p("sourceApiIdentifier", () => input.sourceApiIdentifier, "{sourceApiIdentifier}", false);
|
|
306
|
+
b.p("associationId", () => input.associationId, "{associationId}", false);
|
|
451
307
|
let body;
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
hostname,
|
|
455
|
-
port,
|
|
456
|
-
method: "DELETE",
|
|
457
|
-
headers,
|
|
458
|
-
path: resolvedPath,
|
|
459
|
-
body,
|
|
460
|
-
});
|
|
308
|
+
b.m("DELETE").h(headers).b(body);
|
|
309
|
+
return b.build();
|
|
461
310
|
};
|
|
462
311
|
export const se_DisassociateSourceGraphqlApiCommand = async (input, context) => {
|
|
463
|
-
const
|
|
312
|
+
const b = rb(input, context);
|
|
464
313
|
const headers = {};
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
314
|
+
b.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}");
|
|
315
|
+
b.p("mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
316
|
+
b.p("associationId", () => input.associationId, "{associationId}", false);
|
|
469
317
|
let body;
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
hostname,
|
|
473
|
-
port,
|
|
474
|
-
method: "DELETE",
|
|
475
|
-
headers,
|
|
476
|
-
path: resolvedPath,
|
|
477
|
-
body,
|
|
478
|
-
});
|
|
318
|
+
b.m("DELETE").h(headers).b(body);
|
|
319
|
+
return b.build();
|
|
479
320
|
};
|
|
480
321
|
export const se_EvaluateCodeCommand = async (input, context) => {
|
|
481
|
-
const
|
|
322
|
+
const b = rb(input, context);
|
|
482
323
|
const headers = {
|
|
483
324
|
"content-type": "application/json",
|
|
484
325
|
};
|
|
485
|
-
|
|
326
|
+
b.bp("/v1/dataplane-evaluatecode");
|
|
486
327
|
let body;
|
|
487
328
|
body = JSON.stringify(take(input, {
|
|
488
329
|
code: [],
|
|
@@ -490,661 +331,408 @@ export const se_EvaluateCodeCommand = async (input, context) => {
|
|
|
490
331
|
function: [],
|
|
491
332
|
runtime: (_) => _json(_),
|
|
492
333
|
}));
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
hostname,
|
|
496
|
-
port,
|
|
497
|
-
method: "POST",
|
|
498
|
-
headers,
|
|
499
|
-
path: resolvedPath,
|
|
500
|
-
body,
|
|
501
|
-
});
|
|
334
|
+
b.m("POST").h(headers).b(body);
|
|
335
|
+
return b.build();
|
|
502
336
|
};
|
|
503
337
|
export const se_EvaluateMappingTemplateCommand = async (input, context) => {
|
|
504
|
-
const
|
|
338
|
+
const b = rb(input, context);
|
|
505
339
|
const headers = {
|
|
506
340
|
"content-type": "application/json",
|
|
507
341
|
};
|
|
508
|
-
|
|
342
|
+
b.bp("/v1/dataplane-evaluatetemplate");
|
|
509
343
|
let body;
|
|
510
344
|
body = JSON.stringify(take(input, {
|
|
511
345
|
context: [],
|
|
512
346
|
template: [],
|
|
513
347
|
}));
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
hostname,
|
|
517
|
-
port,
|
|
518
|
-
method: "POST",
|
|
519
|
-
headers,
|
|
520
|
-
path: resolvedPath,
|
|
521
|
-
body,
|
|
522
|
-
});
|
|
348
|
+
b.m("POST").h(headers).b(body);
|
|
349
|
+
return b.build();
|
|
523
350
|
};
|
|
524
351
|
export const se_FlushApiCacheCommand = async (input, context) => {
|
|
525
|
-
const
|
|
352
|
+
const b = rb(input, context);
|
|
526
353
|
const headers = {};
|
|
527
|
-
|
|
528
|
-
|
|
354
|
+
b.bp("/v1/apis/{apiId}/FlushCache");
|
|
355
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
529
356
|
let body;
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
hostname,
|
|
533
|
-
port,
|
|
534
|
-
method: "DELETE",
|
|
535
|
-
headers,
|
|
536
|
-
path: resolvedPath,
|
|
537
|
-
body,
|
|
538
|
-
});
|
|
357
|
+
b.m("DELETE").h(headers).b(body);
|
|
358
|
+
return b.build();
|
|
539
359
|
};
|
|
540
360
|
export const se_GetApiAssociationCommand = async (input, context) => {
|
|
541
|
-
const
|
|
361
|
+
const b = rb(input, context);
|
|
542
362
|
const headers = {};
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
|
|
363
|
+
b.bp("/v1/domainnames/{domainName}/apiassociation");
|
|
364
|
+
b.p("domainName", () => input.domainName, "{domainName}", false);
|
|
546
365
|
let body;
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
hostname,
|
|
550
|
-
port,
|
|
551
|
-
method: "GET",
|
|
552
|
-
headers,
|
|
553
|
-
path: resolvedPath,
|
|
554
|
-
body,
|
|
555
|
-
});
|
|
366
|
+
b.m("GET").h(headers).b(body);
|
|
367
|
+
return b.build();
|
|
556
368
|
};
|
|
557
369
|
export const se_GetApiCacheCommand = async (input, context) => {
|
|
558
|
-
const
|
|
370
|
+
const b = rb(input, context);
|
|
559
371
|
const headers = {};
|
|
560
|
-
|
|
561
|
-
|
|
372
|
+
b.bp("/v1/apis/{apiId}/ApiCaches");
|
|
373
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
562
374
|
let body;
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
hostname,
|
|
566
|
-
port,
|
|
567
|
-
method: "GET",
|
|
568
|
-
headers,
|
|
569
|
-
path: resolvedPath,
|
|
570
|
-
body,
|
|
571
|
-
});
|
|
375
|
+
b.m("GET").h(headers).b(body);
|
|
376
|
+
return b.build();
|
|
572
377
|
};
|
|
573
378
|
export const se_GetDataSourceCommand = async (input, context) => {
|
|
574
|
-
const
|
|
379
|
+
const b = rb(input, context);
|
|
575
380
|
const headers = {};
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
381
|
+
b.bp("/v1/apis/{apiId}/datasources/{name}");
|
|
382
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
383
|
+
b.p("name", () => input.name, "{name}", false);
|
|
579
384
|
let body;
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
hostname,
|
|
583
|
-
port,
|
|
584
|
-
method: "GET",
|
|
585
|
-
headers,
|
|
586
|
-
path: resolvedPath,
|
|
587
|
-
body,
|
|
588
|
-
});
|
|
385
|
+
b.m("GET").h(headers).b(body);
|
|
386
|
+
return b.build();
|
|
589
387
|
};
|
|
590
388
|
export const se_GetDataSourceIntrospectionCommand = async (input, context) => {
|
|
591
|
-
const
|
|
389
|
+
const b = rb(input, context);
|
|
592
390
|
const headers = {};
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "introspectionId", () => input.introspectionId, "{introspectionId}", false);
|
|
391
|
+
b.bp("/v1/datasources/introspections/{introspectionId}");
|
|
392
|
+
b.p("introspectionId", () => input.introspectionId, "{introspectionId}", false);
|
|
596
393
|
const query = map({
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
394
|
+
[_iMSDL]: [() => input.includeModelsSDL !== void 0, () => input[_iMSDL].toString()],
|
|
395
|
+
[_nT]: [, input[_nT]],
|
|
396
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
600
397
|
});
|
|
601
398
|
let body;
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
hostname,
|
|
605
|
-
port,
|
|
606
|
-
method: "GET",
|
|
607
|
-
headers,
|
|
608
|
-
path: resolvedPath,
|
|
609
|
-
query,
|
|
610
|
-
body,
|
|
611
|
-
});
|
|
399
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
400
|
+
return b.build();
|
|
612
401
|
};
|
|
613
402
|
export const se_GetDomainNameCommand = async (input, context) => {
|
|
614
|
-
const
|
|
403
|
+
const b = rb(input, context);
|
|
615
404
|
const headers = {};
|
|
616
|
-
|
|
617
|
-
|
|
405
|
+
b.bp("/v1/domainnames/{domainName}");
|
|
406
|
+
b.p("domainName", () => input.domainName, "{domainName}", false);
|
|
618
407
|
let body;
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
hostname,
|
|
622
|
-
port,
|
|
623
|
-
method: "GET",
|
|
624
|
-
headers,
|
|
625
|
-
path: resolvedPath,
|
|
626
|
-
body,
|
|
627
|
-
});
|
|
408
|
+
b.m("GET").h(headers).b(body);
|
|
409
|
+
return b.build();
|
|
628
410
|
};
|
|
629
411
|
export const se_GetFunctionCommand = async (input, context) => {
|
|
630
|
-
const
|
|
412
|
+
const b = rb(input, context);
|
|
631
413
|
const headers = {};
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
414
|
+
b.bp("/v1/apis/{apiId}/functions/{functionId}");
|
|
415
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
416
|
+
b.p("functionId", () => input.functionId, "{functionId}", false);
|
|
635
417
|
let body;
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
hostname,
|
|
639
|
-
port,
|
|
640
|
-
method: "GET",
|
|
641
|
-
headers,
|
|
642
|
-
path: resolvedPath,
|
|
643
|
-
body,
|
|
644
|
-
});
|
|
418
|
+
b.m("GET").h(headers).b(body);
|
|
419
|
+
return b.build();
|
|
645
420
|
};
|
|
646
421
|
export const se_GetGraphqlApiCommand = async (input, context) => {
|
|
647
|
-
const
|
|
422
|
+
const b = rb(input, context);
|
|
648
423
|
const headers = {};
|
|
649
|
-
|
|
650
|
-
|
|
424
|
+
b.bp("/v1/apis/{apiId}");
|
|
425
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
651
426
|
let body;
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
hostname,
|
|
655
|
-
port,
|
|
656
|
-
method: "GET",
|
|
657
|
-
headers,
|
|
658
|
-
path: resolvedPath,
|
|
659
|
-
body,
|
|
660
|
-
});
|
|
427
|
+
b.m("GET").h(headers).b(body);
|
|
428
|
+
return b.build();
|
|
661
429
|
};
|
|
662
430
|
export const se_GetIntrospectionSchemaCommand = async (input, context) => {
|
|
663
|
-
const
|
|
431
|
+
const b = rb(input, context);
|
|
664
432
|
const headers = {};
|
|
665
|
-
|
|
666
|
-
|
|
433
|
+
b.bp("/v1/apis/{apiId}/schema");
|
|
434
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
667
435
|
const query = map({
|
|
668
|
-
|
|
669
|
-
|
|
436
|
+
[_f]: [, __expectNonNull(input[_f], `format`)],
|
|
437
|
+
[_iD]: [() => input.includeDirectives !== void 0, () => input[_iD].toString()],
|
|
670
438
|
});
|
|
671
439
|
let body;
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
hostname,
|
|
675
|
-
port,
|
|
676
|
-
method: "GET",
|
|
677
|
-
headers,
|
|
678
|
-
path: resolvedPath,
|
|
679
|
-
query,
|
|
680
|
-
body,
|
|
681
|
-
});
|
|
440
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
441
|
+
return b.build();
|
|
682
442
|
};
|
|
683
443
|
export const se_GetResolverCommand = async (input, context) => {
|
|
684
|
-
const
|
|
444
|
+
const b = rb(input, context);
|
|
685
445
|
const headers = {};
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "fieldName", () => input.fieldName, "{fieldName}", false);
|
|
446
|
+
b.bp("/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}");
|
|
447
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
448
|
+
b.p("typeName", () => input.typeName, "{typeName}", false);
|
|
449
|
+
b.p("fieldName", () => input.fieldName, "{fieldName}", false);
|
|
691
450
|
let body;
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
hostname,
|
|
695
|
-
port,
|
|
696
|
-
method: "GET",
|
|
697
|
-
headers,
|
|
698
|
-
path: resolvedPath,
|
|
699
|
-
body,
|
|
700
|
-
});
|
|
451
|
+
b.m("GET").h(headers).b(body);
|
|
452
|
+
return b.build();
|
|
701
453
|
};
|
|
702
454
|
export const se_GetSchemaCreationStatusCommand = async (input, context) => {
|
|
703
|
-
const
|
|
455
|
+
const b = rb(input, context);
|
|
704
456
|
const headers = {};
|
|
705
|
-
|
|
706
|
-
|
|
457
|
+
b.bp("/v1/apis/{apiId}/schemacreation");
|
|
458
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
707
459
|
let body;
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
hostname,
|
|
711
|
-
port,
|
|
712
|
-
method: "GET",
|
|
713
|
-
headers,
|
|
714
|
-
path: resolvedPath,
|
|
715
|
-
body,
|
|
716
|
-
});
|
|
460
|
+
b.m("GET").h(headers).b(body);
|
|
461
|
+
return b.build();
|
|
717
462
|
};
|
|
718
463
|
export const se_GetSourceApiAssociationCommand = async (input, context) => {
|
|
719
|
-
const
|
|
464
|
+
const b = rb(input, context);
|
|
720
465
|
const headers = {};
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
466
|
+
b.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}");
|
|
467
|
+
b.p("mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
468
|
+
b.p("associationId", () => input.associationId, "{associationId}", false);
|
|
725
469
|
let body;
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
hostname,
|
|
729
|
-
port,
|
|
730
|
-
method: "GET",
|
|
731
|
-
headers,
|
|
732
|
-
path: resolvedPath,
|
|
733
|
-
body,
|
|
734
|
-
});
|
|
470
|
+
b.m("GET").h(headers).b(body);
|
|
471
|
+
return b.build();
|
|
735
472
|
};
|
|
736
473
|
export const se_GetTypeCommand = async (input, context) => {
|
|
737
|
-
const
|
|
474
|
+
const b = rb(input, context);
|
|
738
475
|
const headers = {};
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
476
|
+
b.bp("/v1/apis/{apiId}/types/{typeName}");
|
|
477
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
478
|
+
b.p("typeName", () => input.typeName, "{typeName}", false);
|
|
742
479
|
const query = map({
|
|
743
|
-
|
|
480
|
+
[_f]: [, __expectNonNull(input[_f], `format`)],
|
|
744
481
|
});
|
|
745
482
|
let body;
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
hostname,
|
|
749
|
-
port,
|
|
750
|
-
method: "GET",
|
|
751
|
-
headers,
|
|
752
|
-
path: resolvedPath,
|
|
753
|
-
query,
|
|
754
|
-
body,
|
|
755
|
-
});
|
|
483
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
484
|
+
return b.build();
|
|
756
485
|
};
|
|
757
486
|
export const se_ListApiKeysCommand = async (input, context) => {
|
|
758
|
-
const
|
|
487
|
+
const b = rb(input, context);
|
|
759
488
|
const headers = {};
|
|
760
|
-
|
|
761
|
-
|
|
489
|
+
b.bp("/v1/apis/{apiId}/apikeys");
|
|
490
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
762
491
|
const query = map({
|
|
763
|
-
|
|
764
|
-
|
|
492
|
+
[_nT]: [, input[_nT]],
|
|
493
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
765
494
|
});
|
|
766
495
|
let body;
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
hostname,
|
|
770
|
-
port,
|
|
771
|
-
method: "GET",
|
|
772
|
-
headers,
|
|
773
|
-
path: resolvedPath,
|
|
774
|
-
query,
|
|
775
|
-
body,
|
|
776
|
-
});
|
|
496
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
497
|
+
return b.build();
|
|
777
498
|
};
|
|
778
499
|
export const se_ListDataSourcesCommand = async (input, context) => {
|
|
779
|
-
const
|
|
500
|
+
const b = rb(input, context);
|
|
780
501
|
const headers = {};
|
|
781
|
-
|
|
782
|
-
|
|
502
|
+
b.bp("/v1/apis/{apiId}/datasources");
|
|
503
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
783
504
|
const query = map({
|
|
784
|
-
|
|
785
|
-
|
|
505
|
+
[_nT]: [, input[_nT]],
|
|
506
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
786
507
|
});
|
|
787
508
|
let body;
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
hostname,
|
|
791
|
-
port,
|
|
792
|
-
method: "GET",
|
|
793
|
-
headers,
|
|
794
|
-
path: resolvedPath,
|
|
795
|
-
query,
|
|
796
|
-
body,
|
|
797
|
-
});
|
|
509
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
510
|
+
return b.build();
|
|
798
511
|
};
|
|
799
512
|
export const se_ListDomainNamesCommand = async (input, context) => {
|
|
800
|
-
const
|
|
513
|
+
const b = rb(input, context);
|
|
801
514
|
const headers = {};
|
|
802
|
-
|
|
515
|
+
b.bp("/v1/domainnames");
|
|
803
516
|
const query = map({
|
|
804
|
-
|
|
805
|
-
|
|
517
|
+
[_nT]: [, input[_nT]],
|
|
518
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
806
519
|
});
|
|
807
520
|
let body;
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
hostname,
|
|
811
|
-
port,
|
|
812
|
-
method: "GET",
|
|
813
|
-
headers,
|
|
814
|
-
path: resolvedPath,
|
|
815
|
-
query,
|
|
816
|
-
body,
|
|
817
|
-
});
|
|
521
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
522
|
+
return b.build();
|
|
818
523
|
};
|
|
819
524
|
export const se_ListFunctionsCommand = async (input, context) => {
|
|
820
|
-
const
|
|
525
|
+
const b = rb(input, context);
|
|
821
526
|
const headers = {};
|
|
822
|
-
|
|
823
|
-
|
|
527
|
+
b.bp("/v1/apis/{apiId}/functions");
|
|
528
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
824
529
|
const query = map({
|
|
825
|
-
|
|
826
|
-
|
|
530
|
+
[_nT]: [, input[_nT]],
|
|
531
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
827
532
|
});
|
|
828
533
|
let body;
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
hostname,
|
|
832
|
-
port,
|
|
833
|
-
method: "GET",
|
|
834
|
-
headers,
|
|
835
|
-
path: resolvedPath,
|
|
836
|
-
query,
|
|
837
|
-
body,
|
|
838
|
-
});
|
|
534
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
535
|
+
return b.build();
|
|
839
536
|
};
|
|
840
537
|
export const se_ListGraphqlApisCommand = async (input, context) => {
|
|
841
|
-
const
|
|
538
|
+
const b = rb(input, context);
|
|
842
539
|
const headers = {};
|
|
843
|
-
|
|
540
|
+
b.bp("/v1/apis");
|
|
844
541
|
const query = map({
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
542
|
+
[_nT]: [, input[_nT]],
|
|
543
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
544
|
+
[_aT]: [, input[_aT]],
|
|
545
|
+
[_o]: [, input[_o]],
|
|
849
546
|
});
|
|
850
547
|
let body;
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
hostname,
|
|
854
|
-
port,
|
|
855
|
-
method: "GET",
|
|
856
|
-
headers,
|
|
857
|
-
path: resolvedPath,
|
|
858
|
-
query,
|
|
859
|
-
body,
|
|
860
|
-
});
|
|
548
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
549
|
+
return b.build();
|
|
861
550
|
};
|
|
862
551
|
export const se_ListResolversCommand = async (input, context) => {
|
|
863
|
-
const
|
|
552
|
+
const b = rb(input, context);
|
|
864
553
|
const headers = {};
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
|
|
554
|
+
b.bp("/v1/apis/{apiId}/types/{typeName}/resolvers");
|
|
555
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
556
|
+
b.p("typeName", () => input.typeName, "{typeName}", false);
|
|
869
557
|
const query = map({
|
|
870
|
-
|
|
871
|
-
|
|
558
|
+
[_nT]: [, input[_nT]],
|
|
559
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
872
560
|
});
|
|
873
561
|
let body;
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
hostname,
|
|
877
|
-
port,
|
|
878
|
-
method: "GET",
|
|
879
|
-
headers,
|
|
880
|
-
path: resolvedPath,
|
|
881
|
-
query,
|
|
882
|
-
body,
|
|
883
|
-
});
|
|
562
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
563
|
+
return b.build();
|
|
884
564
|
};
|
|
885
565
|
export const se_ListResolversByFunctionCommand = async (input, context) => {
|
|
886
|
-
const
|
|
566
|
+
const b = rb(input, context);
|
|
887
567
|
const headers = {};
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "functionId", () => input.functionId, "{functionId}", false);
|
|
568
|
+
b.bp("/v1/apis/{apiId}/functions/{functionId}/resolvers");
|
|
569
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
570
|
+
b.p("functionId", () => input.functionId, "{functionId}", false);
|
|
892
571
|
const query = map({
|
|
893
|
-
|
|
894
|
-
|
|
572
|
+
[_nT]: [, input[_nT]],
|
|
573
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
895
574
|
});
|
|
896
575
|
let body;
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
hostname,
|
|
900
|
-
port,
|
|
901
|
-
method: "GET",
|
|
902
|
-
headers,
|
|
903
|
-
path: resolvedPath,
|
|
904
|
-
query,
|
|
905
|
-
body,
|
|
906
|
-
});
|
|
576
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
577
|
+
return b.build();
|
|
907
578
|
};
|
|
908
579
|
export const se_ListSourceApiAssociationsCommand = async (input, context) => {
|
|
909
|
-
const
|
|
580
|
+
const b = rb(input, context);
|
|
910
581
|
const headers = {};
|
|
911
|
-
|
|
912
|
-
|
|
582
|
+
b.bp("/v1/apis/{apiId}/sourceApiAssociations");
|
|
583
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
913
584
|
const query = map({
|
|
914
|
-
|
|
915
|
-
|
|
585
|
+
[_nT]: [, input[_nT]],
|
|
586
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
916
587
|
});
|
|
917
588
|
let body;
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
hostname,
|
|
921
|
-
port,
|
|
922
|
-
method: "GET",
|
|
923
|
-
headers,
|
|
924
|
-
path: resolvedPath,
|
|
925
|
-
query,
|
|
926
|
-
body,
|
|
927
|
-
});
|
|
589
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
590
|
+
return b.build();
|
|
928
591
|
};
|
|
929
592
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
930
|
-
const
|
|
593
|
+
const b = rb(input, context);
|
|
931
594
|
const headers = {};
|
|
932
|
-
|
|
933
|
-
|
|
595
|
+
b.bp("/v1/tags/{resourceArn}");
|
|
596
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
934
597
|
let body;
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
hostname,
|
|
938
|
-
port,
|
|
939
|
-
method: "GET",
|
|
940
|
-
headers,
|
|
941
|
-
path: resolvedPath,
|
|
942
|
-
body,
|
|
943
|
-
});
|
|
598
|
+
b.m("GET").h(headers).b(body);
|
|
599
|
+
return b.build();
|
|
944
600
|
};
|
|
945
601
|
export const se_ListTypesCommand = async (input, context) => {
|
|
946
|
-
const
|
|
602
|
+
const b = rb(input, context);
|
|
947
603
|
const headers = {};
|
|
948
|
-
|
|
949
|
-
|
|
604
|
+
b.bp("/v1/apis/{apiId}/types");
|
|
605
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
950
606
|
const query = map({
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
607
|
+
[_f]: [, __expectNonNull(input[_f], `format`)],
|
|
608
|
+
[_nT]: [, input[_nT]],
|
|
609
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
954
610
|
});
|
|
955
611
|
let body;
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
hostname,
|
|
959
|
-
port,
|
|
960
|
-
method: "GET",
|
|
961
|
-
headers,
|
|
962
|
-
path: resolvedPath,
|
|
963
|
-
query,
|
|
964
|
-
body,
|
|
965
|
-
});
|
|
612
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
613
|
+
return b.build();
|
|
966
614
|
};
|
|
967
615
|
export const se_ListTypesByAssociationCommand = async (input, context) => {
|
|
968
|
-
const
|
|
616
|
+
const b = rb(input, context);
|
|
969
617
|
const headers = {};
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
618
|
+
b.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/types");
|
|
619
|
+
b.p("mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
620
|
+
b.p("associationId", () => input.associationId, "{associationId}", false);
|
|
974
621
|
const query = map({
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
622
|
+
[_f]: [, __expectNonNull(input[_f], `format`)],
|
|
623
|
+
[_nT]: [, input[_nT]],
|
|
624
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
978
625
|
});
|
|
979
626
|
let body;
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
hostname,
|
|
983
|
-
port,
|
|
984
|
-
method: "GET",
|
|
985
|
-
headers,
|
|
986
|
-
path: resolvedPath,
|
|
987
|
-
query,
|
|
988
|
-
body,
|
|
989
|
-
});
|
|
627
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
628
|
+
return b.build();
|
|
990
629
|
};
|
|
991
630
|
export const se_StartDataSourceIntrospectionCommand = async (input, context) => {
|
|
992
|
-
const
|
|
631
|
+
const b = rb(input, context);
|
|
993
632
|
const headers = {
|
|
994
633
|
"content-type": "application/json",
|
|
995
634
|
};
|
|
996
|
-
|
|
635
|
+
b.bp("/v1/datasources/introspections");
|
|
997
636
|
let body;
|
|
998
637
|
body = JSON.stringify(take(input, {
|
|
999
638
|
rdsDataApiConfig: (_) => _json(_),
|
|
1000
639
|
}));
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
hostname,
|
|
1004
|
-
port,
|
|
1005
|
-
method: "POST",
|
|
1006
|
-
headers,
|
|
1007
|
-
path: resolvedPath,
|
|
1008
|
-
body,
|
|
1009
|
-
});
|
|
640
|
+
b.m("POST").h(headers).b(body);
|
|
641
|
+
return b.build();
|
|
1010
642
|
};
|
|
1011
643
|
export const se_StartSchemaCreationCommand = async (input, context) => {
|
|
1012
|
-
const
|
|
644
|
+
const b = rb(input, context);
|
|
1013
645
|
const headers = {
|
|
1014
646
|
"content-type": "application/json",
|
|
1015
647
|
};
|
|
1016
|
-
|
|
1017
|
-
|
|
648
|
+
b.bp("/v1/apis/{apiId}/schemacreation");
|
|
649
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
1018
650
|
let body;
|
|
1019
651
|
body = JSON.stringify(take(input, {
|
|
1020
652
|
definition: (_) => context.base64Encoder(_),
|
|
1021
653
|
}));
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
hostname,
|
|
1025
|
-
port,
|
|
1026
|
-
method: "POST",
|
|
1027
|
-
headers,
|
|
1028
|
-
path: resolvedPath,
|
|
1029
|
-
body,
|
|
1030
|
-
});
|
|
654
|
+
b.m("POST").h(headers).b(body);
|
|
655
|
+
return b.build();
|
|
1031
656
|
};
|
|
1032
657
|
export const se_StartSchemaMergeCommand = async (input, context) => {
|
|
1033
|
-
const
|
|
658
|
+
const b = rb(input, context);
|
|
1034
659
|
const headers = {};
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
660
|
+
b.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/merge");
|
|
661
|
+
b.p("associationId", () => input.associationId, "{associationId}", false);
|
|
662
|
+
b.p("mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
1039
663
|
let body;
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
hostname,
|
|
1043
|
-
port,
|
|
1044
|
-
method: "POST",
|
|
1045
|
-
headers,
|
|
1046
|
-
path: resolvedPath,
|
|
1047
|
-
body,
|
|
1048
|
-
});
|
|
664
|
+
b.m("POST").h(headers).b(body);
|
|
665
|
+
return b.build();
|
|
1049
666
|
};
|
|
1050
667
|
export const se_TagResourceCommand = async (input, context) => {
|
|
1051
|
-
const
|
|
668
|
+
const b = rb(input, context);
|
|
1052
669
|
const headers = {
|
|
1053
670
|
"content-type": "application/json",
|
|
1054
671
|
};
|
|
1055
|
-
|
|
1056
|
-
|
|
672
|
+
b.bp("/v1/tags/{resourceArn}");
|
|
673
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1057
674
|
let body;
|
|
1058
675
|
body = JSON.stringify(take(input, {
|
|
1059
676
|
tags: (_) => _json(_),
|
|
1060
677
|
}));
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
hostname,
|
|
1064
|
-
port,
|
|
1065
|
-
method: "POST",
|
|
1066
|
-
headers,
|
|
1067
|
-
path: resolvedPath,
|
|
1068
|
-
body,
|
|
1069
|
-
});
|
|
678
|
+
b.m("POST").h(headers).b(body);
|
|
679
|
+
return b.build();
|
|
1070
680
|
};
|
|
1071
681
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
1072
|
-
const
|
|
682
|
+
const b = rb(input, context);
|
|
1073
683
|
const headers = {};
|
|
1074
|
-
|
|
1075
|
-
|
|
684
|
+
b.bp("/v1/tags/{resourceArn}");
|
|
685
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1076
686
|
const query = map({
|
|
1077
|
-
|
|
687
|
+
[_tK]: [
|
|
1078
688
|
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
1079
|
-
() => (input
|
|
689
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
1080
690
|
],
|
|
1081
691
|
});
|
|
1082
692
|
let body;
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
hostname,
|
|
1086
|
-
port,
|
|
1087
|
-
method: "DELETE",
|
|
1088
|
-
headers,
|
|
1089
|
-
path: resolvedPath,
|
|
1090
|
-
query,
|
|
1091
|
-
body,
|
|
1092
|
-
});
|
|
693
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
694
|
+
return b.build();
|
|
1093
695
|
};
|
|
1094
696
|
export const se_UpdateApiCacheCommand = async (input, context) => {
|
|
1095
|
-
const
|
|
697
|
+
const b = rb(input, context);
|
|
1096
698
|
const headers = {
|
|
1097
699
|
"content-type": "application/json",
|
|
1098
700
|
};
|
|
1099
|
-
|
|
1100
|
-
|
|
701
|
+
b.bp("/v1/apis/{apiId}/ApiCaches/update");
|
|
702
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
1101
703
|
let body;
|
|
1102
704
|
body = JSON.stringify(take(input, {
|
|
1103
705
|
apiCachingBehavior: [],
|
|
1104
706
|
ttl: [],
|
|
1105
707
|
type: [],
|
|
1106
708
|
}));
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
hostname,
|
|
1110
|
-
port,
|
|
1111
|
-
method: "POST",
|
|
1112
|
-
headers,
|
|
1113
|
-
path: resolvedPath,
|
|
1114
|
-
body,
|
|
1115
|
-
});
|
|
709
|
+
b.m("POST").h(headers).b(body);
|
|
710
|
+
return b.build();
|
|
1116
711
|
};
|
|
1117
712
|
export const se_UpdateApiKeyCommand = async (input, context) => {
|
|
1118
|
-
const
|
|
713
|
+
const b = rb(input, context);
|
|
1119
714
|
const headers = {
|
|
1120
715
|
"content-type": "application/json",
|
|
1121
716
|
};
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
717
|
+
b.bp("/v1/apis/{apiId}/apikeys/{id}");
|
|
718
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
719
|
+
b.p("id", () => input.id, "{id}", false);
|
|
1125
720
|
let body;
|
|
1126
721
|
body = JSON.stringify(take(input, {
|
|
1127
722
|
description: [],
|
|
1128
723
|
expires: [],
|
|
1129
724
|
}));
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
hostname,
|
|
1133
|
-
port,
|
|
1134
|
-
method: "POST",
|
|
1135
|
-
headers,
|
|
1136
|
-
path: resolvedPath,
|
|
1137
|
-
body,
|
|
1138
|
-
});
|
|
725
|
+
b.m("POST").h(headers).b(body);
|
|
726
|
+
return b.build();
|
|
1139
727
|
};
|
|
1140
728
|
export const se_UpdateDataSourceCommand = async (input, context) => {
|
|
1141
|
-
const
|
|
729
|
+
const b = rb(input, context);
|
|
1142
730
|
const headers = {
|
|
1143
731
|
"content-type": "application/json",
|
|
1144
732
|
};
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
733
|
+
b.bp("/v1/apis/{apiId}/datasources/{name}");
|
|
734
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
735
|
+
b.p("name", () => input.name, "{name}", false);
|
|
1148
736
|
let body;
|
|
1149
737
|
body = JSON.stringify(take(input, {
|
|
1150
738
|
description: [],
|
|
@@ -1158,45 +746,31 @@ export const se_UpdateDataSourceCommand = async (input, context) => {
|
|
|
1158
746
|
serviceRoleArn: [],
|
|
1159
747
|
type: [],
|
|
1160
748
|
}));
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
hostname,
|
|
1164
|
-
port,
|
|
1165
|
-
method: "POST",
|
|
1166
|
-
headers,
|
|
1167
|
-
path: resolvedPath,
|
|
1168
|
-
body,
|
|
1169
|
-
});
|
|
749
|
+
b.m("POST").h(headers).b(body);
|
|
750
|
+
return b.build();
|
|
1170
751
|
};
|
|
1171
752
|
export const se_UpdateDomainNameCommand = async (input, context) => {
|
|
1172
|
-
const
|
|
753
|
+
const b = rb(input, context);
|
|
1173
754
|
const headers = {
|
|
1174
755
|
"content-type": "application/json",
|
|
1175
756
|
};
|
|
1176
|
-
|
|
1177
|
-
|
|
757
|
+
b.bp("/v1/domainnames/{domainName}");
|
|
758
|
+
b.p("domainName", () => input.domainName, "{domainName}", false);
|
|
1178
759
|
let body;
|
|
1179
760
|
body = JSON.stringify(take(input, {
|
|
1180
761
|
description: [],
|
|
1181
762
|
}));
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
hostname,
|
|
1185
|
-
port,
|
|
1186
|
-
method: "POST",
|
|
1187
|
-
headers,
|
|
1188
|
-
path: resolvedPath,
|
|
1189
|
-
body,
|
|
1190
|
-
});
|
|
763
|
+
b.m("POST").h(headers).b(body);
|
|
764
|
+
return b.build();
|
|
1191
765
|
};
|
|
1192
766
|
export const se_UpdateFunctionCommand = async (input, context) => {
|
|
1193
|
-
const
|
|
767
|
+
const b = rb(input, context);
|
|
1194
768
|
const headers = {
|
|
1195
769
|
"content-type": "application/json",
|
|
1196
770
|
};
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
771
|
+
b.bp("/v1/apis/{apiId}/functions/{functionId}");
|
|
772
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
773
|
+
b.p("functionId", () => input.functionId, "{functionId}", false);
|
|
1200
774
|
let body;
|
|
1201
775
|
body = JSON.stringify(take(input, {
|
|
1202
776
|
code: [],
|
|
@@ -1210,56 +784,44 @@ export const se_UpdateFunctionCommand = async (input, context) => {
|
|
|
1210
784
|
runtime: (_) => _json(_),
|
|
1211
785
|
syncConfig: (_) => _json(_),
|
|
1212
786
|
}));
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
hostname,
|
|
1216
|
-
port,
|
|
1217
|
-
method: "POST",
|
|
1218
|
-
headers,
|
|
1219
|
-
path: resolvedPath,
|
|
1220
|
-
body,
|
|
1221
|
-
});
|
|
787
|
+
b.m("POST").h(headers).b(body);
|
|
788
|
+
return b.build();
|
|
1222
789
|
};
|
|
1223
790
|
export const se_UpdateGraphqlApiCommand = async (input, context) => {
|
|
1224
|
-
const
|
|
791
|
+
const b = rb(input, context);
|
|
1225
792
|
const headers = {
|
|
1226
793
|
"content-type": "application/json",
|
|
1227
794
|
};
|
|
1228
|
-
|
|
1229
|
-
|
|
795
|
+
b.bp("/v1/apis/{apiId}");
|
|
796
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
1230
797
|
let body;
|
|
1231
798
|
body = JSON.stringify(take(input, {
|
|
1232
799
|
additionalAuthenticationProviders: (_) => _json(_),
|
|
1233
800
|
authenticationType: [],
|
|
801
|
+
introspectionConfig: [],
|
|
1234
802
|
lambdaAuthorizerConfig: (_) => _json(_),
|
|
1235
803
|
logConfig: (_) => _json(_),
|
|
1236
804
|
mergedApiExecutionRoleArn: [],
|
|
1237
805
|
name: [],
|
|
1238
806
|
openIDConnectConfig: (_) => _json(_),
|
|
1239
807
|
ownerContact: [],
|
|
808
|
+
queryDepthLimit: [],
|
|
809
|
+
resolverCountLimit: [],
|
|
1240
810
|
userPoolConfig: (_) => _json(_),
|
|
1241
811
|
xrayEnabled: [],
|
|
1242
812
|
}));
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
hostname,
|
|
1246
|
-
port,
|
|
1247
|
-
method: "POST",
|
|
1248
|
-
headers,
|
|
1249
|
-
path: resolvedPath,
|
|
1250
|
-
body,
|
|
1251
|
-
});
|
|
813
|
+
b.m("POST").h(headers).b(body);
|
|
814
|
+
return b.build();
|
|
1252
815
|
};
|
|
1253
816
|
export const se_UpdateResolverCommand = async (input, context) => {
|
|
1254
|
-
const
|
|
817
|
+
const b = rb(input, context);
|
|
1255
818
|
const headers = {
|
|
1256
819
|
"content-type": "application/json",
|
|
1257
820
|
};
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "fieldName", () => input.fieldName, "{fieldName}", false);
|
|
821
|
+
b.bp("/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}");
|
|
822
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
823
|
+
b.p("typeName", () => input.typeName, "{typeName}", false);
|
|
824
|
+
b.p("fieldName", () => input.fieldName, "{fieldName}", false);
|
|
1263
825
|
let body;
|
|
1264
826
|
body = JSON.stringify(take(input, {
|
|
1265
827
|
cachingConfig: (_) => _json(_),
|
|
@@ -1273,62 +835,40 @@ export const se_UpdateResolverCommand = async (input, context) => {
|
|
|
1273
835
|
runtime: (_) => _json(_),
|
|
1274
836
|
syncConfig: (_) => _json(_),
|
|
1275
837
|
}));
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
hostname,
|
|
1279
|
-
port,
|
|
1280
|
-
method: "POST",
|
|
1281
|
-
headers,
|
|
1282
|
-
path: resolvedPath,
|
|
1283
|
-
body,
|
|
1284
|
-
});
|
|
838
|
+
b.m("POST").h(headers).b(body);
|
|
839
|
+
return b.build();
|
|
1285
840
|
};
|
|
1286
841
|
export const se_UpdateSourceApiAssociationCommand = async (input, context) => {
|
|
1287
|
-
const
|
|
842
|
+
const b = rb(input, context);
|
|
1288
843
|
const headers = {
|
|
1289
844
|
"content-type": "application/json",
|
|
1290
845
|
};
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
846
|
+
b.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}");
|
|
847
|
+
b.p("associationId", () => input.associationId, "{associationId}", false);
|
|
848
|
+
b.p("mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
1295
849
|
let body;
|
|
1296
850
|
body = JSON.stringify(take(input, {
|
|
1297
851
|
description: [],
|
|
1298
852
|
sourceApiAssociationConfig: (_) => _json(_),
|
|
1299
853
|
}));
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
hostname,
|
|
1303
|
-
port,
|
|
1304
|
-
method: "POST",
|
|
1305
|
-
headers,
|
|
1306
|
-
path: resolvedPath,
|
|
1307
|
-
body,
|
|
1308
|
-
});
|
|
854
|
+
b.m("POST").h(headers).b(body);
|
|
855
|
+
return b.build();
|
|
1309
856
|
};
|
|
1310
857
|
export const se_UpdateTypeCommand = async (input, context) => {
|
|
1311
|
-
const
|
|
858
|
+
const b = rb(input, context);
|
|
1312
859
|
const headers = {
|
|
1313
860
|
"content-type": "application/json",
|
|
1314
861
|
};
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
862
|
+
b.bp("/v1/apis/{apiId}/types/{typeName}");
|
|
863
|
+
b.p("apiId", () => input.apiId, "{apiId}", false);
|
|
864
|
+
b.p("typeName", () => input.typeName, "{typeName}", false);
|
|
1318
865
|
let body;
|
|
1319
866
|
body = JSON.stringify(take(input, {
|
|
1320
867
|
definition: [],
|
|
1321
868
|
format: [],
|
|
1322
869
|
}));
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
hostname,
|
|
1326
|
-
port,
|
|
1327
|
-
method: "POST",
|
|
1328
|
-
headers,
|
|
1329
|
-
path: resolvedPath,
|
|
1330
|
-
body,
|
|
1331
|
-
});
|
|
870
|
+
b.m("POST").h(headers).b(body);
|
|
871
|
+
return b.build();
|
|
1332
872
|
};
|
|
1333
873
|
export const de_AssociateApiCommand = async (output, context) => {
|
|
1334
874
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4242,6 +3782,14 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
4242
3782
|
value !== "" &&
|
|
4243
3783
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
4244
3784
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
3785
|
+
const _aT = "apiType";
|
|
3786
|
+
const _f = "format";
|
|
3787
|
+
const _iD = "includeDirectives";
|
|
3788
|
+
const _iMSDL = "includeModelsSDL";
|
|
3789
|
+
const _mR = "maxResults";
|
|
3790
|
+
const _nT = "nextToken";
|
|
3791
|
+
const _o = "owner";
|
|
3792
|
+
const _tK = "tagKeys";
|
|
4245
3793
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4246
3794
|
if (encoded.length) {
|
|
4247
3795
|
return JSON.parse(encoded);
|