@aws-sdk/client-lambda 3.928.0 → 3.930.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/index.js +3678 -3911
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/LambdaClient.js +2 -0
- package/dist-es/commands/AddLayerVersionPermissionCommand.js +3 -9
- package/dist-es/commands/AddPermissionCommand.js +3 -9
- package/dist-es/commands/CreateAliasCommand.js +3 -9
- package/dist-es/commands/CreateCodeSigningConfigCommand.js +3 -9
- package/dist-es/commands/CreateEventSourceMappingCommand.js +3 -9
- package/dist-es/commands/CreateFunctionCommand.js +3 -10
- package/dist-es/commands/CreateFunctionUrlConfigCommand.js +3 -9
- package/dist-es/commands/DeleteAliasCommand.js +3 -9
- package/dist-es/commands/DeleteCodeSigningConfigCommand.js +3 -9
- package/dist-es/commands/DeleteEventSourceMappingCommand.js +3 -9
- package/dist-es/commands/DeleteFunctionCodeSigningConfigCommand.js +3 -9
- package/dist-es/commands/DeleteFunctionCommand.js +3 -9
- package/dist-es/commands/DeleteFunctionConcurrencyCommand.js +3 -9
- package/dist-es/commands/DeleteFunctionEventInvokeConfigCommand.js +3 -9
- package/dist-es/commands/DeleteFunctionUrlConfigCommand.js +3 -9
- package/dist-es/commands/DeleteLayerVersionCommand.js +3 -9
- package/dist-es/commands/DeleteProvisionedConcurrencyConfigCommand.js +3 -9
- package/dist-es/commands/GetAccountSettingsCommand.js +3 -9
- package/dist-es/commands/GetAliasCommand.js +3 -9
- package/dist-es/commands/GetCodeSigningConfigCommand.js +3 -9
- package/dist-es/commands/GetEventSourceMappingCommand.js +3 -9
- package/dist-es/commands/GetFunctionCodeSigningConfigCommand.js +3 -9
- package/dist-es/commands/GetFunctionCommand.js +3 -10
- package/dist-es/commands/GetFunctionConcurrencyCommand.js +3 -9
- package/dist-es/commands/GetFunctionConfigurationCommand.js +3 -10
- package/dist-es/commands/GetFunctionEventInvokeConfigCommand.js +3 -9
- package/dist-es/commands/GetFunctionRecursionConfigCommand.js +3 -9
- package/dist-es/commands/GetFunctionUrlConfigCommand.js +3 -9
- package/dist-es/commands/GetLayerVersionByArnCommand.js +3 -9
- package/dist-es/commands/GetLayerVersionCommand.js +3 -9
- package/dist-es/commands/GetLayerVersionPolicyCommand.js +3 -9
- package/dist-es/commands/GetPolicyCommand.js +3 -9
- package/dist-es/commands/GetProvisionedConcurrencyConfigCommand.js +3 -9
- package/dist-es/commands/GetRuntimeManagementConfigCommand.js +3 -9
- package/dist-es/commands/InvokeAsyncCommand.js +3 -10
- package/dist-es/commands/InvokeCommand.js +3 -10
- package/dist-es/commands/InvokeWithResponseStreamCommand.js +3 -10
- package/dist-es/commands/ListAliasesCommand.js +3 -9
- package/dist-es/commands/ListCodeSigningConfigsCommand.js +3 -9
- package/dist-es/commands/ListEventSourceMappingsCommand.js +3 -9
- package/dist-es/commands/ListFunctionEventInvokeConfigsCommand.js +3 -9
- package/dist-es/commands/ListFunctionUrlConfigsCommand.js +3 -9
- package/dist-es/commands/ListFunctionsByCodeSigningConfigCommand.js +3 -9
- package/dist-es/commands/ListFunctionsCommand.js +3 -10
- package/dist-es/commands/ListLayerVersionsCommand.js +3 -9
- package/dist-es/commands/ListLayersCommand.js +3 -9
- package/dist-es/commands/ListProvisionedConcurrencyConfigsCommand.js +3 -9
- package/dist-es/commands/ListTagsCommand.js +3 -9
- package/dist-es/commands/ListVersionsByFunctionCommand.js +3 -10
- package/dist-es/commands/PublishLayerVersionCommand.js +3 -10
- package/dist-es/commands/PublishVersionCommand.js +3 -10
- package/dist-es/commands/PutFunctionCodeSigningConfigCommand.js +3 -9
- package/dist-es/commands/PutFunctionConcurrencyCommand.js +3 -9
- package/dist-es/commands/PutFunctionEventInvokeConfigCommand.js +3 -9
- package/dist-es/commands/PutFunctionRecursionConfigCommand.js +3 -9
- package/dist-es/commands/PutProvisionedConcurrencyConfigCommand.js +3 -9
- package/dist-es/commands/PutRuntimeManagementConfigCommand.js +3 -9
- package/dist-es/commands/RemoveLayerVersionPermissionCommand.js +3 -9
- package/dist-es/commands/RemovePermissionCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateAliasCommand.js +3 -9
- package/dist-es/commands/UpdateCodeSigningConfigCommand.js +3 -9
- package/dist-es/commands/UpdateEventSourceMappingCommand.js +3 -9
- package/dist-es/commands/UpdateFunctionCodeCommand.js +3 -10
- package/dist-es/commands/UpdateFunctionConfigurationCommand.js +3 -10
- package/dist-es/commands/UpdateFunctionEventInvokeConfigCommand.js +3 -9
- package/dist-es/commands/UpdateFunctionUrlConfigCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -118
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +3462 -0
- package/dist-types/LambdaClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +4 -97
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +319 -0
- package/dist-types/ts3.4/LambdaClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -72
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +326 -0
- package/package.json +38 -38
- package/dist-es/protocols/Aws_restJson1.js +0 -3196
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -614
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -824
|
@@ -1,3196 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { LambdaServiceException as __BaseException } from "../models/LambdaServiceException";
|
|
5
|
-
import { CodeSigningConfigNotFoundException, CodeStorageExceededException, CodeVerificationFailedException, EC2AccessDeniedException, EC2ThrottledException, EC2UnexpectedException, EFSIOException, EFSMountConnectivityException, EFSMountFailureException, EFSMountTimeoutException, ENILimitReachedException, InvalidCodeSignatureException, InvalidParameterValueException, InvalidRequestContentException, InvalidRuntimeException, InvalidSecurityGroupIDException, InvalidSubnetIDException, InvalidZipFileException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, PolicyLengthExceededException, PreconditionFailedException, ProvisionedConcurrencyConfigNotFoundException, RecursiveInvocationException, RequestTooLargeException, ResourceConflictException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, SerializedRequestEntityTooLargeException, ServiceException, SnapStartException, SnapStartNotReadyException, SnapStartTimeoutException, SubnetIPAddressLimitReachedException, TooManyRequestsException, UnsupportedMediaTypeException, } from "../models/models_0";
|
|
6
|
-
export const se_AddLayerVersionPermissionCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy");
|
|
12
|
-
b.p("LayerName", () => input.LayerName, "{LayerName}", false);
|
|
13
|
-
b.p("VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
|
|
14
|
-
const query = map({
|
|
15
|
-
[_RI]: [, input[_RI]],
|
|
16
|
-
});
|
|
17
|
-
let body;
|
|
18
|
-
body = JSON.stringify(take(input, {
|
|
19
|
-
Action: [],
|
|
20
|
-
OrganizationId: [],
|
|
21
|
-
Principal: [],
|
|
22
|
-
StatementId: [],
|
|
23
|
-
}));
|
|
24
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
25
|
-
return b.build();
|
|
26
|
-
};
|
|
27
|
-
export const se_AddPermissionCommand = async (input, context) => {
|
|
28
|
-
const b = rb(input, context);
|
|
29
|
-
const headers = {
|
|
30
|
-
"content-type": "application/json",
|
|
31
|
-
};
|
|
32
|
-
b.bp("/2015-03-31/functions/{FunctionName}/policy");
|
|
33
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
34
|
-
const query = map({
|
|
35
|
-
[_Q]: [, input[_Q]],
|
|
36
|
-
});
|
|
37
|
-
let body;
|
|
38
|
-
body = JSON.stringify(take(input, {
|
|
39
|
-
Action: [],
|
|
40
|
-
EventSourceToken: [],
|
|
41
|
-
FunctionUrlAuthType: [],
|
|
42
|
-
InvokedViaFunctionUrl: [],
|
|
43
|
-
Principal: [],
|
|
44
|
-
PrincipalOrgID: [],
|
|
45
|
-
RevisionId: [],
|
|
46
|
-
SourceAccount: [],
|
|
47
|
-
SourceArn: [],
|
|
48
|
-
StatementId: [],
|
|
49
|
-
}));
|
|
50
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
51
|
-
return b.build();
|
|
52
|
-
};
|
|
53
|
-
export const se_CreateAliasCommand = async (input, context) => {
|
|
54
|
-
const b = rb(input, context);
|
|
55
|
-
const headers = {
|
|
56
|
-
"content-type": "application/json",
|
|
57
|
-
};
|
|
58
|
-
b.bp("/2015-03-31/functions/{FunctionName}/aliases");
|
|
59
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
60
|
-
let body;
|
|
61
|
-
body = JSON.stringify(take(input, {
|
|
62
|
-
Description: [],
|
|
63
|
-
FunctionVersion: [],
|
|
64
|
-
Name: [],
|
|
65
|
-
RoutingConfig: (_) => se_AliasRoutingConfiguration(_, context),
|
|
66
|
-
}));
|
|
67
|
-
b.m("POST").h(headers).b(body);
|
|
68
|
-
return b.build();
|
|
69
|
-
};
|
|
70
|
-
export const se_CreateCodeSigningConfigCommand = async (input, context) => {
|
|
71
|
-
const b = rb(input, context);
|
|
72
|
-
const headers = {
|
|
73
|
-
"content-type": "application/json",
|
|
74
|
-
};
|
|
75
|
-
b.bp("/2020-04-22/code-signing-configs");
|
|
76
|
-
let body;
|
|
77
|
-
body = JSON.stringify(take(input, {
|
|
78
|
-
AllowedPublishers: (_) => _json(_),
|
|
79
|
-
CodeSigningPolicies: (_) => _json(_),
|
|
80
|
-
Description: [],
|
|
81
|
-
Tags: (_) => _json(_),
|
|
82
|
-
}));
|
|
83
|
-
b.m("POST").h(headers).b(body);
|
|
84
|
-
return b.build();
|
|
85
|
-
};
|
|
86
|
-
export const se_CreateEventSourceMappingCommand = async (input, context) => {
|
|
87
|
-
const b = rb(input, context);
|
|
88
|
-
const headers = {
|
|
89
|
-
"content-type": "application/json",
|
|
90
|
-
};
|
|
91
|
-
b.bp("/2015-03-31/event-source-mappings");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(take(input, {
|
|
94
|
-
AmazonManagedKafkaEventSourceConfig: (_) => _json(_),
|
|
95
|
-
BatchSize: [],
|
|
96
|
-
BisectBatchOnFunctionError: [],
|
|
97
|
-
DestinationConfig: (_) => _json(_),
|
|
98
|
-
DocumentDBEventSourceConfig: (_) => _json(_),
|
|
99
|
-
Enabled: [],
|
|
100
|
-
EventSourceArn: [],
|
|
101
|
-
FilterCriteria: (_) => _json(_),
|
|
102
|
-
FunctionName: [],
|
|
103
|
-
FunctionResponseTypes: (_) => _json(_),
|
|
104
|
-
KMSKeyArn: [],
|
|
105
|
-
MaximumBatchingWindowInSeconds: [],
|
|
106
|
-
MaximumRecordAgeInSeconds: [],
|
|
107
|
-
MaximumRetryAttempts: [],
|
|
108
|
-
MetricsConfig: (_) => _json(_),
|
|
109
|
-
ParallelizationFactor: [],
|
|
110
|
-
ProvisionedPollerConfig: (_) => _json(_),
|
|
111
|
-
Queues: (_) => _json(_),
|
|
112
|
-
ScalingConfig: (_) => _json(_),
|
|
113
|
-
SelfManagedEventSource: (_) => _json(_),
|
|
114
|
-
SelfManagedKafkaEventSourceConfig: (_) => _json(_),
|
|
115
|
-
SourceAccessConfigurations: (_) => _json(_),
|
|
116
|
-
StartingPosition: [],
|
|
117
|
-
StartingPositionTimestamp: (_) => _.getTime() / 1_000,
|
|
118
|
-
Tags: (_) => _json(_),
|
|
119
|
-
Topics: (_) => _json(_),
|
|
120
|
-
TumblingWindowInSeconds: [],
|
|
121
|
-
}));
|
|
122
|
-
b.m("POST").h(headers).b(body);
|
|
123
|
-
return b.build();
|
|
124
|
-
};
|
|
125
|
-
export const se_CreateFunctionCommand = async (input, context) => {
|
|
126
|
-
const b = rb(input, context);
|
|
127
|
-
const headers = {
|
|
128
|
-
"content-type": "application/json",
|
|
129
|
-
};
|
|
130
|
-
b.bp("/2015-03-31/functions");
|
|
131
|
-
let body;
|
|
132
|
-
body = JSON.stringify(take(input, {
|
|
133
|
-
Architectures: (_) => _json(_),
|
|
134
|
-
Code: (_) => se_FunctionCode(_, context),
|
|
135
|
-
CodeSigningConfigArn: [],
|
|
136
|
-
DeadLetterConfig: (_) => _json(_),
|
|
137
|
-
Description: [],
|
|
138
|
-
Environment: (_) => _json(_),
|
|
139
|
-
EphemeralStorage: (_) => _json(_),
|
|
140
|
-
FileSystemConfigs: (_) => _json(_),
|
|
141
|
-
FunctionName: [],
|
|
142
|
-
Handler: [],
|
|
143
|
-
ImageConfig: (_) => _json(_),
|
|
144
|
-
KMSKeyArn: [],
|
|
145
|
-
Layers: (_) => _json(_),
|
|
146
|
-
LoggingConfig: (_) => _json(_),
|
|
147
|
-
MemorySize: [],
|
|
148
|
-
PackageType: [],
|
|
149
|
-
Publish: [],
|
|
150
|
-
Role: [],
|
|
151
|
-
Runtime: [],
|
|
152
|
-
SnapStart: (_) => _json(_),
|
|
153
|
-
Tags: (_) => _json(_),
|
|
154
|
-
Timeout: [],
|
|
155
|
-
TracingConfig: (_) => _json(_),
|
|
156
|
-
VpcConfig: (_) => _json(_),
|
|
157
|
-
}));
|
|
158
|
-
b.m("POST").h(headers).b(body);
|
|
159
|
-
return b.build();
|
|
160
|
-
};
|
|
161
|
-
export const se_CreateFunctionUrlConfigCommand = async (input, context) => {
|
|
162
|
-
const b = rb(input, context);
|
|
163
|
-
const headers = {
|
|
164
|
-
"content-type": "application/json",
|
|
165
|
-
};
|
|
166
|
-
b.bp("/2021-10-31/functions/{FunctionName}/url");
|
|
167
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
168
|
-
const query = map({
|
|
169
|
-
[_Q]: [, input[_Q]],
|
|
170
|
-
});
|
|
171
|
-
let body;
|
|
172
|
-
body = JSON.stringify(take(input, {
|
|
173
|
-
AuthType: [],
|
|
174
|
-
Cors: (_) => _json(_),
|
|
175
|
-
InvokeMode: [],
|
|
176
|
-
}));
|
|
177
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
178
|
-
return b.build();
|
|
179
|
-
};
|
|
180
|
-
export const se_DeleteAliasCommand = async (input, context) => {
|
|
181
|
-
const b = rb(input, context);
|
|
182
|
-
const headers = {};
|
|
183
|
-
b.bp("/2015-03-31/functions/{FunctionName}/aliases/{Name}");
|
|
184
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
185
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
186
|
-
let body;
|
|
187
|
-
b.m("DELETE").h(headers).b(body);
|
|
188
|
-
return b.build();
|
|
189
|
-
};
|
|
190
|
-
export const se_DeleteCodeSigningConfigCommand = async (input, context) => {
|
|
191
|
-
const b = rb(input, context);
|
|
192
|
-
const headers = {};
|
|
193
|
-
b.bp("/2020-04-22/code-signing-configs/{CodeSigningConfigArn}");
|
|
194
|
-
b.p("CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
|
|
195
|
-
let body;
|
|
196
|
-
b.m("DELETE").h(headers).b(body);
|
|
197
|
-
return b.build();
|
|
198
|
-
};
|
|
199
|
-
export const se_DeleteEventSourceMappingCommand = async (input, context) => {
|
|
200
|
-
const b = rb(input, context);
|
|
201
|
-
const headers = {};
|
|
202
|
-
b.bp("/2015-03-31/event-source-mappings/{UUID}");
|
|
203
|
-
b.p("UUID", () => input.UUID, "{UUID}", false);
|
|
204
|
-
let body;
|
|
205
|
-
b.m("DELETE").h(headers).b(body);
|
|
206
|
-
return b.build();
|
|
207
|
-
};
|
|
208
|
-
export const se_DeleteFunctionCommand = async (input, context) => {
|
|
209
|
-
const b = rb(input, context);
|
|
210
|
-
const headers = {};
|
|
211
|
-
b.bp("/2015-03-31/functions/{FunctionName}");
|
|
212
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
213
|
-
const query = map({
|
|
214
|
-
[_Q]: [, input[_Q]],
|
|
215
|
-
});
|
|
216
|
-
let body;
|
|
217
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
218
|
-
return b.build();
|
|
219
|
-
};
|
|
220
|
-
export const se_DeleteFunctionCodeSigningConfigCommand = async (input, context) => {
|
|
221
|
-
const b = rb(input, context);
|
|
222
|
-
const headers = {};
|
|
223
|
-
b.bp("/2020-06-30/functions/{FunctionName}/code-signing-config");
|
|
224
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
225
|
-
let body;
|
|
226
|
-
b.m("DELETE").h(headers).b(body);
|
|
227
|
-
return b.build();
|
|
228
|
-
};
|
|
229
|
-
export const se_DeleteFunctionConcurrencyCommand = async (input, context) => {
|
|
230
|
-
const b = rb(input, context);
|
|
231
|
-
const headers = {};
|
|
232
|
-
b.bp("/2017-10-31/functions/{FunctionName}/concurrency");
|
|
233
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
234
|
-
let body;
|
|
235
|
-
b.m("DELETE").h(headers).b(body);
|
|
236
|
-
return b.build();
|
|
237
|
-
};
|
|
238
|
-
export const se_DeleteFunctionEventInvokeConfigCommand = async (input, context) => {
|
|
239
|
-
const b = rb(input, context);
|
|
240
|
-
const headers = {};
|
|
241
|
-
b.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config");
|
|
242
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
243
|
-
const query = map({
|
|
244
|
-
[_Q]: [, input[_Q]],
|
|
245
|
-
});
|
|
246
|
-
let body;
|
|
247
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
248
|
-
return b.build();
|
|
249
|
-
};
|
|
250
|
-
export const se_DeleteFunctionUrlConfigCommand = async (input, context) => {
|
|
251
|
-
const b = rb(input, context);
|
|
252
|
-
const headers = {};
|
|
253
|
-
b.bp("/2021-10-31/functions/{FunctionName}/url");
|
|
254
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
255
|
-
const query = map({
|
|
256
|
-
[_Q]: [, input[_Q]],
|
|
257
|
-
});
|
|
258
|
-
let body;
|
|
259
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
260
|
-
return b.build();
|
|
261
|
-
};
|
|
262
|
-
export const se_DeleteLayerVersionCommand = async (input, context) => {
|
|
263
|
-
const b = rb(input, context);
|
|
264
|
-
const headers = {};
|
|
265
|
-
b.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}");
|
|
266
|
-
b.p("LayerName", () => input.LayerName, "{LayerName}", false);
|
|
267
|
-
b.p("VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
|
|
268
|
-
let body;
|
|
269
|
-
b.m("DELETE").h(headers).b(body);
|
|
270
|
-
return b.build();
|
|
271
|
-
};
|
|
272
|
-
export const se_DeleteProvisionedConcurrencyConfigCommand = async (input, context) => {
|
|
273
|
-
const b = rb(input, context);
|
|
274
|
-
const headers = {};
|
|
275
|
-
b.bp("/2019-09-30/functions/{FunctionName}/provisioned-concurrency");
|
|
276
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
277
|
-
const query = map({
|
|
278
|
-
[_Q]: [, __expectNonNull(input[_Q], `Qualifier`)],
|
|
279
|
-
});
|
|
280
|
-
let body;
|
|
281
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
282
|
-
return b.build();
|
|
283
|
-
};
|
|
284
|
-
export const se_GetAccountSettingsCommand = async (input, context) => {
|
|
285
|
-
const b = rb(input, context);
|
|
286
|
-
const headers = {};
|
|
287
|
-
b.bp("/2016-08-19/account-settings");
|
|
288
|
-
let body;
|
|
289
|
-
b.m("GET").h(headers).b(body);
|
|
290
|
-
return b.build();
|
|
291
|
-
};
|
|
292
|
-
export const se_GetAliasCommand = async (input, context) => {
|
|
293
|
-
const b = rb(input, context);
|
|
294
|
-
const headers = {};
|
|
295
|
-
b.bp("/2015-03-31/functions/{FunctionName}/aliases/{Name}");
|
|
296
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
297
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
298
|
-
let body;
|
|
299
|
-
b.m("GET").h(headers).b(body);
|
|
300
|
-
return b.build();
|
|
301
|
-
};
|
|
302
|
-
export const se_GetCodeSigningConfigCommand = async (input, context) => {
|
|
303
|
-
const b = rb(input, context);
|
|
304
|
-
const headers = {};
|
|
305
|
-
b.bp("/2020-04-22/code-signing-configs/{CodeSigningConfigArn}");
|
|
306
|
-
b.p("CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
|
|
307
|
-
let body;
|
|
308
|
-
b.m("GET").h(headers).b(body);
|
|
309
|
-
return b.build();
|
|
310
|
-
};
|
|
311
|
-
export const se_GetEventSourceMappingCommand = async (input, context) => {
|
|
312
|
-
const b = rb(input, context);
|
|
313
|
-
const headers = {};
|
|
314
|
-
b.bp("/2015-03-31/event-source-mappings/{UUID}");
|
|
315
|
-
b.p("UUID", () => input.UUID, "{UUID}", false);
|
|
316
|
-
let body;
|
|
317
|
-
b.m("GET").h(headers).b(body);
|
|
318
|
-
return b.build();
|
|
319
|
-
};
|
|
320
|
-
export const se_GetFunctionCommand = async (input, context) => {
|
|
321
|
-
const b = rb(input, context);
|
|
322
|
-
const headers = {};
|
|
323
|
-
b.bp("/2015-03-31/functions/{FunctionName}");
|
|
324
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
325
|
-
const query = map({
|
|
326
|
-
[_Q]: [, input[_Q]],
|
|
327
|
-
});
|
|
328
|
-
let body;
|
|
329
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
330
|
-
return b.build();
|
|
331
|
-
};
|
|
332
|
-
export const se_GetFunctionCodeSigningConfigCommand = async (input, context) => {
|
|
333
|
-
const b = rb(input, context);
|
|
334
|
-
const headers = {};
|
|
335
|
-
b.bp("/2020-06-30/functions/{FunctionName}/code-signing-config");
|
|
336
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
337
|
-
let body;
|
|
338
|
-
b.m("GET").h(headers).b(body);
|
|
339
|
-
return b.build();
|
|
340
|
-
};
|
|
341
|
-
export const se_GetFunctionConcurrencyCommand = async (input, context) => {
|
|
342
|
-
const b = rb(input, context);
|
|
343
|
-
const headers = {};
|
|
344
|
-
b.bp("/2019-09-30/functions/{FunctionName}/concurrency");
|
|
345
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
346
|
-
let body;
|
|
347
|
-
b.m("GET").h(headers).b(body);
|
|
348
|
-
return b.build();
|
|
349
|
-
};
|
|
350
|
-
export const se_GetFunctionConfigurationCommand = async (input, context) => {
|
|
351
|
-
const b = rb(input, context);
|
|
352
|
-
const headers = {};
|
|
353
|
-
b.bp("/2015-03-31/functions/{FunctionName}/configuration");
|
|
354
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
355
|
-
const query = map({
|
|
356
|
-
[_Q]: [, input[_Q]],
|
|
357
|
-
});
|
|
358
|
-
let body;
|
|
359
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
360
|
-
return b.build();
|
|
361
|
-
};
|
|
362
|
-
export const se_GetFunctionEventInvokeConfigCommand = async (input, context) => {
|
|
363
|
-
const b = rb(input, context);
|
|
364
|
-
const headers = {};
|
|
365
|
-
b.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config");
|
|
366
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
367
|
-
const query = map({
|
|
368
|
-
[_Q]: [, input[_Q]],
|
|
369
|
-
});
|
|
370
|
-
let body;
|
|
371
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
372
|
-
return b.build();
|
|
373
|
-
};
|
|
374
|
-
export const se_GetFunctionRecursionConfigCommand = async (input, context) => {
|
|
375
|
-
const b = rb(input, context);
|
|
376
|
-
const headers = {};
|
|
377
|
-
b.bp("/2024-08-31/functions/{FunctionName}/recursion-config");
|
|
378
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
379
|
-
let body;
|
|
380
|
-
b.m("GET").h(headers).b(body);
|
|
381
|
-
return b.build();
|
|
382
|
-
};
|
|
383
|
-
export const se_GetFunctionUrlConfigCommand = async (input, context) => {
|
|
384
|
-
const b = rb(input, context);
|
|
385
|
-
const headers = {};
|
|
386
|
-
b.bp("/2021-10-31/functions/{FunctionName}/url");
|
|
387
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
388
|
-
const query = map({
|
|
389
|
-
[_Q]: [, input[_Q]],
|
|
390
|
-
});
|
|
391
|
-
let body;
|
|
392
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
393
|
-
return b.build();
|
|
394
|
-
};
|
|
395
|
-
export const se_GetLayerVersionCommand = async (input, context) => {
|
|
396
|
-
const b = rb(input, context);
|
|
397
|
-
const headers = {};
|
|
398
|
-
b.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}");
|
|
399
|
-
b.p("LayerName", () => input.LayerName, "{LayerName}", false);
|
|
400
|
-
b.p("VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
|
|
401
|
-
let body;
|
|
402
|
-
b.m("GET").h(headers).b(body);
|
|
403
|
-
return b.build();
|
|
404
|
-
};
|
|
405
|
-
export const se_GetLayerVersionByArnCommand = async (input, context) => {
|
|
406
|
-
const b = rb(input, context);
|
|
407
|
-
const headers = {};
|
|
408
|
-
b.bp("/2018-10-31/layers");
|
|
409
|
-
const query = map({
|
|
410
|
-
[_f]: [, "LayerVersion"],
|
|
411
|
-
[_A]: [, __expectNonNull(input[_A], `Arn`)],
|
|
412
|
-
});
|
|
413
|
-
let body;
|
|
414
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
415
|
-
return b.build();
|
|
416
|
-
};
|
|
417
|
-
export const se_GetLayerVersionPolicyCommand = async (input, context) => {
|
|
418
|
-
const b = rb(input, context);
|
|
419
|
-
const headers = {};
|
|
420
|
-
b.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy");
|
|
421
|
-
b.p("LayerName", () => input.LayerName, "{LayerName}", false);
|
|
422
|
-
b.p("VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
|
|
423
|
-
let body;
|
|
424
|
-
b.m("GET").h(headers).b(body);
|
|
425
|
-
return b.build();
|
|
426
|
-
};
|
|
427
|
-
export const se_GetPolicyCommand = async (input, context) => {
|
|
428
|
-
const b = rb(input, context);
|
|
429
|
-
const headers = {};
|
|
430
|
-
b.bp("/2015-03-31/functions/{FunctionName}/policy");
|
|
431
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
432
|
-
const query = map({
|
|
433
|
-
[_Q]: [, input[_Q]],
|
|
434
|
-
});
|
|
435
|
-
let body;
|
|
436
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
437
|
-
return b.build();
|
|
438
|
-
};
|
|
439
|
-
export const se_GetProvisionedConcurrencyConfigCommand = async (input, context) => {
|
|
440
|
-
const b = rb(input, context);
|
|
441
|
-
const headers = {};
|
|
442
|
-
b.bp("/2019-09-30/functions/{FunctionName}/provisioned-concurrency");
|
|
443
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
444
|
-
const query = map({
|
|
445
|
-
[_Q]: [, __expectNonNull(input[_Q], `Qualifier`)],
|
|
446
|
-
});
|
|
447
|
-
let body;
|
|
448
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
449
|
-
return b.build();
|
|
450
|
-
};
|
|
451
|
-
export const se_GetRuntimeManagementConfigCommand = async (input, context) => {
|
|
452
|
-
const b = rb(input, context);
|
|
453
|
-
const headers = {};
|
|
454
|
-
b.bp("/2021-07-20/functions/{FunctionName}/runtime-management-config");
|
|
455
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
456
|
-
const query = map({
|
|
457
|
-
[_Q]: [, input[_Q]],
|
|
458
|
-
});
|
|
459
|
-
let body;
|
|
460
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
461
|
-
return b.build();
|
|
462
|
-
};
|
|
463
|
-
export const se_InvokeCommand = async (input, context) => {
|
|
464
|
-
const b = rb(input, context);
|
|
465
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
466
|
-
"content-type": "application/octet-stream",
|
|
467
|
-
[_xait]: input[_IT],
|
|
468
|
-
[_xalt]: input[_LT],
|
|
469
|
-
[_xacc]: input[_CC],
|
|
470
|
-
});
|
|
471
|
-
b.bp("/2015-03-31/functions/{FunctionName}/invocations");
|
|
472
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
473
|
-
const query = map({
|
|
474
|
-
[_Q]: [, input[_Q]],
|
|
475
|
-
});
|
|
476
|
-
let body;
|
|
477
|
-
if (input.Payload !== undefined) {
|
|
478
|
-
body = input.Payload;
|
|
479
|
-
}
|
|
480
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
481
|
-
return b.build();
|
|
482
|
-
};
|
|
483
|
-
export const se_InvokeAsyncCommand = async (input, context) => {
|
|
484
|
-
const b = rb(input, context);
|
|
485
|
-
const headers = {
|
|
486
|
-
"content-type": "application/octet-stream",
|
|
487
|
-
};
|
|
488
|
-
b.bp("/2014-11-13/functions/{FunctionName}/invoke-async");
|
|
489
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
490
|
-
let body;
|
|
491
|
-
if (input.InvokeArgs !== undefined) {
|
|
492
|
-
body = input.InvokeArgs;
|
|
493
|
-
}
|
|
494
|
-
b.m("POST").h(headers).b(body);
|
|
495
|
-
return b.build();
|
|
496
|
-
};
|
|
497
|
-
export const se_InvokeWithResponseStreamCommand = async (input, context) => {
|
|
498
|
-
const b = rb(input, context);
|
|
499
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
500
|
-
"content-type": "application/octet-stream",
|
|
501
|
-
[_xait]: input[_IT],
|
|
502
|
-
[_xalt]: input[_LT],
|
|
503
|
-
[_xacc]: input[_CC],
|
|
504
|
-
});
|
|
505
|
-
b.bp("/2021-11-15/functions/{FunctionName}/response-streaming-invocations");
|
|
506
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
507
|
-
const query = map({
|
|
508
|
-
[_Q]: [, input[_Q]],
|
|
509
|
-
});
|
|
510
|
-
let body;
|
|
511
|
-
if (input.Payload !== undefined) {
|
|
512
|
-
body = input.Payload;
|
|
513
|
-
}
|
|
514
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
515
|
-
return b.build();
|
|
516
|
-
};
|
|
517
|
-
export const se_ListAliasesCommand = async (input, context) => {
|
|
518
|
-
const b = rb(input, context);
|
|
519
|
-
const headers = {};
|
|
520
|
-
b.bp("/2015-03-31/functions/{FunctionName}/aliases");
|
|
521
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
522
|
-
const query = map({
|
|
523
|
-
[_FV]: [, input[_FV]],
|
|
524
|
-
[_M]: [, input[_M]],
|
|
525
|
-
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
526
|
-
});
|
|
527
|
-
let body;
|
|
528
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
529
|
-
return b.build();
|
|
530
|
-
};
|
|
531
|
-
export const se_ListCodeSigningConfigsCommand = async (input, context) => {
|
|
532
|
-
const b = rb(input, context);
|
|
533
|
-
const headers = {};
|
|
534
|
-
b.bp("/2020-04-22/code-signing-configs");
|
|
535
|
-
const query = map({
|
|
536
|
-
[_M]: [, input[_M]],
|
|
537
|
-
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
538
|
-
});
|
|
539
|
-
let body;
|
|
540
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
541
|
-
return b.build();
|
|
542
|
-
};
|
|
543
|
-
export const se_ListEventSourceMappingsCommand = async (input, context) => {
|
|
544
|
-
const b = rb(input, context);
|
|
545
|
-
const headers = {};
|
|
546
|
-
b.bp("/2015-03-31/event-source-mappings");
|
|
547
|
-
const query = map({
|
|
548
|
-
[_ESA]: [, input[_ESA]],
|
|
549
|
-
[_FN]: [, input[_FN]],
|
|
550
|
-
[_M]: [, input[_M]],
|
|
551
|
-
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
552
|
-
});
|
|
553
|
-
let body;
|
|
554
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
555
|
-
return b.build();
|
|
556
|
-
};
|
|
557
|
-
export const se_ListFunctionEventInvokeConfigsCommand = async (input, context) => {
|
|
558
|
-
const b = rb(input, context);
|
|
559
|
-
const headers = {};
|
|
560
|
-
b.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config/list");
|
|
561
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
562
|
-
const query = map({
|
|
563
|
-
[_M]: [, input[_M]],
|
|
564
|
-
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
565
|
-
});
|
|
566
|
-
let body;
|
|
567
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
568
|
-
return b.build();
|
|
569
|
-
};
|
|
570
|
-
export const se_ListFunctionsCommand = async (input, context) => {
|
|
571
|
-
const b = rb(input, context);
|
|
572
|
-
const headers = {};
|
|
573
|
-
b.bp("/2015-03-31/functions");
|
|
574
|
-
const query = map({
|
|
575
|
-
[_MR]: [, input[_MR]],
|
|
576
|
-
[_FV]: [, input[_FV]],
|
|
577
|
-
[_M]: [, input[_M]],
|
|
578
|
-
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
579
|
-
});
|
|
580
|
-
let body;
|
|
581
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
582
|
-
return b.build();
|
|
583
|
-
};
|
|
584
|
-
export const se_ListFunctionsByCodeSigningConfigCommand = async (input, context) => {
|
|
585
|
-
const b = rb(input, context);
|
|
586
|
-
const headers = {};
|
|
587
|
-
b.bp("/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions");
|
|
588
|
-
b.p("CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
|
|
589
|
-
const query = map({
|
|
590
|
-
[_M]: [, input[_M]],
|
|
591
|
-
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
592
|
-
});
|
|
593
|
-
let body;
|
|
594
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
595
|
-
return b.build();
|
|
596
|
-
};
|
|
597
|
-
export const se_ListFunctionUrlConfigsCommand = async (input, context) => {
|
|
598
|
-
const b = rb(input, context);
|
|
599
|
-
const headers = {};
|
|
600
|
-
b.bp("/2021-10-31/functions/{FunctionName}/urls");
|
|
601
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
602
|
-
const query = map({
|
|
603
|
-
[_M]: [, input[_M]],
|
|
604
|
-
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
605
|
-
});
|
|
606
|
-
let body;
|
|
607
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
608
|
-
return b.build();
|
|
609
|
-
};
|
|
610
|
-
export const se_ListLayersCommand = async (input, context) => {
|
|
611
|
-
const b = rb(input, context);
|
|
612
|
-
const headers = {};
|
|
613
|
-
b.bp("/2018-10-31/layers");
|
|
614
|
-
const query = map({
|
|
615
|
-
[_CR]: [, input[_CR]],
|
|
616
|
-
[_M]: [, input[_M]],
|
|
617
|
-
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
618
|
-
[_CA]: [, input[_CA]],
|
|
619
|
-
});
|
|
620
|
-
let body;
|
|
621
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
622
|
-
return b.build();
|
|
623
|
-
};
|
|
624
|
-
export const se_ListLayerVersionsCommand = async (input, context) => {
|
|
625
|
-
const b = rb(input, context);
|
|
626
|
-
const headers = {};
|
|
627
|
-
b.bp("/2018-10-31/layers/{LayerName}/versions");
|
|
628
|
-
b.p("LayerName", () => input.LayerName, "{LayerName}", false);
|
|
629
|
-
const query = map({
|
|
630
|
-
[_CR]: [, input[_CR]],
|
|
631
|
-
[_M]: [, input[_M]],
|
|
632
|
-
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
633
|
-
[_CA]: [, input[_CA]],
|
|
634
|
-
});
|
|
635
|
-
let body;
|
|
636
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
637
|
-
return b.build();
|
|
638
|
-
};
|
|
639
|
-
export const se_ListProvisionedConcurrencyConfigsCommand = async (input, context) => {
|
|
640
|
-
const b = rb(input, context);
|
|
641
|
-
const headers = {};
|
|
642
|
-
b.bp("/2019-09-30/functions/{FunctionName}/provisioned-concurrency");
|
|
643
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
644
|
-
const query = map({
|
|
645
|
-
[_L]: [, "ALL"],
|
|
646
|
-
[_M]: [, input[_M]],
|
|
647
|
-
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
648
|
-
});
|
|
649
|
-
let body;
|
|
650
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
651
|
-
return b.build();
|
|
652
|
-
};
|
|
653
|
-
export const se_ListTagsCommand = async (input, context) => {
|
|
654
|
-
const b = rb(input, context);
|
|
655
|
-
const headers = {};
|
|
656
|
-
b.bp("/2017-03-31/tags/{Resource}");
|
|
657
|
-
b.p("Resource", () => input.Resource, "{Resource}", false);
|
|
658
|
-
let body;
|
|
659
|
-
b.m("GET").h(headers).b(body);
|
|
660
|
-
return b.build();
|
|
661
|
-
};
|
|
662
|
-
export const se_ListVersionsByFunctionCommand = async (input, context) => {
|
|
663
|
-
const b = rb(input, context);
|
|
664
|
-
const headers = {};
|
|
665
|
-
b.bp("/2015-03-31/functions/{FunctionName}/versions");
|
|
666
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
667
|
-
const query = map({
|
|
668
|
-
[_M]: [, input[_M]],
|
|
669
|
-
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
670
|
-
});
|
|
671
|
-
let body;
|
|
672
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
673
|
-
return b.build();
|
|
674
|
-
};
|
|
675
|
-
export const se_PublishLayerVersionCommand = async (input, context) => {
|
|
676
|
-
const b = rb(input, context);
|
|
677
|
-
const headers = {
|
|
678
|
-
"content-type": "application/json",
|
|
679
|
-
};
|
|
680
|
-
b.bp("/2018-10-31/layers/{LayerName}/versions");
|
|
681
|
-
b.p("LayerName", () => input.LayerName, "{LayerName}", false);
|
|
682
|
-
let body;
|
|
683
|
-
body = JSON.stringify(take(input, {
|
|
684
|
-
CompatibleArchitectures: (_) => _json(_),
|
|
685
|
-
CompatibleRuntimes: (_) => _json(_),
|
|
686
|
-
Content: (_) => se_LayerVersionContentInput(_, context),
|
|
687
|
-
Description: [],
|
|
688
|
-
LicenseInfo: [],
|
|
689
|
-
}));
|
|
690
|
-
b.m("POST").h(headers).b(body);
|
|
691
|
-
return b.build();
|
|
692
|
-
};
|
|
693
|
-
export const se_PublishVersionCommand = async (input, context) => {
|
|
694
|
-
const b = rb(input, context);
|
|
695
|
-
const headers = {
|
|
696
|
-
"content-type": "application/json",
|
|
697
|
-
};
|
|
698
|
-
b.bp("/2015-03-31/functions/{FunctionName}/versions");
|
|
699
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
700
|
-
let body;
|
|
701
|
-
body = JSON.stringify(take(input, {
|
|
702
|
-
CodeSha256: [],
|
|
703
|
-
Description: [],
|
|
704
|
-
RevisionId: [],
|
|
705
|
-
}));
|
|
706
|
-
b.m("POST").h(headers).b(body);
|
|
707
|
-
return b.build();
|
|
708
|
-
};
|
|
709
|
-
export const se_PutFunctionCodeSigningConfigCommand = async (input, context) => {
|
|
710
|
-
const b = rb(input, context);
|
|
711
|
-
const headers = {
|
|
712
|
-
"content-type": "application/json",
|
|
713
|
-
};
|
|
714
|
-
b.bp("/2020-06-30/functions/{FunctionName}/code-signing-config");
|
|
715
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
716
|
-
let body;
|
|
717
|
-
body = JSON.stringify(take(input, {
|
|
718
|
-
CodeSigningConfigArn: [],
|
|
719
|
-
}));
|
|
720
|
-
b.m("PUT").h(headers).b(body);
|
|
721
|
-
return b.build();
|
|
722
|
-
};
|
|
723
|
-
export const se_PutFunctionConcurrencyCommand = async (input, context) => {
|
|
724
|
-
const b = rb(input, context);
|
|
725
|
-
const headers = {
|
|
726
|
-
"content-type": "application/json",
|
|
727
|
-
};
|
|
728
|
-
b.bp("/2017-10-31/functions/{FunctionName}/concurrency");
|
|
729
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
730
|
-
let body;
|
|
731
|
-
body = JSON.stringify(take(input, {
|
|
732
|
-
ReservedConcurrentExecutions: [],
|
|
733
|
-
}));
|
|
734
|
-
b.m("PUT").h(headers).b(body);
|
|
735
|
-
return b.build();
|
|
736
|
-
};
|
|
737
|
-
export const se_PutFunctionEventInvokeConfigCommand = async (input, context) => {
|
|
738
|
-
const b = rb(input, context);
|
|
739
|
-
const headers = {
|
|
740
|
-
"content-type": "application/json",
|
|
741
|
-
};
|
|
742
|
-
b.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config");
|
|
743
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
744
|
-
const query = map({
|
|
745
|
-
[_Q]: [, input[_Q]],
|
|
746
|
-
});
|
|
747
|
-
let body;
|
|
748
|
-
body = JSON.stringify(take(input, {
|
|
749
|
-
DestinationConfig: (_) => _json(_),
|
|
750
|
-
MaximumEventAgeInSeconds: [],
|
|
751
|
-
MaximumRetryAttempts: [],
|
|
752
|
-
}));
|
|
753
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
754
|
-
return b.build();
|
|
755
|
-
};
|
|
756
|
-
export const se_PutFunctionRecursionConfigCommand = async (input, context) => {
|
|
757
|
-
const b = rb(input, context);
|
|
758
|
-
const headers = {
|
|
759
|
-
"content-type": "application/json",
|
|
760
|
-
};
|
|
761
|
-
b.bp("/2024-08-31/functions/{FunctionName}/recursion-config");
|
|
762
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
763
|
-
let body;
|
|
764
|
-
body = JSON.stringify(take(input, {
|
|
765
|
-
RecursiveLoop: [],
|
|
766
|
-
}));
|
|
767
|
-
b.m("PUT").h(headers).b(body);
|
|
768
|
-
return b.build();
|
|
769
|
-
};
|
|
770
|
-
export const se_PutProvisionedConcurrencyConfigCommand = async (input, context) => {
|
|
771
|
-
const b = rb(input, context);
|
|
772
|
-
const headers = {
|
|
773
|
-
"content-type": "application/json",
|
|
774
|
-
};
|
|
775
|
-
b.bp("/2019-09-30/functions/{FunctionName}/provisioned-concurrency");
|
|
776
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
777
|
-
const query = map({
|
|
778
|
-
[_Q]: [, __expectNonNull(input[_Q], `Qualifier`)],
|
|
779
|
-
});
|
|
780
|
-
let body;
|
|
781
|
-
body = JSON.stringify(take(input, {
|
|
782
|
-
ProvisionedConcurrentExecutions: [],
|
|
783
|
-
}));
|
|
784
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
785
|
-
return b.build();
|
|
786
|
-
};
|
|
787
|
-
export const se_PutRuntimeManagementConfigCommand = async (input, context) => {
|
|
788
|
-
const b = rb(input, context);
|
|
789
|
-
const headers = {
|
|
790
|
-
"content-type": "application/json",
|
|
791
|
-
};
|
|
792
|
-
b.bp("/2021-07-20/functions/{FunctionName}/runtime-management-config");
|
|
793
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
794
|
-
const query = map({
|
|
795
|
-
[_Q]: [, input[_Q]],
|
|
796
|
-
});
|
|
797
|
-
let body;
|
|
798
|
-
body = JSON.stringify(take(input, {
|
|
799
|
-
RuntimeVersionArn: [],
|
|
800
|
-
UpdateRuntimeOn: [],
|
|
801
|
-
}));
|
|
802
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
803
|
-
return b.build();
|
|
804
|
-
};
|
|
805
|
-
export const se_RemoveLayerVersionPermissionCommand = async (input, context) => {
|
|
806
|
-
const b = rb(input, context);
|
|
807
|
-
const headers = {};
|
|
808
|
-
b.bp("/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}");
|
|
809
|
-
b.p("LayerName", () => input.LayerName, "{LayerName}", false);
|
|
810
|
-
b.p("VersionNumber", () => input.VersionNumber.toString(), "{VersionNumber}", false);
|
|
811
|
-
b.p("StatementId", () => input.StatementId, "{StatementId}", false);
|
|
812
|
-
const query = map({
|
|
813
|
-
[_RI]: [, input[_RI]],
|
|
814
|
-
});
|
|
815
|
-
let body;
|
|
816
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
817
|
-
return b.build();
|
|
818
|
-
};
|
|
819
|
-
export const se_RemovePermissionCommand = async (input, context) => {
|
|
820
|
-
const b = rb(input, context);
|
|
821
|
-
const headers = {};
|
|
822
|
-
b.bp("/2015-03-31/functions/{FunctionName}/policy/{StatementId}");
|
|
823
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
824
|
-
b.p("StatementId", () => input.StatementId, "{StatementId}", false);
|
|
825
|
-
const query = map({
|
|
826
|
-
[_Q]: [, input[_Q]],
|
|
827
|
-
[_RI]: [, input[_RI]],
|
|
828
|
-
});
|
|
829
|
-
let body;
|
|
830
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
831
|
-
return b.build();
|
|
832
|
-
};
|
|
833
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
834
|
-
const b = rb(input, context);
|
|
835
|
-
const headers = {
|
|
836
|
-
"content-type": "application/json",
|
|
837
|
-
};
|
|
838
|
-
b.bp("/2017-03-31/tags/{Resource}");
|
|
839
|
-
b.p("Resource", () => input.Resource, "{Resource}", false);
|
|
840
|
-
let body;
|
|
841
|
-
body = JSON.stringify(take(input, {
|
|
842
|
-
Tags: (_) => _json(_),
|
|
843
|
-
}));
|
|
844
|
-
b.m("POST").h(headers).b(body);
|
|
845
|
-
return b.build();
|
|
846
|
-
};
|
|
847
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
848
|
-
const b = rb(input, context);
|
|
849
|
-
const headers = {};
|
|
850
|
-
b.bp("/2017-03-31/tags/{Resource}");
|
|
851
|
-
b.p("Resource", () => input.Resource, "{Resource}", false);
|
|
852
|
-
const query = map({
|
|
853
|
-
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
854
|
-
});
|
|
855
|
-
let body;
|
|
856
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
857
|
-
return b.build();
|
|
858
|
-
};
|
|
859
|
-
export const se_UpdateAliasCommand = async (input, context) => {
|
|
860
|
-
const b = rb(input, context);
|
|
861
|
-
const headers = {
|
|
862
|
-
"content-type": "application/json",
|
|
863
|
-
};
|
|
864
|
-
b.bp("/2015-03-31/functions/{FunctionName}/aliases/{Name}");
|
|
865
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
866
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
867
|
-
let body;
|
|
868
|
-
body = JSON.stringify(take(input, {
|
|
869
|
-
Description: [],
|
|
870
|
-
FunctionVersion: [],
|
|
871
|
-
RevisionId: [],
|
|
872
|
-
RoutingConfig: (_) => se_AliasRoutingConfiguration(_, context),
|
|
873
|
-
}));
|
|
874
|
-
b.m("PUT").h(headers).b(body);
|
|
875
|
-
return b.build();
|
|
876
|
-
};
|
|
877
|
-
export const se_UpdateCodeSigningConfigCommand = async (input, context) => {
|
|
878
|
-
const b = rb(input, context);
|
|
879
|
-
const headers = {
|
|
880
|
-
"content-type": "application/json",
|
|
881
|
-
};
|
|
882
|
-
b.bp("/2020-04-22/code-signing-configs/{CodeSigningConfigArn}");
|
|
883
|
-
b.p("CodeSigningConfigArn", () => input.CodeSigningConfigArn, "{CodeSigningConfigArn}", false);
|
|
884
|
-
let body;
|
|
885
|
-
body = JSON.stringify(take(input, {
|
|
886
|
-
AllowedPublishers: (_) => _json(_),
|
|
887
|
-
CodeSigningPolicies: (_) => _json(_),
|
|
888
|
-
Description: [],
|
|
889
|
-
}));
|
|
890
|
-
b.m("PUT").h(headers).b(body);
|
|
891
|
-
return b.build();
|
|
892
|
-
};
|
|
893
|
-
export const se_UpdateEventSourceMappingCommand = async (input, context) => {
|
|
894
|
-
const b = rb(input, context);
|
|
895
|
-
const headers = {
|
|
896
|
-
"content-type": "application/json",
|
|
897
|
-
};
|
|
898
|
-
b.bp("/2015-03-31/event-source-mappings/{UUID}");
|
|
899
|
-
b.p("UUID", () => input.UUID, "{UUID}", false);
|
|
900
|
-
let body;
|
|
901
|
-
body = JSON.stringify(take(input, {
|
|
902
|
-
AmazonManagedKafkaEventSourceConfig: (_) => _json(_),
|
|
903
|
-
BatchSize: [],
|
|
904
|
-
BisectBatchOnFunctionError: [],
|
|
905
|
-
DestinationConfig: (_) => _json(_),
|
|
906
|
-
DocumentDBEventSourceConfig: (_) => _json(_),
|
|
907
|
-
Enabled: [],
|
|
908
|
-
FilterCriteria: (_) => _json(_),
|
|
909
|
-
FunctionName: [],
|
|
910
|
-
FunctionResponseTypes: (_) => _json(_),
|
|
911
|
-
KMSKeyArn: [],
|
|
912
|
-
MaximumBatchingWindowInSeconds: [],
|
|
913
|
-
MaximumRecordAgeInSeconds: [],
|
|
914
|
-
MaximumRetryAttempts: [],
|
|
915
|
-
MetricsConfig: (_) => _json(_),
|
|
916
|
-
ParallelizationFactor: [],
|
|
917
|
-
ProvisionedPollerConfig: (_) => _json(_),
|
|
918
|
-
ScalingConfig: (_) => _json(_),
|
|
919
|
-
SelfManagedKafkaEventSourceConfig: (_) => _json(_),
|
|
920
|
-
SourceAccessConfigurations: (_) => _json(_),
|
|
921
|
-
TumblingWindowInSeconds: [],
|
|
922
|
-
}));
|
|
923
|
-
b.m("PUT").h(headers).b(body);
|
|
924
|
-
return b.build();
|
|
925
|
-
};
|
|
926
|
-
export const se_UpdateFunctionCodeCommand = async (input, context) => {
|
|
927
|
-
const b = rb(input, context);
|
|
928
|
-
const headers = {
|
|
929
|
-
"content-type": "application/json",
|
|
930
|
-
};
|
|
931
|
-
b.bp("/2015-03-31/functions/{FunctionName}/code");
|
|
932
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
933
|
-
let body;
|
|
934
|
-
body = JSON.stringify(take(input, {
|
|
935
|
-
Architectures: (_) => _json(_),
|
|
936
|
-
DryRun: [],
|
|
937
|
-
ImageUri: [],
|
|
938
|
-
Publish: [],
|
|
939
|
-
RevisionId: [],
|
|
940
|
-
S3Bucket: [],
|
|
941
|
-
S3Key: [],
|
|
942
|
-
S3ObjectVersion: [],
|
|
943
|
-
SourceKMSKeyArn: [],
|
|
944
|
-
ZipFile: (_) => context.base64Encoder(_),
|
|
945
|
-
}));
|
|
946
|
-
b.m("PUT").h(headers).b(body);
|
|
947
|
-
return b.build();
|
|
948
|
-
};
|
|
949
|
-
export const se_UpdateFunctionConfigurationCommand = async (input, context) => {
|
|
950
|
-
const b = rb(input, context);
|
|
951
|
-
const headers = {
|
|
952
|
-
"content-type": "application/json",
|
|
953
|
-
};
|
|
954
|
-
b.bp("/2015-03-31/functions/{FunctionName}/configuration");
|
|
955
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
956
|
-
let body;
|
|
957
|
-
body = JSON.stringify(take(input, {
|
|
958
|
-
DeadLetterConfig: (_) => _json(_),
|
|
959
|
-
Description: [],
|
|
960
|
-
Environment: (_) => _json(_),
|
|
961
|
-
EphemeralStorage: (_) => _json(_),
|
|
962
|
-
FileSystemConfigs: (_) => _json(_),
|
|
963
|
-
Handler: [],
|
|
964
|
-
ImageConfig: (_) => _json(_),
|
|
965
|
-
KMSKeyArn: [],
|
|
966
|
-
Layers: (_) => _json(_),
|
|
967
|
-
LoggingConfig: (_) => _json(_),
|
|
968
|
-
MemorySize: [],
|
|
969
|
-
RevisionId: [],
|
|
970
|
-
Role: [],
|
|
971
|
-
Runtime: [],
|
|
972
|
-
SnapStart: (_) => _json(_),
|
|
973
|
-
Timeout: [],
|
|
974
|
-
TracingConfig: (_) => _json(_),
|
|
975
|
-
VpcConfig: (_) => _json(_),
|
|
976
|
-
}));
|
|
977
|
-
b.m("PUT").h(headers).b(body);
|
|
978
|
-
return b.build();
|
|
979
|
-
};
|
|
980
|
-
export const se_UpdateFunctionEventInvokeConfigCommand = async (input, context) => {
|
|
981
|
-
const b = rb(input, context);
|
|
982
|
-
const headers = {
|
|
983
|
-
"content-type": "application/json",
|
|
984
|
-
};
|
|
985
|
-
b.bp("/2019-09-25/functions/{FunctionName}/event-invoke-config");
|
|
986
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
987
|
-
const query = map({
|
|
988
|
-
[_Q]: [, input[_Q]],
|
|
989
|
-
});
|
|
990
|
-
let body;
|
|
991
|
-
body = JSON.stringify(take(input, {
|
|
992
|
-
DestinationConfig: (_) => _json(_),
|
|
993
|
-
MaximumEventAgeInSeconds: [],
|
|
994
|
-
MaximumRetryAttempts: [],
|
|
995
|
-
}));
|
|
996
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
997
|
-
return b.build();
|
|
998
|
-
};
|
|
999
|
-
export const se_UpdateFunctionUrlConfigCommand = async (input, context) => {
|
|
1000
|
-
const b = rb(input, context);
|
|
1001
|
-
const headers = {
|
|
1002
|
-
"content-type": "application/json",
|
|
1003
|
-
};
|
|
1004
|
-
b.bp("/2021-10-31/functions/{FunctionName}/url");
|
|
1005
|
-
b.p("FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
1006
|
-
const query = map({
|
|
1007
|
-
[_Q]: [, input[_Q]],
|
|
1008
|
-
});
|
|
1009
|
-
let body;
|
|
1010
|
-
body = JSON.stringify(take(input, {
|
|
1011
|
-
AuthType: [],
|
|
1012
|
-
Cors: (_) => _json(_),
|
|
1013
|
-
InvokeMode: [],
|
|
1014
|
-
}));
|
|
1015
|
-
b.m("PUT").h(headers).q(query).b(body);
|
|
1016
|
-
return b.build();
|
|
1017
|
-
};
|
|
1018
|
-
export const de_AddLayerVersionPermissionCommand = async (output, context) => {
|
|
1019
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1020
|
-
return de_CommandError(output, context);
|
|
1021
|
-
}
|
|
1022
|
-
const contents = map({
|
|
1023
|
-
$metadata: deserializeMetadata(output),
|
|
1024
|
-
});
|
|
1025
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1026
|
-
const doc = take(data, {
|
|
1027
|
-
RevisionId: __expectString,
|
|
1028
|
-
Statement: __expectString,
|
|
1029
|
-
});
|
|
1030
|
-
Object.assign(contents, doc);
|
|
1031
|
-
return contents;
|
|
1032
|
-
};
|
|
1033
|
-
export const de_AddPermissionCommand = async (output, context) => {
|
|
1034
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1035
|
-
return de_CommandError(output, context);
|
|
1036
|
-
}
|
|
1037
|
-
const contents = map({
|
|
1038
|
-
$metadata: deserializeMetadata(output),
|
|
1039
|
-
});
|
|
1040
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1041
|
-
const doc = take(data, {
|
|
1042
|
-
Statement: __expectString,
|
|
1043
|
-
});
|
|
1044
|
-
Object.assign(contents, doc);
|
|
1045
|
-
return contents;
|
|
1046
|
-
};
|
|
1047
|
-
export const de_CreateAliasCommand = async (output, context) => {
|
|
1048
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1049
|
-
return de_CommandError(output, context);
|
|
1050
|
-
}
|
|
1051
|
-
const contents = map({
|
|
1052
|
-
$metadata: deserializeMetadata(output),
|
|
1053
|
-
});
|
|
1054
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1055
|
-
const doc = take(data, {
|
|
1056
|
-
AliasArn: __expectString,
|
|
1057
|
-
Description: __expectString,
|
|
1058
|
-
FunctionVersion: __expectString,
|
|
1059
|
-
Name: __expectString,
|
|
1060
|
-
RevisionId: __expectString,
|
|
1061
|
-
RoutingConfig: (_) => de_AliasRoutingConfiguration(_, context),
|
|
1062
|
-
});
|
|
1063
|
-
Object.assign(contents, doc);
|
|
1064
|
-
return contents;
|
|
1065
|
-
};
|
|
1066
|
-
export const de_CreateCodeSigningConfigCommand = async (output, context) => {
|
|
1067
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1068
|
-
return de_CommandError(output, context);
|
|
1069
|
-
}
|
|
1070
|
-
const contents = map({
|
|
1071
|
-
$metadata: deserializeMetadata(output),
|
|
1072
|
-
});
|
|
1073
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1074
|
-
const doc = take(data, {
|
|
1075
|
-
CodeSigningConfig: _json,
|
|
1076
|
-
});
|
|
1077
|
-
Object.assign(contents, doc);
|
|
1078
|
-
return contents;
|
|
1079
|
-
};
|
|
1080
|
-
export const de_CreateEventSourceMappingCommand = async (output, context) => {
|
|
1081
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1082
|
-
return de_CommandError(output, context);
|
|
1083
|
-
}
|
|
1084
|
-
const contents = map({
|
|
1085
|
-
$metadata: deserializeMetadata(output),
|
|
1086
|
-
});
|
|
1087
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1088
|
-
const doc = take(data, {
|
|
1089
|
-
AmazonManagedKafkaEventSourceConfig: _json,
|
|
1090
|
-
BatchSize: __expectInt32,
|
|
1091
|
-
BisectBatchOnFunctionError: __expectBoolean,
|
|
1092
|
-
DestinationConfig: _json,
|
|
1093
|
-
DocumentDBEventSourceConfig: _json,
|
|
1094
|
-
EventSourceArn: __expectString,
|
|
1095
|
-
EventSourceMappingArn: __expectString,
|
|
1096
|
-
FilterCriteria: _json,
|
|
1097
|
-
FilterCriteriaError: _json,
|
|
1098
|
-
FunctionArn: __expectString,
|
|
1099
|
-
FunctionResponseTypes: _json,
|
|
1100
|
-
KMSKeyArn: __expectString,
|
|
1101
|
-
LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1102
|
-
LastProcessingResult: __expectString,
|
|
1103
|
-
MaximumBatchingWindowInSeconds: __expectInt32,
|
|
1104
|
-
MaximumRecordAgeInSeconds: __expectInt32,
|
|
1105
|
-
MaximumRetryAttempts: __expectInt32,
|
|
1106
|
-
MetricsConfig: _json,
|
|
1107
|
-
ParallelizationFactor: __expectInt32,
|
|
1108
|
-
ProvisionedPollerConfig: _json,
|
|
1109
|
-
Queues: _json,
|
|
1110
|
-
ScalingConfig: _json,
|
|
1111
|
-
SelfManagedEventSource: _json,
|
|
1112
|
-
SelfManagedKafkaEventSourceConfig: _json,
|
|
1113
|
-
SourceAccessConfigurations: _json,
|
|
1114
|
-
StartingPosition: __expectString,
|
|
1115
|
-
StartingPositionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1116
|
-
State: __expectString,
|
|
1117
|
-
StateTransitionReason: __expectString,
|
|
1118
|
-
Topics: _json,
|
|
1119
|
-
TumblingWindowInSeconds: __expectInt32,
|
|
1120
|
-
UUID: __expectString,
|
|
1121
|
-
});
|
|
1122
|
-
Object.assign(contents, doc);
|
|
1123
|
-
return contents;
|
|
1124
|
-
};
|
|
1125
|
-
export const de_CreateFunctionCommand = async (output, context) => {
|
|
1126
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1127
|
-
return de_CommandError(output, context);
|
|
1128
|
-
}
|
|
1129
|
-
const contents = map({
|
|
1130
|
-
$metadata: deserializeMetadata(output),
|
|
1131
|
-
});
|
|
1132
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1133
|
-
const doc = take(data, {
|
|
1134
|
-
Architectures: _json,
|
|
1135
|
-
CodeSha256: __expectString,
|
|
1136
|
-
CodeSize: __expectLong,
|
|
1137
|
-
DeadLetterConfig: _json,
|
|
1138
|
-
Description: __expectString,
|
|
1139
|
-
Environment: _json,
|
|
1140
|
-
EphemeralStorage: _json,
|
|
1141
|
-
FileSystemConfigs: _json,
|
|
1142
|
-
FunctionArn: __expectString,
|
|
1143
|
-
FunctionName: __expectString,
|
|
1144
|
-
Handler: __expectString,
|
|
1145
|
-
ImageConfigResponse: _json,
|
|
1146
|
-
KMSKeyArn: __expectString,
|
|
1147
|
-
LastModified: __expectString,
|
|
1148
|
-
LastUpdateStatus: __expectString,
|
|
1149
|
-
LastUpdateStatusReason: __expectString,
|
|
1150
|
-
LastUpdateStatusReasonCode: __expectString,
|
|
1151
|
-
Layers: _json,
|
|
1152
|
-
LoggingConfig: _json,
|
|
1153
|
-
MasterArn: __expectString,
|
|
1154
|
-
MemorySize: __expectInt32,
|
|
1155
|
-
PackageType: __expectString,
|
|
1156
|
-
RevisionId: __expectString,
|
|
1157
|
-
Role: __expectString,
|
|
1158
|
-
Runtime: __expectString,
|
|
1159
|
-
RuntimeVersionConfig: _json,
|
|
1160
|
-
SigningJobArn: __expectString,
|
|
1161
|
-
SigningProfileVersionArn: __expectString,
|
|
1162
|
-
SnapStart: _json,
|
|
1163
|
-
State: __expectString,
|
|
1164
|
-
StateReason: __expectString,
|
|
1165
|
-
StateReasonCode: __expectString,
|
|
1166
|
-
Timeout: __expectInt32,
|
|
1167
|
-
TracingConfig: _json,
|
|
1168
|
-
Version: __expectString,
|
|
1169
|
-
VpcConfig: _json,
|
|
1170
|
-
});
|
|
1171
|
-
Object.assign(contents, doc);
|
|
1172
|
-
return contents;
|
|
1173
|
-
};
|
|
1174
|
-
export const de_CreateFunctionUrlConfigCommand = async (output, context) => {
|
|
1175
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1176
|
-
return de_CommandError(output, context);
|
|
1177
|
-
}
|
|
1178
|
-
const contents = map({
|
|
1179
|
-
$metadata: deserializeMetadata(output),
|
|
1180
|
-
});
|
|
1181
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1182
|
-
const doc = take(data, {
|
|
1183
|
-
AuthType: __expectString,
|
|
1184
|
-
Cors: _json,
|
|
1185
|
-
CreationTime: __expectString,
|
|
1186
|
-
FunctionArn: __expectString,
|
|
1187
|
-
FunctionUrl: __expectString,
|
|
1188
|
-
InvokeMode: __expectString,
|
|
1189
|
-
});
|
|
1190
|
-
Object.assign(contents, doc);
|
|
1191
|
-
return contents;
|
|
1192
|
-
};
|
|
1193
|
-
export const de_DeleteAliasCommand = async (output, context) => {
|
|
1194
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1195
|
-
return de_CommandError(output, context);
|
|
1196
|
-
}
|
|
1197
|
-
const contents = map({
|
|
1198
|
-
$metadata: deserializeMetadata(output),
|
|
1199
|
-
});
|
|
1200
|
-
await collectBody(output.body, context);
|
|
1201
|
-
return contents;
|
|
1202
|
-
};
|
|
1203
|
-
export const de_DeleteCodeSigningConfigCommand = async (output, context) => {
|
|
1204
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1205
|
-
return de_CommandError(output, context);
|
|
1206
|
-
}
|
|
1207
|
-
const contents = map({
|
|
1208
|
-
$metadata: deserializeMetadata(output),
|
|
1209
|
-
});
|
|
1210
|
-
await collectBody(output.body, context);
|
|
1211
|
-
return contents;
|
|
1212
|
-
};
|
|
1213
|
-
export const de_DeleteEventSourceMappingCommand = async (output, context) => {
|
|
1214
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1215
|
-
return de_CommandError(output, context);
|
|
1216
|
-
}
|
|
1217
|
-
const contents = map({
|
|
1218
|
-
$metadata: deserializeMetadata(output),
|
|
1219
|
-
});
|
|
1220
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1221
|
-
const doc = take(data, {
|
|
1222
|
-
AmazonManagedKafkaEventSourceConfig: _json,
|
|
1223
|
-
BatchSize: __expectInt32,
|
|
1224
|
-
BisectBatchOnFunctionError: __expectBoolean,
|
|
1225
|
-
DestinationConfig: _json,
|
|
1226
|
-
DocumentDBEventSourceConfig: _json,
|
|
1227
|
-
EventSourceArn: __expectString,
|
|
1228
|
-
EventSourceMappingArn: __expectString,
|
|
1229
|
-
FilterCriteria: _json,
|
|
1230
|
-
FilterCriteriaError: _json,
|
|
1231
|
-
FunctionArn: __expectString,
|
|
1232
|
-
FunctionResponseTypes: _json,
|
|
1233
|
-
KMSKeyArn: __expectString,
|
|
1234
|
-
LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1235
|
-
LastProcessingResult: __expectString,
|
|
1236
|
-
MaximumBatchingWindowInSeconds: __expectInt32,
|
|
1237
|
-
MaximumRecordAgeInSeconds: __expectInt32,
|
|
1238
|
-
MaximumRetryAttempts: __expectInt32,
|
|
1239
|
-
MetricsConfig: _json,
|
|
1240
|
-
ParallelizationFactor: __expectInt32,
|
|
1241
|
-
ProvisionedPollerConfig: _json,
|
|
1242
|
-
Queues: _json,
|
|
1243
|
-
ScalingConfig: _json,
|
|
1244
|
-
SelfManagedEventSource: _json,
|
|
1245
|
-
SelfManagedKafkaEventSourceConfig: _json,
|
|
1246
|
-
SourceAccessConfigurations: _json,
|
|
1247
|
-
StartingPosition: __expectString,
|
|
1248
|
-
StartingPositionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1249
|
-
State: __expectString,
|
|
1250
|
-
StateTransitionReason: __expectString,
|
|
1251
|
-
Topics: _json,
|
|
1252
|
-
TumblingWindowInSeconds: __expectInt32,
|
|
1253
|
-
UUID: __expectString,
|
|
1254
|
-
});
|
|
1255
|
-
Object.assign(contents, doc);
|
|
1256
|
-
return contents;
|
|
1257
|
-
};
|
|
1258
|
-
export const de_DeleteFunctionCommand = async (output, context) => {
|
|
1259
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1260
|
-
return de_CommandError(output, context);
|
|
1261
|
-
}
|
|
1262
|
-
const contents = map({
|
|
1263
|
-
$metadata: deserializeMetadata(output),
|
|
1264
|
-
});
|
|
1265
|
-
await collectBody(output.body, context);
|
|
1266
|
-
return contents;
|
|
1267
|
-
};
|
|
1268
|
-
export const de_DeleteFunctionCodeSigningConfigCommand = async (output, context) => {
|
|
1269
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1270
|
-
return de_CommandError(output, context);
|
|
1271
|
-
}
|
|
1272
|
-
const contents = map({
|
|
1273
|
-
$metadata: deserializeMetadata(output),
|
|
1274
|
-
});
|
|
1275
|
-
await collectBody(output.body, context);
|
|
1276
|
-
return contents;
|
|
1277
|
-
};
|
|
1278
|
-
export const de_DeleteFunctionConcurrencyCommand = async (output, context) => {
|
|
1279
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1280
|
-
return de_CommandError(output, context);
|
|
1281
|
-
}
|
|
1282
|
-
const contents = map({
|
|
1283
|
-
$metadata: deserializeMetadata(output),
|
|
1284
|
-
});
|
|
1285
|
-
await collectBody(output.body, context);
|
|
1286
|
-
return contents;
|
|
1287
|
-
};
|
|
1288
|
-
export const de_DeleteFunctionEventInvokeConfigCommand = async (output, context) => {
|
|
1289
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1290
|
-
return de_CommandError(output, context);
|
|
1291
|
-
}
|
|
1292
|
-
const contents = map({
|
|
1293
|
-
$metadata: deserializeMetadata(output),
|
|
1294
|
-
});
|
|
1295
|
-
await collectBody(output.body, context);
|
|
1296
|
-
return contents;
|
|
1297
|
-
};
|
|
1298
|
-
export const de_DeleteFunctionUrlConfigCommand = async (output, context) => {
|
|
1299
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1300
|
-
return de_CommandError(output, context);
|
|
1301
|
-
}
|
|
1302
|
-
const contents = map({
|
|
1303
|
-
$metadata: deserializeMetadata(output),
|
|
1304
|
-
});
|
|
1305
|
-
await collectBody(output.body, context);
|
|
1306
|
-
return contents;
|
|
1307
|
-
};
|
|
1308
|
-
export const de_DeleteLayerVersionCommand = async (output, context) => {
|
|
1309
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1310
|
-
return de_CommandError(output, context);
|
|
1311
|
-
}
|
|
1312
|
-
const contents = map({
|
|
1313
|
-
$metadata: deserializeMetadata(output),
|
|
1314
|
-
});
|
|
1315
|
-
await collectBody(output.body, context);
|
|
1316
|
-
return contents;
|
|
1317
|
-
};
|
|
1318
|
-
export const de_DeleteProvisionedConcurrencyConfigCommand = async (output, context) => {
|
|
1319
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1320
|
-
return de_CommandError(output, context);
|
|
1321
|
-
}
|
|
1322
|
-
const contents = map({
|
|
1323
|
-
$metadata: deserializeMetadata(output),
|
|
1324
|
-
});
|
|
1325
|
-
await collectBody(output.body, context);
|
|
1326
|
-
return contents;
|
|
1327
|
-
};
|
|
1328
|
-
export const de_GetAccountSettingsCommand = async (output, context) => {
|
|
1329
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1330
|
-
return de_CommandError(output, context);
|
|
1331
|
-
}
|
|
1332
|
-
const contents = map({
|
|
1333
|
-
$metadata: deserializeMetadata(output),
|
|
1334
|
-
});
|
|
1335
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1336
|
-
const doc = take(data, {
|
|
1337
|
-
AccountLimit: _json,
|
|
1338
|
-
AccountUsage: _json,
|
|
1339
|
-
});
|
|
1340
|
-
Object.assign(contents, doc);
|
|
1341
|
-
return contents;
|
|
1342
|
-
};
|
|
1343
|
-
export const de_GetAliasCommand = async (output, context) => {
|
|
1344
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1345
|
-
return de_CommandError(output, context);
|
|
1346
|
-
}
|
|
1347
|
-
const contents = map({
|
|
1348
|
-
$metadata: deserializeMetadata(output),
|
|
1349
|
-
});
|
|
1350
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1351
|
-
const doc = take(data, {
|
|
1352
|
-
AliasArn: __expectString,
|
|
1353
|
-
Description: __expectString,
|
|
1354
|
-
FunctionVersion: __expectString,
|
|
1355
|
-
Name: __expectString,
|
|
1356
|
-
RevisionId: __expectString,
|
|
1357
|
-
RoutingConfig: (_) => de_AliasRoutingConfiguration(_, context),
|
|
1358
|
-
});
|
|
1359
|
-
Object.assign(contents, doc);
|
|
1360
|
-
return contents;
|
|
1361
|
-
};
|
|
1362
|
-
export const de_GetCodeSigningConfigCommand = async (output, context) => {
|
|
1363
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1364
|
-
return de_CommandError(output, context);
|
|
1365
|
-
}
|
|
1366
|
-
const contents = map({
|
|
1367
|
-
$metadata: deserializeMetadata(output),
|
|
1368
|
-
});
|
|
1369
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1370
|
-
const doc = take(data, {
|
|
1371
|
-
CodeSigningConfig: _json,
|
|
1372
|
-
});
|
|
1373
|
-
Object.assign(contents, doc);
|
|
1374
|
-
return contents;
|
|
1375
|
-
};
|
|
1376
|
-
export const de_GetEventSourceMappingCommand = async (output, context) => {
|
|
1377
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1378
|
-
return de_CommandError(output, context);
|
|
1379
|
-
}
|
|
1380
|
-
const contents = map({
|
|
1381
|
-
$metadata: deserializeMetadata(output),
|
|
1382
|
-
});
|
|
1383
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1384
|
-
const doc = take(data, {
|
|
1385
|
-
AmazonManagedKafkaEventSourceConfig: _json,
|
|
1386
|
-
BatchSize: __expectInt32,
|
|
1387
|
-
BisectBatchOnFunctionError: __expectBoolean,
|
|
1388
|
-
DestinationConfig: _json,
|
|
1389
|
-
DocumentDBEventSourceConfig: _json,
|
|
1390
|
-
EventSourceArn: __expectString,
|
|
1391
|
-
EventSourceMappingArn: __expectString,
|
|
1392
|
-
FilterCriteria: _json,
|
|
1393
|
-
FilterCriteriaError: _json,
|
|
1394
|
-
FunctionArn: __expectString,
|
|
1395
|
-
FunctionResponseTypes: _json,
|
|
1396
|
-
KMSKeyArn: __expectString,
|
|
1397
|
-
LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1398
|
-
LastProcessingResult: __expectString,
|
|
1399
|
-
MaximumBatchingWindowInSeconds: __expectInt32,
|
|
1400
|
-
MaximumRecordAgeInSeconds: __expectInt32,
|
|
1401
|
-
MaximumRetryAttempts: __expectInt32,
|
|
1402
|
-
MetricsConfig: _json,
|
|
1403
|
-
ParallelizationFactor: __expectInt32,
|
|
1404
|
-
ProvisionedPollerConfig: _json,
|
|
1405
|
-
Queues: _json,
|
|
1406
|
-
ScalingConfig: _json,
|
|
1407
|
-
SelfManagedEventSource: _json,
|
|
1408
|
-
SelfManagedKafkaEventSourceConfig: _json,
|
|
1409
|
-
SourceAccessConfigurations: _json,
|
|
1410
|
-
StartingPosition: __expectString,
|
|
1411
|
-
StartingPositionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1412
|
-
State: __expectString,
|
|
1413
|
-
StateTransitionReason: __expectString,
|
|
1414
|
-
Topics: _json,
|
|
1415
|
-
TumblingWindowInSeconds: __expectInt32,
|
|
1416
|
-
UUID: __expectString,
|
|
1417
|
-
});
|
|
1418
|
-
Object.assign(contents, doc);
|
|
1419
|
-
return contents;
|
|
1420
|
-
};
|
|
1421
|
-
export const de_GetFunctionCommand = async (output, context) => {
|
|
1422
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1423
|
-
return de_CommandError(output, context);
|
|
1424
|
-
}
|
|
1425
|
-
const contents = map({
|
|
1426
|
-
$metadata: deserializeMetadata(output),
|
|
1427
|
-
});
|
|
1428
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1429
|
-
const doc = take(data, {
|
|
1430
|
-
Code: _json,
|
|
1431
|
-
Concurrency: _json,
|
|
1432
|
-
Configuration: _json,
|
|
1433
|
-
Tags: _json,
|
|
1434
|
-
TagsError: _json,
|
|
1435
|
-
});
|
|
1436
|
-
Object.assign(contents, doc);
|
|
1437
|
-
return contents;
|
|
1438
|
-
};
|
|
1439
|
-
export const de_GetFunctionCodeSigningConfigCommand = async (output, context) => {
|
|
1440
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1441
|
-
return de_CommandError(output, context);
|
|
1442
|
-
}
|
|
1443
|
-
const contents = map({
|
|
1444
|
-
$metadata: deserializeMetadata(output),
|
|
1445
|
-
});
|
|
1446
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1447
|
-
const doc = take(data, {
|
|
1448
|
-
CodeSigningConfigArn: __expectString,
|
|
1449
|
-
FunctionName: __expectString,
|
|
1450
|
-
});
|
|
1451
|
-
Object.assign(contents, doc);
|
|
1452
|
-
return contents;
|
|
1453
|
-
};
|
|
1454
|
-
export const de_GetFunctionConcurrencyCommand = async (output, context) => {
|
|
1455
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1456
|
-
return de_CommandError(output, context);
|
|
1457
|
-
}
|
|
1458
|
-
const contents = map({
|
|
1459
|
-
$metadata: deserializeMetadata(output),
|
|
1460
|
-
});
|
|
1461
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1462
|
-
const doc = take(data, {
|
|
1463
|
-
ReservedConcurrentExecutions: __expectInt32,
|
|
1464
|
-
});
|
|
1465
|
-
Object.assign(contents, doc);
|
|
1466
|
-
return contents;
|
|
1467
|
-
};
|
|
1468
|
-
export const de_GetFunctionConfigurationCommand = async (output, context) => {
|
|
1469
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1470
|
-
return de_CommandError(output, context);
|
|
1471
|
-
}
|
|
1472
|
-
const contents = map({
|
|
1473
|
-
$metadata: deserializeMetadata(output),
|
|
1474
|
-
});
|
|
1475
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1476
|
-
const doc = take(data, {
|
|
1477
|
-
Architectures: _json,
|
|
1478
|
-
CodeSha256: __expectString,
|
|
1479
|
-
CodeSize: __expectLong,
|
|
1480
|
-
DeadLetterConfig: _json,
|
|
1481
|
-
Description: __expectString,
|
|
1482
|
-
Environment: _json,
|
|
1483
|
-
EphemeralStorage: _json,
|
|
1484
|
-
FileSystemConfigs: _json,
|
|
1485
|
-
FunctionArn: __expectString,
|
|
1486
|
-
FunctionName: __expectString,
|
|
1487
|
-
Handler: __expectString,
|
|
1488
|
-
ImageConfigResponse: _json,
|
|
1489
|
-
KMSKeyArn: __expectString,
|
|
1490
|
-
LastModified: __expectString,
|
|
1491
|
-
LastUpdateStatus: __expectString,
|
|
1492
|
-
LastUpdateStatusReason: __expectString,
|
|
1493
|
-
LastUpdateStatusReasonCode: __expectString,
|
|
1494
|
-
Layers: _json,
|
|
1495
|
-
LoggingConfig: _json,
|
|
1496
|
-
MasterArn: __expectString,
|
|
1497
|
-
MemorySize: __expectInt32,
|
|
1498
|
-
PackageType: __expectString,
|
|
1499
|
-
RevisionId: __expectString,
|
|
1500
|
-
Role: __expectString,
|
|
1501
|
-
Runtime: __expectString,
|
|
1502
|
-
RuntimeVersionConfig: _json,
|
|
1503
|
-
SigningJobArn: __expectString,
|
|
1504
|
-
SigningProfileVersionArn: __expectString,
|
|
1505
|
-
SnapStart: _json,
|
|
1506
|
-
State: __expectString,
|
|
1507
|
-
StateReason: __expectString,
|
|
1508
|
-
StateReasonCode: __expectString,
|
|
1509
|
-
Timeout: __expectInt32,
|
|
1510
|
-
TracingConfig: _json,
|
|
1511
|
-
Version: __expectString,
|
|
1512
|
-
VpcConfig: _json,
|
|
1513
|
-
});
|
|
1514
|
-
Object.assign(contents, doc);
|
|
1515
|
-
return contents;
|
|
1516
|
-
};
|
|
1517
|
-
export const de_GetFunctionEventInvokeConfigCommand = async (output, context) => {
|
|
1518
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1519
|
-
return de_CommandError(output, context);
|
|
1520
|
-
}
|
|
1521
|
-
const contents = map({
|
|
1522
|
-
$metadata: deserializeMetadata(output),
|
|
1523
|
-
});
|
|
1524
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1525
|
-
const doc = take(data, {
|
|
1526
|
-
DestinationConfig: _json,
|
|
1527
|
-
FunctionArn: __expectString,
|
|
1528
|
-
LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1529
|
-
MaximumEventAgeInSeconds: __expectInt32,
|
|
1530
|
-
MaximumRetryAttempts: __expectInt32,
|
|
1531
|
-
});
|
|
1532
|
-
Object.assign(contents, doc);
|
|
1533
|
-
return contents;
|
|
1534
|
-
};
|
|
1535
|
-
export const de_GetFunctionRecursionConfigCommand = async (output, context) => {
|
|
1536
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1537
|
-
return de_CommandError(output, context);
|
|
1538
|
-
}
|
|
1539
|
-
const contents = map({
|
|
1540
|
-
$metadata: deserializeMetadata(output),
|
|
1541
|
-
});
|
|
1542
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1543
|
-
const doc = take(data, {
|
|
1544
|
-
RecursiveLoop: __expectString,
|
|
1545
|
-
});
|
|
1546
|
-
Object.assign(contents, doc);
|
|
1547
|
-
return contents;
|
|
1548
|
-
};
|
|
1549
|
-
export const de_GetFunctionUrlConfigCommand = async (output, context) => {
|
|
1550
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1551
|
-
return de_CommandError(output, context);
|
|
1552
|
-
}
|
|
1553
|
-
const contents = map({
|
|
1554
|
-
$metadata: deserializeMetadata(output),
|
|
1555
|
-
});
|
|
1556
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1557
|
-
const doc = take(data, {
|
|
1558
|
-
AuthType: __expectString,
|
|
1559
|
-
Cors: _json,
|
|
1560
|
-
CreationTime: __expectString,
|
|
1561
|
-
FunctionArn: __expectString,
|
|
1562
|
-
FunctionUrl: __expectString,
|
|
1563
|
-
InvokeMode: __expectString,
|
|
1564
|
-
LastModifiedTime: __expectString,
|
|
1565
|
-
});
|
|
1566
|
-
Object.assign(contents, doc);
|
|
1567
|
-
return contents;
|
|
1568
|
-
};
|
|
1569
|
-
export const de_GetLayerVersionCommand = async (output, context) => {
|
|
1570
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1571
|
-
return de_CommandError(output, context);
|
|
1572
|
-
}
|
|
1573
|
-
const contents = map({
|
|
1574
|
-
$metadata: deserializeMetadata(output),
|
|
1575
|
-
});
|
|
1576
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1577
|
-
const doc = take(data, {
|
|
1578
|
-
CompatibleArchitectures: _json,
|
|
1579
|
-
CompatibleRuntimes: _json,
|
|
1580
|
-
Content: _json,
|
|
1581
|
-
CreatedDate: __expectString,
|
|
1582
|
-
Description: __expectString,
|
|
1583
|
-
LayerArn: __expectString,
|
|
1584
|
-
LayerVersionArn: __expectString,
|
|
1585
|
-
LicenseInfo: __expectString,
|
|
1586
|
-
Version: __expectLong,
|
|
1587
|
-
});
|
|
1588
|
-
Object.assign(contents, doc);
|
|
1589
|
-
return contents;
|
|
1590
|
-
};
|
|
1591
|
-
export const de_GetLayerVersionByArnCommand = async (output, context) => {
|
|
1592
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1593
|
-
return de_CommandError(output, context);
|
|
1594
|
-
}
|
|
1595
|
-
const contents = map({
|
|
1596
|
-
$metadata: deserializeMetadata(output),
|
|
1597
|
-
});
|
|
1598
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1599
|
-
const doc = take(data, {
|
|
1600
|
-
CompatibleArchitectures: _json,
|
|
1601
|
-
CompatibleRuntimes: _json,
|
|
1602
|
-
Content: _json,
|
|
1603
|
-
CreatedDate: __expectString,
|
|
1604
|
-
Description: __expectString,
|
|
1605
|
-
LayerArn: __expectString,
|
|
1606
|
-
LayerVersionArn: __expectString,
|
|
1607
|
-
LicenseInfo: __expectString,
|
|
1608
|
-
Version: __expectLong,
|
|
1609
|
-
});
|
|
1610
|
-
Object.assign(contents, doc);
|
|
1611
|
-
return contents;
|
|
1612
|
-
};
|
|
1613
|
-
export const de_GetLayerVersionPolicyCommand = async (output, context) => {
|
|
1614
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1615
|
-
return de_CommandError(output, context);
|
|
1616
|
-
}
|
|
1617
|
-
const contents = map({
|
|
1618
|
-
$metadata: deserializeMetadata(output),
|
|
1619
|
-
});
|
|
1620
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1621
|
-
const doc = take(data, {
|
|
1622
|
-
Policy: __expectString,
|
|
1623
|
-
RevisionId: __expectString,
|
|
1624
|
-
});
|
|
1625
|
-
Object.assign(contents, doc);
|
|
1626
|
-
return contents;
|
|
1627
|
-
};
|
|
1628
|
-
export const de_GetPolicyCommand = async (output, context) => {
|
|
1629
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1630
|
-
return de_CommandError(output, context);
|
|
1631
|
-
}
|
|
1632
|
-
const contents = map({
|
|
1633
|
-
$metadata: deserializeMetadata(output),
|
|
1634
|
-
});
|
|
1635
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1636
|
-
const doc = take(data, {
|
|
1637
|
-
Policy: __expectString,
|
|
1638
|
-
RevisionId: __expectString,
|
|
1639
|
-
});
|
|
1640
|
-
Object.assign(contents, doc);
|
|
1641
|
-
return contents;
|
|
1642
|
-
};
|
|
1643
|
-
export const de_GetProvisionedConcurrencyConfigCommand = async (output, context) => {
|
|
1644
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1645
|
-
return de_CommandError(output, context);
|
|
1646
|
-
}
|
|
1647
|
-
const contents = map({
|
|
1648
|
-
$metadata: deserializeMetadata(output),
|
|
1649
|
-
});
|
|
1650
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1651
|
-
const doc = take(data, {
|
|
1652
|
-
AllocatedProvisionedConcurrentExecutions: __expectInt32,
|
|
1653
|
-
AvailableProvisionedConcurrentExecutions: __expectInt32,
|
|
1654
|
-
LastModified: __expectString,
|
|
1655
|
-
RequestedProvisionedConcurrentExecutions: __expectInt32,
|
|
1656
|
-
Status: __expectString,
|
|
1657
|
-
StatusReason: __expectString,
|
|
1658
|
-
});
|
|
1659
|
-
Object.assign(contents, doc);
|
|
1660
|
-
return contents;
|
|
1661
|
-
};
|
|
1662
|
-
export const de_GetRuntimeManagementConfigCommand = async (output, context) => {
|
|
1663
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1664
|
-
return de_CommandError(output, context);
|
|
1665
|
-
}
|
|
1666
|
-
const contents = map({
|
|
1667
|
-
$metadata: deserializeMetadata(output),
|
|
1668
|
-
});
|
|
1669
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1670
|
-
const doc = take(data, {
|
|
1671
|
-
FunctionArn: __expectString,
|
|
1672
|
-
RuntimeVersionArn: __expectString,
|
|
1673
|
-
UpdateRuntimeOn: __expectString,
|
|
1674
|
-
});
|
|
1675
|
-
Object.assign(contents, doc);
|
|
1676
|
-
return contents;
|
|
1677
|
-
};
|
|
1678
|
-
export const de_InvokeCommand = async (output, context) => {
|
|
1679
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1680
|
-
return de_CommandError(output, context);
|
|
1681
|
-
}
|
|
1682
|
-
const contents = map({
|
|
1683
|
-
$metadata: deserializeMetadata(output),
|
|
1684
|
-
[_FE]: [, output.headers[_xafe]],
|
|
1685
|
-
[_LR]: [, output.headers[_xalr]],
|
|
1686
|
-
[_EV]: [, output.headers[_xaev]],
|
|
1687
|
-
});
|
|
1688
|
-
const data = await collectBody(output.body, context);
|
|
1689
|
-
contents.Payload = data;
|
|
1690
|
-
map(contents, {
|
|
1691
|
-
StatusCode: [, output.statusCode],
|
|
1692
|
-
});
|
|
1693
|
-
return contents;
|
|
1694
|
-
};
|
|
1695
|
-
export const de_InvokeAsyncCommand = async (output, context) => {
|
|
1696
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1697
|
-
return de_CommandError(output, context);
|
|
1698
|
-
}
|
|
1699
|
-
const contents = map({
|
|
1700
|
-
$metadata: deserializeMetadata(output),
|
|
1701
|
-
});
|
|
1702
|
-
map(contents, {
|
|
1703
|
-
Status: [, output.statusCode],
|
|
1704
|
-
});
|
|
1705
|
-
await collectBody(output.body, context);
|
|
1706
|
-
return contents;
|
|
1707
|
-
};
|
|
1708
|
-
export const de_InvokeWithResponseStreamCommand = async (output, context) => {
|
|
1709
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1710
|
-
return de_CommandError(output, context);
|
|
1711
|
-
}
|
|
1712
|
-
const contents = map({
|
|
1713
|
-
$metadata: deserializeMetadata(output),
|
|
1714
|
-
[_EV]: [, output.headers[_xaev]],
|
|
1715
|
-
[_RSCT]: [, output.headers[_ct]],
|
|
1716
|
-
});
|
|
1717
|
-
const data = output.body;
|
|
1718
|
-
contents.EventStream = de_InvokeWithResponseStreamResponseEvent(data, context);
|
|
1719
|
-
map(contents, {
|
|
1720
|
-
StatusCode: [, output.statusCode],
|
|
1721
|
-
});
|
|
1722
|
-
return contents;
|
|
1723
|
-
};
|
|
1724
|
-
export const de_ListAliasesCommand = async (output, context) => {
|
|
1725
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1726
|
-
return de_CommandError(output, context);
|
|
1727
|
-
}
|
|
1728
|
-
const contents = map({
|
|
1729
|
-
$metadata: deserializeMetadata(output),
|
|
1730
|
-
});
|
|
1731
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1732
|
-
const doc = take(data, {
|
|
1733
|
-
Aliases: (_) => de_AliasList(_, context),
|
|
1734
|
-
NextMarker: __expectString,
|
|
1735
|
-
});
|
|
1736
|
-
Object.assign(contents, doc);
|
|
1737
|
-
return contents;
|
|
1738
|
-
};
|
|
1739
|
-
export const de_ListCodeSigningConfigsCommand = async (output, context) => {
|
|
1740
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1741
|
-
return de_CommandError(output, context);
|
|
1742
|
-
}
|
|
1743
|
-
const contents = map({
|
|
1744
|
-
$metadata: deserializeMetadata(output),
|
|
1745
|
-
});
|
|
1746
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1747
|
-
const doc = take(data, {
|
|
1748
|
-
CodeSigningConfigs: _json,
|
|
1749
|
-
NextMarker: __expectString,
|
|
1750
|
-
});
|
|
1751
|
-
Object.assign(contents, doc);
|
|
1752
|
-
return contents;
|
|
1753
|
-
};
|
|
1754
|
-
export const de_ListEventSourceMappingsCommand = async (output, context) => {
|
|
1755
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1756
|
-
return de_CommandError(output, context);
|
|
1757
|
-
}
|
|
1758
|
-
const contents = map({
|
|
1759
|
-
$metadata: deserializeMetadata(output),
|
|
1760
|
-
});
|
|
1761
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1762
|
-
const doc = take(data, {
|
|
1763
|
-
EventSourceMappings: (_) => de_EventSourceMappingsList(_, context),
|
|
1764
|
-
NextMarker: __expectString,
|
|
1765
|
-
});
|
|
1766
|
-
Object.assign(contents, doc);
|
|
1767
|
-
return contents;
|
|
1768
|
-
};
|
|
1769
|
-
export const de_ListFunctionEventInvokeConfigsCommand = async (output, context) => {
|
|
1770
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1771
|
-
return de_CommandError(output, context);
|
|
1772
|
-
}
|
|
1773
|
-
const contents = map({
|
|
1774
|
-
$metadata: deserializeMetadata(output),
|
|
1775
|
-
});
|
|
1776
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1777
|
-
const doc = take(data, {
|
|
1778
|
-
FunctionEventInvokeConfigs: (_) => de_FunctionEventInvokeConfigList(_, context),
|
|
1779
|
-
NextMarker: __expectString,
|
|
1780
|
-
});
|
|
1781
|
-
Object.assign(contents, doc);
|
|
1782
|
-
return contents;
|
|
1783
|
-
};
|
|
1784
|
-
export const de_ListFunctionsCommand = async (output, context) => {
|
|
1785
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1786
|
-
return de_CommandError(output, context);
|
|
1787
|
-
}
|
|
1788
|
-
const contents = map({
|
|
1789
|
-
$metadata: deserializeMetadata(output),
|
|
1790
|
-
});
|
|
1791
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1792
|
-
const doc = take(data, {
|
|
1793
|
-
Functions: _json,
|
|
1794
|
-
NextMarker: __expectString,
|
|
1795
|
-
});
|
|
1796
|
-
Object.assign(contents, doc);
|
|
1797
|
-
return contents;
|
|
1798
|
-
};
|
|
1799
|
-
export const de_ListFunctionsByCodeSigningConfigCommand = async (output, context) => {
|
|
1800
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1801
|
-
return de_CommandError(output, context);
|
|
1802
|
-
}
|
|
1803
|
-
const contents = map({
|
|
1804
|
-
$metadata: deserializeMetadata(output),
|
|
1805
|
-
});
|
|
1806
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1807
|
-
const doc = take(data, {
|
|
1808
|
-
FunctionArns: _json,
|
|
1809
|
-
NextMarker: __expectString,
|
|
1810
|
-
});
|
|
1811
|
-
Object.assign(contents, doc);
|
|
1812
|
-
return contents;
|
|
1813
|
-
};
|
|
1814
|
-
export const de_ListFunctionUrlConfigsCommand = async (output, context) => {
|
|
1815
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1816
|
-
return de_CommandError(output, context);
|
|
1817
|
-
}
|
|
1818
|
-
const contents = map({
|
|
1819
|
-
$metadata: deserializeMetadata(output),
|
|
1820
|
-
});
|
|
1821
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1822
|
-
const doc = take(data, {
|
|
1823
|
-
FunctionUrlConfigs: _json,
|
|
1824
|
-
NextMarker: __expectString,
|
|
1825
|
-
});
|
|
1826
|
-
Object.assign(contents, doc);
|
|
1827
|
-
return contents;
|
|
1828
|
-
};
|
|
1829
|
-
export const de_ListLayersCommand = async (output, context) => {
|
|
1830
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1831
|
-
return de_CommandError(output, context);
|
|
1832
|
-
}
|
|
1833
|
-
const contents = map({
|
|
1834
|
-
$metadata: deserializeMetadata(output),
|
|
1835
|
-
});
|
|
1836
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1837
|
-
const doc = take(data, {
|
|
1838
|
-
Layers: _json,
|
|
1839
|
-
NextMarker: __expectString,
|
|
1840
|
-
});
|
|
1841
|
-
Object.assign(contents, doc);
|
|
1842
|
-
return contents;
|
|
1843
|
-
};
|
|
1844
|
-
export const de_ListLayerVersionsCommand = async (output, context) => {
|
|
1845
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1846
|
-
return de_CommandError(output, context);
|
|
1847
|
-
}
|
|
1848
|
-
const contents = map({
|
|
1849
|
-
$metadata: deserializeMetadata(output),
|
|
1850
|
-
});
|
|
1851
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1852
|
-
const doc = take(data, {
|
|
1853
|
-
LayerVersions: _json,
|
|
1854
|
-
NextMarker: __expectString,
|
|
1855
|
-
});
|
|
1856
|
-
Object.assign(contents, doc);
|
|
1857
|
-
return contents;
|
|
1858
|
-
};
|
|
1859
|
-
export const de_ListProvisionedConcurrencyConfigsCommand = async (output, context) => {
|
|
1860
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1861
|
-
return de_CommandError(output, context);
|
|
1862
|
-
}
|
|
1863
|
-
const contents = map({
|
|
1864
|
-
$metadata: deserializeMetadata(output),
|
|
1865
|
-
});
|
|
1866
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1867
|
-
const doc = take(data, {
|
|
1868
|
-
NextMarker: __expectString,
|
|
1869
|
-
ProvisionedConcurrencyConfigs: _json,
|
|
1870
|
-
});
|
|
1871
|
-
Object.assign(contents, doc);
|
|
1872
|
-
return contents;
|
|
1873
|
-
};
|
|
1874
|
-
export const de_ListTagsCommand = async (output, context) => {
|
|
1875
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1876
|
-
return de_CommandError(output, context);
|
|
1877
|
-
}
|
|
1878
|
-
const contents = map({
|
|
1879
|
-
$metadata: deserializeMetadata(output),
|
|
1880
|
-
});
|
|
1881
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1882
|
-
const doc = take(data, {
|
|
1883
|
-
Tags: _json,
|
|
1884
|
-
});
|
|
1885
|
-
Object.assign(contents, doc);
|
|
1886
|
-
return contents;
|
|
1887
|
-
};
|
|
1888
|
-
export const de_ListVersionsByFunctionCommand = async (output, context) => {
|
|
1889
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1890
|
-
return de_CommandError(output, context);
|
|
1891
|
-
}
|
|
1892
|
-
const contents = map({
|
|
1893
|
-
$metadata: deserializeMetadata(output),
|
|
1894
|
-
});
|
|
1895
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1896
|
-
const doc = take(data, {
|
|
1897
|
-
NextMarker: __expectString,
|
|
1898
|
-
Versions: _json,
|
|
1899
|
-
});
|
|
1900
|
-
Object.assign(contents, doc);
|
|
1901
|
-
return contents;
|
|
1902
|
-
};
|
|
1903
|
-
export const de_PublishLayerVersionCommand = async (output, context) => {
|
|
1904
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1905
|
-
return de_CommandError(output, context);
|
|
1906
|
-
}
|
|
1907
|
-
const contents = map({
|
|
1908
|
-
$metadata: deserializeMetadata(output),
|
|
1909
|
-
});
|
|
1910
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1911
|
-
const doc = take(data, {
|
|
1912
|
-
CompatibleArchitectures: _json,
|
|
1913
|
-
CompatibleRuntimes: _json,
|
|
1914
|
-
Content: _json,
|
|
1915
|
-
CreatedDate: __expectString,
|
|
1916
|
-
Description: __expectString,
|
|
1917
|
-
LayerArn: __expectString,
|
|
1918
|
-
LayerVersionArn: __expectString,
|
|
1919
|
-
LicenseInfo: __expectString,
|
|
1920
|
-
Version: __expectLong,
|
|
1921
|
-
});
|
|
1922
|
-
Object.assign(contents, doc);
|
|
1923
|
-
return contents;
|
|
1924
|
-
};
|
|
1925
|
-
export const de_PublishVersionCommand = async (output, context) => {
|
|
1926
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1927
|
-
return de_CommandError(output, context);
|
|
1928
|
-
}
|
|
1929
|
-
const contents = map({
|
|
1930
|
-
$metadata: deserializeMetadata(output),
|
|
1931
|
-
});
|
|
1932
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1933
|
-
const doc = take(data, {
|
|
1934
|
-
Architectures: _json,
|
|
1935
|
-
CodeSha256: __expectString,
|
|
1936
|
-
CodeSize: __expectLong,
|
|
1937
|
-
DeadLetterConfig: _json,
|
|
1938
|
-
Description: __expectString,
|
|
1939
|
-
Environment: _json,
|
|
1940
|
-
EphemeralStorage: _json,
|
|
1941
|
-
FileSystemConfigs: _json,
|
|
1942
|
-
FunctionArn: __expectString,
|
|
1943
|
-
FunctionName: __expectString,
|
|
1944
|
-
Handler: __expectString,
|
|
1945
|
-
ImageConfigResponse: _json,
|
|
1946
|
-
KMSKeyArn: __expectString,
|
|
1947
|
-
LastModified: __expectString,
|
|
1948
|
-
LastUpdateStatus: __expectString,
|
|
1949
|
-
LastUpdateStatusReason: __expectString,
|
|
1950
|
-
LastUpdateStatusReasonCode: __expectString,
|
|
1951
|
-
Layers: _json,
|
|
1952
|
-
LoggingConfig: _json,
|
|
1953
|
-
MasterArn: __expectString,
|
|
1954
|
-
MemorySize: __expectInt32,
|
|
1955
|
-
PackageType: __expectString,
|
|
1956
|
-
RevisionId: __expectString,
|
|
1957
|
-
Role: __expectString,
|
|
1958
|
-
Runtime: __expectString,
|
|
1959
|
-
RuntimeVersionConfig: _json,
|
|
1960
|
-
SigningJobArn: __expectString,
|
|
1961
|
-
SigningProfileVersionArn: __expectString,
|
|
1962
|
-
SnapStart: _json,
|
|
1963
|
-
State: __expectString,
|
|
1964
|
-
StateReason: __expectString,
|
|
1965
|
-
StateReasonCode: __expectString,
|
|
1966
|
-
Timeout: __expectInt32,
|
|
1967
|
-
TracingConfig: _json,
|
|
1968
|
-
Version: __expectString,
|
|
1969
|
-
VpcConfig: _json,
|
|
1970
|
-
});
|
|
1971
|
-
Object.assign(contents, doc);
|
|
1972
|
-
return contents;
|
|
1973
|
-
};
|
|
1974
|
-
export const de_PutFunctionCodeSigningConfigCommand = async (output, context) => {
|
|
1975
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1976
|
-
return de_CommandError(output, context);
|
|
1977
|
-
}
|
|
1978
|
-
const contents = map({
|
|
1979
|
-
$metadata: deserializeMetadata(output),
|
|
1980
|
-
});
|
|
1981
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1982
|
-
const doc = take(data, {
|
|
1983
|
-
CodeSigningConfigArn: __expectString,
|
|
1984
|
-
FunctionName: __expectString,
|
|
1985
|
-
});
|
|
1986
|
-
Object.assign(contents, doc);
|
|
1987
|
-
return contents;
|
|
1988
|
-
};
|
|
1989
|
-
export const de_PutFunctionConcurrencyCommand = async (output, context) => {
|
|
1990
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1991
|
-
return de_CommandError(output, context);
|
|
1992
|
-
}
|
|
1993
|
-
const contents = map({
|
|
1994
|
-
$metadata: deserializeMetadata(output),
|
|
1995
|
-
});
|
|
1996
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1997
|
-
const doc = take(data, {
|
|
1998
|
-
ReservedConcurrentExecutions: __expectInt32,
|
|
1999
|
-
});
|
|
2000
|
-
Object.assign(contents, doc);
|
|
2001
|
-
return contents;
|
|
2002
|
-
};
|
|
2003
|
-
export const de_PutFunctionEventInvokeConfigCommand = async (output, context) => {
|
|
2004
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2005
|
-
return de_CommandError(output, context);
|
|
2006
|
-
}
|
|
2007
|
-
const contents = map({
|
|
2008
|
-
$metadata: deserializeMetadata(output),
|
|
2009
|
-
});
|
|
2010
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2011
|
-
const doc = take(data, {
|
|
2012
|
-
DestinationConfig: _json,
|
|
2013
|
-
FunctionArn: __expectString,
|
|
2014
|
-
LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2015
|
-
MaximumEventAgeInSeconds: __expectInt32,
|
|
2016
|
-
MaximumRetryAttempts: __expectInt32,
|
|
2017
|
-
});
|
|
2018
|
-
Object.assign(contents, doc);
|
|
2019
|
-
return contents;
|
|
2020
|
-
};
|
|
2021
|
-
export const de_PutFunctionRecursionConfigCommand = async (output, context) => {
|
|
2022
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2023
|
-
return de_CommandError(output, context);
|
|
2024
|
-
}
|
|
2025
|
-
const contents = map({
|
|
2026
|
-
$metadata: deserializeMetadata(output),
|
|
2027
|
-
});
|
|
2028
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2029
|
-
const doc = take(data, {
|
|
2030
|
-
RecursiveLoop: __expectString,
|
|
2031
|
-
});
|
|
2032
|
-
Object.assign(contents, doc);
|
|
2033
|
-
return contents;
|
|
2034
|
-
};
|
|
2035
|
-
export const de_PutProvisionedConcurrencyConfigCommand = async (output, context) => {
|
|
2036
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2037
|
-
return de_CommandError(output, context);
|
|
2038
|
-
}
|
|
2039
|
-
const contents = map({
|
|
2040
|
-
$metadata: deserializeMetadata(output),
|
|
2041
|
-
});
|
|
2042
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2043
|
-
const doc = take(data, {
|
|
2044
|
-
AllocatedProvisionedConcurrentExecutions: __expectInt32,
|
|
2045
|
-
AvailableProvisionedConcurrentExecutions: __expectInt32,
|
|
2046
|
-
LastModified: __expectString,
|
|
2047
|
-
RequestedProvisionedConcurrentExecutions: __expectInt32,
|
|
2048
|
-
Status: __expectString,
|
|
2049
|
-
StatusReason: __expectString,
|
|
2050
|
-
});
|
|
2051
|
-
Object.assign(contents, doc);
|
|
2052
|
-
return contents;
|
|
2053
|
-
};
|
|
2054
|
-
export const de_PutRuntimeManagementConfigCommand = async (output, context) => {
|
|
2055
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2056
|
-
return de_CommandError(output, context);
|
|
2057
|
-
}
|
|
2058
|
-
const contents = map({
|
|
2059
|
-
$metadata: deserializeMetadata(output),
|
|
2060
|
-
});
|
|
2061
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2062
|
-
const doc = take(data, {
|
|
2063
|
-
FunctionArn: __expectString,
|
|
2064
|
-
RuntimeVersionArn: __expectString,
|
|
2065
|
-
UpdateRuntimeOn: __expectString,
|
|
2066
|
-
});
|
|
2067
|
-
Object.assign(contents, doc);
|
|
2068
|
-
return contents;
|
|
2069
|
-
};
|
|
2070
|
-
export const de_RemoveLayerVersionPermissionCommand = async (output, context) => {
|
|
2071
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2072
|
-
return de_CommandError(output, context);
|
|
2073
|
-
}
|
|
2074
|
-
const contents = map({
|
|
2075
|
-
$metadata: deserializeMetadata(output),
|
|
2076
|
-
});
|
|
2077
|
-
await collectBody(output.body, context);
|
|
2078
|
-
return contents;
|
|
2079
|
-
};
|
|
2080
|
-
export const de_RemovePermissionCommand = async (output, context) => {
|
|
2081
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2082
|
-
return de_CommandError(output, context);
|
|
2083
|
-
}
|
|
2084
|
-
const contents = map({
|
|
2085
|
-
$metadata: deserializeMetadata(output),
|
|
2086
|
-
});
|
|
2087
|
-
await collectBody(output.body, context);
|
|
2088
|
-
return contents;
|
|
2089
|
-
};
|
|
2090
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
2091
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2092
|
-
return de_CommandError(output, context);
|
|
2093
|
-
}
|
|
2094
|
-
const contents = map({
|
|
2095
|
-
$metadata: deserializeMetadata(output),
|
|
2096
|
-
});
|
|
2097
|
-
await collectBody(output.body, context);
|
|
2098
|
-
return contents;
|
|
2099
|
-
};
|
|
2100
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
2101
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2102
|
-
return de_CommandError(output, context);
|
|
2103
|
-
}
|
|
2104
|
-
const contents = map({
|
|
2105
|
-
$metadata: deserializeMetadata(output),
|
|
2106
|
-
});
|
|
2107
|
-
await collectBody(output.body, context);
|
|
2108
|
-
return contents;
|
|
2109
|
-
};
|
|
2110
|
-
export const de_UpdateAliasCommand = async (output, context) => {
|
|
2111
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2112
|
-
return de_CommandError(output, context);
|
|
2113
|
-
}
|
|
2114
|
-
const contents = map({
|
|
2115
|
-
$metadata: deserializeMetadata(output),
|
|
2116
|
-
});
|
|
2117
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2118
|
-
const doc = take(data, {
|
|
2119
|
-
AliasArn: __expectString,
|
|
2120
|
-
Description: __expectString,
|
|
2121
|
-
FunctionVersion: __expectString,
|
|
2122
|
-
Name: __expectString,
|
|
2123
|
-
RevisionId: __expectString,
|
|
2124
|
-
RoutingConfig: (_) => de_AliasRoutingConfiguration(_, context),
|
|
2125
|
-
});
|
|
2126
|
-
Object.assign(contents, doc);
|
|
2127
|
-
return contents;
|
|
2128
|
-
};
|
|
2129
|
-
export const de_UpdateCodeSigningConfigCommand = async (output, context) => {
|
|
2130
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2131
|
-
return de_CommandError(output, context);
|
|
2132
|
-
}
|
|
2133
|
-
const contents = map({
|
|
2134
|
-
$metadata: deserializeMetadata(output),
|
|
2135
|
-
});
|
|
2136
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2137
|
-
const doc = take(data, {
|
|
2138
|
-
CodeSigningConfig: _json,
|
|
2139
|
-
});
|
|
2140
|
-
Object.assign(contents, doc);
|
|
2141
|
-
return contents;
|
|
2142
|
-
};
|
|
2143
|
-
export const de_UpdateEventSourceMappingCommand = async (output, context) => {
|
|
2144
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2145
|
-
return de_CommandError(output, context);
|
|
2146
|
-
}
|
|
2147
|
-
const contents = map({
|
|
2148
|
-
$metadata: deserializeMetadata(output),
|
|
2149
|
-
});
|
|
2150
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2151
|
-
const doc = take(data, {
|
|
2152
|
-
AmazonManagedKafkaEventSourceConfig: _json,
|
|
2153
|
-
BatchSize: __expectInt32,
|
|
2154
|
-
BisectBatchOnFunctionError: __expectBoolean,
|
|
2155
|
-
DestinationConfig: _json,
|
|
2156
|
-
DocumentDBEventSourceConfig: _json,
|
|
2157
|
-
EventSourceArn: __expectString,
|
|
2158
|
-
EventSourceMappingArn: __expectString,
|
|
2159
|
-
FilterCriteria: _json,
|
|
2160
|
-
FilterCriteriaError: _json,
|
|
2161
|
-
FunctionArn: __expectString,
|
|
2162
|
-
FunctionResponseTypes: _json,
|
|
2163
|
-
KMSKeyArn: __expectString,
|
|
2164
|
-
LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2165
|
-
LastProcessingResult: __expectString,
|
|
2166
|
-
MaximumBatchingWindowInSeconds: __expectInt32,
|
|
2167
|
-
MaximumRecordAgeInSeconds: __expectInt32,
|
|
2168
|
-
MaximumRetryAttempts: __expectInt32,
|
|
2169
|
-
MetricsConfig: _json,
|
|
2170
|
-
ParallelizationFactor: __expectInt32,
|
|
2171
|
-
ProvisionedPollerConfig: _json,
|
|
2172
|
-
Queues: _json,
|
|
2173
|
-
ScalingConfig: _json,
|
|
2174
|
-
SelfManagedEventSource: _json,
|
|
2175
|
-
SelfManagedKafkaEventSourceConfig: _json,
|
|
2176
|
-
SourceAccessConfigurations: _json,
|
|
2177
|
-
StartingPosition: __expectString,
|
|
2178
|
-
StartingPositionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2179
|
-
State: __expectString,
|
|
2180
|
-
StateTransitionReason: __expectString,
|
|
2181
|
-
Topics: _json,
|
|
2182
|
-
TumblingWindowInSeconds: __expectInt32,
|
|
2183
|
-
UUID: __expectString,
|
|
2184
|
-
});
|
|
2185
|
-
Object.assign(contents, doc);
|
|
2186
|
-
return contents;
|
|
2187
|
-
};
|
|
2188
|
-
export const de_UpdateFunctionCodeCommand = async (output, context) => {
|
|
2189
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2190
|
-
return de_CommandError(output, context);
|
|
2191
|
-
}
|
|
2192
|
-
const contents = map({
|
|
2193
|
-
$metadata: deserializeMetadata(output),
|
|
2194
|
-
});
|
|
2195
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2196
|
-
const doc = take(data, {
|
|
2197
|
-
Architectures: _json,
|
|
2198
|
-
CodeSha256: __expectString,
|
|
2199
|
-
CodeSize: __expectLong,
|
|
2200
|
-
DeadLetterConfig: _json,
|
|
2201
|
-
Description: __expectString,
|
|
2202
|
-
Environment: _json,
|
|
2203
|
-
EphemeralStorage: _json,
|
|
2204
|
-
FileSystemConfigs: _json,
|
|
2205
|
-
FunctionArn: __expectString,
|
|
2206
|
-
FunctionName: __expectString,
|
|
2207
|
-
Handler: __expectString,
|
|
2208
|
-
ImageConfigResponse: _json,
|
|
2209
|
-
KMSKeyArn: __expectString,
|
|
2210
|
-
LastModified: __expectString,
|
|
2211
|
-
LastUpdateStatus: __expectString,
|
|
2212
|
-
LastUpdateStatusReason: __expectString,
|
|
2213
|
-
LastUpdateStatusReasonCode: __expectString,
|
|
2214
|
-
Layers: _json,
|
|
2215
|
-
LoggingConfig: _json,
|
|
2216
|
-
MasterArn: __expectString,
|
|
2217
|
-
MemorySize: __expectInt32,
|
|
2218
|
-
PackageType: __expectString,
|
|
2219
|
-
RevisionId: __expectString,
|
|
2220
|
-
Role: __expectString,
|
|
2221
|
-
Runtime: __expectString,
|
|
2222
|
-
RuntimeVersionConfig: _json,
|
|
2223
|
-
SigningJobArn: __expectString,
|
|
2224
|
-
SigningProfileVersionArn: __expectString,
|
|
2225
|
-
SnapStart: _json,
|
|
2226
|
-
State: __expectString,
|
|
2227
|
-
StateReason: __expectString,
|
|
2228
|
-
StateReasonCode: __expectString,
|
|
2229
|
-
Timeout: __expectInt32,
|
|
2230
|
-
TracingConfig: _json,
|
|
2231
|
-
Version: __expectString,
|
|
2232
|
-
VpcConfig: _json,
|
|
2233
|
-
});
|
|
2234
|
-
Object.assign(contents, doc);
|
|
2235
|
-
return contents;
|
|
2236
|
-
};
|
|
2237
|
-
export const de_UpdateFunctionConfigurationCommand = async (output, context) => {
|
|
2238
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2239
|
-
return de_CommandError(output, context);
|
|
2240
|
-
}
|
|
2241
|
-
const contents = map({
|
|
2242
|
-
$metadata: deserializeMetadata(output),
|
|
2243
|
-
});
|
|
2244
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2245
|
-
const doc = take(data, {
|
|
2246
|
-
Architectures: _json,
|
|
2247
|
-
CodeSha256: __expectString,
|
|
2248
|
-
CodeSize: __expectLong,
|
|
2249
|
-
DeadLetterConfig: _json,
|
|
2250
|
-
Description: __expectString,
|
|
2251
|
-
Environment: _json,
|
|
2252
|
-
EphemeralStorage: _json,
|
|
2253
|
-
FileSystemConfigs: _json,
|
|
2254
|
-
FunctionArn: __expectString,
|
|
2255
|
-
FunctionName: __expectString,
|
|
2256
|
-
Handler: __expectString,
|
|
2257
|
-
ImageConfigResponse: _json,
|
|
2258
|
-
KMSKeyArn: __expectString,
|
|
2259
|
-
LastModified: __expectString,
|
|
2260
|
-
LastUpdateStatus: __expectString,
|
|
2261
|
-
LastUpdateStatusReason: __expectString,
|
|
2262
|
-
LastUpdateStatusReasonCode: __expectString,
|
|
2263
|
-
Layers: _json,
|
|
2264
|
-
LoggingConfig: _json,
|
|
2265
|
-
MasterArn: __expectString,
|
|
2266
|
-
MemorySize: __expectInt32,
|
|
2267
|
-
PackageType: __expectString,
|
|
2268
|
-
RevisionId: __expectString,
|
|
2269
|
-
Role: __expectString,
|
|
2270
|
-
Runtime: __expectString,
|
|
2271
|
-
RuntimeVersionConfig: _json,
|
|
2272
|
-
SigningJobArn: __expectString,
|
|
2273
|
-
SigningProfileVersionArn: __expectString,
|
|
2274
|
-
SnapStart: _json,
|
|
2275
|
-
State: __expectString,
|
|
2276
|
-
StateReason: __expectString,
|
|
2277
|
-
StateReasonCode: __expectString,
|
|
2278
|
-
Timeout: __expectInt32,
|
|
2279
|
-
TracingConfig: _json,
|
|
2280
|
-
Version: __expectString,
|
|
2281
|
-
VpcConfig: _json,
|
|
2282
|
-
});
|
|
2283
|
-
Object.assign(contents, doc);
|
|
2284
|
-
return contents;
|
|
2285
|
-
};
|
|
2286
|
-
export const de_UpdateFunctionEventInvokeConfigCommand = async (output, context) => {
|
|
2287
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2288
|
-
return de_CommandError(output, context);
|
|
2289
|
-
}
|
|
2290
|
-
const contents = map({
|
|
2291
|
-
$metadata: deserializeMetadata(output),
|
|
2292
|
-
});
|
|
2293
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2294
|
-
const doc = take(data, {
|
|
2295
|
-
DestinationConfig: _json,
|
|
2296
|
-
FunctionArn: __expectString,
|
|
2297
|
-
LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2298
|
-
MaximumEventAgeInSeconds: __expectInt32,
|
|
2299
|
-
MaximumRetryAttempts: __expectInt32,
|
|
2300
|
-
});
|
|
2301
|
-
Object.assign(contents, doc);
|
|
2302
|
-
return contents;
|
|
2303
|
-
};
|
|
2304
|
-
export const de_UpdateFunctionUrlConfigCommand = async (output, context) => {
|
|
2305
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2306
|
-
return de_CommandError(output, context);
|
|
2307
|
-
}
|
|
2308
|
-
const contents = map({
|
|
2309
|
-
$metadata: deserializeMetadata(output),
|
|
2310
|
-
});
|
|
2311
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2312
|
-
const doc = take(data, {
|
|
2313
|
-
AuthType: __expectString,
|
|
2314
|
-
Cors: _json,
|
|
2315
|
-
CreationTime: __expectString,
|
|
2316
|
-
FunctionArn: __expectString,
|
|
2317
|
-
FunctionUrl: __expectString,
|
|
2318
|
-
InvokeMode: __expectString,
|
|
2319
|
-
LastModifiedTime: __expectString,
|
|
2320
|
-
});
|
|
2321
|
-
Object.assign(contents, doc);
|
|
2322
|
-
return contents;
|
|
2323
|
-
};
|
|
2324
|
-
const de_CommandError = async (output, context) => {
|
|
2325
|
-
const parsedOutput = {
|
|
2326
|
-
...output,
|
|
2327
|
-
body: await parseErrorBody(output.body, context),
|
|
2328
|
-
};
|
|
2329
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2330
|
-
switch (errorCode) {
|
|
2331
|
-
case "InvalidParameterValueException":
|
|
2332
|
-
case "com.amazonaws.lambda#InvalidParameterValueException":
|
|
2333
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2334
|
-
case "PolicyLengthExceededException":
|
|
2335
|
-
case "com.amazonaws.lambda#PolicyLengthExceededException":
|
|
2336
|
-
throw await de_PolicyLengthExceededExceptionRes(parsedOutput, context);
|
|
2337
|
-
case "PreconditionFailedException":
|
|
2338
|
-
case "com.amazonaws.lambda#PreconditionFailedException":
|
|
2339
|
-
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
2340
|
-
case "ResourceConflictException":
|
|
2341
|
-
case "com.amazonaws.lambda#ResourceConflictException":
|
|
2342
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2343
|
-
case "ResourceNotFoundException":
|
|
2344
|
-
case "com.amazonaws.lambda#ResourceNotFoundException":
|
|
2345
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2346
|
-
case "ServiceException":
|
|
2347
|
-
case "com.amazonaws.lambda#ServiceException":
|
|
2348
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2349
|
-
case "TooManyRequestsException":
|
|
2350
|
-
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2351
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2352
|
-
case "CodeSigningConfigNotFoundException":
|
|
2353
|
-
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
2354
|
-
throw await de_CodeSigningConfigNotFoundExceptionRes(parsedOutput, context);
|
|
2355
|
-
case "CodeStorageExceededException":
|
|
2356
|
-
case "com.amazonaws.lambda#CodeStorageExceededException":
|
|
2357
|
-
throw await de_CodeStorageExceededExceptionRes(parsedOutput, context);
|
|
2358
|
-
case "CodeVerificationFailedException":
|
|
2359
|
-
case "com.amazonaws.lambda#CodeVerificationFailedException":
|
|
2360
|
-
throw await de_CodeVerificationFailedExceptionRes(parsedOutput, context);
|
|
2361
|
-
case "InvalidCodeSignatureException":
|
|
2362
|
-
case "com.amazonaws.lambda#InvalidCodeSignatureException":
|
|
2363
|
-
throw await de_InvalidCodeSignatureExceptionRes(parsedOutput, context);
|
|
2364
|
-
case "ResourceInUseException":
|
|
2365
|
-
case "com.amazonaws.lambda#ResourceInUseException":
|
|
2366
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2367
|
-
case "ProvisionedConcurrencyConfigNotFoundException":
|
|
2368
|
-
case "com.amazonaws.lambda#ProvisionedConcurrencyConfigNotFoundException":
|
|
2369
|
-
throw await de_ProvisionedConcurrencyConfigNotFoundExceptionRes(parsedOutput, context);
|
|
2370
|
-
case "EC2AccessDeniedException":
|
|
2371
|
-
case "com.amazonaws.lambda#EC2AccessDeniedException":
|
|
2372
|
-
throw await de_EC2AccessDeniedExceptionRes(parsedOutput, context);
|
|
2373
|
-
case "EC2ThrottledException":
|
|
2374
|
-
case "com.amazonaws.lambda#EC2ThrottledException":
|
|
2375
|
-
throw await de_EC2ThrottledExceptionRes(parsedOutput, context);
|
|
2376
|
-
case "EC2UnexpectedException":
|
|
2377
|
-
case "com.amazonaws.lambda#EC2UnexpectedException":
|
|
2378
|
-
throw await de_EC2UnexpectedExceptionRes(parsedOutput, context);
|
|
2379
|
-
case "EFSIOException":
|
|
2380
|
-
case "com.amazonaws.lambda#EFSIOException":
|
|
2381
|
-
throw await de_EFSIOExceptionRes(parsedOutput, context);
|
|
2382
|
-
case "EFSMountConnectivityException":
|
|
2383
|
-
case "com.amazonaws.lambda#EFSMountConnectivityException":
|
|
2384
|
-
throw await de_EFSMountConnectivityExceptionRes(parsedOutput, context);
|
|
2385
|
-
case "EFSMountFailureException":
|
|
2386
|
-
case "com.amazonaws.lambda#EFSMountFailureException":
|
|
2387
|
-
throw await de_EFSMountFailureExceptionRes(parsedOutput, context);
|
|
2388
|
-
case "EFSMountTimeoutException":
|
|
2389
|
-
case "com.amazonaws.lambda#EFSMountTimeoutException":
|
|
2390
|
-
throw await de_EFSMountTimeoutExceptionRes(parsedOutput, context);
|
|
2391
|
-
case "ENILimitReachedException":
|
|
2392
|
-
case "com.amazonaws.lambda#ENILimitReachedException":
|
|
2393
|
-
throw await de_ENILimitReachedExceptionRes(parsedOutput, context);
|
|
2394
|
-
case "InvalidRequestContentException":
|
|
2395
|
-
case "com.amazonaws.lambda#InvalidRequestContentException":
|
|
2396
|
-
throw await de_InvalidRequestContentExceptionRes(parsedOutput, context);
|
|
2397
|
-
case "InvalidRuntimeException":
|
|
2398
|
-
case "com.amazonaws.lambda#InvalidRuntimeException":
|
|
2399
|
-
throw await de_InvalidRuntimeExceptionRes(parsedOutput, context);
|
|
2400
|
-
case "InvalidSecurityGroupIDException":
|
|
2401
|
-
case "com.amazonaws.lambda#InvalidSecurityGroupIDException":
|
|
2402
|
-
throw await de_InvalidSecurityGroupIDExceptionRes(parsedOutput, context);
|
|
2403
|
-
case "InvalidSubnetIDException":
|
|
2404
|
-
case "com.amazonaws.lambda#InvalidSubnetIDException":
|
|
2405
|
-
throw await de_InvalidSubnetIDExceptionRes(parsedOutput, context);
|
|
2406
|
-
case "InvalidZipFileException":
|
|
2407
|
-
case "com.amazonaws.lambda#InvalidZipFileException":
|
|
2408
|
-
throw await de_InvalidZipFileExceptionRes(parsedOutput, context);
|
|
2409
|
-
case "KMSAccessDeniedException":
|
|
2410
|
-
case "com.amazonaws.lambda#KMSAccessDeniedException":
|
|
2411
|
-
throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
|
|
2412
|
-
case "KMSDisabledException":
|
|
2413
|
-
case "com.amazonaws.lambda#KMSDisabledException":
|
|
2414
|
-
throw await de_KMSDisabledExceptionRes(parsedOutput, context);
|
|
2415
|
-
case "KMSInvalidStateException":
|
|
2416
|
-
case "com.amazonaws.lambda#KMSInvalidStateException":
|
|
2417
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2418
|
-
case "KMSNotFoundException":
|
|
2419
|
-
case "com.amazonaws.lambda#KMSNotFoundException":
|
|
2420
|
-
throw await de_KMSNotFoundExceptionRes(parsedOutput, context);
|
|
2421
|
-
case "RecursiveInvocationException":
|
|
2422
|
-
case "com.amazonaws.lambda#RecursiveInvocationException":
|
|
2423
|
-
throw await de_RecursiveInvocationExceptionRes(parsedOutput, context);
|
|
2424
|
-
case "RequestTooLargeException":
|
|
2425
|
-
case "com.amazonaws.lambda#RequestTooLargeException":
|
|
2426
|
-
throw await de_RequestTooLargeExceptionRes(parsedOutput, context);
|
|
2427
|
-
case "ResourceNotReadyException":
|
|
2428
|
-
case "com.amazonaws.lambda#ResourceNotReadyException":
|
|
2429
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
2430
|
-
case "SerializedRequestEntityTooLargeException":
|
|
2431
|
-
case "com.amazonaws.lambda#SerializedRequestEntityTooLargeException":
|
|
2432
|
-
throw await de_SerializedRequestEntityTooLargeExceptionRes(parsedOutput, context);
|
|
2433
|
-
case "SnapStartException":
|
|
2434
|
-
case "com.amazonaws.lambda#SnapStartException":
|
|
2435
|
-
throw await de_SnapStartExceptionRes(parsedOutput, context);
|
|
2436
|
-
case "SnapStartNotReadyException":
|
|
2437
|
-
case "com.amazonaws.lambda#SnapStartNotReadyException":
|
|
2438
|
-
throw await de_SnapStartNotReadyExceptionRes(parsedOutput, context);
|
|
2439
|
-
case "SnapStartTimeoutException":
|
|
2440
|
-
case "com.amazonaws.lambda#SnapStartTimeoutException":
|
|
2441
|
-
throw await de_SnapStartTimeoutExceptionRes(parsedOutput, context);
|
|
2442
|
-
case "SubnetIPAddressLimitReachedException":
|
|
2443
|
-
case "com.amazonaws.lambda#SubnetIPAddressLimitReachedException":
|
|
2444
|
-
throw await de_SubnetIPAddressLimitReachedExceptionRes(parsedOutput, context);
|
|
2445
|
-
case "UnsupportedMediaTypeException":
|
|
2446
|
-
case "com.amazonaws.lambda#UnsupportedMediaTypeException":
|
|
2447
|
-
throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
|
|
2448
|
-
default:
|
|
2449
|
-
const parsedBody = parsedOutput.body;
|
|
2450
|
-
return throwDefaultError({
|
|
2451
|
-
output,
|
|
2452
|
-
parsedBody,
|
|
2453
|
-
errorCode,
|
|
2454
|
-
});
|
|
2455
|
-
}
|
|
2456
|
-
};
|
|
2457
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
2458
|
-
const de_CodeSigningConfigNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2459
|
-
const contents = map({});
|
|
2460
|
-
const data = parsedOutput.body;
|
|
2461
|
-
const doc = take(data, {
|
|
2462
|
-
Message: __expectString,
|
|
2463
|
-
Type: __expectString,
|
|
2464
|
-
});
|
|
2465
|
-
Object.assign(contents, doc);
|
|
2466
|
-
const exception = new CodeSigningConfigNotFoundException({
|
|
2467
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2468
|
-
...contents,
|
|
2469
|
-
});
|
|
2470
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2471
|
-
};
|
|
2472
|
-
const de_CodeStorageExceededExceptionRes = async (parsedOutput, context) => {
|
|
2473
|
-
const contents = map({});
|
|
2474
|
-
const data = parsedOutput.body;
|
|
2475
|
-
const doc = take(data, {
|
|
2476
|
-
Type: __expectString,
|
|
2477
|
-
message: __expectString,
|
|
2478
|
-
});
|
|
2479
|
-
Object.assign(contents, doc);
|
|
2480
|
-
const exception = new CodeStorageExceededException({
|
|
2481
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2482
|
-
...contents,
|
|
2483
|
-
});
|
|
2484
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2485
|
-
};
|
|
2486
|
-
const de_CodeVerificationFailedExceptionRes = async (parsedOutput, context) => {
|
|
2487
|
-
const contents = map({});
|
|
2488
|
-
const data = parsedOutput.body;
|
|
2489
|
-
const doc = take(data, {
|
|
2490
|
-
Message: __expectString,
|
|
2491
|
-
Type: __expectString,
|
|
2492
|
-
});
|
|
2493
|
-
Object.assign(contents, doc);
|
|
2494
|
-
const exception = new CodeVerificationFailedException({
|
|
2495
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2496
|
-
...contents,
|
|
2497
|
-
});
|
|
2498
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2499
|
-
};
|
|
2500
|
-
const de_EC2AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2501
|
-
const contents = map({});
|
|
2502
|
-
const data = parsedOutput.body;
|
|
2503
|
-
const doc = take(data, {
|
|
2504
|
-
Message: __expectString,
|
|
2505
|
-
Type: __expectString,
|
|
2506
|
-
});
|
|
2507
|
-
Object.assign(contents, doc);
|
|
2508
|
-
const exception = new EC2AccessDeniedException({
|
|
2509
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2510
|
-
...contents,
|
|
2511
|
-
});
|
|
2512
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2513
|
-
};
|
|
2514
|
-
const de_EC2ThrottledExceptionRes = async (parsedOutput, context) => {
|
|
2515
|
-
const contents = map({});
|
|
2516
|
-
const data = parsedOutput.body;
|
|
2517
|
-
const doc = take(data, {
|
|
2518
|
-
Message: __expectString,
|
|
2519
|
-
Type: __expectString,
|
|
2520
|
-
});
|
|
2521
|
-
Object.assign(contents, doc);
|
|
2522
|
-
const exception = new EC2ThrottledException({
|
|
2523
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2524
|
-
...contents,
|
|
2525
|
-
});
|
|
2526
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2527
|
-
};
|
|
2528
|
-
const de_EC2UnexpectedExceptionRes = async (parsedOutput, context) => {
|
|
2529
|
-
const contents = map({});
|
|
2530
|
-
const data = parsedOutput.body;
|
|
2531
|
-
const doc = take(data, {
|
|
2532
|
-
EC2ErrorCode: __expectString,
|
|
2533
|
-
Message: __expectString,
|
|
2534
|
-
Type: __expectString,
|
|
2535
|
-
});
|
|
2536
|
-
Object.assign(contents, doc);
|
|
2537
|
-
const exception = new EC2UnexpectedException({
|
|
2538
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2539
|
-
...contents,
|
|
2540
|
-
});
|
|
2541
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2542
|
-
};
|
|
2543
|
-
const de_EFSIOExceptionRes = async (parsedOutput, context) => {
|
|
2544
|
-
const contents = map({});
|
|
2545
|
-
const data = parsedOutput.body;
|
|
2546
|
-
const doc = take(data, {
|
|
2547
|
-
Message: __expectString,
|
|
2548
|
-
Type: __expectString,
|
|
2549
|
-
});
|
|
2550
|
-
Object.assign(contents, doc);
|
|
2551
|
-
const exception = new EFSIOException({
|
|
2552
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2553
|
-
...contents,
|
|
2554
|
-
});
|
|
2555
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2556
|
-
};
|
|
2557
|
-
const de_EFSMountConnectivityExceptionRes = async (parsedOutput, context) => {
|
|
2558
|
-
const contents = map({});
|
|
2559
|
-
const data = parsedOutput.body;
|
|
2560
|
-
const doc = take(data, {
|
|
2561
|
-
Message: __expectString,
|
|
2562
|
-
Type: __expectString,
|
|
2563
|
-
});
|
|
2564
|
-
Object.assign(contents, doc);
|
|
2565
|
-
const exception = new EFSMountConnectivityException({
|
|
2566
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2567
|
-
...contents,
|
|
2568
|
-
});
|
|
2569
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2570
|
-
};
|
|
2571
|
-
const de_EFSMountFailureExceptionRes = async (parsedOutput, context) => {
|
|
2572
|
-
const contents = map({});
|
|
2573
|
-
const data = parsedOutput.body;
|
|
2574
|
-
const doc = take(data, {
|
|
2575
|
-
Message: __expectString,
|
|
2576
|
-
Type: __expectString,
|
|
2577
|
-
});
|
|
2578
|
-
Object.assign(contents, doc);
|
|
2579
|
-
const exception = new EFSMountFailureException({
|
|
2580
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2581
|
-
...contents,
|
|
2582
|
-
});
|
|
2583
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2584
|
-
};
|
|
2585
|
-
const de_EFSMountTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
2586
|
-
const contents = map({});
|
|
2587
|
-
const data = parsedOutput.body;
|
|
2588
|
-
const doc = take(data, {
|
|
2589
|
-
Message: __expectString,
|
|
2590
|
-
Type: __expectString,
|
|
2591
|
-
});
|
|
2592
|
-
Object.assign(contents, doc);
|
|
2593
|
-
const exception = new EFSMountTimeoutException({
|
|
2594
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2595
|
-
...contents,
|
|
2596
|
-
});
|
|
2597
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2598
|
-
};
|
|
2599
|
-
const de_ENILimitReachedExceptionRes = async (parsedOutput, context) => {
|
|
2600
|
-
const contents = map({});
|
|
2601
|
-
const data = parsedOutput.body;
|
|
2602
|
-
const doc = take(data, {
|
|
2603
|
-
Message: __expectString,
|
|
2604
|
-
Type: __expectString,
|
|
2605
|
-
});
|
|
2606
|
-
Object.assign(contents, doc);
|
|
2607
|
-
const exception = new ENILimitReachedException({
|
|
2608
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2609
|
-
...contents,
|
|
2610
|
-
});
|
|
2611
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2612
|
-
};
|
|
2613
|
-
const de_InvalidCodeSignatureExceptionRes = async (parsedOutput, context) => {
|
|
2614
|
-
const contents = map({});
|
|
2615
|
-
const data = parsedOutput.body;
|
|
2616
|
-
const doc = take(data, {
|
|
2617
|
-
Message: __expectString,
|
|
2618
|
-
Type: __expectString,
|
|
2619
|
-
});
|
|
2620
|
-
Object.assign(contents, doc);
|
|
2621
|
-
const exception = new InvalidCodeSignatureException({
|
|
2622
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2623
|
-
...contents,
|
|
2624
|
-
});
|
|
2625
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2626
|
-
};
|
|
2627
|
-
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
2628
|
-
const contents = map({});
|
|
2629
|
-
const data = parsedOutput.body;
|
|
2630
|
-
const doc = take(data, {
|
|
2631
|
-
Type: __expectString,
|
|
2632
|
-
message: __expectString,
|
|
2633
|
-
});
|
|
2634
|
-
Object.assign(contents, doc);
|
|
2635
|
-
const exception = new InvalidParameterValueException({
|
|
2636
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2637
|
-
...contents,
|
|
2638
|
-
});
|
|
2639
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2640
|
-
};
|
|
2641
|
-
const de_InvalidRequestContentExceptionRes = async (parsedOutput, context) => {
|
|
2642
|
-
const contents = map({});
|
|
2643
|
-
const data = parsedOutput.body;
|
|
2644
|
-
const doc = take(data, {
|
|
2645
|
-
Type: __expectString,
|
|
2646
|
-
message: __expectString,
|
|
2647
|
-
});
|
|
2648
|
-
Object.assign(contents, doc);
|
|
2649
|
-
const exception = new InvalidRequestContentException({
|
|
2650
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2651
|
-
...contents,
|
|
2652
|
-
});
|
|
2653
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2654
|
-
};
|
|
2655
|
-
const de_InvalidRuntimeExceptionRes = async (parsedOutput, context) => {
|
|
2656
|
-
const contents = map({});
|
|
2657
|
-
const data = parsedOutput.body;
|
|
2658
|
-
const doc = take(data, {
|
|
2659
|
-
Message: __expectString,
|
|
2660
|
-
Type: __expectString,
|
|
2661
|
-
});
|
|
2662
|
-
Object.assign(contents, doc);
|
|
2663
|
-
const exception = new InvalidRuntimeException({
|
|
2664
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2665
|
-
...contents,
|
|
2666
|
-
});
|
|
2667
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2668
|
-
};
|
|
2669
|
-
const de_InvalidSecurityGroupIDExceptionRes = async (parsedOutput, context) => {
|
|
2670
|
-
const contents = map({});
|
|
2671
|
-
const data = parsedOutput.body;
|
|
2672
|
-
const doc = take(data, {
|
|
2673
|
-
Message: __expectString,
|
|
2674
|
-
Type: __expectString,
|
|
2675
|
-
});
|
|
2676
|
-
Object.assign(contents, doc);
|
|
2677
|
-
const exception = new InvalidSecurityGroupIDException({
|
|
2678
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2679
|
-
...contents,
|
|
2680
|
-
});
|
|
2681
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2682
|
-
};
|
|
2683
|
-
const de_InvalidSubnetIDExceptionRes = async (parsedOutput, context) => {
|
|
2684
|
-
const contents = map({});
|
|
2685
|
-
const data = parsedOutput.body;
|
|
2686
|
-
const doc = take(data, {
|
|
2687
|
-
Message: __expectString,
|
|
2688
|
-
Type: __expectString,
|
|
2689
|
-
});
|
|
2690
|
-
Object.assign(contents, doc);
|
|
2691
|
-
const exception = new InvalidSubnetIDException({
|
|
2692
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2693
|
-
...contents,
|
|
2694
|
-
});
|
|
2695
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2696
|
-
};
|
|
2697
|
-
const de_InvalidZipFileExceptionRes = async (parsedOutput, context) => {
|
|
2698
|
-
const contents = map({});
|
|
2699
|
-
const data = parsedOutput.body;
|
|
2700
|
-
const doc = take(data, {
|
|
2701
|
-
Message: __expectString,
|
|
2702
|
-
Type: __expectString,
|
|
2703
|
-
});
|
|
2704
|
-
Object.assign(contents, doc);
|
|
2705
|
-
const exception = new InvalidZipFileException({
|
|
2706
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2707
|
-
...contents,
|
|
2708
|
-
});
|
|
2709
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2710
|
-
};
|
|
2711
|
-
const de_KMSAccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2712
|
-
const contents = map({});
|
|
2713
|
-
const data = parsedOutput.body;
|
|
2714
|
-
const doc = take(data, {
|
|
2715
|
-
Message: __expectString,
|
|
2716
|
-
Type: __expectString,
|
|
2717
|
-
});
|
|
2718
|
-
Object.assign(contents, doc);
|
|
2719
|
-
const exception = new KMSAccessDeniedException({
|
|
2720
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2721
|
-
...contents,
|
|
2722
|
-
});
|
|
2723
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2724
|
-
};
|
|
2725
|
-
const de_KMSDisabledExceptionRes = async (parsedOutput, context) => {
|
|
2726
|
-
const contents = map({});
|
|
2727
|
-
const data = parsedOutput.body;
|
|
2728
|
-
const doc = take(data, {
|
|
2729
|
-
Message: __expectString,
|
|
2730
|
-
Type: __expectString,
|
|
2731
|
-
});
|
|
2732
|
-
Object.assign(contents, doc);
|
|
2733
|
-
const exception = new KMSDisabledException({
|
|
2734
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2735
|
-
...contents,
|
|
2736
|
-
});
|
|
2737
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2738
|
-
};
|
|
2739
|
-
const de_KMSInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
2740
|
-
const contents = map({});
|
|
2741
|
-
const data = parsedOutput.body;
|
|
2742
|
-
const doc = take(data, {
|
|
2743
|
-
Message: __expectString,
|
|
2744
|
-
Type: __expectString,
|
|
2745
|
-
});
|
|
2746
|
-
Object.assign(contents, doc);
|
|
2747
|
-
const exception = new KMSInvalidStateException({
|
|
2748
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2749
|
-
...contents,
|
|
2750
|
-
});
|
|
2751
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2752
|
-
};
|
|
2753
|
-
const de_KMSNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2754
|
-
const contents = map({});
|
|
2755
|
-
const data = parsedOutput.body;
|
|
2756
|
-
const doc = take(data, {
|
|
2757
|
-
Message: __expectString,
|
|
2758
|
-
Type: __expectString,
|
|
2759
|
-
});
|
|
2760
|
-
Object.assign(contents, doc);
|
|
2761
|
-
const exception = new KMSNotFoundException({
|
|
2762
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2763
|
-
...contents,
|
|
2764
|
-
});
|
|
2765
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2766
|
-
};
|
|
2767
|
-
const de_PolicyLengthExceededExceptionRes = async (parsedOutput, context) => {
|
|
2768
|
-
const contents = map({});
|
|
2769
|
-
const data = parsedOutput.body;
|
|
2770
|
-
const doc = take(data, {
|
|
2771
|
-
Type: __expectString,
|
|
2772
|
-
message: __expectString,
|
|
2773
|
-
});
|
|
2774
|
-
Object.assign(contents, doc);
|
|
2775
|
-
const exception = new PolicyLengthExceededException({
|
|
2776
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2777
|
-
...contents,
|
|
2778
|
-
});
|
|
2779
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2780
|
-
};
|
|
2781
|
-
const de_PreconditionFailedExceptionRes = async (parsedOutput, context) => {
|
|
2782
|
-
const contents = map({});
|
|
2783
|
-
const data = parsedOutput.body;
|
|
2784
|
-
const doc = take(data, {
|
|
2785
|
-
Type: __expectString,
|
|
2786
|
-
message: __expectString,
|
|
2787
|
-
});
|
|
2788
|
-
Object.assign(contents, doc);
|
|
2789
|
-
const exception = new PreconditionFailedException({
|
|
2790
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2791
|
-
...contents,
|
|
2792
|
-
});
|
|
2793
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2794
|
-
};
|
|
2795
|
-
const de_ProvisionedConcurrencyConfigNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2796
|
-
const contents = map({});
|
|
2797
|
-
const data = parsedOutput.body;
|
|
2798
|
-
const doc = take(data, {
|
|
2799
|
-
Type: __expectString,
|
|
2800
|
-
message: __expectString,
|
|
2801
|
-
});
|
|
2802
|
-
Object.assign(contents, doc);
|
|
2803
|
-
const exception = new ProvisionedConcurrencyConfigNotFoundException({
|
|
2804
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2805
|
-
...contents,
|
|
2806
|
-
});
|
|
2807
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2808
|
-
};
|
|
2809
|
-
const de_RecursiveInvocationExceptionRes = async (parsedOutput, context) => {
|
|
2810
|
-
const contents = map({});
|
|
2811
|
-
const data = parsedOutput.body;
|
|
2812
|
-
const doc = take(data, {
|
|
2813
|
-
Message: __expectString,
|
|
2814
|
-
Type: __expectString,
|
|
2815
|
-
});
|
|
2816
|
-
Object.assign(contents, doc);
|
|
2817
|
-
const exception = new RecursiveInvocationException({
|
|
2818
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2819
|
-
...contents,
|
|
2820
|
-
});
|
|
2821
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2822
|
-
};
|
|
2823
|
-
const de_RequestTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
2824
|
-
const contents = map({});
|
|
2825
|
-
const data = parsedOutput.body;
|
|
2826
|
-
const doc = take(data, {
|
|
2827
|
-
Type: __expectString,
|
|
2828
|
-
message: __expectString,
|
|
2829
|
-
});
|
|
2830
|
-
Object.assign(contents, doc);
|
|
2831
|
-
const exception = new RequestTooLargeException({
|
|
2832
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2833
|
-
...contents,
|
|
2834
|
-
});
|
|
2835
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2836
|
-
};
|
|
2837
|
-
const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
|
|
2838
|
-
const contents = map({});
|
|
2839
|
-
const data = parsedOutput.body;
|
|
2840
|
-
const doc = take(data, {
|
|
2841
|
-
Type: __expectString,
|
|
2842
|
-
message: __expectString,
|
|
2843
|
-
});
|
|
2844
|
-
Object.assign(contents, doc);
|
|
2845
|
-
const exception = new ResourceConflictException({
|
|
2846
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2847
|
-
...contents,
|
|
2848
|
-
});
|
|
2849
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2850
|
-
};
|
|
2851
|
-
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
2852
|
-
const contents = map({});
|
|
2853
|
-
const data = parsedOutput.body;
|
|
2854
|
-
const doc = take(data, {
|
|
2855
|
-
Message: __expectString,
|
|
2856
|
-
Type: __expectString,
|
|
2857
|
-
});
|
|
2858
|
-
Object.assign(contents, doc);
|
|
2859
|
-
const exception = new ResourceInUseException({
|
|
2860
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2861
|
-
...contents,
|
|
2862
|
-
});
|
|
2863
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2864
|
-
};
|
|
2865
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2866
|
-
const contents = map({});
|
|
2867
|
-
const data = parsedOutput.body;
|
|
2868
|
-
const doc = take(data, {
|
|
2869
|
-
Message: __expectString,
|
|
2870
|
-
Type: __expectString,
|
|
2871
|
-
});
|
|
2872
|
-
Object.assign(contents, doc);
|
|
2873
|
-
const exception = new ResourceNotFoundException({
|
|
2874
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2875
|
-
...contents,
|
|
2876
|
-
});
|
|
2877
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2878
|
-
};
|
|
2879
|
-
const de_ResourceNotReadyExceptionRes = async (parsedOutput, context) => {
|
|
2880
|
-
const contents = map({});
|
|
2881
|
-
const data = parsedOutput.body;
|
|
2882
|
-
const doc = take(data, {
|
|
2883
|
-
Type: __expectString,
|
|
2884
|
-
message: __expectString,
|
|
2885
|
-
});
|
|
2886
|
-
Object.assign(contents, doc);
|
|
2887
|
-
const exception = new ResourceNotReadyException({
|
|
2888
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2889
|
-
...contents,
|
|
2890
|
-
});
|
|
2891
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2892
|
-
};
|
|
2893
|
-
const de_SerializedRequestEntityTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
2894
|
-
const contents = map({});
|
|
2895
|
-
const data = parsedOutput.body;
|
|
2896
|
-
const doc = take(data, {
|
|
2897
|
-
Type: __expectString,
|
|
2898
|
-
message: __expectString,
|
|
2899
|
-
});
|
|
2900
|
-
Object.assign(contents, doc);
|
|
2901
|
-
const exception = new SerializedRequestEntityTooLargeException({
|
|
2902
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2903
|
-
...contents,
|
|
2904
|
-
});
|
|
2905
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2906
|
-
};
|
|
2907
|
-
const de_ServiceExceptionRes = async (parsedOutput, context) => {
|
|
2908
|
-
const contents = map({});
|
|
2909
|
-
const data = parsedOutput.body;
|
|
2910
|
-
const doc = take(data, {
|
|
2911
|
-
Message: __expectString,
|
|
2912
|
-
Type: __expectString,
|
|
2913
|
-
});
|
|
2914
|
-
Object.assign(contents, doc);
|
|
2915
|
-
const exception = new ServiceException({
|
|
2916
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2917
|
-
...contents,
|
|
2918
|
-
});
|
|
2919
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2920
|
-
};
|
|
2921
|
-
const de_SnapStartExceptionRes = async (parsedOutput, context) => {
|
|
2922
|
-
const contents = map({});
|
|
2923
|
-
const data = parsedOutput.body;
|
|
2924
|
-
const doc = take(data, {
|
|
2925
|
-
Message: __expectString,
|
|
2926
|
-
Type: __expectString,
|
|
2927
|
-
});
|
|
2928
|
-
Object.assign(contents, doc);
|
|
2929
|
-
const exception = new SnapStartException({
|
|
2930
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2931
|
-
...contents,
|
|
2932
|
-
});
|
|
2933
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2934
|
-
};
|
|
2935
|
-
const de_SnapStartNotReadyExceptionRes = async (parsedOutput, context) => {
|
|
2936
|
-
const contents = map({});
|
|
2937
|
-
const data = parsedOutput.body;
|
|
2938
|
-
const doc = take(data, {
|
|
2939
|
-
Message: __expectString,
|
|
2940
|
-
Type: __expectString,
|
|
2941
|
-
});
|
|
2942
|
-
Object.assign(contents, doc);
|
|
2943
|
-
const exception = new SnapStartNotReadyException({
|
|
2944
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2945
|
-
...contents,
|
|
2946
|
-
});
|
|
2947
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2948
|
-
};
|
|
2949
|
-
const de_SnapStartTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
2950
|
-
const contents = map({});
|
|
2951
|
-
const data = parsedOutput.body;
|
|
2952
|
-
const doc = take(data, {
|
|
2953
|
-
Message: __expectString,
|
|
2954
|
-
Type: __expectString,
|
|
2955
|
-
});
|
|
2956
|
-
Object.assign(contents, doc);
|
|
2957
|
-
const exception = new SnapStartTimeoutException({
|
|
2958
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2959
|
-
...contents,
|
|
2960
|
-
});
|
|
2961
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2962
|
-
};
|
|
2963
|
-
const de_SubnetIPAddressLimitReachedExceptionRes = async (parsedOutput, context) => {
|
|
2964
|
-
const contents = map({});
|
|
2965
|
-
const data = parsedOutput.body;
|
|
2966
|
-
const doc = take(data, {
|
|
2967
|
-
Message: __expectString,
|
|
2968
|
-
Type: __expectString,
|
|
2969
|
-
});
|
|
2970
|
-
Object.assign(contents, doc);
|
|
2971
|
-
const exception = new SubnetIPAddressLimitReachedException({
|
|
2972
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2973
|
-
...contents,
|
|
2974
|
-
});
|
|
2975
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2976
|
-
};
|
|
2977
|
-
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
2978
|
-
const contents = map({
|
|
2979
|
-
[_rAS]: [, parsedOutput.headers[_ra]],
|
|
2980
|
-
});
|
|
2981
|
-
const data = parsedOutput.body;
|
|
2982
|
-
const doc = take(data, {
|
|
2983
|
-
Reason: __expectString,
|
|
2984
|
-
Type: __expectString,
|
|
2985
|
-
message: __expectString,
|
|
2986
|
-
});
|
|
2987
|
-
Object.assign(contents, doc);
|
|
2988
|
-
const exception = new TooManyRequestsException({
|
|
2989
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2990
|
-
...contents,
|
|
2991
|
-
});
|
|
2992
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
2993
|
-
};
|
|
2994
|
-
const de_UnsupportedMediaTypeExceptionRes = async (parsedOutput, context) => {
|
|
2995
|
-
const contents = map({});
|
|
2996
|
-
const data = parsedOutput.body;
|
|
2997
|
-
const doc = take(data, {
|
|
2998
|
-
Type: __expectString,
|
|
2999
|
-
message: __expectString,
|
|
3000
|
-
});
|
|
3001
|
-
Object.assign(contents, doc);
|
|
3002
|
-
const exception = new UnsupportedMediaTypeException({
|
|
3003
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3004
|
-
...contents,
|
|
3005
|
-
});
|
|
3006
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
3007
|
-
};
|
|
3008
|
-
const de_InvokeWithResponseStreamResponseEvent = (output, context) => {
|
|
3009
|
-
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
3010
|
-
if (event["PayloadChunk"] != null) {
|
|
3011
|
-
return {
|
|
3012
|
-
PayloadChunk: await de_InvokeResponseStreamUpdate_event(event["PayloadChunk"], context),
|
|
3013
|
-
};
|
|
3014
|
-
}
|
|
3015
|
-
if (event["InvokeComplete"] != null) {
|
|
3016
|
-
return {
|
|
3017
|
-
InvokeComplete: await de_InvokeWithResponseStreamCompleteEvent_event(event["InvokeComplete"], context),
|
|
3018
|
-
};
|
|
3019
|
-
}
|
|
3020
|
-
return { $unknown: event };
|
|
3021
|
-
});
|
|
3022
|
-
};
|
|
3023
|
-
const de_InvokeResponseStreamUpdate_event = async (output, context) => {
|
|
3024
|
-
const contents = {};
|
|
3025
|
-
contents.Payload = output.body;
|
|
3026
|
-
return contents;
|
|
3027
|
-
};
|
|
3028
|
-
const de_InvokeWithResponseStreamCompleteEvent_event = async (output, context) => {
|
|
3029
|
-
const contents = {};
|
|
3030
|
-
const data = await parseBody(output.body, context);
|
|
3031
|
-
Object.assign(contents, _json(data));
|
|
3032
|
-
return contents;
|
|
3033
|
-
};
|
|
3034
|
-
const se_AdditionalVersionWeights = (input, context) => {
|
|
3035
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3036
|
-
if (value === null) {
|
|
3037
|
-
return acc;
|
|
3038
|
-
}
|
|
3039
|
-
acc[key] = __serializeFloat(value);
|
|
3040
|
-
return acc;
|
|
3041
|
-
}, {});
|
|
3042
|
-
};
|
|
3043
|
-
const se_AliasRoutingConfiguration = (input, context) => {
|
|
3044
|
-
return take(input, {
|
|
3045
|
-
AdditionalVersionWeights: (_) => se_AdditionalVersionWeights(_, context),
|
|
3046
|
-
});
|
|
3047
|
-
};
|
|
3048
|
-
const se_FunctionCode = (input, context) => {
|
|
3049
|
-
return take(input, {
|
|
3050
|
-
ImageUri: [],
|
|
3051
|
-
S3Bucket: [],
|
|
3052
|
-
S3Key: [],
|
|
3053
|
-
S3ObjectVersion: [],
|
|
3054
|
-
SourceKMSKeyArn: [],
|
|
3055
|
-
ZipFile: context.base64Encoder,
|
|
3056
|
-
});
|
|
3057
|
-
};
|
|
3058
|
-
const se_LayerVersionContentInput = (input, context) => {
|
|
3059
|
-
return take(input, {
|
|
3060
|
-
S3Bucket: [],
|
|
3061
|
-
S3Key: [],
|
|
3062
|
-
S3ObjectVersion: [],
|
|
3063
|
-
ZipFile: context.base64Encoder,
|
|
3064
|
-
});
|
|
3065
|
-
};
|
|
3066
|
-
const de_AdditionalVersionWeights = (output, context) => {
|
|
3067
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3068
|
-
if (value === null) {
|
|
3069
|
-
return acc;
|
|
3070
|
-
}
|
|
3071
|
-
acc[key] = __limitedParseDouble(value);
|
|
3072
|
-
return acc;
|
|
3073
|
-
}, {});
|
|
3074
|
-
};
|
|
3075
|
-
const de_AliasConfiguration = (output, context) => {
|
|
3076
|
-
return take(output, {
|
|
3077
|
-
AliasArn: __expectString,
|
|
3078
|
-
Description: __expectString,
|
|
3079
|
-
FunctionVersion: __expectString,
|
|
3080
|
-
Name: __expectString,
|
|
3081
|
-
RevisionId: __expectString,
|
|
3082
|
-
RoutingConfig: (_) => de_AliasRoutingConfiguration(_, context),
|
|
3083
|
-
});
|
|
3084
|
-
};
|
|
3085
|
-
const de_AliasList = (output, context) => {
|
|
3086
|
-
const retVal = (output || [])
|
|
3087
|
-
.filter((e) => e != null)
|
|
3088
|
-
.map((entry) => {
|
|
3089
|
-
return de_AliasConfiguration(entry, context);
|
|
3090
|
-
});
|
|
3091
|
-
return retVal;
|
|
3092
|
-
};
|
|
3093
|
-
const de_AliasRoutingConfiguration = (output, context) => {
|
|
3094
|
-
return take(output, {
|
|
3095
|
-
AdditionalVersionWeights: (_) => de_AdditionalVersionWeights(_, context),
|
|
3096
|
-
});
|
|
3097
|
-
};
|
|
3098
|
-
const de_EventSourceMappingConfiguration = (output, context) => {
|
|
3099
|
-
return take(output, {
|
|
3100
|
-
AmazonManagedKafkaEventSourceConfig: _json,
|
|
3101
|
-
BatchSize: __expectInt32,
|
|
3102
|
-
BisectBatchOnFunctionError: __expectBoolean,
|
|
3103
|
-
DestinationConfig: _json,
|
|
3104
|
-
DocumentDBEventSourceConfig: _json,
|
|
3105
|
-
EventSourceArn: __expectString,
|
|
3106
|
-
EventSourceMappingArn: __expectString,
|
|
3107
|
-
FilterCriteria: _json,
|
|
3108
|
-
FilterCriteriaError: _json,
|
|
3109
|
-
FunctionArn: __expectString,
|
|
3110
|
-
FunctionResponseTypes: _json,
|
|
3111
|
-
KMSKeyArn: __expectString,
|
|
3112
|
-
LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3113
|
-
LastProcessingResult: __expectString,
|
|
3114
|
-
MaximumBatchingWindowInSeconds: __expectInt32,
|
|
3115
|
-
MaximumRecordAgeInSeconds: __expectInt32,
|
|
3116
|
-
MaximumRetryAttempts: __expectInt32,
|
|
3117
|
-
MetricsConfig: _json,
|
|
3118
|
-
ParallelizationFactor: __expectInt32,
|
|
3119
|
-
ProvisionedPollerConfig: _json,
|
|
3120
|
-
Queues: _json,
|
|
3121
|
-
ScalingConfig: _json,
|
|
3122
|
-
SelfManagedEventSource: _json,
|
|
3123
|
-
SelfManagedKafkaEventSourceConfig: _json,
|
|
3124
|
-
SourceAccessConfigurations: _json,
|
|
3125
|
-
StartingPosition: __expectString,
|
|
3126
|
-
StartingPositionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3127
|
-
State: __expectString,
|
|
3128
|
-
StateTransitionReason: __expectString,
|
|
3129
|
-
Topics: _json,
|
|
3130
|
-
TumblingWindowInSeconds: __expectInt32,
|
|
3131
|
-
UUID: __expectString,
|
|
3132
|
-
});
|
|
3133
|
-
};
|
|
3134
|
-
const de_EventSourceMappingsList = (output, context) => {
|
|
3135
|
-
const retVal = (output || [])
|
|
3136
|
-
.filter((e) => e != null)
|
|
3137
|
-
.map((entry) => {
|
|
3138
|
-
return de_EventSourceMappingConfiguration(entry, context);
|
|
3139
|
-
});
|
|
3140
|
-
return retVal;
|
|
3141
|
-
};
|
|
3142
|
-
const de_FunctionEventInvokeConfig = (output, context) => {
|
|
3143
|
-
return take(output, {
|
|
3144
|
-
DestinationConfig: _json,
|
|
3145
|
-
FunctionArn: __expectString,
|
|
3146
|
-
LastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3147
|
-
MaximumEventAgeInSeconds: __expectInt32,
|
|
3148
|
-
MaximumRetryAttempts: __expectInt32,
|
|
3149
|
-
});
|
|
3150
|
-
};
|
|
3151
|
-
const de_FunctionEventInvokeConfigList = (output, context) => {
|
|
3152
|
-
const retVal = (output || [])
|
|
3153
|
-
.filter((e) => e != null)
|
|
3154
|
-
.map((entry) => {
|
|
3155
|
-
return de_FunctionEventInvokeConfig(entry, context);
|
|
3156
|
-
});
|
|
3157
|
-
return retVal;
|
|
3158
|
-
};
|
|
3159
|
-
const deserializeMetadata = (output) => ({
|
|
3160
|
-
httpStatusCode: output.statusCode,
|
|
3161
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3162
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3163
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3164
|
-
});
|
|
3165
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3166
|
-
const _A = "Arn";
|
|
3167
|
-
const _CA = "CompatibleArchitecture";
|
|
3168
|
-
const _CC = "ClientContext";
|
|
3169
|
-
const _CR = "CompatibleRuntime";
|
|
3170
|
-
const _ESA = "EventSourceArn";
|
|
3171
|
-
const _EV = "ExecutedVersion";
|
|
3172
|
-
const _FE = "FunctionError";
|
|
3173
|
-
const _FN = "FunctionName";
|
|
3174
|
-
const _FV = "FunctionVersion";
|
|
3175
|
-
const _IT = "InvocationType";
|
|
3176
|
-
const _L = "List";
|
|
3177
|
-
const _LR = "LogResult";
|
|
3178
|
-
const _LT = "LogType";
|
|
3179
|
-
const _M = "Marker";
|
|
3180
|
-
const _MI = "MaxItems";
|
|
3181
|
-
const _MR = "MasterRegion";
|
|
3182
|
-
const _Q = "Qualifier";
|
|
3183
|
-
const _RI = "RevisionId";
|
|
3184
|
-
const _RSCT = "ResponseStreamContentType";
|
|
3185
|
-
const _TK = "TagKeys";
|
|
3186
|
-
const _ct = "content-type";
|
|
3187
|
-
const _f = "find";
|
|
3188
|
-
const _rAS = "retryAfterSeconds";
|
|
3189
|
-
const _ra = "retry-after";
|
|
3190
|
-
const _tK = "tagKeys";
|
|
3191
|
-
const _xacc = "x-amz-client-context";
|
|
3192
|
-
const _xaev = "x-amz-executed-version";
|
|
3193
|
-
const _xafe = "x-amz-function-error";
|
|
3194
|
-
const _xait = "x-amz-invocation-type";
|
|
3195
|
-
const _xalr = "x-amz-log-result";
|
|
3196
|
-
const _xalt = "x-amz-log-type";
|