@aws-sdk/client-m2 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 CHANGED
@@ -3,6 +3,30 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-m2
9
+
10
+
11
+
12
+
13
+
14
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-m2
17
+
18
+
19
+
20
+
21
+
22
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/client-m2
25
+
26
+
27
+
28
+
29
+
6
30
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
31
 
8
32
 
@@ -54,12 +54,11 @@ const serializeAws_restJson1CreateApplicationCommand = async (input, context) =>
54
54
  let body;
55
55
  body = JSON.stringify({
56
56
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
57
- ...(input.definition !== undefined &&
58
- input.definition !== null && { definition: serializeAws_restJson1Definition(input.definition, context) }),
59
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
60
- ...(input.engineType !== undefined && input.engineType !== null && { engineType: input.engineType }),
61
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
62
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
57
+ ...(input.definition != null && { definition: serializeAws_restJson1Definition(input.definition, context) }),
58
+ ...(input.description != null && { description: input.description }),
59
+ ...(input.engineType != null && { engineType: input.engineType }),
60
+ ...(input.name != null && { name: input.name }),
61
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
63
62
  });
64
63
  return new protocol_http_1.HttpRequest({
65
64
  protocol,
@@ -93,8 +92,7 @@ const serializeAws_restJson1CreateDataSetImportTaskCommand = async (input, conte
93
92
  let body;
94
93
  body = JSON.stringify({
95
94
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
96
- ...(input.importConfig !== undefined &&
97
- input.importConfig !== null && {
95
+ ...(input.importConfig != null && {
98
96
  importConfig: serializeAws_restJson1DataSetImportConfig(input.importConfig, context),
99
97
  }),
100
98
  });
@@ -128,10 +126,9 @@ const serializeAws_restJson1CreateDeploymentCommand = async (input, context) =>
128
126
  }
129
127
  let body;
130
128
  body = JSON.stringify({
131
- ...(input.applicationVersion !== undefined &&
132
- input.applicationVersion !== null && { applicationVersion: input.applicationVersion }),
129
+ ...(input.applicationVersion != null && { applicationVersion: input.applicationVersion }),
133
130
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
134
- ...(input.environmentId !== undefined && input.environmentId !== null && { environmentId: input.environmentId }),
131
+ ...(input.environmentId != null && { environmentId: input.environmentId }),
135
132
  });
136
133
  return new protocol_http_1.HttpRequest({
137
134
  protocol,
@@ -154,30 +151,24 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
154
151
  let body;
155
152
  body = JSON.stringify({
156
153
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
157
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
158
- ...(input.engineType !== undefined && input.engineType !== null && { engineType: input.engineType }),
159
- ...(input.engineVersion !== undefined && input.engineVersion !== null && { engineVersion: input.engineVersion }),
160
- ...(input.highAvailabilityConfig !== undefined &&
161
- input.highAvailabilityConfig !== null && {
154
+ ...(input.description != null && { description: input.description }),
155
+ ...(input.engineType != null && { engineType: input.engineType }),
156
+ ...(input.engineVersion != null && { engineVersion: input.engineVersion }),
157
+ ...(input.highAvailabilityConfig != null && {
162
158
  highAvailabilityConfig: serializeAws_restJson1HighAvailabilityConfig(input.highAvailabilityConfig, context),
163
159
  }),
164
- ...(input.instanceType !== undefined && input.instanceType !== null && { instanceType: input.instanceType }),
165
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
166
- ...(input.preferredMaintenanceWindow !== undefined &&
167
- input.preferredMaintenanceWindow !== null && { preferredMaintenanceWindow: input.preferredMaintenanceWindow }),
168
- ...(input.publiclyAccessible !== undefined &&
169
- input.publiclyAccessible !== null && { publiclyAccessible: input.publiclyAccessible }),
170
- ...(input.securityGroupIds !== undefined &&
171
- input.securityGroupIds !== null && {
160
+ ...(input.instanceType != null && { instanceType: input.instanceType }),
161
+ ...(input.name != null && { name: input.name }),
162
+ ...(input.preferredMaintenanceWindow != null && { preferredMaintenanceWindow: input.preferredMaintenanceWindow }),
163
+ ...(input.publiclyAccessible != null && { publiclyAccessible: input.publiclyAccessible }),
164
+ ...(input.securityGroupIds != null && {
172
165
  securityGroupIds: serializeAws_restJson1String50List(input.securityGroupIds, context),
173
166
  }),
174
- ...(input.storageConfigurations !== undefined &&
175
- input.storageConfigurations !== null && {
167
+ ...(input.storageConfigurations != null && {
176
168
  storageConfigurations: serializeAws_restJson1StorageConfigurationList(input.storageConfigurations, context),
177
169
  }),
178
- ...(input.subnetIds !== undefined &&
179
- input.subnetIds !== null && { subnetIds: serializeAws_restJson1String50List(input.subnetIds, context) }),
180
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
170
+ ...(input.subnetIds != null && { subnetIds: serializeAws_restJson1String50List(input.subnetIds, context) }),
171
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
181
172
  });
182
173
  return new protocol_http_1.HttpRequest({
183
174
  protocol,
@@ -856,12 +847,12 @@ const serializeAws_restJson1StartBatchJobCommand = async (input, context) => {
856
847
  }
857
848
  let body;
858
849
  body = JSON.stringify({
859
- ...(input.batchJobIdentifier !== undefined &&
860
- input.batchJobIdentifier !== null && {
850
+ ...(input.batchJobIdentifier != null && {
861
851
  batchJobIdentifier: serializeAws_restJson1BatchJobIdentifier(input.batchJobIdentifier, context),
862
852
  }),
863
- ...(input.jobParams !== undefined &&
864
- input.jobParams !== null && { jobParams: serializeAws_restJson1BatchJobParametersMap(input.jobParams, context) }),
853
+ ...(input.jobParams != null && {
854
+ jobParams: serializeAws_restJson1BatchJobParametersMap(input.jobParams, context),
855
+ }),
865
856
  });
866
857
  return new protocol_http_1.HttpRequest({
867
858
  protocol,
@@ -892,7 +883,7 @@ const serializeAws_restJson1StopApplicationCommand = async (input, context) => {
892
883
  }
893
884
  let body;
894
885
  body = JSON.stringify({
895
- ...(input.forceStop !== undefined && input.forceStop !== null && { forceStop: input.forceStop }),
886
+ ...(input.forceStop != null && { forceStop: input.forceStop }),
896
887
  });
897
888
  return new protocol_http_1.HttpRequest({
898
889
  protocol,
@@ -923,7 +914,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
923
914
  }
924
915
  let body;
925
916
  body = JSON.stringify({
926
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
917
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
927
918
  });
928
919
  return new protocol_http_1.HttpRequest({
929
920
  protocol,
@@ -984,11 +975,9 @@ const serializeAws_restJson1UpdateApplicationCommand = async (input, context) =>
984
975
  }
985
976
  let body;
986
977
  body = JSON.stringify({
987
- ...(input.currentApplicationVersion !== undefined &&
988
- input.currentApplicationVersion !== null && { currentApplicationVersion: input.currentApplicationVersion }),
989
- ...(input.definition !== undefined &&
990
- input.definition !== null && { definition: serializeAws_restJson1Definition(input.definition, context) }),
991
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
978
+ ...(input.currentApplicationVersion != null && { currentApplicationVersion: input.currentApplicationVersion }),
979
+ ...(input.definition != null && { definition: serializeAws_restJson1Definition(input.definition, context) }),
980
+ ...(input.description != null && { description: input.description }),
992
981
  });
993
982
  return new protocol_http_1.HttpRequest({
994
983
  protocol,
@@ -1019,16 +1008,13 @@ const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) =>
1019
1008
  }
1020
1009
  let body;
1021
1010
  body = JSON.stringify({
1022
- ...(input.applyDuringMaintenanceWindow !== undefined &&
1023
- input.applyDuringMaintenanceWindow !== null && {
1011
+ ...(input.applyDuringMaintenanceWindow != null && {
1024
1012
  applyDuringMaintenanceWindow: input.applyDuringMaintenanceWindow,
1025
1013
  }),
1026
- ...(input.desiredCapacity !== undefined &&
1027
- input.desiredCapacity !== null && { desiredCapacity: input.desiredCapacity }),
1028
- ...(input.engineVersion !== undefined && input.engineVersion !== null && { engineVersion: input.engineVersion }),
1029
- ...(input.instanceType !== undefined && input.instanceType !== null && { instanceType: input.instanceType }),
1030
- ...(input.preferredMaintenanceWindow !== undefined &&
1031
- input.preferredMaintenanceWindow !== null && { preferredMaintenanceWindow: input.preferredMaintenanceWindow }),
1014
+ ...(input.desiredCapacity != null && { desiredCapacity: input.desiredCapacity }),
1015
+ ...(input.engineVersion != null && { engineVersion: input.engineVersion }),
1016
+ ...(input.instanceType != null && { instanceType: input.instanceType }),
1017
+ ...(input.preferredMaintenanceWindow != null && { preferredMaintenanceWindow: input.preferredMaintenanceWindow }),
1032
1018
  });
1033
1019
  return new protocol_http_1.HttpRequest({
1034
1020
  protocol,
@@ -3085,11 +3071,10 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
3085
3071
  };
3086
3072
  const serializeAws_restJson1AlternateKey = (input, context) => {
3087
3073
  return {
3088
- ...(input.allowDuplicates !== undefined &&
3089
- input.allowDuplicates !== null && { allowDuplicates: input.allowDuplicates }),
3090
- ...(input.length !== undefined && input.length !== null && { length: input.length }),
3091
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3092
- ...(input.offset !== undefined && input.offset !== null && { offset: input.offset }),
3074
+ ...(input.allowDuplicates != null && { allowDuplicates: input.allowDuplicates }),
3075
+ ...(input.length != null && { length: input.length }),
3076
+ ...(input.name != null && { name: input.name }),
3077
+ ...(input.offset != null && { offset: input.offset }),
3093
3078
  };
3094
3079
  };
3095
3080
  const serializeAws_restJson1AlternateKeyList = (input, context) => {
@@ -3126,15 +3111,15 @@ const serializeAws_restJson1BatchJobParametersMap = (input, context) => {
3126
3111
  };
3127
3112
  const serializeAws_restJson1DataSet = (input, context) => {
3128
3113
  return {
3129
- ...(input.datasetName !== undefined && input.datasetName !== null && { datasetName: input.datasetName }),
3130
- ...(input.datasetOrg !== undefined &&
3131
- input.datasetOrg !== null && {
3114
+ ...(input.datasetName != null && { datasetName: input.datasetName }),
3115
+ ...(input.datasetOrg != null && {
3132
3116
  datasetOrg: serializeAws_restJson1DatasetOrgAttributes(input.datasetOrg, context),
3133
3117
  }),
3134
- ...(input.recordLength !== undefined &&
3135
- input.recordLength !== null && { recordLength: serializeAws_restJson1RecordLength(input.recordLength, context) }),
3136
- ...(input.relativePath !== undefined && input.relativePath !== null && { relativePath: input.relativePath }),
3137
- ...(input.storageType !== undefined && input.storageType !== null && { storageType: input.storageType }),
3118
+ ...(input.recordLength != null && {
3119
+ recordLength: serializeAws_restJson1RecordLength(input.recordLength, context),
3120
+ }),
3121
+ ...(input.relativePath != null && { relativePath: input.relativePath }),
3122
+ ...(input.storageType != null && { storageType: input.storageType }),
3138
3123
  };
3139
3124
  };
3140
3125
  const serializeAws_restJson1DataSetImportConfig = (input, context) => {
@@ -3146,10 +3131,8 @@ const serializeAws_restJson1DataSetImportConfig = (input, context) => {
3146
3131
  };
3147
3132
  const serializeAws_restJson1DataSetImportItem = (input, context) => {
3148
3133
  return {
3149
- ...(input.dataSet !== undefined &&
3150
- input.dataSet !== null && { dataSet: serializeAws_restJson1DataSet(input.dataSet, context) }),
3151
- ...(input.externalLocation !== undefined &&
3152
- input.externalLocation !== null && {
3134
+ ...(input.dataSet != null && { dataSet: serializeAws_restJson1DataSet(input.dataSet, context) }),
3135
+ ...(input.externalLocation != null && {
3153
3136
  externalLocation: serializeAws_restJson1ExternalLocation(input.externalLocation, context),
3154
3137
  }),
3155
3138
  };
@@ -3180,8 +3163,8 @@ const serializeAws_restJson1Definition = (input, context) => {
3180
3163
  };
3181
3164
  const serializeAws_restJson1EfsStorageConfiguration = (input, context) => {
3182
3165
  return {
3183
- ...(input.fileSystemId !== undefined && input.fileSystemId !== null && { "file-system-id": input.fileSystemId }),
3184
- ...(input.mountPoint !== undefined && input.mountPoint !== null && { "mount-point": input.mountPoint }),
3166
+ ...(input.fileSystemId != null && { "file-system-id": input.fileSystemId }),
3167
+ ...(input.mountPoint != null && { "mount-point": input.mountPoint }),
3185
3168
  };
3186
3169
  };
3187
3170
  const serializeAws_restJson1ExternalLocation = (input, context) => {
@@ -3192,45 +3175,43 @@ const serializeAws_restJson1ExternalLocation = (input, context) => {
3192
3175
  };
3193
3176
  const serializeAws_restJson1FileBatchJobIdentifier = (input, context) => {
3194
3177
  return {
3195
- ...(input.fileName !== undefined && input.fileName !== null && { fileName: input.fileName }),
3196
- ...(input.folderPath !== undefined && input.folderPath !== null && { folderPath: input.folderPath }),
3178
+ ...(input.fileName != null && { fileName: input.fileName }),
3179
+ ...(input.folderPath != null && { folderPath: input.folderPath }),
3197
3180
  };
3198
3181
  };
3199
3182
  const serializeAws_restJson1FsxStorageConfiguration = (input, context) => {
3200
3183
  return {
3201
- ...(input.fileSystemId !== undefined && input.fileSystemId !== null && { "file-system-id": input.fileSystemId }),
3202
- ...(input.mountPoint !== undefined && input.mountPoint !== null && { "mount-point": input.mountPoint }),
3184
+ ...(input.fileSystemId != null && { "file-system-id": input.fileSystemId }),
3185
+ ...(input.mountPoint != null && { "mount-point": input.mountPoint }),
3203
3186
  };
3204
3187
  };
3205
3188
  const serializeAws_restJson1GdgAttributes = (input, context) => {
3206
3189
  return {
3207
- ...(input.limit !== undefined && input.limit !== null && { limit: input.limit }),
3208
- ...(input.rollDisposition !== undefined &&
3209
- input.rollDisposition !== null && { rollDisposition: input.rollDisposition }),
3190
+ ...(input.limit != null && { limit: input.limit }),
3191
+ ...(input.rollDisposition != null && { rollDisposition: input.rollDisposition }),
3210
3192
  };
3211
3193
  };
3212
3194
  const serializeAws_restJson1HighAvailabilityConfig = (input, context) => {
3213
3195
  return {
3214
- ...(input.desiredCapacity !== undefined &&
3215
- input.desiredCapacity !== null && { desiredCapacity: input.desiredCapacity }),
3196
+ ...(input.desiredCapacity != null && { desiredCapacity: input.desiredCapacity }),
3216
3197
  };
3217
3198
  };
3218
3199
  const serializeAws_restJson1PrimaryKey = (input, context) => {
3219
3200
  return {
3220
- ...(input.length !== undefined && input.length !== null && { length: input.length }),
3221
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3222
- ...(input.offset !== undefined && input.offset !== null && { offset: input.offset }),
3201
+ ...(input.length != null && { length: input.length }),
3202
+ ...(input.name != null && { name: input.name }),
3203
+ ...(input.offset != null && { offset: input.offset }),
3223
3204
  };
3224
3205
  };
3225
3206
  const serializeAws_restJson1RecordLength = (input, context) => {
3226
3207
  return {
3227
- ...(input.max !== undefined && input.max !== null && { max: input.max }),
3228
- ...(input.min !== undefined && input.min !== null && { min: input.min }),
3208
+ ...(input.max != null && { max: input.max }),
3209
+ ...(input.min != null && { min: input.min }),
3229
3210
  };
3230
3211
  };
3231
3212
  const serializeAws_restJson1ScriptBatchJobIdentifier = (input, context) => {
3232
3213
  return {
3233
- ...(input.scriptName !== undefined && input.scriptName !== null && { scriptName: input.scriptName }),
3214
+ ...(input.scriptName != null && { scriptName: input.scriptName }),
3234
3215
  };
3235
3216
  };
3236
3217
  const serializeAws_restJson1StorageConfiguration = (input, context) => {
@@ -3273,15 +3254,13 @@ const serializeAws_restJson1TagMap = (input, context) => {
3273
3254
  };
3274
3255
  const serializeAws_restJson1VsamAttributes = (input, context) => {
3275
3256
  return {
3276
- ...(input.alternateKeys !== undefined &&
3277
- input.alternateKeys !== null && {
3257
+ ...(input.alternateKeys != null && {
3278
3258
  alternateKeys: serializeAws_restJson1AlternateKeyList(input.alternateKeys, context),
3279
3259
  }),
3280
- ...(input.compressed !== undefined && input.compressed !== null && { compressed: input.compressed }),
3281
- ...(input.encoding !== undefined && input.encoding !== null && { encoding: input.encoding }),
3282
- ...(input.format !== undefined && input.format !== null && { format: input.format }),
3283
- ...(input.primaryKey !== undefined &&
3284
- input.primaryKey !== null && { primaryKey: serializeAws_restJson1PrimaryKey(input.primaryKey, context) }),
3260
+ ...(input.compressed != null && { compressed: input.compressed }),
3261
+ ...(input.encoding != null && { encoding: input.encoding }),
3262
+ ...(input.format != null && { format: input.format }),
3263
+ ...(input.primaryKey != null && { primaryKey: serializeAws_restJson1PrimaryKey(input.primaryKey, context) }),
3285
3264
  };
3286
3265
  };
3287
3266
  const deserializeAws_restJson1AlternateKey = (output, context) => {
@@ -3308,14 +3287,14 @@ const deserializeAws_restJson1ApplicationSummary = (output, context) => {
3308
3287
  applicationArn: (0, smithy_client_1.expectString)(output.applicationArn),
3309
3288
  applicationId: (0, smithy_client_1.expectString)(output.applicationId),
3310
3289
  applicationVersion: (0, smithy_client_1.expectInt32)(output.applicationVersion),
3311
- creationTime: output.creationTime !== undefined && output.creationTime !== null
3290
+ creationTime: output.creationTime != null
3312
3291
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3313
3292
  : undefined,
3314
3293
  deploymentStatus: (0, smithy_client_1.expectString)(output.deploymentStatus),
3315
3294
  description: (0, smithy_client_1.expectString)(output.description),
3316
3295
  engineType: (0, smithy_client_1.expectString)(output.engineType),
3317
3296
  environmentId: (0, smithy_client_1.expectString)(output.environmentId),
3318
- lastStartTime: output.lastStartTime !== undefined && output.lastStartTime !== null
3297
+ lastStartTime: output.lastStartTime != null
3319
3298
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastStartTime)))
3320
3299
  : undefined,
3321
3300
  name: (0, smithy_client_1.expectString)(output.name),
@@ -3337,7 +3316,7 @@ const deserializeAws_restJson1ApplicationSummaryList = (output, context) => {
3337
3316
  const deserializeAws_restJson1ApplicationVersionSummary = (output, context) => {
3338
3317
  return {
3339
3318
  applicationVersion: (0, smithy_client_1.expectInt32)(output.applicationVersion),
3340
- creationTime: output.creationTime !== undefined && output.creationTime !== null
3319
+ creationTime: output.creationTime != null
3341
3320
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3342
3321
  : undefined,
3343
3322
  status: (0, smithy_client_1.expectString)(output.status),
@@ -3393,16 +3372,12 @@ const deserializeAws_restJson1BatchJobDefinitions = (output, context) => {
3393
3372
  const deserializeAws_restJson1BatchJobExecutionSummary = (output, context) => {
3394
3373
  return {
3395
3374
  applicationId: (0, smithy_client_1.expectString)(output.applicationId),
3396
- endTime: output.endTime !== undefined && output.endTime !== null
3397
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
3398
- : undefined,
3375
+ endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
3399
3376
  executionId: (0, smithy_client_1.expectString)(output.executionId),
3400
3377
  jobId: (0, smithy_client_1.expectString)(output.jobId),
3401
3378
  jobName: (0, smithy_client_1.expectString)(output.jobName),
3402
3379
  jobType: (0, smithy_client_1.expectString)(output.jobType),
3403
- startTime: output.startTime !== undefined && output.startTime !== null
3404
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
3405
- : undefined,
3380
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
3406
3381
  status: (0, smithy_client_1.expectString)(output.status),
3407
3382
  };
3408
3383
  };
@@ -3442,9 +3417,7 @@ const deserializeAws_restJson1DataSetImportSummary = (output, context) => {
3442
3417
  const deserializeAws_restJson1DataSetImportTask = (output, context) => {
3443
3418
  return {
3444
3419
  status: (0, smithy_client_1.expectString)(output.status),
3445
- summary: output.summary !== undefined && output.summary !== null
3446
- ? deserializeAws_restJson1DataSetImportSummary(output.summary, context)
3447
- : undefined,
3420
+ summary: output.summary != null ? deserializeAws_restJson1DataSetImportSummary(output.summary, context) : undefined,
3448
3421
  taskId: (0, smithy_client_1.expectString)(output.taskId),
3449
3422
  };
3450
3423
  };
@@ -3472,16 +3445,16 @@ const deserializeAws_restJson1DataSetsSummaryList = (output, context) => {
3472
3445
  };
3473
3446
  const deserializeAws_restJson1DataSetSummary = (output, context) => {
3474
3447
  return {
3475
- creationTime: output.creationTime !== undefined && output.creationTime !== null
3448
+ creationTime: output.creationTime != null
3476
3449
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3477
3450
  : undefined,
3478
3451
  dataSetName: (0, smithy_client_1.expectString)(output.dataSetName),
3479
3452
  dataSetOrg: (0, smithy_client_1.expectString)(output.dataSetOrg),
3480
3453
  format: (0, smithy_client_1.expectString)(output.format),
3481
- lastReferencedTime: output.lastReferencedTime !== undefined && output.lastReferencedTime !== null
3454
+ lastReferencedTime: output.lastReferencedTime != null
3482
3455
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastReferencedTime)))
3483
3456
  : undefined,
3484
- lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
3457
+ lastUpdatedTime: output.lastUpdatedTime != null
3485
3458
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
3486
3459
  : undefined,
3487
3460
  };
@@ -3508,7 +3481,7 @@ const deserializeAws_restJson1DeploymentSummary = (output, context) => {
3508
3481
  return {
3509
3482
  applicationId: (0, smithy_client_1.expectString)(output.applicationId),
3510
3483
  applicationVersion: (0, smithy_client_1.expectInt32)(output.applicationVersion),
3511
- creationTime: output.creationTime !== undefined && output.creationTime !== null
3484
+ creationTime: output.creationTime != null
3512
3485
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3513
3486
  : undefined,
3514
3487
  deploymentId: (0, smithy_client_1.expectString)(output.deploymentId),
@@ -3542,7 +3515,7 @@ const deserializeAws_restJson1EngineVersionsSummaryList = (output, context) => {
3542
3515
  };
3543
3516
  const deserializeAws_restJson1EnvironmentSummary = (output, context) => {
3544
3517
  return {
3545
- creationTime: output.creationTime !== undefined && output.creationTime !== null
3518
+ creationTime: output.creationTime != null
3546
3519
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3547
3520
  : undefined,
3548
3521
  engineType: (0, smithy_client_1.expectString)(output.engineType),
@@ -3607,20 +3580,14 @@ const deserializeAws_restJson1LogGroupSummary = (output, context) => {
3607
3580
  };
3608
3581
  const deserializeAws_restJson1MaintenanceSchedule = (output, context) => {
3609
3582
  return {
3610
- endTime: output.endTime !== undefined && output.endTime !== null
3611
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
3612
- : undefined,
3613
- startTime: output.startTime !== undefined && output.startTime !== null
3614
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
3615
- : undefined,
3583
+ endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
3584
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
3616
3585
  };
3617
3586
  };
3618
3587
  const deserializeAws_restJson1PendingMaintenance = (output, context) => {
3619
3588
  return {
3620
3589
  engineVersion: (0, smithy_client_1.expectString)(output.engineVersion),
3621
- schedule: output.schedule !== undefined && output.schedule !== null
3622
- ? deserializeAws_restJson1MaintenanceSchedule(output.schedule, context)
3623
- : undefined,
3590
+ schedule: output.schedule != null ? deserializeAws_restJson1MaintenanceSchedule(output.schedule, context) : undefined,
3624
3591
  };
3625
3592
  };
3626
3593
  const deserializeAws_restJson1PortList = (output, context) => {
@@ -3711,15 +3678,13 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
3711
3678
  };
3712
3679
  const deserializeAws_restJson1VsamDetailAttributes = (output, context) => {
3713
3680
  return {
3714
- alternateKeys: output.alternateKeys !== undefined && output.alternateKeys !== null
3681
+ alternateKeys: output.alternateKeys != null
3715
3682
  ? deserializeAws_restJson1AlternateKeyList(output.alternateKeys, context)
3716
3683
  : undefined,
3717
3684
  cacheAtStartup: (0, smithy_client_1.expectBoolean)(output.cacheAtStartup),
3718
3685
  compressed: (0, smithy_client_1.expectBoolean)(output.compressed),
3719
3686
  encoding: (0, smithy_client_1.expectString)(output.encoding),
3720
- primaryKey: output.primaryKey !== undefined && output.primaryKey !== null
3721
- ? deserializeAws_restJson1PrimaryKey(output.primaryKey, context)
3722
- : undefined,
3687
+ primaryKey: output.primaryKey != null ? deserializeAws_restJson1PrimaryKey(output.primaryKey, context) : undefined,
3723
3688
  recordFormat: (0, smithy_client_1.expectString)(output.recordFormat),
3724
3689
  };
3725
3690
  };
@@ -3754,6 +3719,9 @@ const loadRestJsonErrorCode = (output, data) => {
3754
3719
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3755
3720
  const sanitizeErrorCode = (rawValue) => {
3756
3721
  let cleanValue = rawValue;
3722
+ if (typeof cleanValue === "number") {
3723
+ cleanValue = cleanValue.toString();
3724
+ }
3757
3725
  if (cleanValue.indexOf(":") >= 0) {
3758
3726
  cleanValue = cleanValue.split(":")[0];
3759
3727
  }
@@ -58,8 +58,7 @@ export var serializeAws_restJson1CreateApplicationCommand = function (input, con
58
58
  "content-type": "application/json",
59
59
  };
60
60
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
61
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.definition !== undefined &&
62
- input.definition !== null && { definition: serializeAws_restJson1Definition(input.definition, context) })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.engineType !== undefined && input.engineType !== null && { engineType: input.engineType })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
61
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.definition != null && { definition: serializeAws_restJson1Definition(input.definition, context) })), (input.description != null && { description: input.description })), (input.engineType != null && { engineType: input.engineType })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
63
62
  return [2, new __HttpRequest({
64
63
  protocol: protocol,
65
64
  hostname: hostname,
@@ -95,8 +94,7 @@ export var serializeAws_restJson1CreateDataSetImportTaskCommand = function (inpu
95
94
  else {
96
95
  throw new Error("No value provided for input HTTP label: applicationId.");
97
96
  }
98
- body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.importConfig !== undefined &&
99
- input.importConfig !== null && {
97
+ body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.importConfig != null && {
100
98
  importConfig: serializeAws_restJson1DataSetImportConfig(input.importConfig, context),
101
99
  })));
102
100
  return [2, new __HttpRequest({
@@ -133,8 +131,7 @@ export var serializeAws_restJson1CreateDeploymentCommand = function (input, cont
133
131
  else {
134
132
  throw new Error("No value provided for input HTTP label: applicationId.");
135
133
  }
136
- body = JSON.stringify(__assign(__assign(__assign({}, (input.applicationVersion !== undefined &&
137
- input.applicationVersion !== null && { applicationVersion: input.applicationVersion })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.environmentId !== undefined && input.environmentId !== null && { environmentId: input.environmentId })));
134
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.applicationVersion != null && { applicationVersion: input.applicationVersion })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.environmentId != null && { environmentId: input.environmentId })));
138
135
  return [2, new __HttpRequest({
139
136
  protocol: protocol,
140
137
  hostname: hostname,
@@ -159,19 +156,13 @@ export var serializeAws_restJson1CreateEnvironmentCommand = function (input, con
159
156
  "content-type": "application/json",
160
157
  };
161
158
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/environments";
162
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description !== undefined && input.description !== null && { description: input.description })), (input.engineType !== undefined && input.engineType !== null && { engineType: input.engineType })), (input.engineVersion !== undefined && input.engineVersion !== null && { engineVersion: input.engineVersion })), (input.highAvailabilityConfig !== undefined &&
163
- input.highAvailabilityConfig !== null && {
159
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description != null && { description: input.description })), (input.engineType != null && { engineType: input.engineType })), (input.engineVersion != null && { engineVersion: input.engineVersion })), (input.highAvailabilityConfig != null && {
164
160
  highAvailabilityConfig: serializeAws_restJson1HighAvailabilityConfig(input.highAvailabilityConfig, context),
165
- })), (input.instanceType !== undefined && input.instanceType !== null && { instanceType: input.instanceType })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.preferredMaintenanceWindow !== undefined &&
166
- input.preferredMaintenanceWindow !== null && { preferredMaintenanceWindow: input.preferredMaintenanceWindow })), (input.publiclyAccessible !== undefined &&
167
- input.publiclyAccessible !== null && { publiclyAccessible: input.publiclyAccessible })), (input.securityGroupIds !== undefined &&
168
- input.securityGroupIds !== null && {
161
+ })), (input.instanceType != null && { instanceType: input.instanceType })), (input.name != null && { name: input.name })), (input.preferredMaintenanceWindow != null && { preferredMaintenanceWindow: input.preferredMaintenanceWindow })), (input.publiclyAccessible != null && { publiclyAccessible: input.publiclyAccessible })), (input.securityGroupIds != null && {
169
162
  securityGroupIds: serializeAws_restJson1String50List(input.securityGroupIds, context),
170
- })), (input.storageConfigurations !== undefined &&
171
- input.storageConfigurations !== null && {
163
+ })), (input.storageConfigurations != null && {
172
164
  storageConfigurations: serializeAws_restJson1StorageConfigurationList(input.storageConfigurations, context),
173
- })), (input.subnetIds !== undefined &&
174
- input.subnetIds !== null && { subnetIds: serializeAws_restJson1String50List(input.subnetIds, context) })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
165
+ })), (input.subnetIds != null && { subnetIds: serializeAws_restJson1String50List(input.subnetIds, context) })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
175
166
  return [2, new __HttpRequest({
176
167
  protocol: protocol,
177
168
  hostname: hostname,
@@ -919,11 +910,11 @@ export var serializeAws_restJson1StartBatchJobCommand = function (input, context
919
910
  else {
920
911
  throw new Error("No value provided for input HTTP label: applicationId.");
921
912
  }
922
- body = JSON.stringify(__assign(__assign({}, (input.batchJobIdentifier !== undefined &&
923
- input.batchJobIdentifier !== null && {
913
+ body = JSON.stringify(__assign(__assign({}, (input.batchJobIdentifier != null && {
924
914
  batchJobIdentifier: serializeAws_restJson1BatchJobIdentifier(input.batchJobIdentifier, context),
925
- })), (input.jobParams !== undefined &&
926
- input.jobParams !== null && { jobParams: serializeAws_restJson1BatchJobParametersMap(input.jobParams, context) })));
915
+ })), (input.jobParams != null && {
916
+ jobParams: serializeAws_restJson1BatchJobParametersMap(input.jobParams, context),
917
+ })));
927
918
  return [2, new __HttpRequest({
928
919
  protocol: protocol,
929
920
  hostname: hostname,
@@ -957,7 +948,7 @@ export var serializeAws_restJson1StopApplicationCommand = function (input, conte
957
948
  else {
958
949
  throw new Error("No value provided for input HTTP label: applicationId.");
959
950
  }
960
- body = JSON.stringify(__assign({}, (input.forceStop !== undefined && input.forceStop !== null && { forceStop: input.forceStop })));
951
+ body = JSON.stringify(__assign({}, (input.forceStop != null && { forceStop: input.forceStop })));
961
952
  return [2, new __HttpRequest({
962
953
  protocol: protocol,
963
954
  hostname: hostname,
@@ -991,7 +982,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
991
982
  else {
992
983
  throw new Error("No value provided for input HTTP label: resourceArn.");
993
984
  }
994
- body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
985
+ body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
995
986
  return [2, new __HttpRequest({
996
987
  protocol: protocol,
997
988
  hostname: hostname,
@@ -1058,9 +1049,7 @@ export var serializeAws_restJson1UpdateApplicationCommand = function (input, con
1058
1049
  else {
1059
1050
  throw new Error("No value provided for input HTTP label: applicationId.");
1060
1051
  }
1061
- body = JSON.stringify(__assign(__assign(__assign({}, (input.currentApplicationVersion !== undefined &&
1062
- input.currentApplicationVersion !== null && { currentApplicationVersion: input.currentApplicationVersion })), (input.definition !== undefined &&
1063
- input.definition !== null && { definition: serializeAws_restJson1Definition(input.definition, context) })), (input.description !== undefined && input.description !== null && { description: input.description })));
1052
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.currentApplicationVersion != null && { currentApplicationVersion: input.currentApplicationVersion })), (input.definition != null && { definition: serializeAws_restJson1Definition(input.definition, context) })), (input.description != null && { description: input.description })));
1064
1053
  return [2, new __HttpRequest({
1065
1054
  protocol: protocol,
1066
1055
  hostname: hostname,
@@ -1094,12 +1083,9 @@ export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, con
1094
1083
  else {
1095
1084
  throw new Error("No value provided for input HTTP label: environmentId.");
1096
1085
  }
1097
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.applyDuringMaintenanceWindow !== undefined &&
1098
- input.applyDuringMaintenanceWindow !== null && {
1086
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.applyDuringMaintenanceWindow != null && {
1099
1087
  applyDuringMaintenanceWindow: input.applyDuringMaintenanceWindow,
1100
- })), (input.desiredCapacity !== undefined &&
1101
- input.desiredCapacity !== null && { desiredCapacity: input.desiredCapacity })), (input.engineVersion !== undefined && input.engineVersion !== null && { engineVersion: input.engineVersion })), (input.instanceType !== undefined && input.instanceType !== null && { instanceType: input.instanceType })), (input.preferredMaintenanceWindow !== undefined &&
1102
- input.preferredMaintenanceWindow !== null && { preferredMaintenanceWindow: input.preferredMaintenanceWindow })));
1088
+ })), (input.desiredCapacity != null && { desiredCapacity: input.desiredCapacity })), (input.engineVersion != null && { engineVersion: input.engineVersion })), (input.instanceType != null && { instanceType: input.instanceType })), (input.preferredMaintenanceWindow != null && { preferredMaintenanceWindow: input.preferredMaintenanceWindow })));
1103
1089
  return [2, new __HttpRequest({
1104
1090
  protocol: protocol,
1105
1091
  hostname: hostname,
@@ -3887,8 +3873,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
3887
3873
  });
3888
3874
  }); };
3889
3875
  var serializeAws_restJson1AlternateKey = function (input, context) {
3890
- return __assign(__assign(__assign(__assign({}, (input.allowDuplicates !== undefined &&
3891
- input.allowDuplicates !== null && { allowDuplicates: input.allowDuplicates })), (input.length !== undefined && input.length !== null && { length: input.length })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.offset !== undefined && input.offset !== null && { offset: input.offset }));
3876
+ return __assign(__assign(__assign(__assign({}, (input.allowDuplicates != null && { allowDuplicates: input.allowDuplicates })), (input.length != null && { length: input.length })), (input.name != null && { name: input.name })), (input.offset != null && { offset: input.offset }));
3892
3877
  };
3893
3878
  var serializeAws_restJson1AlternateKeyList = function (input, context) {
3894
3879
  return input
@@ -3922,11 +3907,11 @@ var serializeAws_restJson1BatchJobParametersMap = function (input, context) {
3922
3907
  }, {});
3923
3908
  };
3924
3909
  var serializeAws_restJson1DataSet = function (input, context) {
3925
- return __assign(__assign(__assign(__assign(__assign({}, (input.datasetName !== undefined && input.datasetName !== null && { datasetName: input.datasetName })), (input.datasetOrg !== undefined &&
3926
- input.datasetOrg !== null && {
3910
+ return __assign(__assign(__assign(__assign(__assign({}, (input.datasetName != null && { datasetName: input.datasetName })), (input.datasetOrg != null && {
3927
3911
  datasetOrg: serializeAws_restJson1DatasetOrgAttributes(input.datasetOrg, context),
3928
- })), (input.recordLength !== undefined &&
3929
- input.recordLength !== null && { recordLength: serializeAws_restJson1RecordLength(input.recordLength, context) })), (input.relativePath !== undefined && input.relativePath !== null && { relativePath: input.relativePath })), (input.storageType !== undefined && input.storageType !== null && { storageType: input.storageType }));
3912
+ })), (input.recordLength != null && {
3913
+ recordLength: serializeAws_restJson1RecordLength(input.recordLength, context),
3914
+ })), (input.relativePath != null && { relativePath: input.relativePath })), (input.storageType != null && { storageType: input.storageType }));
3930
3915
  };
3931
3916
  var serializeAws_restJson1DataSetImportConfig = function (input, context) {
3932
3917
  return DataSetImportConfig.visit(input, {
@@ -3936,9 +3921,7 @@ var serializeAws_restJson1DataSetImportConfig = function (input, context) {
3936
3921
  });
3937
3922
  };
3938
3923
  var serializeAws_restJson1DataSetImportItem = function (input, context) {
3939
- return __assign(__assign({}, (input.dataSet !== undefined &&
3940
- input.dataSet !== null && { dataSet: serializeAws_restJson1DataSet(input.dataSet, context) })), (input.externalLocation !== undefined &&
3941
- input.externalLocation !== null && {
3924
+ return __assign(__assign({}, (input.dataSet != null && { dataSet: serializeAws_restJson1DataSet(input.dataSet, context) })), (input.externalLocation != null && {
3942
3925
  externalLocation: serializeAws_restJson1ExternalLocation(input.externalLocation, context),
3943
3926
  }));
3944
3927
  };
@@ -3967,7 +3950,7 @@ var serializeAws_restJson1Definition = function (input, context) {
3967
3950
  });
3968
3951
  };
3969
3952
  var serializeAws_restJson1EfsStorageConfiguration = function (input, context) {
3970
- return __assign(__assign({}, (input.fileSystemId !== undefined && input.fileSystemId !== null && { "file-system-id": input.fileSystemId })), (input.mountPoint !== undefined && input.mountPoint !== null && { "mount-point": input.mountPoint }));
3953
+ return __assign(__assign({}, (input.fileSystemId != null && { "file-system-id": input.fileSystemId })), (input.mountPoint != null && { "mount-point": input.mountPoint }));
3971
3954
  };
3972
3955
  var serializeAws_restJson1ExternalLocation = function (input, context) {
3973
3956
  return ExternalLocation.visit(input, {
@@ -3976,27 +3959,25 @@ var serializeAws_restJson1ExternalLocation = function (input, context) {
3976
3959
  });
3977
3960
  };
3978
3961
  var serializeAws_restJson1FileBatchJobIdentifier = function (input, context) {
3979
- return __assign(__assign({}, (input.fileName !== undefined && input.fileName !== null && { fileName: input.fileName })), (input.folderPath !== undefined && input.folderPath !== null && { folderPath: input.folderPath }));
3962
+ return __assign(__assign({}, (input.fileName != null && { fileName: input.fileName })), (input.folderPath != null && { folderPath: input.folderPath }));
3980
3963
  };
3981
3964
  var serializeAws_restJson1FsxStorageConfiguration = function (input, context) {
3982
- return __assign(__assign({}, (input.fileSystemId !== undefined && input.fileSystemId !== null && { "file-system-id": input.fileSystemId })), (input.mountPoint !== undefined && input.mountPoint !== null && { "mount-point": input.mountPoint }));
3965
+ return __assign(__assign({}, (input.fileSystemId != null && { "file-system-id": input.fileSystemId })), (input.mountPoint != null && { "mount-point": input.mountPoint }));
3983
3966
  };
3984
3967
  var serializeAws_restJson1GdgAttributes = function (input, context) {
3985
- return __assign(__assign({}, (input.limit !== undefined && input.limit !== null && { limit: input.limit })), (input.rollDisposition !== undefined &&
3986
- input.rollDisposition !== null && { rollDisposition: input.rollDisposition }));
3968
+ return __assign(__assign({}, (input.limit != null && { limit: input.limit })), (input.rollDisposition != null && { rollDisposition: input.rollDisposition }));
3987
3969
  };
3988
3970
  var serializeAws_restJson1HighAvailabilityConfig = function (input, context) {
3989
- return __assign({}, (input.desiredCapacity !== undefined &&
3990
- input.desiredCapacity !== null && { desiredCapacity: input.desiredCapacity }));
3971
+ return __assign({}, (input.desiredCapacity != null && { desiredCapacity: input.desiredCapacity }));
3991
3972
  };
3992
3973
  var serializeAws_restJson1PrimaryKey = function (input, context) {
3993
- return __assign(__assign(__assign({}, (input.length !== undefined && input.length !== null && { length: input.length })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.offset !== undefined && input.offset !== null && { offset: input.offset }));
3974
+ return __assign(__assign(__assign({}, (input.length != null && { length: input.length })), (input.name != null && { name: input.name })), (input.offset != null && { offset: input.offset }));
3994
3975
  };
3995
3976
  var serializeAws_restJson1RecordLength = function (input, context) {
3996
- return __assign(__assign({}, (input.max !== undefined && input.max !== null && { max: input.max })), (input.min !== undefined && input.min !== null && { min: input.min }));
3977
+ return __assign(__assign({}, (input.max != null && { max: input.max })), (input.min != null && { min: input.min }));
3997
3978
  };
3998
3979
  var serializeAws_restJson1ScriptBatchJobIdentifier = function (input, context) {
3999
- return __assign({}, (input.scriptName !== undefined && input.scriptName !== null && { scriptName: input.scriptName }));
3980
+ return __assign({}, (input.scriptName != null && { scriptName: input.scriptName }));
4000
3981
  };
4001
3982
  var serializeAws_restJson1StorageConfiguration = function (input, context) {
4002
3983
  return StorageConfiguration.visit(input, {
@@ -4036,11 +4017,9 @@ var serializeAws_restJson1TagMap = function (input, context) {
4036
4017
  }, {});
4037
4018
  };
4038
4019
  var serializeAws_restJson1VsamAttributes = function (input, context) {
4039
- return __assign(__assign(__assign(__assign(__assign({}, (input.alternateKeys !== undefined &&
4040
- input.alternateKeys !== null && {
4020
+ return __assign(__assign(__assign(__assign(__assign({}, (input.alternateKeys != null && {
4041
4021
  alternateKeys: serializeAws_restJson1AlternateKeyList(input.alternateKeys, context),
4042
- })), (input.compressed !== undefined && input.compressed !== null && { compressed: input.compressed })), (input.encoding !== undefined && input.encoding !== null && { encoding: input.encoding })), (input.format !== undefined && input.format !== null && { format: input.format })), (input.primaryKey !== undefined &&
4043
- input.primaryKey !== null && { primaryKey: serializeAws_restJson1PrimaryKey(input.primaryKey, context) }));
4022
+ })), (input.compressed != null && { compressed: input.compressed })), (input.encoding != null && { encoding: input.encoding })), (input.format != null && { format: input.format })), (input.primaryKey != null && { primaryKey: serializeAws_restJson1PrimaryKey(input.primaryKey, context) }));
4044
4023
  };
4045
4024
  var deserializeAws_restJson1AlternateKey = function (output, context) {
4046
4025
  return {
@@ -4066,14 +4045,14 @@ var deserializeAws_restJson1ApplicationSummary = function (output, context) {
4066
4045
  applicationArn: __expectString(output.applicationArn),
4067
4046
  applicationId: __expectString(output.applicationId),
4068
4047
  applicationVersion: __expectInt32(output.applicationVersion),
4069
- creationTime: output.creationTime !== undefined && output.creationTime !== null
4048
+ creationTime: output.creationTime != null
4070
4049
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
4071
4050
  : undefined,
4072
4051
  deploymentStatus: __expectString(output.deploymentStatus),
4073
4052
  description: __expectString(output.description),
4074
4053
  engineType: __expectString(output.engineType),
4075
4054
  environmentId: __expectString(output.environmentId),
4076
- lastStartTime: output.lastStartTime !== undefined && output.lastStartTime !== null
4055
+ lastStartTime: output.lastStartTime != null
4077
4056
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastStartTime)))
4078
4057
  : undefined,
4079
4058
  name: __expectString(output.name),
@@ -4095,7 +4074,7 @@ var deserializeAws_restJson1ApplicationSummaryList = function (output, context)
4095
4074
  var deserializeAws_restJson1ApplicationVersionSummary = function (output, context) {
4096
4075
  return {
4097
4076
  applicationVersion: __expectInt32(output.applicationVersion),
4098
- creationTime: output.creationTime !== undefined && output.creationTime !== null
4077
+ creationTime: output.creationTime != null
4099
4078
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
4100
4079
  : undefined,
4101
4080
  status: __expectString(output.status),
@@ -4151,16 +4130,12 @@ var deserializeAws_restJson1BatchJobDefinitions = function (output, context) {
4151
4130
  var deserializeAws_restJson1BatchJobExecutionSummary = function (output, context) {
4152
4131
  return {
4153
4132
  applicationId: __expectString(output.applicationId),
4154
- endTime: output.endTime !== undefined && output.endTime !== null
4155
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
4156
- : undefined,
4133
+ endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
4157
4134
  executionId: __expectString(output.executionId),
4158
4135
  jobId: __expectString(output.jobId),
4159
4136
  jobName: __expectString(output.jobName),
4160
4137
  jobType: __expectString(output.jobType),
4161
- startTime: output.startTime !== undefined && output.startTime !== null
4162
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
4163
- : undefined,
4138
+ startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
4164
4139
  status: __expectString(output.status),
4165
4140
  };
4166
4141
  };
@@ -4200,9 +4175,7 @@ var deserializeAws_restJson1DataSetImportSummary = function (output, context) {
4200
4175
  var deserializeAws_restJson1DataSetImportTask = function (output, context) {
4201
4176
  return {
4202
4177
  status: __expectString(output.status),
4203
- summary: output.summary !== undefined && output.summary !== null
4204
- ? deserializeAws_restJson1DataSetImportSummary(output.summary, context)
4205
- : undefined,
4178
+ summary: output.summary != null ? deserializeAws_restJson1DataSetImportSummary(output.summary, context) : undefined,
4206
4179
  taskId: __expectString(output.taskId),
4207
4180
  };
4208
4181
  };
@@ -4230,16 +4203,16 @@ var deserializeAws_restJson1DataSetsSummaryList = function (output, context) {
4230
4203
  };
4231
4204
  var deserializeAws_restJson1DataSetSummary = function (output, context) {
4232
4205
  return {
4233
- creationTime: output.creationTime !== undefined && output.creationTime !== null
4206
+ creationTime: output.creationTime != null
4234
4207
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
4235
4208
  : undefined,
4236
4209
  dataSetName: __expectString(output.dataSetName),
4237
4210
  dataSetOrg: __expectString(output.dataSetOrg),
4238
4211
  format: __expectString(output.format),
4239
- lastReferencedTime: output.lastReferencedTime !== undefined && output.lastReferencedTime !== null
4212
+ lastReferencedTime: output.lastReferencedTime != null
4240
4213
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastReferencedTime)))
4241
4214
  : undefined,
4242
- lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
4215
+ lastUpdatedTime: output.lastUpdatedTime != null
4243
4216
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTime)))
4244
4217
  : undefined,
4245
4218
  };
@@ -4266,7 +4239,7 @@ var deserializeAws_restJson1DeploymentSummary = function (output, context) {
4266
4239
  return {
4267
4240
  applicationId: __expectString(output.applicationId),
4268
4241
  applicationVersion: __expectInt32(output.applicationVersion),
4269
- creationTime: output.creationTime !== undefined && output.creationTime !== null
4242
+ creationTime: output.creationTime != null
4270
4243
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
4271
4244
  : undefined,
4272
4245
  deploymentId: __expectString(output.deploymentId),
@@ -4300,7 +4273,7 @@ var deserializeAws_restJson1EngineVersionsSummaryList = function (output, contex
4300
4273
  };
4301
4274
  var deserializeAws_restJson1EnvironmentSummary = function (output, context) {
4302
4275
  return {
4303
- creationTime: output.creationTime !== undefined && output.creationTime !== null
4276
+ creationTime: output.creationTime != null
4304
4277
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
4305
4278
  : undefined,
4306
4279
  engineType: __expectString(output.engineType),
@@ -4365,20 +4338,14 @@ var deserializeAws_restJson1LogGroupSummary = function (output, context) {
4365
4338
  };
4366
4339
  var deserializeAws_restJson1MaintenanceSchedule = function (output, context) {
4367
4340
  return {
4368
- endTime: output.endTime !== undefined && output.endTime !== null
4369
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
4370
- : undefined,
4371
- startTime: output.startTime !== undefined && output.startTime !== null
4372
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
4373
- : undefined,
4341
+ endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
4342
+ startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
4374
4343
  };
4375
4344
  };
4376
4345
  var deserializeAws_restJson1PendingMaintenance = function (output, context) {
4377
4346
  return {
4378
4347
  engineVersion: __expectString(output.engineVersion),
4379
- schedule: output.schedule !== undefined && output.schedule !== null
4380
- ? deserializeAws_restJson1MaintenanceSchedule(output.schedule, context)
4381
- : undefined,
4348
+ schedule: output.schedule != null ? deserializeAws_restJson1MaintenanceSchedule(output.schedule, context) : undefined,
4382
4349
  };
4383
4350
  };
4384
4351
  var deserializeAws_restJson1PortList = function (output, context) {
@@ -4468,15 +4435,13 @@ var deserializeAws_restJson1ValidationExceptionFieldList = function (output, con
4468
4435
  };
4469
4436
  var deserializeAws_restJson1VsamDetailAttributes = function (output, context) {
4470
4437
  return {
4471
- alternateKeys: output.alternateKeys !== undefined && output.alternateKeys !== null
4438
+ alternateKeys: output.alternateKeys != null
4472
4439
  ? deserializeAws_restJson1AlternateKeyList(output.alternateKeys, context)
4473
4440
  : undefined,
4474
4441
  cacheAtStartup: __expectBoolean(output.cacheAtStartup),
4475
4442
  compressed: __expectBoolean(output.compressed),
4476
4443
  encoding: __expectString(output.encoding),
4477
- primaryKey: output.primaryKey !== undefined && output.primaryKey !== null
4478
- ? deserializeAws_restJson1PrimaryKey(output.primaryKey, context)
4479
- : undefined,
4444
+ primaryKey: output.primaryKey != null ? deserializeAws_restJson1PrimaryKey(output.primaryKey, context) : undefined,
4480
4445
  recordFormat: __expectString(output.recordFormat),
4481
4446
  };
4482
4447
  };
@@ -4518,6 +4483,9 @@ var loadRestJsonErrorCode = function (output, data) {
4518
4483
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
4519
4484
  var sanitizeErrorCode = function (rawValue) {
4520
4485
  var cleanValue = rawValue;
4486
+ if (typeof cleanValue === "number") {
4487
+ cleanValue = cleanValue.toString();
4488
+ }
4521
4489
  if (cleanValue.indexOf(":") >= 0) {
4522
4490
  cleanValue = cleanValue.split(":")[0];
4523
4491
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-m2",
3
3
  "description": "AWS SDK for JavaScript M2 Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.130.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1",