@aws-sdk/client-redshift-serverless 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 +24 -0
- package/README.md +0 -6
- package/dist-cjs/protocols/Aws_json1_1.js +174 -291
- package/dist-es/protocols/Aws_json1_1.js +102 -219
- package/dist-types/RedshiftServerless.d.ts +1 -7
- package/dist-types/RedshiftServerlessClient.d.ts +1 -7
- package/package.json +26 -26
|
@@ -2170,9 +2170,8 @@ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, c
|
|
|
2170
2170
|
};
|
|
2171
2171
|
const serializeAws_json1_1ConfigParameter = (input, context) => {
|
|
2172
2172
|
return {
|
|
2173
|
-
...(input.parameterKey
|
|
2174
|
-
...(input.parameterValue
|
|
2175
|
-
input.parameterValue !== null && { parameterValue: input.parameterValue }),
|
|
2173
|
+
...(input.parameterKey != null && { parameterKey: input.parameterKey }),
|
|
2174
|
+
...(input.parameterValue != null && { parameterValue: input.parameterValue }),
|
|
2176
2175
|
};
|
|
2177
2176
|
};
|
|
2178
2177
|
const serializeAws_json1_1ConfigParameterList = (input, context) => {
|
|
@@ -2187,161 +2186,143 @@ const serializeAws_json1_1ConfigParameterList = (input, context) => {
|
|
|
2187
2186
|
};
|
|
2188
2187
|
const serializeAws_json1_1ConvertRecoveryPointToSnapshotRequest = (input, context) => {
|
|
2189
2188
|
return {
|
|
2190
|
-
...(input.recoveryPointId
|
|
2191
|
-
|
|
2192
|
-
...(input.
|
|
2193
|
-
input.retentionPeriod !== null && { retentionPeriod: input.retentionPeriod }),
|
|
2194
|
-
...(input.snapshotName !== undefined && input.snapshotName !== null && { snapshotName: input.snapshotName }),
|
|
2189
|
+
...(input.recoveryPointId != null && { recoveryPointId: input.recoveryPointId }),
|
|
2190
|
+
...(input.retentionPeriod != null && { retentionPeriod: input.retentionPeriod }),
|
|
2191
|
+
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2195
2192
|
};
|
|
2196
2193
|
};
|
|
2197
2194
|
const serializeAws_json1_1CreateEndpointAccessRequest = (input, context) => {
|
|
2198
2195
|
return {
|
|
2199
|
-
...(input.endpointName
|
|
2200
|
-
...(input.subnetIds
|
|
2201
|
-
|
|
2202
|
-
...(input.vpcSecurityGroupIds !== undefined &&
|
|
2203
|
-
input.vpcSecurityGroupIds !== null && {
|
|
2196
|
+
...(input.endpointName != null && { endpointName: input.endpointName }),
|
|
2197
|
+
...(input.subnetIds != null && { subnetIds: serializeAws_json1_1SubnetIdList(input.subnetIds, context) }),
|
|
2198
|
+
...(input.vpcSecurityGroupIds != null && {
|
|
2204
2199
|
vpcSecurityGroupIds: serializeAws_json1_1VpcSecurityGroupIdList(input.vpcSecurityGroupIds, context),
|
|
2205
2200
|
}),
|
|
2206
|
-
...(input.workgroupName
|
|
2201
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2207
2202
|
};
|
|
2208
2203
|
};
|
|
2209
2204
|
const serializeAws_json1_1CreateNamespaceRequest = (input, context) => {
|
|
2210
2205
|
return {
|
|
2211
|
-
...(input.adminUserPassword
|
|
2212
|
-
|
|
2213
|
-
...(input.
|
|
2214
|
-
...(input.
|
|
2215
|
-
...(input.
|
|
2216
|
-
|
|
2217
|
-
...(input.
|
|
2218
|
-
|
|
2219
|
-
...(input.
|
|
2220
|
-
...(input.logExports !== undefined &&
|
|
2221
|
-
input.logExports !== null && { logExports: serializeAws_json1_1LogExportList(input.logExports, context) }),
|
|
2222
|
-
...(input.namespaceName !== undefined && input.namespaceName !== null && { namespaceName: input.namespaceName }),
|
|
2223
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2206
|
+
...(input.adminUserPassword != null && { adminUserPassword: input.adminUserPassword }),
|
|
2207
|
+
...(input.adminUsername != null && { adminUsername: input.adminUsername }),
|
|
2208
|
+
...(input.dbName != null && { dbName: input.dbName }),
|
|
2209
|
+
...(input.defaultIamRoleArn != null && { defaultIamRoleArn: input.defaultIamRoleArn }),
|
|
2210
|
+
...(input.iamRoles != null && { iamRoles: serializeAws_json1_1IamRoleArnList(input.iamRoles, context) }),
|
|
2211
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2212
|
+
...(input.logExports != null && { logExports: serializeAws_json1_1LogExportList(input.logExports, context) }),
|
|
2213
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2214
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2224
2215
|
};
|
|
2225
2216
|
};
|
|
2226
2217
|
const serializeAws_json1_1CreateSnapshotRequest = (input, context) => {
|
|
2227
2218
|
return {
|
|
2228
|
-
...(input.namespaceName
|
|
2229
|
-
...(input.retentionPeriod
|
|
2230
|
-
|
|
2231
|
-
...(input.snapshotName !== undefined && input.snapshotName !== null && { snapshotName: input.snapshotName }),
|
|
2219
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2220
|
+
...(input.retentionPeriod != null && { retentionPeriod: input.retentionPeriod }),
|
|
2221
|
+
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2232
2222
|
};
|
|
2233
2223
|
};
|
|
2234
2224
|
const serializeAws_json1_1CreateUsageLimitRequest = (input, context) => {
|
|
2235
2225
|
return {
|
|
2236
|
-
...(input.amount
|
|
2237
|
-
...(input.breachAction
|
|
2238
|
-
...(input.period
|
|
2239
|
-
...(input.resourceArn
|
|
2240
|
-
...(input.usageType
|
|
2226
|
+
...(input.amount != null && { amount: input.amount }),
|
|
2227
|
+
...(input.breachAction != null && { breachAction: input.breachAction }),
|
|
2228
|
+
...(input.period != null && { period: input.period }),
|
|
2229
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2230
|
+
...(input.usageType != null && { usageType: input.usageType }),
|
|
2241
2231
|
};
|
|
2242
2232
|
};
|
|
2243
2233
|
const serializeAws_json1_1CreateWorkgroupRequest = (input, context) => {
|
|
2244
2234
|
return {
|
|
2245
|
-
...(input.baseCapacity
|
|
2246
|
-
...(input.configParameters
|
|
2247
|
-
input.configParameters !== null && {
|
|
2235
|
+
...(input.baseCapacity != null && { baseCapacity: input.baseCapacity }),
|
|
2236
|
+
...(input.configParameters != null && {
|
|
2248
2237
|
configParameters: serializeAws_json1_1ConfigParameterList(input.configParameters, context),
|
|
2249
2238
|
}),
|
|
2250
|
-
...(input.enhancedVpcRouting
|
|
2251
|
-
|
|
2252
|
-
...(input.
|
|
2253
|
-
...(input.
|
|
2254
|
-
input.publiclyAccessible !== null && { publiclyAccessible: input.publiclyAccessible }),
|
|
2255
|
-
...(input.securityGroupIds !== undefined &&
|
|
2256
|
-
input.securityGroupIds !== null && {
|
|
2239
|
+
...(input.enhancedVpcRouting != null && { enhancedVpcRouting: input.enhancedVpcRouting }),
|
|
2240
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2241
|
+
...(input.publiclyAccessible != null && { publiclyAccessible: input.publiclyAccessible }),
|
|
2242
|
+
...(input.securityGroupIds != null && {
|
|
2257
2243
|
securityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.securityGroupIds, context),
|
|
2258
2244
|
}),
|
|
2259
|
-
...(input.subnetIds
|
|
2260
|
-
|
|
2261
|
-
...(input.
|
|
2262
|
-
...(input.workgroupName !== undefined && input.workgroupName !== null && { workgroupName: input.workgroupName }),
|
|
2245
|
+
...(input.subnetIds != null && { subnetIds: serializeAws_json1_1SubnetIdList(input.subnetIds, context) }),
|
|
2246
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2247
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2263
2248
|
};
|
|
2264
2249
|
};
|
|
2265
2250
|
const serializeAws_json1_1DeleteEndpointAccessRequest = (input, context) => {
|
|
2266
2251
|
return {
|
|
2267
|
-
...(input.endpointName
|
|
2252
|
+
...(input.endpointName != null && { endpointName: input.endpointName }),
|
|
2268
2253
|
};
|
|
2269
2254
|
};
|
|
2270
2255
|
const serializeAws_json1_1DeleteNamespaceRequest = (input, context) => {
|
|
2271
2256
|
return {
|
|
2272
|
-
...(input.finalSnapshotName
|
|
2273
|
-
|
|
2274
|
-
...(input.finalSnapshotRetentionPeriod !== undefined &&
|
|
2275
|
-
input.finalSnapshotRetentionPeriod !== null && {
|
|
2257
|
+
...(input.finalSnapshotName != null && { finalSnapshotName: input.finalSnapshotName }),
|
|
2258
|
+
...(input.finalSnapshotRetentionPeriod != null && {
|
|
2276
2259
|
finalSnapshotRetentionPeriod: input.finalSnapshotRetentionPeriod,
|
|
2277
2260
|
}),
|
|
2278
|
-
...(input.namespaceName
|
|
2261
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2279
2262
|
};
|
|
2280
2263
|
};
|
|
2281
2264
|
const serializeAws_json1_1DeleteResourcePolicyRequest = (input, context) => {
|
|
2282
2265
|
return {
|
|
2283
|
-
...(input.resourceArn
|
|
2266
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2284
2267
|
};
|
|
2285
2268
|
};
|
|
2286
2269
|
const serializeAws_json1_1DeleteSnapshotRequest = (input, context) => {
|
|
2287
2270
|
return {
|
|
2288
|
-
...(input.snapshotName
|
|
2271
|
+
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2289
2272
|
};
|
|
2290
2273
|
};
|
|
2291
2274
|
const serializeAws_json1_1DeleteUsageLimitRequest = (input, context) => {
|
|
2292
2275
|
return {
|
|
2293
|
-
...(input.usageLimitId
|
|
2276
|
+
...(input.usageLimitId != null && { usageLimitId: input.usageLimitId }),
|
|
2294
2277
|
};
|
|
2295
2278
|
};
|
|
2296
2279
|
const serializeAws_json1_1DeleteWorkgroupRequest = (input, context) => {
|
|
2297
2280
|
return {
|
|
2298
|
-
...(input.workgroupName
|
|
2281
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2299
2282
|
};
|
|
2300
2283
|
};
|
|
2301
2284
|
const serializeAws_json1_1GetCredentialsRequest = (input, context) => {
|
|
2302
2285
|
return {
|
|
2303
|
-
...(input.dbName
|
|
2304
|
-
...(input.durationSeconds
|
|
2305
|
-
|
|
2306
|
-
...(input.workgroupName !== undefined && input.workgroupName !== null && { workgroupName: input.workgroupName }),
|
|
2286
|
+
...(input.dbName != null && { dbName: input.dbName }),
|
|
2287
|
+
...(input.durationSeconds != null && { durationSeconds: input.durationSeconds }),
|
|
2288
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2307
2289
|
};
|
|
2308
2290
|
};
|
|
2309
2291
|
const serializeAws_json1_1GetEndpointAccessRequest = (input, context) => {
|
|
2310
2292
|
return {
|
|
2311
|
-
...(input.endpointName
|
|
2293
|
+
...(input.endpointName != null && { endpointName: input.endpointName }),
|
|
2312
2294
|
};
|
|
2313
2295
|
};
|
|
2314
2296
|
const serializeAws_json1_1GetNamespaceRequest = (input, context) => {
|
|
2315
2297
|
return {
|
|
2316
|
-
...(input.namespaceName
|
|
2298
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2317
2299
|
};
|
|
2318
2300
|
};
|
|
2319
2301
|
const serializeAws_json1_1GetRecoveryPointRequest = (input, context) => {
|
|
2320
2302
|
return {
|
|
2321
|
-
...(input.recoveryPointId
|
|
2322
|
-
input.recoveryPointId !== null && { recoveryPointId: input.recoveryPointId }),
|
|
2303
|
+
...(input.recoveryPointId != null && { recoveryPointId: input.recoveryPointId }),
|
|
2323
2304
|
};
|
|
2324
2305
|
};
|
|
2325
2306
|
const serializeAws_json1_1GetResourcePolicyRequest = (input, context) => {
|
|
2326
2307
|
return {
|
|
2327
|
-
...(input.resourceArn
|
|
2308
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2328
2309
|
};
|
|
2329
2310
|
};
|
|
2330
2311
|
const serializeAws_json1_1GetSnapshotRequest = (input, context) => {
|
|
2331
2312
|
return {
|
|
2332
|
-
...(input.ownerAccount
|
|
2333
|
-
...(input.snapshotArn
|
|
2334
|
-
...(input.snapshotName
|
|
2313
|
+
...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
|
|
2314
|
+
...(input.snapshotArn != null && { snapshotArn: input.snapshotArn }),
|
|
2315
|
+
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2335
2316
|
};
|
|
2336
2317
|
};
|
|
2337
2318
|
const serializeAws_json1_1GetUsageLimitRequest = (input, context) => {
|
|
2338
2319
|
return {
|
|
2339
|
-
...(input.usageLimitId
|
|
2320
|
+
...(input.usageLimitId != null && { usageLimitId: input.usageLimitId }),
|
|
2340
2321
|
};
|
|
2341
2322
|
};
|
|
2342
2323
|
const serializeAws_json1_1GetWorkgroupRequest = (input, context) => {
|
|
2343
2324
|
return {
|
|
2344
|
-
...(input.workgroupName
|
|
2325
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2345
2326
|
};
|
|
2346
2327
|
};
|
|
2347
2328
|
const serializeAws_json1_1IamRoleArnList = (input, context) => {
|
|
@@ -2356,59 +2337,55 @@ const serializeAws_json1_1IamRoleArnList = (input, context) => {
|
|
|
2356
2337
|
};
|
|
2357
2338
|
const serializeAws_json1_1ListEndpointAccessRequest = (input, context) => {
|
|
2358
2339
|
return {
|
|
2359
|
-
...(input.maxResults
|
|
2360
|
-
...(input.nextToken
|
|
2361
|
-
...(input.vpcId
|
|
2362
|
-
...(input.workgroupName
|
|
2340
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2341
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2342
|
+
...(input.vpcId != null && { vpcId: input.vpcId }),
|
|
2343
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2363
2344
|
};
|
|
2364
2345
|
};
|
|
2365
2346
|
const serializeAws_json1_1ListNamespacesRequest = (input, context) => {
|
|
2366
2347
|
return {
|
|
2367
|
-
...(input.maxResults
|
|
2368
|
-
...(input.nextToken
|
|
2348
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2349
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2369
2350
|
};
|
|
2370
2351
|
};
|
|
2371
2352
|
const serializeAws_json1_1ListRecoveryPointsRequest = (input, context) => {
|
|
2372
2353
|
return {
|
|
2373
|
-
...(input.endTime
|
|
2374
|
-
|
|
2375
|
-
...(input.
|
|
2376
|
-
...(input.
|
|
2377
|
-
...(input.
|
|
2378
|
-
...(input.startTime !== undefined &&
|
|
2379
|
-
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2354
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
2355
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2356
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2357
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2358
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2380
2359
|
};
|
|
2381
2360
|
};
|
|
2382
2361
|
const serializeAws_json1_1ListSnapshotsRequest = (input, context) => {
|
|
2383
2362
|
return {
|
|
2384
|
-
...(input.endTime
|
|
2385
|
-
|
|
2386
|
-
...(input.
|
|
2387
|
-
...(input.
|
|
2388
|
-
...(input.
|
|
2389
|
-
...(input.
|
|
2390
|
-
...(input.
|
|
2391
|
-
...(input.startTime !== undefined &&
|
|
2392
|
-
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2363
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
2364
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2365
|
+
...(input.namespaceArn != null && { namespaceArn: input.namespaceArn }),
|
|
2366
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2367
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2368
|
+
...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
|
|
2369
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2393
2370
|
};
|
|
2394
2371
|
};
|
|
2395
2372
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
2396
2373
|
return {
|
|
2397
|
-
...(input.resourceArn
|
|
2374
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2398
2375
|
};
|
|
2399
2376
|
};
|
|
2400
2377
|
const serializeAws_json1_1ListUsageLimitsRequest = (input, context) => {
|
|
2401
2378
|
return {
|
|
2402
|
-
...(input.maxResults
|
|
2403
|
-
...(input.nextToken
|
|
2404
|
-
...(input.resourceArn
|
|
2405
|
-
...(input.usageType
|
|
2379
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2380
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2381
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2382
|
+
...(input.usageType != null && { usageType: input.usageType }),
|
|
2406
2383
|
};
|
|
2407
2384
|
};
|
|
2408
2385
|
const serializeAws_json1_1ListWorkgroupsRequest = (input, context) => {
|
|
2409
2386
|
return {
|
|
2410
|
-
...(input.maxResults
|
|
2411
|
-
...(input.nextToken
|
|
2387
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2388
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2412
2389
|
};
|
|
2413
2390
|
};
|
|
2414
2391
|
const serializeAws_json1_1LogExportList = (input, context) => {
|
|
@@ -2423,25 +2400,24 @@ const serializeAws_json1_1LogExportList = (input, context) => {
|
|
|
2423
2400
|
};
|
|
2424
2401
|
const serializeAws_json1_1PutResourcePolicyRequest = (input, context) => {
|
|
2425
2402
|
return {
|
|
2426
|
-
...(input.policy
|
|
2427
|
-
...(input.resourceArn
|
|
2403
|
+
...(input.policy != null && { policy: input.policy }),
|
|
2404
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2428
2405
|
};
|
|
2429
2406
|
};
|
|
2430
2407
|
const serializeAws_json1_1RestoreFromRecoveryPointRequest = (input, context) => {
|
|
2431
2408
|
return {
|
|
2432
|
-
...(input.namespaceName
|
|
2433
|
-
...(input.recoveryPointId
|
|
2434
|
-
|
|
2435
|
-
...(input.workgroupName !== undefined && input.workgroupName !== null && { workgroupName: input.workgroupName }),
|
|
2409
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2410
|
+
...(input.recoveryPointId != null && { recoveryPointId: input.recoveryPointId }),
|
|
2411
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2436
2412
|
};
|
|
2437
2413
|
};
|
|
2438
2414
|
const serializeAws_json1_1RestoreFromSnapshotRequest = (input, context) => {
|
|
2439
2415
|
return {
|
|
2440
|
-
...(input.namespaceName
|
|
2441
|
-
...(input.ownerAccount
|
|
2442
|
-
...(input.snapshotArn
|
|
2443
|
-
...(input.snapshotName
|
|
2444
|
-
...(input.workgroupName
|
|
2416
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2417
|
+
...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
|
|
2418
|
+
...(input.snapshotArn != null && { snapshotArn: input.snapshotArn }),
|
|
2419
|
+
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2420
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2445
2421
|
};
|
|
2446
2422
|
};
|
|
2447
2423
|
const serializeAws_json1_1SecurityGroupIdList = (input, context) => {
|
|
@@ -2466,8 +2442,8 @@ const serializeAws_json1_1SubnetIdList = (input, context) => {
|
|
|
2466
2442
|
};
|
|
2467
2443
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
2468
2444
|
return {
|
|
2469
|
-
...(input.key
|
|
2470
|
-
...(input.value
|
|
2445
|
+
...(input.key != null && { key: input.key }),
|
|
2446
|
+
...(input.value != null && { value: input.value }),
|
|
2471
2447
|
};
|
|
2472
2448
|
};
|
|
2473
2449
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
@@ -2492,73 +2468,61 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
2492
2468
|
};
|
|
2493
2469
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
2494
2470
|
return {
|
|
2495
|
-
...(input.resourceArn
|
|
2496
|
-
...(input.tags
|
|
2471
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2472
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2497
2473
|
};
|
|
2498
2474
|
};
|
|
2499
2475
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
2500
2476
|
return {
|
|
2501
|
-
...(input.resourceArn
|
|
2502
|
-
...(input.tagKeys
|
|
2503
|
-
input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
2477
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2478
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
2504
2479
|
};
|
|
2505
2480
|
};
|
|
2506
2481
|
const serializeAws_json1_1UpdateEndpointAccessRequest = (input, context) => {
|
|
2507
2482
|
return {
|
|
2508
|
-
...(input.endpointName
|
|
2509
|
-
...(input.vpcSecurityGroupIds
|
|
2510
|
-
input.vpcSecurityGroupIds !== null && {
|
|
2483
|
+
...(input.endpointName != null && { endpointName: input.endpointName }),
|
|
2484
|
+
...(input.vpcSecurityGroupIds != null && {
|
|
2511
2485
|
vpcSecurityGroupIds: serializeAws_json1_1VpcSecurityGroupIdList(input.vpcSecurityGroupIds, context),
|
|
2512
2486
|
}),
|
|
2513
2487
|
};
|
|
2514
2488
|
};
|
|
2515
2489
|
const serializeAws_json1_1UpdateNamespaceRequest = (input, context) => {
|
|
2516
2490
|
return {
|
|
2517
|
-
...(input.adminUserPassword
|
|
2518
|
-
|
|
2519
|
-
...(input.
|
|
2520
|
-
...(input.
|
|
2521
|
-
|
|
2522
|
-
...(input.
|
|
2523
|
-
|
|
2524
|
-
...(input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId }),
|
|
2525
|
-
...(input.logExports !== undefined &&
|
|
2526
|
-
input.logExports !== null && { logExports: serializeAws_json1_1LogExportList(input.logExports, context) }),
|
|
2527
|
-
...(input.namespaceName !== undefined && input.namespaceName !== null && { namespaceName: input.namespaceName }),
|
|
2491
|
+
...(input.adminUserPassword != null && { adminUserPassword: input.adminUserPassword }),
|
|
2492
|
+
...(input.adminUsername != null && { adminUsername: input.adminUsername }),
|
|
2493
|
+
...(input.defaultIamRoleArn != null && { defaultIamRoleArn: input.defaultIamRoleArn }),
|
|
2494
|
+
...(input.iamRoles != null && { iamRoles: serializeAws_json1_1IamRoleArnList(input.iamRoles, context) }),
|
|
2495
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2496
|
+
...(input.logExports != null && { logExports: serializeAws_json1_1LogExportList(input.logExports, context) }),
|
|
2497
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2528
2498
|
};
|
|
2529
2499
|
};
|
|
2530
2500
|
const serializeAws_json1_1UpdateSnapshotRequest = (input, context) => {
|
|
2531
2501
|
return {
|
|
2532
|
-
...(input.retentionPeriod
|
|
2533
|
-
|
|
2534
|
-
...(input.snapshotName !== undefined && input.snapshotName !== null && { snapshotName: input.snapshotName }),
|
|
2502
|
+
...(input.retentionPeriod != null && { retentionPeriod: input.retentionPeriod }),
|
|
2503
|
+
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2535
2504
|
};
|
|
2536
2505
|
};
|
|
2537
2506
|
const serializeAws_json1_1UpdateUsageLimitRequest = (input, context) => {
|
|
2538
2507
|
return {
|
|
2539
|
-
...(input.amount
|
|
2540
|
-
...(input.breachAction
|
|
2541
|
-
...(input.usageLimitId
|
|
2508
|
+
...(input.amount != null && { amount: input.amount }),
|
|
2509
|
+
...(input.breachAction != null && { breachAction: input.breachAction }),
|
|
2510
|
+
...(input.usageLimitId != null && { usageLimitId: input.usageLimitId }),
|
|
2542
2511
|
};
|
|
2543
2512
|
};
|
|
2544
2513
|
const serializeAws_json1_1UpdateWorkgroupRequest = (input, context) => {
|
|
2545
2514
|
return {
|
|
2546
|
-
...(input.baseCapacity
|
|
2547
|
-
...(input.configParameters
|
|
2548
|
-
input.configParameters !== null && {
|
|
2515
|
+
...(input.baseCapacity != null && { baseCapacity: input.baseCapacity }),
|
|
2516
|
+
...(input.configParameters != null && {
|
|
2549
2517
|
configParameters: serializeAws_json1_1ConfigParameterList(input.configParameters, context),
|
|
2550
2518
|
}),
|
|
2551
|
-
...(input.enhancedVpcRouting
|
|
2552
|
-
|
|
2553
|
-
...(input.
|
|
2554
|
-
input.publiclyAccessible !== null && { publiclyAccessible: input.publiclyAccessible }),
|
|
2555
|
-
...(input.securityGroupIds !== undefined &&
|
|
2556
|
-
input.securityGroupIds !== null && {
|
|
2519
|
+
...(input.enhancedVpcRouting != null && { enhancedVpcRouting: input.enhancedVpcRouting }),
|
|
2520
|
+
...(input.publiclyAccessible != null && { publiclyAccessible: input.publiclyAccessible }),
|
|
2521
|
+
...(input.securityGroupIds != null && {
|
|
2557
2522
|
securityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.securityGroupIds, context),
|
|
2558
2523
|
}),
|
|
2559
|
-
...(input.subnetIds
|
|
2560
|
-
|
|
2561
|
-
...(input.workgroupName !== undefined && input.workgroupName !== null && { workgroupName: input.workgroupName }),
|
|
2524
|
+
...(input.subnetIds != null && { subnetIds: serializeAws_json1_1SubnetIdList(input.subnetIds, context) }),
|
|
2525
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2562
2526
|
};
|
|
2563
2527
|
};
|
|
2564
2528
|
const serializeAws_json1_1VpcSecurityGroupIdList = (input, context) => {
|
|
@@ -2612,58 +2576,42 @@ const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
|
2612
2576
|
};
|
|
2613
2577
|
const deserializeAws_json1_1ConvertRecoveryPointToSnapshotResponse = (output, context) => {
|
|
2614
2578
|
return {
|
|
2615
|
-
snapshot: output.snapshot
|
|
2616
|
-
? deserializeAws_json1_1Snapshot(output.snapshot, context)
|
|
2617
|
-
: undefined,
|
|
2579
|
+
snapshot: output.snapshot != null ? deserializeAws_json1_1Snapshot(output.snapshot, context) : undefined,
|
|
2618
2580
|
};
|
|
2619
2581
|
};
|
|
2620
2582
|
const deserializeAws_json1_1CreateEndpointAccessResponse = (output, context) => {
|
|
2621
2583
|
return {
|
|
2622
|
-
endpoint: output.endpoint
|
|
2623
|
-
? deserializeAws_json1_1EndpointAccess(output.endpoint, context)
|
|
2624
|
-
: undefined,
|
|
2584
|
+
endpoint: output.endpoint != null ? deserializeAws_json1_1EndpointAccess(output.endpoint, context) : undefined,
|
|
2625
2585
|
};
|
|
2626
2586
|
};
|
|
2627
2587
|
const deserializeAws_json1_1CreateNamespaceResponse = (output, context) => {
|
|
2628
2588
|
return {
|
|
2629
|
-
namespace: output.namespace
|
|
2630
|
-
? deserializeAws_json1_1Namespace(output.namespace, context)
|
|
2631
|
-
: undefined,
|
|
2589
|
+
namespace: output.namespace != null ? deserializeAws_json1_1Namespace(output.namespace, context) : undefined,
|
|
2632
2590
|
};
|
|
2633
2591
|
};
|
|
2634
2592
|
const deserializeAws_json1_1CreateSnapshotResponse = (output, context) => {
|
|
2635
2593
|
return {
|
|
2636
|
-
snapshot: output.snapshot
|
|
2637
|
-
? deserializeAws_json1_1Snapshot(output.snapshot, context)
|
|
2638
|
-
: undefined,
|
|
2594
|
+
snapshot: output.snapshot != null ? deserializeAws_json1_1Snapshot(output.snapshot, context) : undefined,
|
|
2639
2595
|
};
|
|
2640
2596
|
};
|
|
2641
2597
|
const deserializeAws_json1_1CreateUsageLimitResponse = (output, context) => {
|
|
2642
2598
|
return {
|
|
2643
|
-
usageLimit: output.usageLimit
|
|
2644
|
-
? deserializeAws_json1_1UsageLimit(output.usageLimit, context)
|
|
2645
|
-
: undefined,
|
|
2599
|
+
usageLimit: output.usageLimit != null ? deserializeAws_json1_1UsageLimit(output.usageLimit, context) : undefined,
|
|
2646
2600
|
};
|
|
2647
2601
|
};
|
|
2648
2602
|
const deserializeAws_json1_1CreateWorkgroupResponse = (output, context) => {
|
|
2649
2603
|
return {
|
|
2650
|
-
workgroup: output.workgroup
|
|
2651
|
-
? deserializeAws_json1_1Workgroup(output.workgroup, context)
|
|
2652
|
-
: undefined,
|
|
2604
|
+
workgroup: output.workgroup != null ? deserializeAws_json1_1Workgroup(output.workgroup, context) : undefined,
|
|
2653
2605
|
};
|
|
2654
2606
|
};
|
|
2655
2607
|
const deserializeAws_json1_1DeleteEndpointAccessResponse = (output, context) => {
|
|
2656
2608
|
return {
|
|
2657
|
-
endpoint: output.endpoint
|
|
2658
|
-
? deserializeAws_json1_1EndpointAccess(output.endpoint, context)
|
|
2659
|
-
: undefined,
|
|
2609
|
+
endpoint: output.endpoint != null ? deserializeAws_json1_1EndpointAccess(output.endpoint, context) : undefined,
|
|
2660
2610
|
};
|
|
2661
2611
|
};
|
|
2662
2612
|
const deserializeAws_json1_1DeleteNamespaceResponse = (output, context) => {
|
|
2663
2613
|
return {
|
|
2664
|
-
namespace: output.namespace
|
|
2665
|
-
? deserializeAws_json1_1Namespace(output.namespace, context)
|
|
2666
|
-
: undefined,
|
|
2614
|
+
namespace: output.namespace != null ? deserializeAws_json1_1Namespace(output.namespace, context) : undefined,
|
|
2667
2615
|
};
|
|
2668
2616
|
};
|
|
2669
2617
|
const deserializeAws_json1_1DeleteResourcePolicyResponse = (output, context) => {
|
|
@@ -2671,51 +2619,39 @@ const deserializeAws_json1_1DeleteResourcePolicyResponse = (output, context) =>
|
|
|
2671
2619
|
};
|
|
2672
2620
|
const deserializeAws_json1_1DeleteSnapshotResponse = (output, context) => {
|
|
2673
2621
|
return {
|
|
2674
|
-
snapshot: output.snapshot
|
|
2675
|
-
? deserializeAws_json1_1Snapshot(output.snapshot, context)
|
|
2676
|
-
: undefined,
|
|
2622
|
+
snapshot: output.snapshot != null ? deserializeAws_json1_1Snapshot(output.snapshot, context) : undefined,
|
|
2677
2623
|
};
|
|
2678
2624
|
};
|
|
2679
2625
|
const deserializeAws_json1_1DeleteUsageLimitResponse = (output, context) => {
|
|
2680
2626
|
return {
|
|
2681
|
-
usageLimit: output.usageLimit
|
|
2682
|
-
? deserializeAws_json1_1UsageLimit(output.usageLimit, context)
|
|
2683
|
-
: undefined,
|
|
2627
|
+
usageLimit: output.usageLimit != null ? deserializeAws_json1_1UsageLimit(output.usageLimit, context) : undefined,
|
|
2684
2628
|
};
|
|
2685
2629
|
};
|
|
2686
2630
|
const deserializeAws_json1_1DeleteWorkgroupResponse = (output, context) => {
|
|
2687
2631
|
return {
|
|
2688
|
-
workgroup: output.workgroup
|
|
2689
|
-
? deserializeAws_json1_1Workgroup(output.workgroup, context)
|
|
2690
|
-
: undefined,
|
|
2632
|
+
workgroup: output.workgroup != null ? deserializeAws_json1_1Workgroup(output.workgroup, context) : undefined,
|
|
2691
2633
|
};
|
|
2692
2634
|
};
|
|
2693
2635
|
const deserializeAws_json1_1Endpoint = (output, context) => {
|
|
2694
2636
|
return {
|
|
2695
2637
|
address: (0, smithy_client_1.expectString)(output.address),
|
|
2696
2638
|
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
2697
|
-
vpcEndpoints: output.vpcEndpoints
|
|
2698
|
-
? deserializeAws_json1_1VpcEndpointList(output.vpcEndpoints, context)
|
|
2699
|
-
: undefined,
|
|
2639
|
+
vpcEndpoints: output.vpcEndpoints != null ? deserializeAws_json1_1VpcEndpointList(output.vpcEndpoints, context) : undefined,
|
|
2700
2640
|
};
|
|
2701
2641
|
};
|
|
2702
2642
|
const deserializeAws_json1_1EndpointAccess = (output, context) => {
|
|
2703
2643
|
return {
|
|
2704
2644
|
address: (0, smithy_client_1.expectString)(output.address),
|
|
2705
2645
|
endpointArn: (0, smithy_client_1.expectString)(output.endpointArn),
|
|
2706
|
-
endpointCreateTime: output.endpointCreateTime
|
|
2646
|
+
endpointCreateTime: output.endpointCreateTime != null
|
|
2707
2647
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endpointCreateTime))
|
|
2708
2648
|
: undefined,
|
|
2709
2649
|
endpointName: (0, smithy_client_1.expectString)(output.endpointName),
|
|
2710
2650
|
endpointStatus: (0, smithy_client_1.expectString)(output.endpointStatus),
|
|
2711
2651
|
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
2712
|
-
subnetIds: output.subnetIds
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
vpcEndpoint: output.vpcEndpoint !== undefined && output.vpcEndpoint !== null
|
|
2716
|
-
? deserializeAws_json1_1VpcEndpoint(output.vpcEndpoint, context)
|
|
2717
|
-
: undefined,
|
|
2718
|
-
vpcSecurityGroups: output.vpcSecurityGroups !== undefined && output.vpcSecurityGroups !== null
|
|
2652
|
+
subnetIds: output.subnetIds != null ? deserializeAws_json1_1SubnetIdList(output.subnetIds, context) : undefined,
|
|
2653
|
+
vpcEndpoint: output.vpcEndpoint != null ? deserializeAws_json1_1VpcEndpoint(output.vpcEndpoint, context) : undefined,
|
|
2654
|
+
vpcSecurityGroups: output.vpcSecurityGroups != null
|
|
2719
2655
|
? deserializeAws_json1_1VpcSecurityGroupMembershipList(output.vpcSecurityGroups, context)
|
|
2720
2656
|
: undefined,
|
|
2721
2657
|
workgroupName: (0, smithy_client_1.expectString)(output.workgroupName),
|
|
@@ -2736,61 +2672,45 @@ const deserializeAws_json1_1GetCredentialsResponse = (output, context) => {
|
|
|
2736
2672
|
return {
|
|
2737
2673
|
dbPassword: (0, smithy_client_1.expectString)(output.dbPassword),
|
|
2738
2674
|
dbUser: (0, smithy_client_1.expectString)(output.dbUser),
|
|
2739
|
-
expiration: output.expiration
|
|
2740
|
-
|
|
2741
|
-
: undefined,
|
|
2742
|
-
nextRefreshTime: output.nextRefreshTime !== undefined && output.nextRefreshTime !== null
|
|
2675
|
+
expiration: output.expiration != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expiration))) : undefined,
|
|
2676
|
+
nextRefreshTime: output.nextRefreshTime != null
|
|
2743
2677
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.nextRefreshTime)))
|
|
2744
2678
|
: undefined,
|
|
2745
2679
|
};
|
|
2746
2680
|
};
|
|
2747
2681
|
const deserializeAws_json1_1GetEndpointAccessResponse = (output, context) => {
|
|
2748
2682
|
return {
|
|
2749
|
-
endpoint: output.endpoint
|
|
2750
|
-
? deserializeAws_json1_1EndpointAccess(output.endpoint, context)
|
|
2751
|
-
: undefined,
|
|
2683
|
+
endpoint: output.endpoint != null ? deserializeAws_json1_1EndpointAccess(output.endpoint, context) : undefined,
|
|
2752
2684
|
};
|
|
2753
2685
|
};
|
|
2754
2686
|
const deserializeAws_json1_1GetNamespaceResponse = (output, context) => {
|
|
2755
2687
|
return {
|
|
2756
|
-
namespace: output.namespace
|
|
2757
|
-
? deserializeAws_json1_1Namespace(output.namespace, context)
|
|
2758
|
-
: undefined,
|
|
2688
|
+
namespace: output.namespace != null ? deserializeAws_json1_1Namespace(output.namespace, context) : undefined,
|
|
2759
2689
|
};
|
|
2760
2690
|
};
|
|
2761
2691
|
const deserializeAws_json1_1GetRecoveryPointResponse = (output, context) => {
|
|
2762
2692
|
return {
|
|
2763
|
-
recoveryPoint: output.recoveryPoint
|
|
2764
|
-
? deserializeAws_json1_1RecoveryPoint(output.recoveryPoint, context)
|
|
2765
|
-
: undefined,
|
|
2693
|
+
recoveryPoint: output.recoveryPoint != null ? deserializeAws_json1_1RecoveryPoint(output.recoveryPoint, context) : undefined,
|
|
2766
2694
|
};
|
|
2767
2695
|
};
|
|
2768
2696
|
const deserializeAws_json1_1GetResourcePolicyResponse = (output, context) => {
|
|
2769
2697
|
return {
|
|
2770
|
-
resourcePolicy: output.resourcePolicy
|
|
2771
|
-
? deserializeAws_json1_1ResourcePolicy(output.resourcePolicy, context)
|
|
2772
|
-
: undefined,
|
|
2698
|
+
resourcePolicy: output.resourcePolicy != null ? deserializeAws_json1_1ResourcePolicy(output.resourcePolicy, context) : undefined,
|
|
2773
2699
|
};
|
|
2774
2700
|
};
|
|
2775
2701
|
const deserializeAws_json1_1GetSnapshotResponse = (output, context) => {
|
|
2776
2702
|
return {
|
|
2777
|
-
snapshot: output.snapshot
|
|
2778
|
-
? deserializeAws_json1_1Snapshot(output.snapshot, context)
|
|
2779
|
-
: undefined,
|
|
2703
|
+
snapshot: output.snapshot != null ? deserializeAws_json1_1Snapshot(output.snapshot, context) : undefined,
|
|
2780
2704
|
};
|
|
2781
2705
|
};
|
|
2782
2706
|
const deserializeAws_json1_1GetUsageLimitResponse = (output, context) => {
|
|
2783
2707
|
return {
|
|
2784
|
-
usageLimit: output.usageLimit
|
|
2785
|
-
? deserializeAws_json1_1UsageLimit(output.usageLimit, context)
|
|
2786
|
-
: undefined,
|
|
2708
|
+
usageLimit: output.usageLimit != null ? deserializeAws_json1_1UsageLimit(output.usageLimit, context) : undefined,
|
|
2787
2709
|
};
|
|
2788
2710
|
};
|
|
2789
2711
|
const deserializeAws_json1_1GetWorkgroupResponse = (output, context) => {
|
|
2790
2712
|
return {
|
|
2791
|
-
workgroup: output.workgroup
|
|
2792
|
-
? deserializeAws_json1_1Workgroup(output.workgroup, context)
|
|
2793
|
-
: undefined,
|
|
2713
|
+
workgroup: output.workgroup != null ? deserializeAws_json1_1Workgroup(output.workgroup, context) : undefined,
|
|
2794
2714
|
};
|
|
2795
2715
|
};
|
|
2796
2716
|
const deserializeAws_json1_1IamRoleArnList = (output, context) => {
|
|
@@ -2821,24 +2741,20 @@ const deserializeAws_json1_1InvalidPaginationException = (output, context) => {
|
|
|
2821
2741
|
};
|
|
2822
2742
|
const deserializeAws_json1_1ListEndpointAccessResponse = (output, context) => {
|
|
2823
2743
|
return {
|
|
2824
|
-
endpoints: output.endpoints
|
|
2825
|
-
? deserializeAws_json1_1EndpointAccessList(output.endpoints, context)
|
|
2826
|
-
: undefined,
|
|
2744
|
+
endpoints: output.endpoints != null ? deserializeAws_json1_1EndpointAccessList(output.endpoints, context) : undefined,
|
|
2827
2745
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2828
2746
|
};
|
|
2829
2747
|
};
|
|
2830
2748
|
const deserializeAws_json1_1ListNamespacesResponse = (output, context) => {
|
|
2831
2749
|
return {
|
|
2832
|
-
namespaces: output.namespaces
|
|
2833
|
-
? deserializeAws_json1_1NamespaceList(output.namespaces, context)
|
|
2834
|
-
: undefined,
|
|
2750
|
+
namespaces: output.namespaces != null ? deserializeAws_json1_1NamespaceList(output.namespaces, context) : undefined,
|
|
2835
2751
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2836
2752
|
};
|
|
2837
2753
|
};
|
|
2838
2754
|
const deserializeAws_json1_1ListRecoveryPointsResponse = (output, context) => {
|
|
2839
2755
|
return {
|
|
2840
2756
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2841
|
-
recoveryPoints: output.recoveryPoints
|
|
2757
|
+
recoveryPoints: output.recoveryPoints != null
|
|
2842
2758
|
? deserializeAws_json1_1RecoveryPointList(output.recoveryPoints, context)
|
|
2843
2759
|
: undefined,
|
|
2844
2760
|
};
|
|
@@ -2846,32 +2762,24 @@ const deserializeAws_json1_1ListRecoveryPointsResponse = (output, context) => {
|
|
|
2846
2762
|
const deserializeAws_json1_1ListSnapshotsResponse = (output, context) => {
|
|
2847
2763
|
return {
|
|
2848
2764
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2849
|
-
snapshots: output.snapshots
|
|
2850
|
-
? deserializeAws_json1_1SnapshotList(output.snapshots, context)
|
|
2851
|
-
: undefined,
|
|
2765
|
+
snapshots: output.snapshots != null ? deserializeAws_json1_1SnapshotList(output.snapshots, context) : undefined,
|
|
2852
2766
|
};
|
|
2853
2767
|
};
|
|
2854
2768
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
2855
2769
|
return {
|
|
2856
|
-
tags: output.tags
|
|
2857
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
2858
|
-
: undefined,
|
|
2770
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
2859
2771
|
};
|
|
2860
2772
|
};
|
|
2861
2773
|
const deserializeAws_json1_1ListUsageLimitsResponse = (output, context) => {
|
|
2862
2774
|
return {
|
|
2863
2775
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2864
|
-
usageLimits: output.usageLimits
|
|
2865
|
-
? deserializeAws_json1_1UsageLimits(output.usageLimits, context)
|
|
2866
|
-
: undefined,
|
|
2776
|
+
usageLimits: output.usageLimits != null ? deserializeAws_json1_1UsageLimits(output.usageLimits, context) : undefined,
|
|
2867
2777
|
};
|
|
2868
2778
|
};
|
|
2869
2779
|
const deserializeAws_json1_1ListWorkgroupsResponse = (output, context) => {
|
|
2870
2780
|
return {
|
|
2871
2781
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2872
|
-
workgroups: output.workgroups
|
|
2873
|
-
? deserializeAws_json1_1WorkgroupList(output.workgroups, context)
|
|
2874
|
-
: undefined,
|
|
2782
|
+
workgroups: output.workgroups != null ? deserializeAws_json1_1WorkgroupList(output.workgroups, context) : undefined,
|
|
2875
2783
|
};
|
|
2876
2784
|
};
|
|
2877
2785
|
const deserializeAws_json1_1LogExportList = (output, context) => {
|
|
@@ -2888,18 +2796,12 @@ const deserializeAws_json1_1LogExportList = (output, context) => {
|
|
|
2888
2796
|
const deserializeAws_json1_1Namespace = (output, context) => {
|
|
2889
2797
|
return {
|
|
2890
2798
|
adminUsername: (0, smithy_client_1.expectString)(output.adminUsername),
|
|
2891
|
-
creationDate: output.creationDate
|
|
2892
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationDate))
|
|
2893
|
-
: undefined,
|
|
2799
|
+
creationDate: output.creationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationDate)) : undefined,
|
|
2894
2800
|
dbName: (0, smithy_client_1.expectString)(output.dbName),
|
|
2895
2801
|
defaultIamRoleArn: (0, smithy_client_1.expectString)(output.defaultIamRoleArn),
|
|
2896
|
-
iamRoles: output.iamRoles
|
|
2897
|
-
? deserializeAws_json1_1IamRoleArnList(output.iamRoles, context)
|
|
2898
|
-
: undefined,
|
|
2802
|
+
iamRoles: output.iamRoles != null ? deserializeAws_json1_1IamRoleArnList(output.iamRoles, context) : undefined,
|
|
2899
2803
|
kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
|
|
2900
|
-
logExports: output.logExports
|
|
2901
|
-
? deserializeAws_json1_1LogExportList(output.logExports, context)
|
|
2902
|
-
: undefined,
|
|
2804
|
+
logExports: output.logExports != null ? deserializeAws_json1_1LogExportList(output.logExports, context) : undefined,
|
|
2903
2805
|
namespaceArn: (0, smithy_client_1.expectString)(output.namespaceArn),
|
|
2904
2806
|
namespaceId: (0, smithy_client_1.expectString)(output.namespaceId),
|
|
2905
2807
|
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
@@ -2938,15 +2840,13 @@ const deserializeAws_json1_1NetworkInterfaceList = (output, context) => {
|
|
|
2938
2840
|
};
|
|
2939
2841
|
const deserializeAws_json1_1PutResourcePolicyResponse = (output, context) => {
|
|
2940
2842
|
return {
|
|
2941
|
-
resourcePolicy: output.resourcePolicy
|
|
2942
|
-
? deserializeAws_json1_1ResourcePolicy(output.resourcePolicy, context)
|
|
2943
|
-
: undefined,
|
|
2843
|
+
resourcePolicy: output.resourcePolicy != null ? deserializeAws_json1_1ResourcePolicy(output.resourcePolicy, context) : undefined,
|
|
2944
2844
|
};
|
|
2945
2845
|
};
|
|
2946
2846
|
const deserializeAws_json1_1RecoveryPoint = (output, context) => {
|
|
2947
2847
|
return {
|
|
2948
2848
|
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
2949
|
-
recoveryPointCreateTime: output.recoveryPointCreateTime
|
|
2849
|
+
recoveryPointCreateTime: output.recoveryPointCreateTime != null
|
|
2950
2850
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.recoveryPointCreateTime))
|
|
2951
2851
|
: undefined,
|
|
2952
2852
|
recoveryPointId: (0, smithy_client_1.expectString)(output.recoveryPointId),
|
|
@@ -2979,17 +2879,13 @@ const deserializeAws_json1_1ResourcePolicy = (output, context) => {
|
|
|
2979
2879
|
};
|
|
2980
2880
|
const deserializeAws_json1_1RestoreFromRecoveryPointResponse = (output, context) => {
|
|
2981
2881
|
return {
|
|
2982
|
-
namespace: output.namespace
|
|
2983
|
-
? deserializeAws_json1_1Namespace(output.namespace, context)
|
|
2984
|
-
: undefined,
|
|
2882
|
+
namespace: output.namespace != null ? deserializeAws_json1_1Namespace(output.namespace, context) : undefined,
|
|
2985
2883
|
recoveryPointId: (0, smithy_client_1.expectString)(output.recoveryPointId),
|
|
2986
2884
|
};
|
|
2987
2885
|
};
|
|
2988
2886
|
const deserializeAws_json1_1RestoreFromSnapshotResponse = (output, context) => {
|
|
2989
2887
|
return {
|
|
2990
|
-
namespace: output.namespace
|
|
2991
|
-
? deserializeAws_json1_1Namespace(output.namespace, context)
|
|
2992
|
-
: undefined,
|
|
2888
|
+
namespace: output.namespace != null ? deserializeAws_json1_1Namespace(output.namespace, context) : undefined,
|
|
2993
2889
|
ownerAccount: (0, smithy_client_1.expectString)(output.ownerAccount),
|
|
2994
2890
|
snapshotName: (0, smithy_client_1.expectString)(output.snapshotName),
|
|
2995
2891
|
};
|
|
@@ -3012,10 +2908,10 @@ const deserializeAws_json1_1ServiceQuotaExceededException = (output, context) =>
|
|
|
3012
2908
|
};
|
|
3013
2909
|
const deserializeAws_json1_1Snapshot = (output, context) => {
|
|
3014
2910
|
return {
|
|
3015
|
-
accountsWithProvisionedRestoreAccess: output.accountsWithProvisionedRestoreAccess
|
|
2911
|
+
accountsWithProvisionedRestoreAccess: output.accountsWithProvisionedRestoreAccess != null
|
|
3016
2912
|
? deserializeAws_json1_1AccountIdList(output.accountsWithProvisionedRestoreAccess, context)
|
|
3017
2913
|
: undefined,
|
|
3018
|
-
accountsWithRestoreAccess: output.accountsWithRestoreAccess
|
|
2914
|
+
accountsWithRestoreAccess: output.accountsWithRestoreAccess != null
|
|
3019
2915
|
? deserializeAws_json1_1AccountIdList(output.accountsWithRestoreAccess, context)
|
|
3020
2916
|
: undefined,
|
|
3021
2917
|
actualIncrementalBackupSizeInMegaBytes: (0, smithy_client_1.limitedParseDouble)(output.actualIncrementalBackupSizeInMegaBytes),
|
|
@@ -3029,13 +2925,13 @@ const deserializeAws_json1_1Snapshot = (output, context) => {
|
|
|
3029
2925
|
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
3030
2926
|
ownerAccount: (0, smithy_client_1.expectString)(output.ownerAccount),
|
|
3031
2927
|
snapshotArn: (0, smithy_client_1.expectString)(output.snapshotArn),
|
|
3032
|
-
snapshotCreateTime: output.snapshotCreateTime
|
|
2928
|
+
snapshotCreateTime: output.snapshotCreateTime != null
|
|
3033
2929
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.snapshotCreateTime))
|
|
3034
2930
|
: undefined,
|
|
3035
2931
|
snapshotName: (0, smithy_client_1.expectString)(output.snapshotName),
|
|
3036
2932
|
snapshotRemainingDays: (0, smithy_client_1.expectInt32)(output.snapshotRemainingDays),
|
|
3037
2933
|
snapshotRetentionPeriod: (0, smithy_client_1.expectInt32)(output.snapshotRetentionPeriod),
|
|
3038
|
-
snapshotRetentionStartTime: output.snapshotRetentionStartTime
|
|
2934
|
+
snapshotRetentionStartTime: output.snapshotRetentionStartTime != null
|
|
3039
2935
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.snapshotRetentionStartTime))
|
|
3040
2936
|
: undefined,
|
|
3041
2937
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -3101,37 +2997,27 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
|
3101
2997
|
};
|
|
3102
2998
|
const deserializeAws_json1_1UpdateEndpointAccessResponse = (output, context) => {
|
|
3103
2999
|
return {
|
|
3104
|
-
endpoint: output.endpoint
|
|
3105
|
-
? deserializeAws_json1_1EndpointAccess(output.endpoint, context)
|
|
3106
|
-
: undefined,
|
|
3000
|
+
endpoint: output.endpoint != null ? deserializeAws_json1_1EndpointAccess(output.endpoint, context) : undefined,
|
|
3107
3001
|
};
|
|
3108
3002
|
};
|
|
3109
3003
|
const deserializeAws_json1_1UpdateNamespaceResponse = (output, context) => {
|
|
3110
3004
|
return {
|
|
3111
|
-
namespace: output.namespace
|
|
3112
|
-
? deserializeAws_json1_1Namespace(output.namespace, context)
|
|
3113
|
-
: undefined,
|
|
3005
|
+
namespace: output.namespace != null ? deserializeAws_json1_1Namespace(output.namespace, context) : undefined,
|
|
3114
3006
|
};
|
|
3115
3007
|
};
|
|
3116
3008
|
const deserializeAws_json1_1UpdateSnapshotResponse = (output, context) => {
|
|
3117
3009
|
return {
|
|
3118
|
-
snapshot: output.snapshot
|
|
3119
|
-
? deserializeAws_json1_1Snapshot(output.snapshot, context)
|
|
3120
|
-
: undefined,
|
|
3010
|
+
snapshot: output.snapshot != null ? deserializeAws_json1_1Snapshot(output.snapshot, context) : undefined,
|
|
3121
3011
|
};
|
|
3122
3012
|
};
|
|
3123
3013
|
const deserializeAws_json1_1UpdateUsageLimitResponse = (output, context) => {
|
|
3124
3014
|
return {
|
|
3125
|
-
usageLimit: output.usageLimit
|
|
3126
|
-
? deserializeAws_json1_1UsageLimit(output.usageLimit, context)
|
|
3127
|
-
: undefined,
|
|
3015
|
+
usageLimit: output.usageLimit != null ? deserializeAws_json1_1UsageLimit(output.usageLimit, context) : undefined,
|
|
3128
3016
|
};
|
|
3129
3017
|
};
|
|
3130
3018
|
const deserializeAws_json1_1UpdateWorkgroupResponse = (output, context) => {
|
|
3131
3019
|
return {
|
|
3132
|
-
workgroup: output.workgroup
|
|
3133
|
-
? deserializeAws_json1_1Workgroup(output.workgroup, context)
|
|
3134
|
-
: undefined,
|
|
3020
|
+
workgroup: output.workgroup != null ? deserializeAws_json1_1Workgroup(output.workgroup, context) : undefined,
|
|
3135
3021
|
};
|
|
3136
3022
|
};
|
|
3137
3023
|
const deserializeAws_json1_1UsageLimit = (output, context) => {
|
|
@@ -3163,7 +3049,7 @@ const deserializeAws_json1_1ValidationException = (output, context) => {
|
|
|
3163
3049
|
};
|
|
3164
3050
|
const deserializeAws_json1_1VpcEndpoint = (output, context) => {
|
|
3165
3051
|
return {
|
|
3166
|
-
networkInterfaces: output.networkInterfaces
|
|
3052
|
+
networkInterfaces: output.networkInterfaces != null
|
|
3167
3053
|
? deserializeAws_json1_1NetworkInterfaceList(output.networkInterfaces, context)
|
|
3168
3054
|
: undefined,
|
|
3169
3055
|
vpcEndpointId: (0, smithy_client_1.expectString)(output.vpcEndpointId),
|
|
@@ -3201,25 +3087,19 @@ const deserializeAws_json1_1VpcSecurityGroupMembershipList = (output, context) =
|
|
|
3201
3087
|
const deserializeAws_json1_1Workgroup = (output, context) => {
|
|
3202
3088
|
return {
|
|
3203
3089
|
baseCapacity: (0, smithy_client_1.expectInt32)(output.baseCapacity),
|
|
3204
|
-
configParameters: output.configParameters
|
|
3090
|
+
configParameters: output.configParameters != null
|
|
3205
3091
|
? deserializeAws_json1_1ConfigParameterList(output.configParameters, context)
|
|
3206
3092
|
: undefined,
|
|
3207
|
-
creationDate: output.creationDate
|
|
3208
|
-
|
|
3209
|
-
: undefined,
|
|
3210
|
-
endpoint: output.endpoint !== undefined && output.endpoint !== null
|
|
3211
|
-
? deserializeAws_json1_1Endpoint(output.endpoint, context)
|
|
3212
|
-
: undefined,
|
|
3093
|
+
creationDate: output.creationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationDate)) : undefined,
|
|
3094
|
+
endpoint: output.endpoint != null ? deserializeAws_json1_1Endpoint(output.endpoint, context) : undefined,
|
|
3213
3095
|
enhancedVpcRouting: (0, smithy_client_1.expectBoolean)(output.enhancedVpcRouting),
|
|
3214
3096
|
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
3215
3097
|
publiclyAccessible: (0, smithy_client_1.expectBoolean)(output.publiclyAccessible),
|
|
3216
|
-
securityGroupIds: output.securityGroupIds
|
|
3098
|
+
securityGroupIds: output.securityGroupIds != null
|
|
3217
3099
|
? deserializeAws_json1_1SecurityGroupIdList(output.securityGroupIds, context)
|
|
3218
3100
|
: undefined,
|
|
3219
3101
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3220
|
-
subnetIds: output.subnetIds
|
|
3221
|
-
? deserializeAws_json1_1SubnetIdList(output.subnetIds, context)
|
|
3222
|
-
: undefined,
|
|
3102
|
+
subnetIds: output.subnetIds != null ? deserializeAws_json1_1SubnetIdList(output.subnetIds, context) : undefined,
|
|
3223
3103
|
workgroupArn: (0, smithy_client_1.expectString)(output.workgroupArn),
|
|
3224
3104
|
workgroupId: (0, smithy_client_1.expectString)(output.workgroupId),
|
|
3225
3105
|
workgroupName: (0, smithy_client_1.expectString)(output.workgroupName),
|
|
@@ -3280,6 +3160,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3280
3160
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3281
3161
|
const sanitizeErrorCode = (rawValue) => {
|
|
3282
3162
|
let cleanValue = rawValue;
|
|
3163
|
+
if (typeof cleanValue === "number") {
|
|
3164
|
+
cleanValue = cleanValue.toString();
|
|
3165
|
+
}
|
|
3283
3166
|
if (cleanValue.indexOf(":") >= 0) {
|
|
3284
3167
|
cleanValue = cleanValue.split(":")[0];
|
|
3285
3168
|
}
|