@aws-sdk/client-lambda 3.121.0 → 3.130.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +214 -345
- package/dist-es/protocols/Aws_restJson1.js +123 -254
- package/package.json +27 -27
|
@@ -36,8 +36,7 @@ export var serializeAws_restJson1AddLayerVersionPermissionCommand = function (in
|
|
|
36
36
|
throw new Error("No value provided for input HTTP label: VersionNumber.");
|
|
37
37
|
}
|
|
38
38
|
query = __assign({}, (input.RevisionId !== undefined && { RevisionId: input.RevisionId }));
|
|
39
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Action
|
|
40
|
-
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.Principal !== undefined && input.Principal !== null && { Principal: input.Principal })), (input.StatementId !== undefined && input.StatementId !== null && { StatementId: input.StatementId })));
|
|
39
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.Principal != null && { Principal: input.Principal })), (input.StatementId != null && { StatementId: input.StatementId })));
|
|
41
40
|
return [2, new __HttpRequest({
|
|
42
41
|
protocol: protocol,
|
|
43
42
|
hostname: hostname,
|
|
@@ -74,10 +73,7 @@ export var serializeAws_restJson1AddPermissionCommand = function (input, context
|
|
|
74
73
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
75
74
|
}
|
|
76
75
|
query = __assign({}, (input.Qualifier !== undefined && { Qualifier: input.Qualifier }));
|
|
77
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Action
|
|
78
|
-
input.EventSourceToken !== null && { EventSourceToken: input.EventSourceToken })), (input.FunctionUrlAuthType !== undefined &&
|
|
79
|
-
input.FunctionUrlAuthType !== null && { FunctionUrlAuthType: input.FunctionUrlAuthType })), (input.Principal !== undefined && input.Principal !== null && { Principal: input.Principal })), (input.PrincipalOrgID !== undefined &&
|
|
80
|
-
input.PrincipalOrgID !== null && { PrincipalOrgID: input.PrincipalOrgID })), (input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId })), (input.SourceAccount !== undefined && input.SourceAccount !== null && { SourceAccount: input.SourceAccount })), (input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn })), (input.StatementId !== undefined && input.StatementId !== null && { StatementId: input.StatementId })));
|
|
76
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.EventSourceToken != null && { EventSourceToken: input.EventSourceToken })), (input.FunctionUrlAuthType != null && { FunctionUrlAuthType: input.FunctionUrlAuthType })), (input.Principal != null && { Principal: input.Principal })), (input.PrincipalOrgID != null && { PrincipalOrgID: input.PrincipalOrgID })), (input.RevisionId != null && { RevisionId: input.RevisionId })), (input.SourceAccount != null && { SourceAccount: input.SourceAccount })), (input.SourceArn != null && { SourceArn: input.SourceArn })), (input.StatementId != null && { StatementId: input.StatementId })));
|
|
81
77
|
return [2, new __HttpRequest({
|
|
82
78
|
protocol: protocol,
|
|
83
79
|
hostname: hostname,
|
|
@@ -113,9 +109,7 @@ export var serializeAws_restJson1CreateAliasCommand = function (input, context)
|
|
|
113
109
|
else {
|
|
114
110
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
115
111
|
}
|
|
116
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description
|
|
117
|
-
input.FunctionVersion !== null && { FunctionVersion: input.FunctionVersion })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RoutingConfig !== undefined &&
|
|
118
|
-
input.RoutingConfig !== null && {
|
|
112
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.FunctionVersion != null && { FunctionVersion: input.FunctionVersion })), (input.Name != null && { Name: input.Name })), (input.RoutingConfig != null && {
|
|
119
113
|
RoutingConfig: serializeAws_restJson1AliasRoutingConfiguration(input.RoutingConfig, context),
|
|
120
114
|
})));
|
|
121
115
|
return [2, new __HttpRequest({
|
|
@@ -141,13 +135,11 @@ export var serializeAws_restJson1CreateCodeSigningConfigCommand = function (inpu
|
|
|
141
135
|
"content-type": "application/json",
|
|
142
136
|
};
|
|
143
137
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2020-04-22/code-signing-configs";
|
|
144
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.AllowedPublishers
|
|
145
|
-
input.AllowedPublishers !== null && {
|
|
138
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.AllowedPublishers != null && {
|
|
146
139
|
AllowedPublishers: serializeAws_restJson1AllowedPublishers(input.AllowedPublishers, context),
|
|
147
|
-
})), (input.CodeSigningPolicies
|
|
148
|
-
input.CodeSigningPolicies !== null && {
|
|
140
|
+
})), (input.CodeSigningPolicies != null && {
|
|
149
141
|
CodeSigningPolicies: serializeAws_restJson1CodeSigningPolicies(input.CodeSigningPolicies, context),
|
|
150
|
-
})), (input.Description
|
|
142
|
+
})), (input.Description != null && { Description: input.Description })));
|
|
151
143
|
return [2, new __HttpRequest({
|
|
152
144
|
protocol: protocol,
|
|
153
145
|
hostname: hostname,
|
|
@@ -171,37 +163,21 @@ export var serializeAws_restJson1CreateEventSourceMappingCommand = function (inp
|
|
|
171
163
|
"content-type": "application/json",
|
|
172
164
|
};
|
|
173
165
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/event-source-mappings";
|
|
174
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BatchSize
|
|
175
|
-
input.BisectBatchOnFunctionError !== null && { BisectBatchOnFunctionError: input.BisectBatchOnFunctionError })), (input.DestinationConfig !== undefined &&
|
|
176
|
-
input.DestinationConfig !== null && {
|
|
166
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BatchSize != null && { BatchSize: input.BatchSize })), (input.BisectBatchOnFunctionError != null && { BisectBatchOnFunctionError: input.BisectBatchOnFunctionError })), (input.DestinationConfig != null && {
|
|
177
167
|
DestinationConfig: serializeAws_restJson1DestinationConfig(input.DestinationConfig, context),
|
|
178
|
-
})), (input.Enabled
|
|
179
|
-
input.EventSourceArn !== null && { EventSourceArn: input.EventSourceArn })), (input.FilterCriteria !== undefined &&
|
|
180
|
-
input.FilterCriteria !== null && {
|
|
168
|
+
})), (input.Enabled != null && { Enabled: input.Enabled })), (input.EventSourceArn != null && { EventSourceArn: input.EventSourceArn })), (input.FilterCriteria != null && {
|
|
181
169
|
FilterCriteria: serializeAws_restJson1FilterCriteria(input.FilterCriteria, context),
|
|
182
|
-
})), (input.FunctionName
|
|
183
|
-
input.FunctionResponseTypes !== null && {
|
|
170
|
+
})), (input.FunctionName != null && { FunctionName: input.FunctionName })), (input.FunctionResponseTypes != null && {
|
|
184
171
|
FunctionResponseTypes: serializeAws_restJson1FunctionResponseTypeList(input.FunctionResponseTypes, context),
|
|
185
|
-
})), (input.MaximumBatchingWindowInSeconds
|
|
186
|
-
input.MaximumBatchingWindowInSeconds !== null && {
|
|
172
|
+
})), (input.MaximumBatchingWindowInSeconds != null && {
|
|
187
173
|
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
188
|
-
})), (input.MaximumRecordAgeInSeconds
|
|
189
|
-
input.MaximumRecordAgeInSeconds !== null && { MaximumRecordAgeInSeconds: input.MaximumRecordAgeInSeconds })), (input.MaximumRetryAttempts !== undefined &&
|
|
190
|
-
input.MaximumRetryAttempts !== null && { MaximumRetryAttempts: input.MaximumRetryAttempts })), (input.ParallelizationFactor !== undefined &&
|
|
191
|
-
input.ParallelizationFactor !== null && { ParallelizationFactor: input.ParallelizationFactor })), (input.Queues !== undefined &&
|
|
192
|
-
input.Queues !== null && { Queues: serializeAws_restJson1Queues(input.Queues, context) })), (input.SelfManagedEventSource !== undefined &&
|
|
193
|
-
input.SelfManagedEventSource !== null && {
|
|
174
|
+
})), (input.MaximumRecordAgeInSeconds != null && { MaximumRecordAgeInSeconds: input.MaximumRecordAgeInSeconds })), (input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts })), (input.ParallelizationFactor != null && { ParallelizationFactor: input.ParallelizationFactor })), (input.Queues != null && { Queues: serializeAws_restJson1Queues(input.Queues, context) })), (input.SelfManagedEventSource != null && {
|
|
194
175
|
SelfManagedEventSource: serializeAws_restJson1SelfManagedEventSource(input.SelfManagedEventSource, context),
|
|
195
|
-
})), (input.SourceAccessConfigurations
|
|
196
|
-
input.SourceAccessConfigurations !== null && {
|
|
176
|
+
})), (input.SourceAccessConfigurations != null && {
|
|
197
177
|
SourceAccessConfigurations: serializeAws_restJson1SourceAccessConfigurations(input.SourceAccessConfigurations, context),
|
|
198
|
-
})), (input.StartingPosition
|
|
199
|
-
input.StartingPosition !== null && { StartingPosition: input.StartingPosition })), (input.StartingPositionTimestamp !== undefined &&
|
|
200
|
-
input.StartingPositionTimestamp !== null && {
|
|
178
|
+
})), (input.StartingPosition != null && { StartingPosition: input.StartingPosition })), (input.StartingPositionTimestamp != null && {
|
|
201
179
|
StartingPositionTimestamp: Math.round(input.StartingPositionTimestamp.getTime() / 1000),
|
|
202
|
-
})), (input.Topics
|
|
203
|
-
input.Topics !== null && { Topics: serializeAws_restJson1Topics(input.Topics, context) })), (input.TumblingWindowInSeconds !== undefined &&
|
|
204
|
-
input.TumblingWindowInSeconds !== null && { TumblingWindowInSeconds: input.TumblingWindowInSeconds })));
|
|
180
|
+
})), (input.Topics != null && { Topics: serializeAws_restJson1Topics(input.Topics, context) })), (input.TumblingWindowInSeconds != null && { TumblingWindowInSeconds: input.TumblingWindowInSeconds })));
|
|
205
181
|
return [2, new __HttpRequest({
|
|
206
182
|
protocol: protocol,
|
|
207
183
|
hostname: hostname,
|
|
@@ -225,28 +201,17 @@ export var serializeAws_restJson1CreateFunctionCommand = function (input, contex
|
|
|
225
201
|
"content-type": "application/json",
|
|
226
202
|
};
|
|
227
203
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-03-31/functions";
|
|
228
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Architectures
|
|
229
|
-
input.Architectures !== null && {
|
|
204
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Architectures != null && {
|
|
230
205
|
Architectures: serializeAws_restJson1ArchitecturesList(input.Architectures, context),
|
|
231
|
-
})), (input.Code
|
|
232
|
-
input.Code !== null && { Code: serializeAws_restJson1FunctionCode(input.Code, context) })), (input.CodeSigningConfigArn !== undefined &&
|
|
233
|
-
input.CodeSigningConfigArn !== null && { CodeSigningConfigArn: input.CodeSigningConfigArn })), (input.DeadLetterConfig !== undefined &&
|
|
234
|
-
input.DeadLetterConfig !== null && {
|
|
206
|
+
})), (input.Code != null && { Code: serializeAws_restJson1FunctionCode(input.Code, context) })), (input.CodeSigningConfigArn != null && { CodeSigningConfigArn: input.CodeSigningConfigArn })), (input.DeadLetterConfig != null && {
|
|
235
207
|
DeadLetterConfig: serializeAws_restJson1DeadLetterConfig(input.DeadLetterConfig, context),
|
|
236
|
-
})), (input.Description
|
|
237
|
-
input.Environment !== null && { Environment: serializeAws_restJson1Environment(input.Environment, context) })), (input.EphemeralStorage !== undefined &&
|
|
238
|
-
input.EphemeralStorage !== null && {
|
|
208
|
+
})), (input.Description != null && { Description: input.Description })), (input.Environment != null && { Environment: serializeAws_restJson1Environment(input.Environment, context) })), (input.EphemeralStorage != null && {
|
|
239
209
|
EphemeralStorage: serializeAws_restJson1EphemeralStorage(input.EphemeralStorage, context),
|
|
240
|
-
})), (input.FileSystemConfigs
|
|
241
|
-
input.FileSystemConfigs !== null && {
|
|
210
|
+
})), (input.FileSystemConfigs != null && {
|
|
242
211
|
FileSystemConfigs: serializeAws_restJson1FileSystemConfigList(input.FileSystemConfigs, context),
|
|
243
|
-
})), (input.FunctionName
|
|
244
|
-
input.ImageConfig !== null && { ImageConfig: serializeAws_restJson1ImageConfig(input.ImageConfig, context) })), (input.KMSKeyArn !== undefined && input.KMSKeyArn !== null && { KMSKeyArn: input.KMSKeyArn })), (input.Layers !== undefined &&
|
|
245
|
-
input.Layers !== null && { Layers: serializeAws_restJson1LayerList(input.Layers, context) })), (input.MemorySize !== undefined && input.MemorySize !== null && { MemorySize: input.MemorySize })), (input.PackageType !== undefined && input.PackageType !== null && { PackageType: input.PackageType })), (input.Publish !== undefined && input.Publish !== null && { Publish: input.Publish })), (input.Role !== undefined && input.Role !== null && { Role: input.Role })), (input.Runtime !== undefined && input.Runtime !== null && { Runtime: input.Runtime })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })), (input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout })), (input.TracingConfig !== undefined &&
|
|
246
|
-
input.TracingConfig !== null && {
|
|
212
|
+
})), (input.FunctionName != null && { FunctionName: input.FunctionName })), (input.Handler != null && { Handler: input.Handler })), (input.ImageConfig != null && { ImageConfig: serializeAws_restJson1ImageConfig(input.ImageConfig, context) })), (input.KMSKeyArn != null && { KMSKeyArn: input.KMSKeyArn })), (input.Layers != null && { Layers: serializeAws_restJson1LayerList(input.Layers, context) })), (input.MemorySize != null && { MemorySize: input.MemorySize })), (input.PackageType != null && { PackageType: input.PackageType })), (input.Publish != null && { Publish: input.Publish })), (input.Role != null && { Role: input.Role })), (input.Runtime != null && { Runtime: input.Runtime })), (input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })), (input.Timeout != null && { Timeout: input.Timeout })), (input.TracingConfig != null && {
|
|
247
213
|
TracingConfig: serializeAws_restJson1TracingConfig(input.TracingConfig, context),
|
|
248
|
-
})), (input.VpcConfig
|
|
249
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_restJson1VpcConfig(input.VpcConfig, context) })));
|
|
214
|
+
})), (input.VpcConfig != null && { VpcConfig: serializeAws_restJson1VpcConfig(input.VpcConfig, context) })));
|
|
250
215
|
return [2, new __HttpRequest({
|
|
251
216
|
protocol: protocol,
|
|
252
217
|
hostname: hostname,
|
|
@@ -281,7 +246,7 @@ export var serializeAws_restJson1CreateFunctionUrlConfigCommand = function (inpu
|
|
|
281
246
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
282
247
|
}
|
|
283
248
|
query = __assign({}, (input.Qualifier !== undefined && { Qualifier: input.Qualifier }));
|
|
284
|
-
body = JSON.stringify(__assign(__assign({}, (input.AuthType
|
|
249
|
+
body = JSON.stringify(__assign(__assign({}, (input.AuthType != null && { AuthType: input.AuthType })), (input.Cors != null && { Cors: serializeAws_restJson1Cors(input.Cors, context) })));
|
|
285
250
|
return [2, new __HttpRequest({
|
|
286
251
|
protocol: protocol,
|
|
287
252
|
hostname: hostname,
|
|
@@ -1596,14 +1561,11 @@ export var serializeAws_restJson1PublishLayerVersionCommand = function (input, c
|
|
|
1596
1561
|
else {
|
|
1597
1562
|
throw new Error("No value provided for input HTTP label: LayerName.");
|
|
1598
1563
|
}
|
|
1599
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.CompatibleArchitectures
|
|
1600
|
-
input.CompatibleArchitectures !== null && {
|
|
1564
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.CompatibleArchitectures != null && {
|
|
1601
1565
|
CompatibleArchitectures: serializeAws_restJson1CompatibleArchitectures(input.CompatibleArchitectures, context),
|
|
1602
|
-
})), (input.CompatibleRuntimes
|
|
1603
|
-
input.CompatibleRuntimes !== null && {
|
|
1566
|
+
})), (input.CompatibleRuntimes != null && {
|
|
1604
1567
|
CompatibleRuntimes: serializeAws_restJson1CompatibleRuntimes(input.CompatibleRuntimes, context),
|
|
1605
|
-
})), (input.Content
|
|
1606
|
-
input.Content !== null && { Content: serializeAws_restJson1LayerVersionContentInput(input.Content, context) })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.LicenseInfo !== undefined && input.LicenseInfo !== null && { LicenseInfo: input.LicenseInfo })));
|
|
1568
|
+
})), (input.Content != null && { Content: serializeAws_restJson1LayerVersionContentInput(input.Content, context) })), (input.Description != null && { Description: input.Description })), (input.LicenseInfo != null && { LicenseInfo: input.LicenseInfo })));
|
|
1607
1569
|
return [2, new __HttpRequest({
|
|
1608
1570
|
protocol: protocol,
|
|
1609
1571
|
hostname: hostname,
|
|
@@ -1638,7 +1600,7 @@ export var serializeAws_restJson1PublishVersionCommand = function (input, contex
|
|
|
1638
1600
|
else {
|
|
1639
1601
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
1640
1602
|
}
|
|
1641
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.CodeSha256
|
|
1603
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.CodeSha256 != null && { CodeSha256: input.CodeSha256 })), (input.Description != null && { Description: input.Description })), (input.RevisionId != null && { RevisionId: input.RevisionId })));
|
|
1642
1604
|
return [2, new __HttpRequest({
|
|
1643
1605
|
protocol: protocol,
|
|
1644
1606
|
hostname: hostname,
|
|
@@ -1673,8 +1635,7 @@ export var serializeAws_restJson1PutFunctionCodeSigningConfigCommand = function
|
|
|
1673
1635
|
else {
|
|
1674
1636
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
1675
1637
|
}
|
|
1676
|
-
body = JSON.stringify(__assign({}, (input.CodeSigningConfigArn
|
|
1677
|
-
input.CodeSigningConfigArn !== null && { CodeSigningConfigArn: input.CodeSigningConfigArn })));
|
|
1638
|
+
body = JSON.stringify(__assign({}, (input.CodeSigningConfigArn != null && { CodeSigningConfigArn: input.CodeSigningConfigArn })));
|
|
1678
1639
|
return [2, new __HttpRequest({
|
|
1679
1640
|
protocol: protocol,
|
|
1680
1641
|
hostname: hostname,
|
|
@@ -1709,8 +1670,7 @@ export var serializeAws_restJson1PutFunctionConcurrencyCommand = function (input
|
|
|
1709
1670
|
else {
|
|
1710
1671
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
1711
1672
|
}
|
|
1712
|
-
body = JSON.stringify(__assign({}, (input.ReservedConcurrentExecutions
|
|
1713
|
-
input.ReservedConcurrentExecutions !== null && {
|
|
1673
|
+
body = JSON.stringify(__assign({}, (input.ReservedConcurrentExecutions != null && {
|
|
1714
1674
|
ReservedConcurrentExecutions: input.ReservedConcurrentExecutions,
|
|
1715
1675
|
})));
|
|
1716
1676
|
return [2, new __HttpRequest({
|
|
@@ -1748,12 +1708,9 @@ export var serializeAws_restJson1PutFunctionEventInvokeConfigCommand = function
|
|
|
1748
1708
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
1749
1709
|
}
|
|
1750
1710
|
query = __assign({}, (input.Qualifier !== undefined && { Qualifier: input.Qualifier }));
|
|
1751
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.DestinationConfig
|
|
1752
|
-
input.DestinationConfig !== null && {
|
|
1711
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.DestinationConfig != null && {
|
|
1753
1712
|
DestinationConfig: serializeAws_restJson1DestinationConfig(input.DestinationConfig, context),
|
|
1754
|
-
})), (input.MaximumEventAgeInSeconds
|
|
1755
|
-
input.MaximumEventAgeInSeconds !== null && { MaximumEventAgeInSeconds: input.MaximumEventAgeInSeconds })), (input.MaximumRetryAttempts !== undefined &&
|
|
1756
|
-
input.MaximumRetryAttempts !== null && { MaximumRetryAttempts: input.MaximumRetryAttempts })));
|
|
1713
|
+
})), (input.MaximumEventAgeInSeconds != null && { MaximumEventAgeInSeconds: input.MaximumEventAgeInSeconds })), (input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts })));
|
|
1757
1714
|
return [2, new __HttpRequest({
|
|
1758
1715
|
protocol: protocol,
|
|
1759
1716
|
hostname: hostname,
|
|
@@ -1790,8 +1747,7 @@ export var serializeAws_restJson1PutProvisionedConcurrencyConfigCommand = functi
|
|
|
1790
1747
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
1791
1748
|
}
|
|
1792
1749
|
query = __assign({}, (input.Qualifier !== undefined && { Qualifier: input.Qualifier }));
|
|
1793
|
-
body = JSON.stringify(__assign({}, (input.ProvisionedConcurrentExecutions
|
|
1794
|
-
input.ProvisionedConcurrentExecutions !== null && {
|
|
1750
|
+
body = JSON.stringify(__assign({}, (input.ProvisionedConcurrentExecutions != null && {
|
|
1795
1751
|
ProvisionedConcurrentExecutions: input.ProvisionedConcurrentExecutions,
|
|
1796
1752
|
})));
|
|
1797
1753
|
return [2, new __HttpRequest({
|
|
@@ -1926,7 +1882,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1926
1882
|
else {
|
|
1927
1883
|
throw new Error("No value provided for input HTTP label: Resource.");
|
|
1928
1884
|
}
|
|
1929
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
1885
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
1930
1886
|
return [2, new __HttpRequest({
|
|
1931
1887
|
protocol: protocol,
|
|
1932
1888
|
hostname: hostname,
|
|
@@ -2004,9 +1960,7 @@ export var serializeAws_restJson1UpdateAliasCommand = function (input, context)
|
|
|
2004
1960
|
else {
|
|
2005
1961
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
2006
1962
|
}
|
|
2007
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description
|
|
2008
|
-
input.FunctionVersion !== null && { FunctionVersion: input.FunctionVersion })), (input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId })), (input.RoutingConfig !== undefined &&
|
|
2009
|
-
input.RoutingConfig !== null && {
|
|
1963
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.FunctionVersion != null && { FunctionVersion: input.FunctionVersion })), (input.RevisionId != null && { RevisionId: input.RevisionId })), (input.RoutingConfig != null && {
|
|
2010
1964
|
RoutingConfig: serializeAws_restJson1AliasRoutingConfiguration(input.RoutingConfig, context),
|
|
2011
1965
|
})));
|
|
2012
1966
|
return [2, new __HttpRequest({
|
|
@@ -2043,13 +1997,11 @@ export var serializeAws_restJson1UpdateCodeSigningConfigCommand = function (inpu
|
|
|
2043
1997
|
else {
|
|
2044
1998
|
throw new Error("No value provided for input HTTP label: CodeSigningConfigArn.");
|
|
2045
1999
|
}
|
|
2046
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.AllowedPublishers
|
|
2047
|
-
input.AllowedPublishers !== null && {
|
|
2000
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.AllowedPublishers != null && {
|
|
2048
2001
|
AllowedPublishers: serializeAws_restJson1AllowedPublishers(input.AllowedPublishers, context),
|
|
2049
|
-
})), (input.CodeSigningPolicies
|
|
2050
|
-
input.CodeSigningPolicies !== null && {
|
|
2002
|
+
})), (input.CodeSigningPolicies != null && {
|
|
2051
2003
|
CodeSigningPolicies: serializeAws_restJson1CodeSigningPolicies(input.CodeSigningPolicies, context),
|
|
2052
|
-
})), (input.Description
|
|
2004
|
+
})), (input.Description != null && { Description: input.Description })));
|
|
2053
2005
|
return [2, new __HttpRequest({
|
|
2054
2006
|
protocol: protocol,
|
|
2055
2007
|
hostname: hostname,
|
|
@@ -2083,27 +2035,17 @@ export var serializeAws_restJson1UpdateEventSourceMappingCommand = function (inp
|
|
|
2083
2035
|
else {
|
|
2084
2036
|
throw new Error("No value provided for input HTTP label: UUID.");
|
|
2085
2037
|
}
|
|
2086
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BatchSize
|
|
2087
|
-
input.BisectBatchOnFunctionError !== null && { BisectBatchOnFunctionError: input.BisectBatchOnFunctionError })), (input.DestinationConfig !== undefined &&
|
|
2088
|
-
input.DestinationConfig !== null && {
|
|
2038
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BatchSize != null && { BatchSize: input.BatchSize })), (input.BisectBatchOnFunctionError != null && { BisectBatchOnFunctionError: input.BisectBatchOnFunctionError })), (input.DestinationConfig != null && {
|
|
2089
2039
|
DestinationConfig: serializeAws_restJson1DestinationConfig(input.DestinationConfig, context),
|
|
2090
|
-
})), (input.Enabled
|
|
2091
|
-
input.FilterCriteria !== null && {
|
|
2040
|
+
})), (input.Enabled != null && { Enabled: input.Enabled })), (input.FilterCriteria != null && {
|
|
2092
2041
|
FilterCriteria: serializeAws_restJson1FilterCriteria(input.FilterCriteria, context),
|
|
2093
|
-
})), (input.FunctionName
|
|
2094
|
-
input.FunctionResponseTypes !== null && {
|
|
2042
|
+
})), (input.FunctionName != null && { FunctionName: input.FunctionName })), (input.FunctionResponseTypes != null && {
|
|
2095
2043
|
FunctionResponseTypes: serializeAws_restJson1FunctionResponseTypeList(input.FunctionResponseTypes, context),
|
|
2096
|
-
})), (input.MaximumBatchingWindowInSeconds
|
|
2097
|
-
input.MaximumBatchingWindowInSeconds !== null && {
|
|
2044
|
+
})), (input.MaximumBatchingWindowInSeconds != null && {
|
|
2098
2045
|
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
2099
|
-
})), (input.MaximumRecordAgeInSeconds
|
|
2100
|
-
input.MaximumRecordAgeInSeconds !== null && { MaximumRecordAgeInSeconds: input.MaximumRecordAgeInSeconds })), (input.MaximumRetryAttempts !== undefined &&
|
|
2101
|
-
input.MaximumRetryAttempts !== null && { MaximumRetryAttempts: input.MaximumRetryAttempts })), (input.ParallelizationFactor !== undefined &&
|
|
2102
|
-
input.ParallelizationFactor !== null && { ParallelizationFactor: input.ParallelizationFactor })), (input.SourceAccessConfigurations !== undefined &&
|
|
2103
|
-
input.SourceAccessConfigurations !== null && {
|
|
2046
|
+
})), (input.MaximumRecordAgeInSeconds != null && { MaximumRecordAgeInSeconds: input.MaximumRecordAgeInSeconds })), (input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts })), (input.ParallelizationFactor != null && { ParallelizationFactor: input.ParallelizationFactor })), (input.SourceAccessConfigurations != null && {
|
|
2104
2047
|
SourceAccessConfigurations: serializeAws_restJson1SourceAccessConfigurations(input.SourceAccessConfigurations, context),
|
|
2105
|
-
})), (input.TumblingWindowInSeconds
|
|
2106
|
-
input.TumblingWindowInSeconds !== null && { TumblingWindowInSeconds: input.TumblingWindowInSeconds })));
|
|
2048
|
+
})), (input.TumblingWindowInSeconds != null && { TumblingWindowInSeconds: input.TumblingWindowInSeconds })));
|
|
2107
2049
|
return [2, new __HttpRequest({
|
|
2108
2050
|
protocol: protocol,
|
|
2109
2051
|
hostname: hostname,
|
|
@@ -2137,11 +2079,9 @@ export var serializeAws_restJson1UpdateFunctionCodeCommand = function (input, co
|
|
|
2137
2079
|
else {
|
|
2138
2080
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
2139
2081
|
}
|
|
2140
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Architectures
|
|
2141
|
-
input.Architectures !== null && {
|
|
2082
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Architectures != null && {
|
|
2142
2083
|
Architectures: serializeAws_restJson1ArchitecturesList(input.Architectures, context),
|
|
2143
|
-
})), (input.DryRun
|
|
2144
|
-
input.S3ObjectVersion !== null && { S3ObjectVersion: input.S3ObjectVersion })), (input.ZipFile !== undefined && input.ZipFile !== null && { ZipFile: context.base64Encoder(input.ZipFile) })));
|
|
2084
|
+
})), (input.DryRun != null && { DryRun: input.DryRun })), (input.ImageUri != null && { ImageUri: input.ImageUri })), (input.Publish != null && { Publish: input.Publish })), (input.RevisionId != null && { RevisionId: input.RevisionId })), (input.S3Bucket != null && { S3Bucket: input.S3Bucket })), (input.S3Key != null && { S3Key: input.S3Key })), (input.S3ObjectVersion != null && { S3ObjectVersion: input.S3ObjectVersion })), (input.ZipFile != null && { ZipFile: context.base64Encoder(input.ZipFile) })));
|
|
2145
2085
|
return [2, new __HttpRequest({
|
|
2146
2086
|
protocol: protocol,
|
|
2147
2087
|
hostname: hostname,
|
|
@@ -2176,23 +2116,15 @@ export var serializeAws_restJson1UpdateFunctionConfigurationCommand = function (
|
|
|
2176
2116
|
else {
|
|
2177
2117
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
2178
2118
|
}
|
|
2179
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DeadLetterConfig
|
|
2180
|
-
input.DeadLetterConfig !== null && {
|
|
2119
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DeadLetterConfig != null && {
|
|
2181
2120
|
DeadLetterConfig: serializeAws_restJson1DeadLetterConfig(input.DeadLetterConfig, context),
|
|
2182
|
-
})), (input.Description
|
|
2183
|
-
input.Environment !== null && { Environment: serializeAws_restJson1Environment(input.Environment, context) })), (input.EphemeralStorage !== undefined &&
|
|
2184
|
-
input.EphemeralStorage !== null && {
|
|
2121
|
+
})), (input.Description != null && { Description: input.Description })), (input.Environment != null && { Environment: serializeAws_restJson1Environment(input.Environment, context) })), (input.EphemeralStorage != null && {
|
|
2185
2122
|
EphemeralStorage: serializeAws_restJson1EphemeralStorage(input.EphemeralStorage, context),
|
|
2186
|
-
})), (input.FileSystemConfigs
|
|
2187
|
-
input.FileSystemConfigs !== null && {
|
|
2123
|
+
})), (input.FileSystemConfigs != null && {
|
|
2188
2124
|
FileSystemConfigs: serializeAws_restJson1FileSystemConfigList(input.FileSystemConfigs, context),
|
|
2189
|
-
})), (input.Handler
|
|
2190
|
-
input.ImageConfig !== null && { ImageConfig: serializeAws_restJson1ImageConfig(input.ImageConfig, context) })), (input.KMSKeyArn !== undefined && input.KMSKeyArn !== null && { KMSKeyArn: input.KMSKeyArn })), (input.Layers !== undefined &&
|
|
2191
|
-
input.Layers !== null && { Layers: serializeAws_restJson1LayerList(input.Layers, context) })), (input.MemorySize !== undefined && input.MemorySize !== null && { MemorySize: input.MemorySize })), (input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId })), (input.Role !== undefined && input.Role !== null && { Role: input.Role })), (input.Runtime !== undefined && input.Runtime !== null && { Runtime: input.Runtime })), (input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout })), (input.TracingConfig !== undefined &&
|
|
2192
|
-
input.TracingConfig !== null && {
|
|
2125
|
+
})), (input.Handler != null && { Handler: input.Handler })), (input.ImageConfig != null && { ImageConfig: serializeAws_restJson1ImageConfig(input.ImageConfig, context) })), (input.KMSKeyArn != null && { KMSKeyArn: input.KMSKeyArn })), (input.Layers != null && { Layers: serializeAws_restJson1LayerList(input.Layers, context) })), (input.MemorySize != null && { MemorySize: input.MemorySize })), (input.RevisionId != null && { RevisionId: input.RevisionId })), (input.Role != null && { Role: input.Role })), (input.Runtime != null && { Runtime: input.Runtime })), (input.Timeout != null && { Timeout: input.Timeout })), (input.TracingConfig != null && {
|
|
2193
2126
|
TracingConfig: serializeAws_restJson1TracingConfig(input.TracingConfig, context),
|
|
2194
|
-
})), (input.VpcConfig
|
|
2195
|
-
input.VpcConfig !== null && { VpcConfig: serializeAws_restJson1VpcConfig(input.VpcConfig, context) })));
|
|
2127
|
+
})), (input.VpcConfig != null && { VpcConfig: serializeAws_restJson1VpcConfig(input.VpcConfig, context) })));
|
|
2196
2128
|
return [2, new __HttpRequest({
|
|
2197
2129
|
protocol: protocol,
|
|
2198
2130
|
hostname: hostname,
|
|
@@ -2228,12 +2160,9 @@ export var serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = functi
|
|
|
2228
2160
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
2229
2161
|
}
|
|
2230
2162
|
query = __assign({}, (input.Qualifier !== undefined && { Qualifier: input.Qualifier }));
|
|
2231
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.DestinationConfig
|
|
2232
|
-
input.DestinationConfig !== null && {
|
|
2163
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.DestinationConfig != null && {
|
|
2233
2164
|
DestinationConfig: serializeAws_restJson1DestinationConfig(input.DestinationConfig, context),
|
|
2234
|
-
})), (input.MaximumEventAgeInSeconds
|
|
2235
|
-
input.MaximumEventAgeInSeconds !== null && { MaximumEventAgeInSeconds: input.MaximumEventAgeInSeconds })), (input.MaximumRetryAttempts !== undefined &&
|
|
2236
|
-
input.MaximumRetryAttempts !== null && { MaximumRetryAttempts: input.MaximumRetryAttempts })));
|
|
2165
|
+
})), (input.MaximumEventAgeInSeconds != null && { MaximumEventAgeInSeconds: input.MaximumEventAgeInSeconds })), (input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts })));
|
|
2237
2166
|
return [2, new __HttpRequest({
|
|
2238
2167
|
protocol: protocol,
|
|
2239
2168
|
hostname: hostname,
|
|
@@ -2269,7 +2198,7 @@ export var serializeAws_restJson1UpdateFunctionUrlConfigCommand = function (inpu
|
|
|
2269
2198
|
throw new Error("No value provided for input HTTP label: FunctionName.");
|
|
2270
2199
|
}
|
|
2271
2200
|
query = __assign({}, (input.Qualifier !== undefined && { Qualifier: input.Qualifier }));
|
|
2272
|
-
body = JSON.stringify(__assign(__assign({}, (input.AuthType
|
|
2201
|
+
body = JSON.stringify(__assign(__assign({}, (input.AuthType != null && { AuthType: input.AuthType })), (input.Cors != null && { Cors: serializeAws_restJson1Cors(input.Cors, context) })));
|
|
2273
2202
|
return [2, new __HttpRequest({
|
|
2274
2203
|
protocol: protocol,
|
|
2275
2204
|
hostname: hostname,
|
|
@@ -8718,14 +8647,12 @@ var serializeAws_restJson1AdditionalVersionWeights = function (input, context) {
|
|
|
8718
8647
|
}, {});
|
|
8719
8648
|
};
|
|
8720
8649
|
var serializeAws_restJson1AliasRoutingConfiguration = function (input, context) {
|
|
8721
|
-
return __assign({}, (input.AdditionalVersionWeights
|
|
8722
|
-
input.AdditionalVersionWeights !== null && {
|
|
8650
|
+
return __assign({}, (input.AdditionalVersionWeights != null && {
|
|
8723
8651
|
AdditionalVersionWeights: serializeAws_restJson1AdditionalVersionWeights(input.AdditionalVersionWeights, context),
|
|
8724
8652
|
}));
|
|
8725
8653
|
};
|
|
8726
8654
|
var serializeAws_restJson1AllowedPublishers = function (input, context) {
|
|
8727
|
-
return __assign({}, (input.SigningProfileVersionArns
|
|
8728
|
-
input.SigningProfileVersionArns !== null && {
|
|
8655
|
+
return __assign({}, (input.SigningProfileVersionArns != null && {
|
|
8729
8656
|
SigningProfileVersionArns: serializeAws_restJson1SigningProfileVersionArns(input.SigningProfileVersionArns, context),
|
|
8730
8657
|
}));
|
|
8731
8658
|
};
|
|
@@ -8760,8 +8687,7 @@ var serializeAws_restJson1ArchitecturesList = function (input, context) {
|
|
|
8760
8687
|
});
|
|
8761
8688
|
};
|
|
8762
8689
|
var serializeAws_restJson1CodeSigningPolicies = function (input, context) {
|
|
8763
|
-
return __assign({}, (input.UntrustedArtifactOnDeployment
|
|
8764
|
-
input.UntrustedArtifactOnDeployment !== null && {
|
|
8690
|
+
return __assign({}, (input.UntrustedArtifactOnDeployment != null && {
|
|
8765
8691
|
UntrustedArtifactOnDeployment: input.UntrustedArtifactOnDeployment,
|
|
8766
8692
|
}));
|
|
8767
8693
|
};
|
|
@@ -8786,26 +8712,19 @@ var serializeAws_restJson1CompatibleRuntimes = function (input, context) {
|
|
|
8786
8712
|
});
|
|
8787
8713
|
};
|
|
8788
8714
|
var serializeAws_restJson1Cors = function (input, context) {
|
|
8789
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowCredentials
|
|
8790
|
-
input.AllowCredentials !== null && { AllowCredentials: input.AllowCredentials })), (input.AllowHeaders !== undefined &&
|
|
8791
|
-
input.AllowHeaders !== null && { AllowHeaders: serializeAws_restJson1HeadersList(input.AllowHeaders, context) })), (input.AllowMethods !== undefined &&
|
|
8792
|
-
input.AllowMethods !== null && {
|
|
8715
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowCredentials != null && { AllowCredentials: input.AllowCredentials })), (input.AllowHeaders != null && { AllowHeaders: serializeAws_restJson1HeadersList(input.AllowHeaders, context) })), (input.AllowMethods != null && {
|
|
8793
8716
|
AllowMethods: serializeAws_restJson1AllowMethodsList(input.AllowMethods, context),
|
|
8794
|
-
})), (input.AllowOrigins
|
|
8795
|
-
input.AllowOrigins !== null && {
|
|
8717
|
+
})), (input.AllowOrigins != null && {
|
|
8796
8718
|
AllowOrigins: serializeAws_restJson1AllowOriginsList(input.AllowOrigins, context),
|
|
8797
|
-
})), (input.ExposeHeaders
|
|
8798
|
-
input.ExposeHeaders !== null && {
|
|
8719
|
+
})), (input.ExposeHeaders != null && {
|
|
8799
8720
|
ExposeHeaders: serializeAws_restJson1HeadersList(input.ExposeHeaders, context),
|
|
8800
|
-
})), (input.MaxAge
|
|
8721
|
+
})), (input.MaxAge != null && { MaxAge: input.MaxAge }));
|
|
8801
8722
|
};
|
|
8802
8723
|
var serializeAws_restJson1DeadLetterConfig = function (input, context) {
|
|
8803
|
-
return __assign({}, (input.TargetArn
|
|
8724
|
+
return __assign({}, (input.TargetArn != null && { TargetArn: input.TargetArn }));
|
|
8804
8725
|
};
|
|
8805
8726
|
var serializeAws_restJson1DestinationConfig = function (input, context) {
|
|
8806
|
-
return __assign(__assign({}, (input.OnFailure
|
|
8807
|
-
input.OnFailure !== null && { OnFailure: serializeAws_restJson1OnFailure(input.OnFailure, context) })), (input.OnSuccess !== undefined &&
|
|
8808
|
-
input.OnSuccess !== null && { OnSuccess: serializeAws_restJson1OnSuccess(input.OnSuccess, context) }));
|
|
8727
|
+
return __assign(__assign({}, (input.OnFailure != null && { OnFailure: serializeAws_restJson1OnFailure(input.OnFailure, context) })), (input.OnSuccess != null && { OnSuccess: serializeAws_restJson1OnSuccess(input.OnSuccess, context) }));
|
|
8809
8728
|
};
|
|
8810
8729
|
var serializeAws_restJson1EndpointLists = function (input, context) {
|
|
8811
8730
|
return input
|
|
@@ -8828,8 +8747,7 @@ var serializeAws_restJson1Endpoints = function (input, context) {
|
|
|
8828
8747
|
}, {});
|
|
8829
8748
|
};
|
|
8830
8749
|
var serializeAws_restJson1Environment = function (input, context) {
|
|
8831
|
-
return __assign({}, (input.Variables
|
|
8832
|
-
input.Variables !== null && { Variables: serializeAws_restJson1EnvironmentVariables(input.Variables, context) }));
|
|
8750
|
+
return __assign({}, (input.Variables != null && { Variables: serializeAws_restJson1EnvironmentVariables(input.Variables, context) }));
|
|
8833
8751
|
};
|
|
8834
8752
|
var serializeAws_restJson1EnvironmentVariables = function (input, context) {
|
|
8835
8753
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -8842,11 +8760,10 @@ var serializeAws_restJson1EnvironmentVariables = function (input, context) {
|
|
|
8842
8760
|
}, {});
|
|
8843
8761
|
};
|
|
8844
8762
|
var serializeAws_restJson1EphemeralStorage = function (input, context) {
|
|
8845
|
-
return __assign({}, (input.Size
|
|
8763
|
+
return __assign({}, (input.Size != null && { Size: input.Size }));
|
|
8846
8764
|
};
|
|
8847
8765
|
var serializeAws_restJson1FileSystemConfig = function (input, context) {
|
|
8848
|
-
return __assign(__assign({}, (input.Arn
|
|
8849
|
-
input.LocalMountPath !== null && { LocalMountPath: input.LocalMountPath }));
|
|
8766
|
+
return __assign(__assign({}, (input.Arn != null && { Arn: input.Arn })), (input.LocalMountPath != null && { LocalMountPath: input.LocalMountPath }));
|
|
8850
8767
|
};
|
|
8851
8768
|
var serializeAws_restJson1FileSystemConfigList = function (input, context) {
|
|
8852
8769
|
return input
|
|
@@ -8859,11 +8776,10 @@ var serializeAws_restJson1FileSystemConfigList = function (input, context) {
|
|
|
8859
8776
|
});
|
|
8860
8777
|
};
|
|
8861
8778
|
var serializeAws_restJson1Filter = function (input, context) {
|
|
8862
|
-
return __assign({}, (input.Pattern
|
|
8779
|
+
return __assign({}, (input.Pattern != null && { Pattern: input.Pattern }));
|
|
8863
8780
|
};
|
|
8864
8781
|
var serializeAws_restJson1FilterCriteria = function (input, context) {
|
|
8865
|
-
return __assign({}, (input.Filters
|
|
8866
|
-
input.Filters !== null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }));
|
|
8782
|
+
return __assign({}, (input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }));
|
|
8867
8783
|
};
|
|
8868
8784
|
var serializeAws_restJson1FilterList = function (input, context) {
|
|
8869
8785
|
return input
|
|
@@ -8876,8 +8792,7 @@ var serializeAws_restJson1FilterList = function (input, context) {
|
|
|
8876
8792
|
});
|
|
8877
8793
|
};
|
|
8878
8794
|
var serializeAws_restJson1FunctionCode = function (input, context) {
|
|
8879
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.ImageUri
|
|
8880
|
-
input.S3ObjectVersion !== null && { S3ObjectVersion: input.S3ObjectVersion })), (input.ZipFile !== undefined && input.ZipFile !== null && { ZipFile: context.base64Encoder(input.ZipFile) }));
|
|
8795
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.ImageUri != null && { ImageUri: input.ImageUri })), (input.S3Bucket != null && { S3Bucket: input.S3Bucket })), (input.S3Key != null && { S3Key: input.S3Key })), (input.S3ObjectVersion != null && { S3ObjectVersion: input.S3ObjectVersion })), (input.ZipFile != null && { ZipFile: context.base64Encoder(input.ZipFile) }));
|
|
8881
8796
|
};
|
|
8882
8797
|
var serializeAws_restJson1FunctionResponseTypeList = function (input, context) {
|
|
8883
8798
|
return input
|
|
@@ -8900,10 +8815,7 @@ var serializeAws_restJson1HeadersList = function (input, context) {
|
|
|
8900
8815
|
});
|
|
8901
8816
|
};
|
|
8902
8817
|
var serializeAws_restJson1ImageConfig = function (input, context) {
|
|
8903
|
-
return __assign(__assign(__assign({}, (input.Command
|
|
8904
|
-
input.Command !== null && { Command: serializeAws_restJson1StringList(input.Command, context) })), (input.EntryPoint !== undefined &&
|
|
8905
|
-
input.EntryPoint !== null && { EntryPoint: serializeAws_restJson1StringList(input.EntryPoint, context) })), (input.WorkingDirectory !== undefined &&
|
|
8906
|
-
input.WorkingDirectory !== null && { WorkingDirectory: input.WorkingDirectory }));
|
|
8818
|
+
return __assign(__assign(__assign({}, (input.Command != null && { Command: serializeAws_restJson1StringList(input.Command, context) })), (input.EntryPoint != null && { EntryPoint: serializeAws_restJson1StringList(input.EntryPoint, context) })), (input.WorkingDirectory != null && { WorkingDirectory: input.WorkingDirectory }));
|
|
8907
8819
|
};
|
|
8908
8820
|
var serializeAws_restJson1LayerList = function (input, context) {
|
|
8909
8821
|
return input
|
|
@@ -8916,14 +8828,13 @@ var serializeAws_restJson1LayerList = function (input, context) {
|
|
|
8916
8828
|
});
|
|
8917
8829
|
};
|
|
8918
8830
|
var serializeAws_restJson1LayerVersionContentInput = function (input, context) {
|
|
8919
|
-
return __assign(__assign(__assign(__assign({}, (input.S3Bucket
|
|
8920
|
-
input.S3ObjectVersion !== null && { S3ObjectVersion: input.S3ObjectVersion })), (input.ZipFile !== undefined && input.ZipFile !== null && { ZipFile: context.base64Encoder(input.ZipFile) }));
|
|
8831
|
+
return __assign(__assign(__assign(__assign({}, (input.S3Bucket != null && { S3Bucket: input.S3Bucket })), (input.S3Key != null && { S3Key: input.S3Key })), (input.S3ObjectVersion != null && { S3ObjectVersion: input.S3ObjectVersion })), (input.ZipFile != null && { ZipFile: context.base64Encoder(input.ZipFile) }));
|
|
8921
8832
|
};
|
|
8922
8833
|
var serializeAws_restJson1OnFailure = function (input, context) {
|
|
8923
|
-
return __assign({}, (input.Destination
|
|
8834
|
+
return __assign({}, (input.Destination != null && { Destination: input.Destination }));
|
|
8924
8835
|
};
|
|
8925
8836
|
var serializeAws_restJson1OnSuccess = function (input, context) {
|
|
8926
|
-
return __assign({}, (input.Destination
|
|
8837
|
+
return __assign({}, (input.Destination != null && { Destination: input.Destination }));
|
|
8927
8838
|
};
|
|
8928
8839
|
var serializeAws_restJson1Queues = function (input, context) {
|
|
8929
8840
|
return input
|
|
@@ -8946,8 +8857,7 @@ var serializeAws_restJson1SecurityGroupIds = function (input, context) {
|
|
|
8946
8857
|
});
|
|
8947
8858
|
};
|
|
8948
8859
|
var serializeAws_restJson1SelfManagedEventSource = function (input, context) {
|
|
8949
|
-
return __assign({}, (input.Endpoints
|
|
8950
|
-
input.Endpoints !== null && { Endpoints: serializeAws_restJson1Endpoints(input.Endpoints, context) }));
|
|
8860
|
+
return __assign({}, (input.Endpoints != null && { Endpoints: serializeAws_restJson1Endpoints(input.Endpoints, context) }));
|
|
8951
8861
|
};
|
|
8952
8862
|
var serializeAws_restJson1SigningProfileVersionArns = function (input, context) {
|
|
8953
8863
|
return input
|
|
@@ -8960,7 +8870,7 @@ var serializeAws_restJson1SigningProfileVersionArns = function (input, context)
|
|
|
8960
8870
|
});
|
|
8961
8871
|
};
|
|
8962
8872
|
var serializeAws_restJson1SourceAccessConfiguration = function (input, context) {
|
|
8963
|
-
return __assign(__assign({}, (input.Type
|
|
8873
|
+
return __assign(__assign({}, (input.Type != null && { Type: input.Type })), (input.URI != null && { URI: input.URI }));
|
|
8964
8874
|
};
|
|
8965
8875
|
var serializeAws_restJson1SourceAccessConfigurations = function (input, context) {
|
|
8966
8876
|
return input
|
|
@@ -9013,14 +8923,12 @@ var serializeAws_restJson1Topics = function (input, context) {
|
|
|
9013
8923
|
});
|
|
9014
8924
|
};
|
|
9015
8925
|
var serializeAws_restJson1TracingConfig = function (input, context) {
|
|
9016
|
-
return __assign({}, (input.Mode
|
|
8926
|
+
return __assign({}, (input.Mode != null && { Mode: input.Mode }));
|
|
9017
8927
|
};
|
|
9018
8928
|
var serializeAws_restJson1VpcConfig = function (input, context) {
|
|
9019
|
-
return __assign(__assign({}, (input.SecurityGroupIds
|
|
9020
|
-
input.SecurityGroupIds !== null && {
|
|
8929
|
+
return __assign(__assign({}, (input.SecurityGroupIds != null && {
|
|
9021
8930
|
SecurityGroupIds: serializeAws_restJson1SecurityGroupIds(input.SecurityGroupIds, context),
|
|
9022
|
-
})), (input.SubnetIds
|
|
9023
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_restJson1SubnetIds(input.SubnetIds, context) }));
|
|
8931
|
+
})), (input.SubnetIds != null && { SubnetIds: serializeAws_restJson1SubnetIds(input.SubnetIds, context) }));
|
|
9024
8932
|
};
|
|
9025
8933
|
var deserializeAws_restJson1AccountLimit = function (output, context) {
|
|
9026
8934
|
return {
|
|
@@ -9054,7 +8962,7 @@ var deserializeAws_restJson1AliasConfiguration = function (output, context) {
|
|
|
9054
8962
|
FunctionVersion: __expectString(output.FunctionVersion),
|
|
9055
8963
|
Name: __expectString(output.Name),
|
|
9056
8964
|
RevisionId: __expectString(output.RevisionId),
|
|
9057
|
-
RoutingConfig: output.RoutingConfig
|
|
8965
|
+
RoutingConfig: output.RoutingConfig != null
|
|
9058
8966
|
? deserializeAws_restJson1AliasRoutingConfiguration(output.RoutingConfig, context)
|
|
9059
8967
|
: undefined,
|
|
9060
8968
|
};
|
|
@@ -9072,14 +8980,14 @@ var deserializeAws_restJson1AliasList = function (output, context) {
|
|
|
9072
8980
|
};
|
|
9073
8981
|
var deserializeAws_restJson1AliasRoutingConfiguration = function (output, context) {
|
|
9074
8982
|
return {
|
|
9075
|
-
AdditionalVersionWeights: output.AdditionalVersionWeights
|
|
8983
|
+
AdditionalVersionWeights: output.AdditionalVersionWeights != null
|
|
9076
8984
|
? deserializeAws_restJson1AdditionalVersionWeights(output.AdditionalVersionWeights, context)
|
|
9077
8985
|
: undefined,
|
|
9078
8986
|
};
|
|
9079
8987
|
};
|
|
9080
8988
|
var deserializeAws_restJson1AllowedPublishers = function (output, context) {
|
|
9081
8989
|
return {
|
|
9082
|
-
SigningProfileVersionArns: output.SigningProfileVersionArns
|
|
8990
|
+
SigningProfileVersionArns: output.SigningProfileVersionArns != null
|
|
9083
8991
|
? deserializeAws_restJson1SigningProfileVersionArns(output.SigningProfileVersionArns, context)
|
|
9084
8992
|
: undefined,
|
|
9085
8993
|
};
|
|
@@ -9119,12 +9027,12 @@ var deserializeAws_restJson1ArchitecturesList = function (output, context) {
|
|
|
9119
9027
|
};
|
|
9120
9028
|
var deserializeAws_restJson1CodeSigningConfig = function (output, context) {
|
|
9121
9029
|
return {
|
|
9122
|
-
AllowedPublishers: output.AllowedPublishers
|
|
9030
|
+
AllowedPublishers: output.AllowedPublishers != null
|
|
9123
9031
|
? deserializeAws_restJson1AllowedPublishers(output.AllowedPublishers, context)
|
|
9124
9032
|
: undefined,
|
|
9125
9033
|
CodeSigningConfigArn: __expectString(output.CodeSigningConfigArn),
|
|
9126
9034
|
CodeSigningConfigId: __expectString(output.CodeSigningConfigId),
|
|
9127
|
-
CodeSigningPolicies: output.CodeSigningPolicies
|
|
9035
|
+
CodeSigningPolicies: output.CodeSigningPolicies != null
|
|
9128
9036
|
? deserializeAws_restJson1CodeSigningPolicies(output.CodeSigningPolicies, context)
|
|
9129
9037
|
: undefined,
|
|
9130
9038
|
Description: __expectString(output.Description),
|
|
@@ -9177,18 +9085,10 @@ var deserializeAws_restJson1Concurrency = function (output, context) {
|
|
|
9177
9085
|
var deserializeAws_restJson1Cors = function (output, context) {
|
|
9178
9086
|
return {
|
|
9179
9087
|
AllowCredentials: __expectBoolean(output.AllowCredentials),
|
|
9180
|
-
AllowHeaders: output.AllowHeaders
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
|
|
9184
|
-
? deserializeAws_restJson1AllowMethodsList(output.AllowMethods, context)
|
|
9185
|
-
: undefined,
|
|
9186
|
-
AllowOrigins: output.AllowOrigins !== undefined && output.AllowOrigins !== null
|
|
9187
|
-
? deserializeAws_restJson1AllowOriginsList(output.AllowOrigins, context)
|
|
9188
|
-
: undefined,
|
|
9189
|
-
ExposeHeaders: output.ExposeHeaders !== undefined && output.ExposeHeaders !== null
|
|
9190
|
-
? deserializeAws_restJson1HeadersList(output.ExposeHeaders, context)
|
|
9191
|
-
: undefined,
|
|
9088
|
+
AllowHeaders: output.AllowHeaders != null ? deserializeAws_restJson1HeadersList(output.AllowHeaders, context) : undefined,
|
|
9089
|
+
AllowMethods: output.AllowMethods != null ? deserializeAws_restJson1AllowMethodsList(output.AllowMethods, context) : undefined,
|
|
9090
|
+
AllowOrigins: output.AllowOrigins != null ? deserializeAws_restJson1AllowOriginsList(output.AllowOrigins, context) : undefined,
|
|
9091
|
+
ExposeHeaders: output.ExposeHeaders != null ? deserializeAws_restJson1HeadersList(output.ExposeHeaders, context) : undefined,
|
|
9192
9092
|
MaxAge: __expectInt32(output.MaxAge),
|
|
9193
9093
|
};
|
|
9194
9094
|
};
|
|
@@ -9199,12 +9099,8 @@ var deserializeAws_restJson1DeadLetterConfig = function (output, context) {
|
|
|
9199
9099
|
};
|
|
9200
9100
|
var deserializeAws_restJson1DestinationConfig = function (output, context) {
|
|
9201
9101
|
return {
|
|
9202
|
-
OnFailure: output.OnFailure
|
|
9203
|
-
|
|
9204
|
-
: undefined,
|
|
9205
|
-
OnSuccess: output.OnSuccess !== undefined && output.OnSuccess !== null
|
|
9206
|
-
? deserializeAws_restJson1OnSuccess(output.OnSuccess, context)
|
|
9207
|
-
: undefined,
|
|
9102
|
+
OnFailure: output.OnFailure != null ? deserializeAws_restJson1OnFailure(output.OnFailure, context) : undefined,
|
|
9103
|
+
OnSuccess: output.OnSuccess != null ? deserializeAws_restJson1OnSuccess(output.OnSuccess, context) : undefined,
|
|
9208
9104
|
};
|
|
9209
9105
|
};
|
|
9210
9106
|
var deserializeAws_restJson1EndpointLists = function (output, context) {
|
|
@@ -9236,12 +9132,8 @@ var deserializeAws_restJson1EnvironmentError = function (output, context) {
|
|
|
9236
9132
|
};
|
|
9237
9133
|
var deserializeAws_restJson1EnvironmentResponse = function (output, context) {
|
|
9238
9134
|
return {
|
|
9239
|
-
Error: output.Error
|
|
9240
|
-
|
|
9241
|
-
: undefined,
|
|
9242
|
-
Variables: output.Variables !== undefined && output.Variables !== null
|
|
9243
|
-
? deserializeAws_restJson1EnvironmentVariables(output.Variables, context)
|
|
9244
|
-
: undefined,
|
|
9135
|
+
Error: output.Error != null ? deserializeAws_restJson1EnvironmentError(output.Error, context) : undefined,
|
|
9136
|
+
Variables: output.Variables != null ? deserializeAws_restJson1EnvironmentVariables(output.Variables, context) : undefined,
|
|
9245
9137
|
};
|
|
9246
9138
|
};
|
|
9247
9139
|
var deserializeAws_restJson1EnvironmentVariables = function (output, context) {
|
|
@@ -9263,18 +9155,18 @@ var deserializeAws_restJson1EventSourceMappingConfiguration = function (output,
|
|
|
9263
9155
|
return {
|
|
9264
9156
|
BatchSize: __expectInt32(output.BatchSize),
|
|
9265
9157
|
BisectBatchOnFunctionError: __expectBoolean(output.BisectBatchOnFunctionError),
|
|
9266
|
-
DestinationConfig: output.DestinationConfig
|
|
9158
|
+
DestinationConfig: output.DestinationConfig != null
|
|
9267
9159
|
? deserializeAws_restJson1DestinationConfig(output.DestinationConfig, context)
|
|
9268
9160
|
: undefined,
|
|
9269
9161
|
EventSourceArn: __expectString(output.EventSourceArn),
|
|
9270
|
-
FilterCriteria: output.FilterCriteria
|
|
9162
|
+
FilterCriteria: output.FilterCriteria != null
|
|
9271
9163
|
? deserializeAws_restJson1FilterCriteria(output.FilterCriteria, context)
|
|
9272
9164
|
: undefined,
|
|
9273
9165
|
FunctionArn: __expectString(output.FunctionArn),
|
|
9274
|
-
FunctionResponseTypes: output.FunctionResponseTypes
|
|
9166
|
+
FunctionResponseTypes: output.FunctionResponseTypes != null
|
|
9275
9167
|
? deserializeAws_restJson1FunctionResponseTypeList(output.FunctionResponseTypes, context)
|
|
9276
9168
|
: undefined,
|
|
9277
|
-
LastModified: output.LastModified
|
|
9169
|
+
LastModified: output.LastModified != null
|
|
9278
9170
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModified)))
|
|
9279
9171
|
: undefined,
|
|
9280
9172
|
LastProcessingResult: __expectString(output.LastProcessingResult),
|
|
@@ -9282,24 +9174,20 @@ var deserializeAws_restJson1EventSourceMappingConfiguration = function (output,
|
|
|
9282
9174
|
MaximumRecordAgeInSeconds: __expectInt32(output.MaximumRecordAgeInSeconds),
|
|
9283
9175
|
MaximumRetryAttempts: __expectInt32(output.MaximumRetryAttempts),
|
|
9284
9176
|
ParallelizationFactor: __expectInt32(output.ParallelizationFactor),
|
|
9285
|
-
Queues: output.Queues
|
|
9286
|
-
|
|
9287
|
-
: undefined,
|
|
9288
|
-
SelfManagedEventSource: output.SelfManagedEventSource !== undefined && output.SelfManagedEventSource !== null
|
|
9177
|
+
Queues: output.Queues != null ? deserializeAws_restJson1Queues(output.Queues, context) : undefined,
|
|
9178
|
+
SelfManagedEventSource: output.SelfManagedEventSource != null
|
|
9289
9179
|
? deserializeAws_restJson1SelfManagedEventSource(output.SelfManagedEventSource, context)
|
|
9290
9180
|
: undefined,
|
|
9291
|
-
SourceAccessConfigurations: output.SourceAccessConfigurations
|
|
9181
|
+
SourceAccessConfigurations: output.SourceAccessConfigurations != null
|
|
9292
9182
|
? deserializeAws_restJson1SourceAccessConfigurations(output.SourceAccessConfigurations, context)
|
|
9293
9183
|
: undefined,
|
|
9294
9184
|
StartingPosition: __expectString(output.StartingPosition),
|
|
9295
|
-
StartingPositionTimestamp: output.StartingPositionTimestamp
|
|
9185
|
+
StartingPositionTimestamp: output.StartingPositionTimestamp != null
|
|
9296
9186
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartingPositionTimestamp)))
|
|
9297
9187
|
: undefined,
|
|
9298
9188
|
State: __expectString(output.State),
|
|
9299
9189
|
StateTransitionReason: __expectString(output.StateTransitionReason),
|
|
9300
|
-
Topics: output.Topics
|
|
9301
|
-
? deserializeAws_restJson1Topics(output.Topics, context)
|
|
9302
|
-
: undefined,
|
|
9190
|
+
Topics: output.Topics != null ? deserializeAws_restJson1Topics(output.Topics, context) : undefined,
|
|
9303
9191
|
TumblingWindowInSeconds: __expectInt32(output.TumblingWindowInSeconds),
|
|
9304
9192
|
UUID: __expectString(output.UUID),
|
|
9305
9193
|
};
|
|
@@ -9339,9 +9227,7 @@ var deserializeAws_restJson1Filter = function (output, context) {
|
|
|
9339
9227
|
};
|
|
9340
9228
|
var deserializeAws_restJson1FilterCriteria = function (output, context) {
|
|
9341
9229
|
return {
|
|
9342
|
-
Filters: output.Filters
|
|
9343
|
-
? deserializeAws_restJson1FilterList(output.Filters, context)
|
|
9344
|
-
: undefined,
|
|
9230
|
+
Filters: output.Filters != null ? deserializeAws_restJson1FilterList(output.Filters, context) : undefined,
|
|
9345
9231
|
};
|
|
9346
9232
|
};
|
|
9347
9233
|
var deserializeAws_restJson1FilterList = function (output, context) {
|
|
@@ -9376,28 +9262,26 @@ var deserializeAws_restJson1FunctionCodeLocation = function (output, context) {
|
|
|
9376
9262
|
};
|
|
9377
9263
|
var deserializeAws_restJson1FunctionConfiguration = function (output, context) {
|
|
9378
9264
|
return {
|
|
9379
|
-
Architectures: output.Architectures
|
|
9265
|
+
Architectures: output.Architectures != null
|
|
9380
9266
|
? deserializeAws_restJson1ArchitecturesList(output.Architectures, context)
|
|
9381
9267
|
: undefined,
|
|
9382
9268
|
CodeSha256: __expectString(output.CodeSha256),
|
|
9383
9269
|
CodeSize: __expectLong(output.CodeSize),
|
|
9384
|
-
DeadLetterConfig: output.DeadLetterConfig
|
|
9270
|
+
DeadLetterConfig: output.DeadLetterConfig != null
|
|
9385
9271
|
? deserializeAws_restJson1DeadLetterConfig(output.DeadLetterConfig, context)
|
|
9386
9272
|
: undefined,
|
|
9387
9273
|
Description: __expectString(output.Description),
|
|
9388
|
-
Environment: output.Environment
|
|
9389
|
-
|
|
9390
|
-
: undefined,
|
|
9391
|
-
EphemeralStorage: output.EphemeralStorage !== undefined && output.EphemeralStorage !== null
|
|
9274
|
+
Environment: output.Environment != null ? deserializeAws_restJson1EnvironmentResponse(output.Environment, context) : undefined,
|
|
9275
|
+
EphemeralStorage: output.EphemeralStorage != null
|
|
9392
9276
|
? deserializeAws_restJson1EphemeralStorage(output.EphemeralStorage, context)
|
|
9393
9277
|
: undefined,
|
|
9394
|
-
FileSystemConfigs: output.FileSystemConfigs
|
|
9278
|
+
FileSystemConfigs: output.FileSystemConfigs != null
|
|
9395
9279
|
? deserializeAws_restJson1FileSystemConfigList(output.FileSystemConfigs, context)
|
|
9396
9280
|
: undefined,
|
|
9397
9281
|
FunctionArn: __expectString(output.FunctionArn),
|
|
9398
9282
|
FunctionName: __expectString(output.FunctionName),
|
|
9399
9283
|
Handler: __expectString(output.Handler),
|
|
9400
|
-
ImageConfigResponse: output.ImageConfigResponse
|
|
9284
|
+
ImageConfigResponse: output.ImageConfigResponse != null
|
|
9401
9285
|
? deserializeAws_restJson1ImageConfigResponse(output.ImageConfigResponse, context)
|
|
9402
9286
|
: undefined,
|
|
9403
9287
|
KMSKeyArn: __expectString(output.KMSKeyArn),
|
|
@@ -9405,9 +9289,7 @@ var deserializeAws_restJson1FunctionConfiguration = function (output, context) {
|
|
|
9405
9289
|
LastUpdateStatus: __expectString(output.LastUpdateStatus),
|
|
9406
9290
|
LastUpdateStatusReason: __expectString(output.LastUpdateStatusReason),
|
|
9407
9291
|
LastUpdateStatusReasonCode: __expectString(output.LastUpdateStatusReasonCode),
|
|
9408
|
-
Layers: output.Layers
|
|
9409
|
-
? deserializeAws_restJson1LayersReferenceList(output.Layers, context)
|
|
9410
|
-
: undefined,
|
|
9292
|
+
Layers: output.Layers != null ? deserializeAws_restJson1LayersReferenceList(output.Layers, context) : undefined,
|
|
9411
9293
|
MasterArn: __expectString(output.MasterArn),
|
|
9412
9294
|
MemorySize: __expectInt32(output.MemorySize),
|
|
9413
9295
|
PackageType: __expectString(output.PackageType),
|
|
@@ -9420,22 +9302,20 @@ var deserializeAws_restJson1FunctionConfiguration = function (output, context) {
|
|
|
9420
9302
|
StateReason: __expectString(output.StateReason),
|
|
9421
9303
|
StateReasonCode: __expectString(output.StateReasonCode),
|
|
9422
9304
|
Timeout: __expectInt32(output.Timeout),
|
|
9423
|
-
TracingConfig: output.TracingConfig
|
|
9305
|
+
TracingConfig: output.TracingConfig != null
|
|
9424
9306
|
? deserializeAws_restJson1TracingConfigResponse(output.TracingConfig, context)
|
|
9425
9307
|
: undefined,
|
|
9426
9308
|
Version: __expectString(output.Version),
|
|
9427
|
-
VpcConfig: output.VpcConfig
|
|
9428
|
-
? deserializeAws_restJson1VpcConfigResponse(output.VpcConfig, context)
|
|
9429
|
-
: undefined,
|
|
9309
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_restJson1VpcConfigResponse(output.VpcConfig, context) : undefined,
|
|
9430
9310
|
};
|
|
9431
9311
|
};
|
|
9432
9312
|
var deserializeAws_restJson1FunctionEventInvokeConfig = function (output, context) {
|
|
9433
9313
|
return {
|
|
9434
|
-
DestinationConfig: output.DestinationConfig
|
|
9314
|
+
DestinationConfig: output.DestinationConfig != null
|
|
9435
9315
|
? deserializeAws_restJson1DestinationConfig(output.DestinationConfig, context)
|
|
9436
9316
|
: undefined,
|
|
9437
9317
|
FunctionArn: __expectString(output.FunctionArn),
|
|
9438
|
-
LastModified: output.LastModified
|
|
9318
|
+
LastModified: output.LastModified != null
|
|
9439
9319
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModified)))
|
|
9440
9320
|
: undefined,
|
|
9441
9321
|
MaximumEventAgeInSeconds: __expectInt32(output.MaximumEventAgeInSeconds),
|
|
@@ -9478,9 +9358,7 @@ var deserializeAws_restJson1FunctionResponseTypeList = function (output, context
|
|
|
9478
9358
|
var deserializeAws_restJson1FunctionUrlConfig = function (output, context) {
|
|
9479
9359
|
return {
|
|
9480
9360
|
AuthType: __expectString(output.AuthType),
|
|
9481
|
-
Cors: output.Cors
|
|
9482
|
-
? deserializeAws_restJson1Cors(output.Cors, context)
|
|
9483
|
-
: undefined,
|
|
9361
|
+
Cors: output.Cors != null ? deserializeAws_restJson1Cors(output.Cors, context) : undefined,
|
|
9484
9362
|
CreationTime: __expectString(output.CreationTime),
|
|
9485
9363
|
FunctionArn: __expectString(output.FunctionArn),
|
|
9486
9364
|
FunctionUrl: __expectString(output.FunctionUrl),
|
|
@@ -9511,12 +9389,8 @@ var deserializeAws_restJson1HeadersList = function (output, context) {
|
|
|
9511
9389
|
};
|
|
9512
9390
|
var deserializeAws_restJson1ImageConfig = function (output, context) {
|
|
9513
9391
|
return {
|
|
9514
|
-
Command: output.Command
|
|
9515
|
-
|
|
9516
|
-
: undefined,
|
|
9517
|
-
EntryPoint: output.EntryPoint !== undefined && output.EntryPoint !== null
|
|
9518
|
-
? deserializeAws_restJson1StringList(output.EntryPoint, context)
|
|
9519
|
-
: undefined,
|
|
9392
|
+
Command: output.Command != null ? deserializeAws_restJson1StringList(output.Command, context) : undefined,
|
|
9393
|
+
EntryPoint: output.EntryPoint != null ? deserializeAws_restJson1StringList(output.EntryPoint, context) : undefined,
|
|
9520
9394
|
WorkingDirectory: __expectString(output.WorkingDirectory),
|
|
9521
9395
|
};
|
|
9522
9396
|
};
|
|
@@ -9528,12 +9402,8 @@ var deserializeAws_restJson1ImageConfigError = function (output, context) {
|
|
|
9528
9402
|
};
|
|
9529
9403
|
var deserializeAws_restJson1ImageConfigResponse = function (output, context) {
|
|
9530
9404
|
return {
|
|
9531
|
-
Error: output.Error
|
|
9532
|
-
|
|
9533
|
-
: undefined,
|
|
9534
|
-
ImageConfig: output.ImageConfig !== undefined && output.ImageConfig !== null
|
|
9535
|
-
? deserializeAws_restJson1ImageConfig(output.ImageConfig, context)
|
|
9536
|
-
: undefined,
|
|
9405
|
+
Error: output.Error != null ? deserializeAws_restJson1ImageConfigError(output.Error, context) : undefined,
|
|
9406
|
+
ImageConfig: output.ImageConfig != null ? deserializeAws_restJson1ImageConfig(output.ImageConfig, context) : undefined,
|
|
9537
9407
|
};
|
|
9538
9408
|
};
|
|
9539
9409
|
var deserializeAws_restJson1Layer = function (output, context) {
|
|
@@ -9557,7 +9427,7 @@ var deserializeAws_restJson1LayersList = function (output, context) {
|
|
|
9557
9427
|
};
|
|
9558
9428
|
var deserializeAws_restJson1LayersListItem = function (output, context) {
|
|
9559
9429
|
return {
|
|
9560
|
-
LatestMatchingVersion: output.LatestMatchingVersion
|
|
9430
|
+
LatestMatchingVersion: output.LatestMatchingVersion != null
|
|
9561
9431
|
? deserializeAws_restJson1LayerVersionsListItem(output.LatestMatchingVersion, context)
|
|
9562
9432
|
: undefined,
|
|
9563
9433
|
LayerArn: __expectString(output.LayerArn),
|
|
@@ -9597,10 +9467,10 @@ var deserializeAws_restJson1LayerVersionsList = function (output, context) {
|
|
|
9597
9467
|
};
|
|
9598
9468
|
var deserializeAws_restJson1LayerVersionsListItem = function (output, context) {
|
|
9599
9469
|
return {
|
|
9600
|
-
CompatibleArchitectures: output.CompatibleArchitectures
|
|
9470
|
+
CompatibleArchitectures: output.CompatibleArchitectures != null
|
|
9601
9471
|
? deserializeAws_restJson1CompatibleArchitectures(output.CompatibleArchitectures, context)
|
|
9602
9472
|
: undefined,
|
|
9603
|
-
CompatibleRuntimes: output.CompatibleRuntimes
|
|
9473
|
+
CompatibleRuntimes: output.CompatibleRuntimes != null
|
|
9604
9474
|
? deserializeAws_restJson1CompatibleRuntimes(output.CompatibleRuntimes, context)
|
|
9605
9475
|
: undefined,
|
|
9606
9476
|
CreatedDate: __expectString(output.CreatedDate),
|
|
@@ -9666,9 +9536,7 @@ var deserializeAws_restJson1SecurityGroupIds = function (output, context) {
|
|
|
9666
9536
|
};
|
|
9667
9537
|
var deserializeAws_restJson1SelfManagedEventSource = function (output, context) {
|
|
9668
9538
|
return {
|
|
9669
|
-
Endpoints: output.Endpoints
|
|
9670
|
-
? deserializeAws_restJson1Endpoints(output.Endpoints, context)
|
|
9671
|
-
: undefined,
|
|
9539
|
+
Endpoints: output.Endpoints != null ? deserializeAws_restJson1Endpoints(output.Endpoints, context) : undefined,
|
|
9672
9540
|
};
|
|
9673
9541
|
};
|
|
9674
9542
|
var deserializeAws_restJson1SigningProfileVersionArns = function (output, context) {
|
|
@@ -9749,12 +9617,10 @@ var deserializeAws_restJson1TracingConfigResponse = function (output, context) {
|
|
|
9749
9617
|
};
|
|
9750
9618
|
var deserializeAws_restJson1VpcConfigResponse = function (output, context) {
|
|
9751
9619
|
return {
|
|
9752
|
-
SecurityGroupIds: output.SecurityGroupIds
|
|
9620
|
+
SecurityGroupIds: output.SecurityGroupIds != null
|
|
9753
9621
|
? deserializeAws_restJson1SecurityGroupIds(output.SecurityGroupIds, context)
|
|
9754
9622
|
: undefined,
|
|
9755
|
-
SubnetIds: output.SubnetIds
|
|
9756
|
-
? deserializeAws_restJson1SubnetIds(output.SubnetIds, context)
|
|
9757
|
-
: undefined,
|
|
9623
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_restJson1SubnetIds(output.SubnetIds, context) : undefined,
|
|
9758
9624
|
VpcId: __expectString(output.VpcId),
|
|
9759
9625
|
};
|
|
9760
9626
|
};
|
|
@@ -9796,6 +9662,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
9796
9662
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
9797
9663
|
var sanitizeErrorCode = function (rawValue) {
|
|
9798
9664
|
var cleanValue = rawValue;
|
|
9665
|
+
if (typeof cleanValue === "number") {
|
|
9666
|
+
cleanValue = cleanValue.toString();
|
|
9667
|
+
}
|
|
9799
9668
|
if (cleanValue.indexOf(":") >= 0) {
|
|
9800
9669
|
cleanValue = cleanValue.split(":")[0];
|
|
9801
9670
|
}
|