@aws-sdk/client-codepipeline 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.
@@ -3159,10 +3159,10 @@ var deserializeAws_json1_1WebhookNotFoundExceptionResponse = function (parsedOut
3159
3159
  });
3160
3160
  }); };
3161
3161
  var serializeAws_json1_1AcknowledgeJobInput = function (input, context) {
3162
- return __assign(__assign({}, (input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId })), (input.nonce !== undefined && input.nonce !== null && { nonce: input.nonce }));
3162
+ return __assign(__assign({}, (input.jobId != null && { jobId: input.jobId })), (input.nonce != null && { nonce: input.nonce }));
3163
3163
  };
3164
3164
  var serializeAws_json1_1AcknowledgeThirdPartyJobInput = function (input, context) {
3165
- return __assign(__assign(__assign({}, (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId })), (input.nonce !== undefined && input.nonce !== null && { nonce: input.nonce }));
3165
+ return __assign(__assign(__assign({}, (input.clientToken != null && { clientToken: input.clientToken })), (input.jobId != null && { jobId: input.jobId })), (input.nonce != null && { nonce: input.nonce }));
3166
3166
  };
3167
3167
  var serializeAws_json1_1ActionConfigurationMap = function (input, context) {
3168
3168
  return Object.entries(input).reduce(function (acc, _a) {
@@ -3175,7 +3175,7 @@ var serializeAws_json1_1ActionConfigurationMap = function (input, context) {
3175
3175
  }, {});
3176
3176
  };
3177
3177
  var serializeAws_json1_1ActionConfigurationProperty = function (input, context) {
3178
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.key !== undefined && input.key !== null && { key: input.key })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.queryable !== undefined && input.queryable !== null && { queryable: input.queryable })), (input.required !== undefined && input.required !== null && { required: input.required })), (input.secret !== undefined && input.secret !== null && { secret: input.secret })), (input.type !== undefined && input.type !== null && { type: input.type }));
3178
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.key != null && { key: input.key })), (input.name != null && { name: input.name })), (input.queryable != null && { queryable: input.queryable })), (input.required != null && { required: input.required })), (input.secret != null && { secret: input.secret })), (input.type != null && { type: input.type }));
3179
3179
  };
3180
3180
  var serializeAws_json1_1ActionConfigurationPropertyList = function (input, context) {
3181
3181
  return input
@@ -3188,62 +3188,47 @@ var serializeAws_json1_1ActionConfigurationPropertyList = function (input, conte
3188
3188
  });
3189
3189
  };
3190
3190
  var serializeAws_json1_1ActionDeclaration = function (input, context) {
3191
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actionTypeId !== undefined &&
3192
- input.actionTypeId !== null && { actionTypeId: serializeAws_json1_1ActionTypeId(input.actionTypeId, context) })), (input.configuration !== undefined &&
3193
- input.configuration !== null && {
3191
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actionTypeId != null && { actionTypeId: serializeAws_json1_1ActionTypeId(input.actionTypeId, context) })), (input.configuration != null && {
3194
3192
  configuration: serializeAws_json1_1ActionConfigurationMap(input.configuration, context),
3195
- })), (input.inputArtifacts !== undefined &&
3196
- input.inputArtifacts !== null && {
3193
+ })), (input.inputArtifacts != null && {
3197
3194
  inputArtifacts: serializeAws_json1_1InputArtifactList(input.inputArtifacts, context),
3198
- })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.namespace !== undefined && input.namespace !== null && { namespace: input.namespace })), (input.outputArtifacts !== undefined &&
3199
- input.outputArtifacts !== null && {
3195
+ })), (input.name != null && { name: input.name })), (input.namespace != null && { namespace: input.namespace })), (input.outputArtifacts != null && {
3200
3196
  outputArtifacts: serializeAws_json1_1OutputArtifactList(input.outputArtifacts, context),
3201
- })), (input.region !== undefined && input.region !== null && { region: input.region })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.runOrder !== undefined && input.runOrder !== null && { runOrder: input.runOrder }));
3197
+ })), (input.region != null && { region: input.region })), (input.roleArn != null && { roleArn: input.roleArn })), (input.runOrder != null && { runOrder: input.runOrder }));
3202
3198
  };
3203
3199
  var serializeAws_json1_1ActionExecutionFilter = function (input, context) {
3204
- return __assign({}, (input.pipelineExecutionId !== undefined &&
3205
- input.pipelineExecutionId !== null && { pipelineExecutionId: input.pipelineExecutionId }));
3200
+ return __assign({}, (input.pipelineExecutionId != null && { pipelineExecutionId: input.pipelineExecutionId }));
3206
3201
  };
3207
3202
  var serializeAws_json1_1ActionRevision = function (input, context) {
3208
- return __assign(__assign(__assign({}, (input.created !== undefined &&
3209
- input.created !== null && { created: Math.round(input.created.getTime() / 1000) })), (input.revisionChangeId !== undefined &&
3210
- input.revisionChangeId !== null && { revisionChangeId: input.revisionChangeId })), (input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId }));
3203
+ return __assign(__assign(__assign({}, (input.created != null && { created: Math.round(input.created.getTime() / 1000) })), (input.revisionChangeId != null && { revisionChangeId: input.revisionChangeId })), (input.revisionId != null && { revisionId: input.revisionId }));
3211
3204
  };
3212
3205
  var serializeAws_json1_1ActionTypeArtifactDetails = function (input, context) {
3213
- return __assign(__assign({}, (input.maximumCount !== undefined && input.maximumCount !== null && { maximumCount: input.maximumCount })), (input.minimumCount !== undefined && input.minimumCount !== null && { minimumCount: input.minimumCount }));
3206
+ return __assign(__assign({}, (input.maximumCount != null && { maximumCount: input.maximumCount })), (input.minimumCount != null && { minimumCount: input.minimumCount }));
3214
3207
  };
3215
3208
  var serializeAws_json1_1ActionTypeDeclaration = function (input, context) {
3216
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.executor !== undefined &&
3217
- input.executor !== null && { executor: serializeAws_json1_1ActionTypeExecutor(input.executor, context) })), (input.id !== undefined &&
3218
- input.id !== null && { id: serializeAws_json1_1ActionTypeIdentifier(input.id, context) })), (input.inputArtifactDetails !== undefined &&
3219
- input.inputArtifactDetails !== null && {
3209
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.executor != null && { executor: serializeAws_json1_1ActionTypeExecutor(input.executor, context) })), (input.id != null && { id: serializeAws_json1_1ActionTypeIdentifier(input.id, context) })), (input.inputArtifactDetails != null && {
3220
3210
  inputArtifactDetails: serializeAws_json1_1ActionTypeArtifactDetails(input.inputArtifactDetails, context),
3221
- })), (input.outputArtifactDetails !== undefined &&
3222
- input.outputArtifactDetails !== null && {
3211
+ })), (input.outputArtifactDetails != null && {
3223
3212
  outputArtifactDetails: serializeAws_json1_1ActionTypeArtifactDetails(input.outputArtifactDetails, context),
3224
- })), (input.permissions !== undefined &&
3225
- input.permissions !== null && {
3213
+ })), (input.permissions != null && {
3226
3214
  permissions: serializeAws_json1_1ActionTypePermissions(input.permissions, context),
3227
- })), (input.properties !== undefined &&
3228
- input.properties !== null && { properties: serializeAws_json1_1ActionTypeProperties(input.properties, context) })), (input.urls !== undefined &&
3229
- input.urls !== null && { urls: serializeAws_json1_1ActionTypeUrls(input.urls, context) }));
3215
+ })), (input.properties != null && {
3216
+ properties: serializeAws_json1_1ActionTypeProperties(input.properties, context),
3217
+ })), (input.urls != null && { urls: serializeAws_json1_1ActionTypeUrls(input.urls, context) }));
3230
3218
  };
3231
3219
  var serializeAws_json1_1ActionTypeExecutor = function (input, context) {
3232
- return __assign(__assign(__assign(__assign({}, (input.configuration !== undefined &&
3233
- input.configuration !== null && {
3220
+ return __assign(__assign(__assign(__assign({}, (input.configuration != null && {
3234
3221
  configuration: serializeAws_json1_1ExecutorConfiguration(input.configuration, context),
3235
- })), (input.jobTimeout !== undefined && input.jobTimeout !== null && { jobTimeout: input.jobTimeout })), (input.policyStatementsTemplate !== undefined &&
3236
- input.policyStatementsTemplate !== null && { policyStatementsTemplate: input.policyStatementsTemplate })), (input.type !== undefined && input.type !== null && { type: input.type }));
3222
+ })), (input.jobTimeout != null && { jobTimeout: input.jobTimeout })), (input.policyStatementsTemplate != null && { policyStatementsTemplate: input.policyStatementsTemplate })), (input.type != null && { type: input.type }));
3237
3223
  };
3238
3224
  var serializeAws_json1_1ActionTypeId = function (input, context) {
3239
- return __assign(__assign(__assign(__assign({}, (input.category !== undefined && input.category !== null && { category: input.category })), (input.owner !== undefined && input.owner !== null && { owner: input.owner })), (input.provider !== undefined && input.provider !== null && { provider: input.provider })), (input.version !== undefined && input.version !== null && { version: input.version }));
3225
+ return __assign(__assign(__assign(__assign({}, (input.category != null && { category: input.category })), (input.owner != null && { owner: input.owner })), (input.provider != null && { provider: input.provider })), (input.version != null && { version: input.version }));
3240
3226
  };
3241
3227
  var serializeAws_json1_1ActionTypeIdentifier = function (input, context) {
3242
- return __assign(__assign(__assign(__assign({}, (input.category !== undefined && input.category !== null && { category: input.category })), (input.owner !== undefined && input.owner !== null && { owner: input.owner })), (input.provider !== undefined && input.provider !== null && { provider: input.provider })), (input.version !== undefined && input.version !== null && { version: input.version }));
3228
+ return __assign(__assign(__assign(__assign({}, (input.category != null && { category: input.category })), (input.owner != null && { owner: input.owner })), (input.provider != null && { provider: input.provider })), (input.version != null && { version: input.version }));
3243
3229
  };
3244
3230
  var serializeAws_json1_1ActionTypePermissions = function (input, context) {
3245
- return __assign({}, (input.allowedAccounts !== undefined &&
3246
- input.allowedAccounts !== null && {
3231
+ return __assign({}, (input.allowedAccounts != null && {
3247
3232
  allowedAccounts: serializeAws_json1_1AllowedAccounts(input.allowedAccounts, context),
3248
3233
  }));
3249
3234
  };
@@ -3258,21 +3243,13 @@ var serializeAws_json1_1ActionTypeProperties = function (input, context) {
3258
3243
  });
3259
3244
  };
3260
3245
  var serializeAws_json1_1ActionTypeProperty = function (input, context) {
3261
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.key !== undefined && input.key !== null && { key: input.key })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.noEcho !== undefined && input.noEcho !== null && { noEcho: input.noEcho })), (input.optional !== undefined && input.optional !== null && { optional: input.optional })), (input.queryable !== undefined && input.queryable !== null && { queryable: input.queryable }));
3246
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.key != null && { key: input.key })), (input.name != null && { name: input.name })), (input.noEcho != null && { noEcho: input.noEcho })), (input.optional != null && { optional: input.optional })), (input.queryable != null && { queryable: input.queryable }));
3262
3247
  };
3263
3248
  var serializeAws_json1_1ActionTypeSettings = function (input, context) {
3264
- return __assign(__assign(__assign(__assign({}, (input.entityUrlTemplate !== undefined &&
3265
- input.entityUrlTemplate !== null && { entityUrlTemplate: input.entityUrlTemplate })), (input.executionUrlTemplate !== undefined &&
3266
- input.executionUrlTemplate !== null && { executionUrlTemplate: input.executionUrlTemplate })), (input.revisionUrlTemplate !== undefined &&
3267
- input.revisionUrlTemplate !== null && { revisionUrlTemplate: input.revisionUrlTemplate })), (input.thirdPartyConfigurationUrl !== undefined &&
3268
- input.thirdPartyConfigurationUrl !== null && { thirdPartyConfigurationUrl: input.thirdPartyConfigurationUrl }));
3249
+ return __assign(__assign(__assign(__assign({}, (input.entityUrlTemplate != null && { entityUrlTemplate: input.entityUrlTemplate })), (input.executionUrlTemplate != null && { executionUrlTemplate: input.executionUrlTemplate })), (input.revisionUrlTemplate != null && { revisionUrlTemplate: input.revisionUrlTemplate })), (input.thirdPartyConfigurationUrl != null && { thirdPartyConfigurationUrl: input.thirdPartyConfigurationUrl }));
3269
3250
  };
3270
3251
  var serializeAws_json1_1ActionTypeUrls = function (input, context) {
3271
- return __assign(__assign(__assign(__assign({}, (input.configurationUrl !== undefined &&
3272
- input.configurationUrl !== null && { configurationUrl: input.configurationUrl })), (input.entityUrlTemplate !== undefined &&
3273
- input.entityUrlTemplate !== null && { entityUrlTemplate: input.entityUrlTemplate })), (input.executionUrlTemplate !== undefined &&
3274
- input.executionUrlTemplate !== null && { executionUrlTemplate: input.executionUrlTemplate })), (input.revisionUrlTemplate !== undefined &&
3275
- input.revisionUrlTemplate !== null && { revisionUrlTemplate: input.revisionUrlTemplate }));
3252
+ return __assign(__assign(__assign(__assign({}, (input.configurationUrl != null && { configurationUrl: input.configurationUrl })), (input.entityUrlTemplate != null && { entityUrlTemplate: input.entityUrlTemplate })), (input.executionUrlTemplate != null && { executionUrlTemplate: input.executionUrlTemplate })), (input.revisionUrlTemplate != null && { revisionUrlTemplate: input.revisionUrlTemplate }));
3276
3253
  };
3277
3254
  var serializeAws_json1_1AllowedAccounts = function (input, context) {
3278
3255
  return input
@@ -3285,16 +3262,15 @@ var serializeAws_json1_1AllowedAccounts = function (input, context) {
3285
3262
  });
3286
3263
  };
3287
3264
  var serializeAws_json1_1ApprovalResult = function (input, context) {
3288
- return __assign(__assign({}, (input.status !== undefined && input.status !== null && { status: input.status })), (input.summary !== undefined && input.summary !== null && { summary: input.summary }));
3265
+ return __assign(__assign({}, (input.status != null && { status: input.status })), (input.summary != null && { summary: input.summary }));
3289
3266
  };
3290
3267
  var serializeAws_json1_1ArtifactDetails = function (input, context) {
3291
- return __assign(__assign({}, (input.maximumCount !== undefined && input.maximumCount !== null && { maximumCount: input.maximumCount })), (input.minimumCount !== undefined && input.minimumCount !== null && { minimumCount: input.minimumCount }));
3268
+ return __assign(__assign({}, (input.maximumCount != null && { maximumCount: input.maximumCount })), (input.minimumCount != null && { minimumCount: input.minimumCount }));
3292
3269
  };
3293
3270
  var serializeAws_json1_1ArtifactStore = function (input, context) {
3294
- return __assign(__assign(__assign({}, (input.encryptionKey !== undefined &&
3295
- input.encryptionKey !== null && {
3271
+ return __assign(__assign(__assign({}, (input.encryptionKey != null && {
3296
3272
  encryptionKey: serializeAws_json1_1EncryptionKey(input.encryptionKey, context),
3297
- })), (input.location !== undefined && input.location !== null && { location: input.location })), (input.type !== undefined && input.type !== null && { type: input.type }));
3273
+ })), (input.location != null && { location: input.location })), (input.type != null && { type: input.type }));
3298
3274
  };
3299
3275
  var serializeAws_json1_1ArtifactStoreMap = function (input, context) {
3300
3276
  return Object.entries(input).reduce(function (acc, _a) {
@@ -3307,93 +3283,77 @@ var serializeAws_json1_1ArtifactStoreMap = function (input, context) {
3307
3283
  }, {});
3308
3284
  };
3309
3285
  var serializeAws_json1_1BlockerDeclaration = function (input, context) {
3310
- return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.type !== undefined && input.type !== null && { type: input.type }));
3286
+ return __assign(__assign({}, (input.name != null && { name: input.name })), (input.type != null && { type: input.type }));
3311
3287
  };
3312
3288
  var serializeAws_json1_1CreateCustomActionTypeInput = function (input, context) {
3313
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.category !== undefined && input.category !== null && { category: input.category })), (input.configurationProperties !== undefined &&
3314
- input.configurationProperties !== null && {
3289
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.category != null && { category: input.category })), (input.configurationProperties != null && {
3315
3290
  configurationProperties: serializeAws_json1_1ActionConfigurationPropertyList(input.configurationProperties, context),
3316
- })), (input.inputArtifactDetails !== undefined &&
3317
- input.inputArtifactDetails !== null && {
3291
+ })), (input.inputArtifactDetails != null && {
3318
3292
  inputArtifactDetails: serializeAws_json1_1ArtifactDetails(input.inputArtifactDetails, context),
3319
- })), (input.outputArtifactDetails !== undefined &&
3320
- input.outputArtifactDetails !== null && {
3293
+ })), (input.outputArtifactDetails != null && {
3321
3294
  outputArtifactDetails: serializeAws_json1_1ArtifactDetails(input.outputArtifactDetails, context),
3322
- })), (input.provider !== undefined && input.provider !== null && { provider: input.provider })), (input.settings !== undefined &&
3323
- input.settings !== null && { settings: serializeAws_json1_1ActionTypeSettings(input.settings, context) })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.version !== undefined && input.version !== null && { version: input.version }));
3295
+ })), (input.provider != null && { provider: input.provider })), (input.settings != null && { settings: serializeAws_json1_1ActionTypeSettings(input.settings, context) })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.version != null && { version: input.version }));
3324
3296
  };
3325
3297
  var serializeAws_json1_1CreatePipelineInput = function (input, context) {
3326
- return __assign(__assign({}, (input.pipeline !== undefined &&
3327
- input.pipeline !== null && { pipeline: serializeAws_json1_1PipelineDeclaration(input.pipeline, context) })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
3298
+ return __assign(__assign({}, (input.pipeline != null && { pipeline: serializeAws_json1_1PipelineDeclaration(input.pipeline, context) })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
3328
3299
  };
3329
3300
  var serializeAws_json1_1CurrentRevision = function (input, context) {
3330
- return __assign(__assign(__assign(__assign({}, (input.changeIdentifier !== undefined &&
3331
- input.changeIdentifier !== null && { changeIdentifier: input.changeIdentifier })), (input.created !== undefined &&
3332
- input.created !== null && { created: Math.round(input.created.getTime() / 1000) })), (input.revision !== undefined && input.revision !== null && { revision: input.revision })), (input.revisionSummary !== undefined &&
3333
- input.revisionSummary !== null && { revisionSummary: input.revisionSummary }));
3301
+ return __assign(__assign(__assign(__assign({}, (input.changeIdentifier != null && { changeIdentifier: input.changeIdentifier })), (input.created != null && { created: Math.round(input.created.getTime() / 1000) })), (input.revision != null && { revision: input.revision })), (input.revisionSummary != null && { revisionSummary: input.revisionSummary }));
3334
3302
  };
3335
3303
  var serializeAws_json1_1DeleteCustomActionTypeInput = function (input, context) {
3336
- return __assign(__assign(__assign({}, (input.category !== undefined && input.category !== null && { category: input.category })), (input.provider !== undefined && input.provider !== null && { provider: input.provider })), (input.version !== undefined && input.version !== null && { version: input.version }));
3304
+ return __assign(__assign(__assign({}, (input.category != null && { category: input.category })), (input.provider != null && { provider: input.provider })), (input.version != null && { version: input.version }));
3337
3305
  };
3338
3306
  var serializeAws_json1_1DeletePipelineInput = function (input, context) {
3339
- return __assign({}, (input.name !== undefined && input.name !== null && { name: input.name }));
3307
+ return __assign({}, (input.name != null && { name: input.name }));
3340
3308
  };
3341
3309
  var serializeAws_json1_1DeleteWebhookInput = function (input, context) {
3342
- return __assign({}, (input.name !== undefined && input.name !== null && { name: input.name }));
3310
+ return __assign({}, (input.name != null && { name: input.name }));
3343
3311
  };
3344
3312
  var serializeAws_json1_1DeregisterWebhookWithThirdPartyInput = function (input, context) {
3345
- return __assign({}, (input.webhookName !== undefined && input.webhookName !== null && { webhookName: input.webhookName }));
3313
+ return __assign({}, (input.webhookName != null && { webhookName: input.webhookName }));
3346
3314
  };
3347
3315
  var serializeAws_json1_1DisableStageTransitionInput = function (input, context) {
3348
- return __assign(__assign(__assign(__assign({}, (input.pipelineName !== undefined && input.pipelineName !== null && { pipelineName: input.pipelineName })), (input.reason !== undefined && input.reason !== null && { reason: input.reason })), (input.stageName !== undefined && input.stageName !== null && { stageName: input.stageName })), (input.transitionType !== undefined &&
3349
- input.transitionType !== null && { transitionType: input.transitionType }));
3316
+ return __assign(__assign(__assign(__assign({}, (input.pipelineName != null && { pipelineName: input.pipelineName })), (input.reason != null && { reason: input.reason })), (input.stageName != null && { stageName: input.stageName })), (input.transitionType != null && { transitionType: input.transitionType }));
3350
3317
  };
3351
3318
  var serializeAws_json1_1EnableStageTransitionInput = function (input, context) {
3352
- return __assign(__assign(__assign({}, (input.pipelineName !== undefined && input.pipelineName !== null && { pipelineName: input.pipelineName })), (input.stageName !== undefined && input.stageName !== null && { stageName: input.stageName })), (input.transitionType !== undefined &&
3353
- input.transitionType !== null && { transitionType: input.transitionType }));
3319
+ return __assign(__assign(__assign({}, (input.pipelineName != null && { pipelineName: input.pipelineName })), (input.stageName != null && { stageName: input.stageName })), (input.transitionType != null && { transitionType: input.transitionType }));
3354
3320
  };
3355
3321
  var serializeAws_json1_1EncryptionKey = function (input, context) {
3356
- return __assign(__assign({}, (input.id !== undefined && input.id !== null && { id: input.id })), (input.type !== undefined && input.type !== null && { type: input.type }));
3322
+ return __assign(__assign({}, (input.id != null && { id: input.id })), (input.type != null && { type: input.type }));
3357
3323
  };
3358
3324
  var serializeAws_json1_1ExecutionDetails = function (input, context) {
3359
- return __assign(__assign(__assign({}, (input.externalExecutionId !== undefined &&
3360
- input.externalExecutionId !== null && { externalExecutionId: input.externalExecutionId })), (input.percentComplete !== undefined &&
3361
- input.percentComplete !== null && { percentComplete: input.percentComplete })), (input.summary !== undefined && input.summary !== null && { summary: input.summary }));
3325
+ return __assign(__assign(__assign({}, (input.externalExecutionId != null && { externalExecutionId: input.externalExecutionId })), (input.percentComplete != null && { percentComplete: input.percentComplete })), (input.summary != null && { summary: input.summary }));
3362
3326
  };
3363
3327
  var serializeAws_json1_1ExecutorConfiguration = function (input, context) {
3364
- return __assign(__assign({}, (input.jobWorkerExecutorConfiguration !== undefined &&
3365
- input.jobWorkerExecutorConfiguration !== null && {
3328
+ return __assign(__assign({}, (input.jobWorkerExecutorConfiguration != null && {
3366
3329
  jobWorkerExecutorConfiguration: serializeAws_json1_1JobWorkerExecutorConfiguration(input.jobWorkerExecutorConfiguration, context),
3367
- })), (input.lambdaExecutorConfiguration !== undefined &&
3368
- input.lambdaExecutorConfiguration !== null && {
3330
+ })), (input.lambdaExecutorConfiguration != null && {
3369
3331
  lambdaExecutorConfiguration: serializeAws_json1_1LambdaExecutorConfiguration(input.lambdaExecutorConfiguration, context),
3370
3332
  }));
3371
3333
  };
3372
3334
  var serializeAws_json1_1FailureDetails = function (input, context) {
3373
- return __assign(__assign(__assign({}, (input.externalExecutionId !== undefined &&
3374
- input.externalExecutionId !== null && { externalExecutionId: input.externalExecutionId })), (input.message !== undefined && input.message !== null && { message: input.message })), (input.type !== undefined && input.type !== null && { type: input.type }));
3335
+ return __assign(__assign(__assign({}, (input.externalExecutionId != null && { externalExecutionId: input.externalExecutionId })), (input.message != null && { message: input.message })), (input.type != null && { type: input.type }));
3375
3336
  };
3376
3337
  var serializeAws_json1_1GetActionTypeInput = function (input, context) {
3377
- return __assign(__assign(__assign(__assign({}, (input.category !== undefined && input.category !== null && { category: input.category })), (input.owner !== undefined && input.owner !== null && { owner: input.owner })), (input.provider !== undefined && input.provider !== null && { provider: input.provider })), (input.version !== undefined && input.version !== null && { version: input.version }));
3338
+ return __assign(__assign(__assign(__assign({}, (input.category != null && { category: input.category })), (input.owner != null && { owner: input.owner })), (input.provider != null && { provider: input.provider })), (input.version != null && { version: input.version }));
3378
3339
  };
3379
3340
  var serializeAws_json1_1GetJobDetailsInput = function (input, context) {
3380
- return __assign({}, (input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }));
3341
+ return __assign({}, (input.jobId != null && { jobId: input.jobId }));
3381
3342
  };
3382
3343
  var serializeAws_json1_1GetPipelineExecutionInput = function (input, context) {
3383
- return __assign(__assign({}, (input.pipelineExecutionId !== undefined &&
3384
- input.pipelineExecutionId !== null && { pipelineExecutionId: input.pipelineExecutionId })), (input.pipelineName !== undefined && input.pipelineName !== null && { pipelineName: input.pipelineName }));
3344
+ return __assign(__assign({}, (input.pipelineExecutionId != null && { pipelineExecutionId: input.pipelineExecutionId })), (input.pipelineName != null && { pipelineName: input.pipelineName }));
3385
3345
  };
3386
3346
  var serializeAws_json1_1GetPipelineInput = function (input, context) {
3387
- return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.version !== undefined && input.version !== null && { version: input.version }));
3347
+ return __assign(__assign({}, (input.name != null && { name: input.name })), (input.version != null && { version: input.version }));
3388
3348
  };
3389
3349
  var serializeAws_json1_1GetPipelineStateInput = function (input, context) {
3390
- return __assign({}, (input.name !== undefined && input.name !== null && { name: input.name }));
3350
+ return __assign({}, (input.name != null && { name: input.name }));
3391
3351
  };
3392
3352
  var serializeAws_json1_1GetThirdPartyJobDetailsInput = function (input, context) {
3393
- return __assign(__assign({}, (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }));
3353
+ return __assign(__assign({}, (input.clientToken != null && { clientToken: input.clientToken })), (input.jobId != null && { jobId: input.jobId }));
3394
3354
  };
3395
3355
  var serializeAws_json1_1InputArtifact = function (input, context) {
3396
- return __assign({}, (input.name !== undefined && input.name !== null && { name: input.name }));
3356
+ return __assign({}, (input.name != null && { name: input.name }));
3397
3357
  };
3398
3358
  var serializeAws_json1_1InputArtifactList = function (input, context) {
3399
3359
  return input
@@ -3406,40 +3366,35 @@ var serializeAws_json1_1InputArtifactList = function (input, context) {
3406
3366
  });
3407
3367
  };
3408
3368
  var serializeAws_json1_1JobWorkerExecutorConfiguration = function (input, context) {
3409
- return __assign(__assign({}, (input.pollingAccounts !== undefined &&
3410
- input.pollingAccounts !== null && {
3369
+ return __assign(__assign({}, (input.pollingAccounts != null && {
3411
3370
  pollingAccounts: serializeAws_json1_1PollingAccountList(input.pollingAccounts, context),
3412
- })), (input.pollingServicePrincipals !== undefined &&
3413
- input.pollingServicePrincipals !== null && {
3371
+ })), (input.pollingServicePrincipals != null && {
3414
3372
  pollingServicePrincipals: serializeAws_json1_1PollingServicePrincipalList(input.pollingServicePrincipals, context),
3415
3373
  }));
3416
3374
  };
3417
3375
  var serializeAws_json1_1LambdaExecutorConfiguration = function (input, context) {
3418
- return __assign({}, (input.lambdaFunctionArn !== undefined &&
3419
- input.lambdaFunctionArn !== null && { lambdaFunctionArn: input.lambdaFunctionArn }));
3376
+ return __assign({}, (input.lambdaFunctionArn != null && { lambdaFunctionArn: input.lambdaFunctionArn }));
3420
3377
  };
3421
3378
  var serializeAws_json1_1ListActionExecutionsInput = function (input, context) {
3422
- return __assign(__assign(__assign(__assign({}, (input.filter !== undefined &&
3423
- input.filter !== null && { filter: serializeAws_json1_1ActionExecutionFilter(input.filter, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.pipelineName !== undefined && input.pipelineName !== null && { pipelineName: input.pipelineName }));
3379
+ return __assign(__assign(__assign(__assign({}, (input.filter != null && { filter: serializeAws_json1_1ActionExecutionFilter(input.filter, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.pipelineName != null && { pipelineName: input.pipelineName }));
3424
3380
  };
3425
3381
  var serializeAws_json1_1ListActionTypesInput = function (input, context) {
3426
- return __assign(__assign(__assign({}, (input.actionOwnerFilter !== undefined &&
3427
- input.actionOwnerFilter !== null && { actionOwnerFilter: input.actionOwnerFilter })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.regionFilter !== undefined && input.regionFilter !== null && { regionFilter: input.regionFilter }));
3382
+ return __assign(__assign(__assign({}, (input.actionOwnerFilter != null && { actionOwnerFilter: input.actionOwnerFilter })), (input.nextToken != null && { nextToken: input.nextToken })), (input.regionFilter != null && { regionFilter: input.regionFilter }));
3428
3383
  };
3429
3384
  var serializeAws_json1_1ListPipelineExecutionsInput = function (input, context) {
3430
- return __assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.pipelineName !== undefined && input.pipelineName !== null && { pipelineName: input.pipelineName }));
3385
+ return __assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.pipelineName != null && { pipelineName: input.pipelineName }));
3431
3386
  };
3432
3387
  var serializeAws_json1_1ListPipelinesInput = function (input, context) {
3433
- return __assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
3388
+ return __assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
3434
3389
  };
3435
3390
  var serializeAws_json1_1ListTagsForResourceInput = function (input, context) {
3436
- return __assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }));
3391
+ return __assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.resourceArn != null && { resourceArn: input.resourceArn }));
3437
3392
  };
3438
3393
  var serializeAws_json1_1ListWebhooksInput = function (input, context) {
3439
- return __assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
3394
+ return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
3440
3395
  };
3441
3396
  var serializeAws_json1_1OutputArtifact = function (input, context) {
3442
- return __assign({}, (input.name !== undefined && input.name !== null && { name: input.name }));
3397
+ return __assign({}, (input.name != null && { name: input.name }));
3443
3398
  };
3444
3399
  var serializeAws_json1_1OutputArtifactList = function (input, context) {
3445
3400
  return input
@@ -3462,14 +3417,11 @@ var serializeAws_json1_1OutputVariablesMap = function (input, context) {
3462
3417
  }, {});
3463
3418
  };
3464
3419
  var serializeAws_json1_1PipelineDeclaration = function (input, context) {
3465
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.artifactStore !== undefined &&
3466
- input.artifactStore !== null && {
3420
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.artifactStore != null && {
3467
3421
  artifactStore: serializeAws_json1_1ArtifactStore(input.artifactStore, context),
3468
- })), (input.artifactStores !== undefined &&
3469
- input.artifactStores !== null && {
3422
+ })), (input.artifactStores != null && {
3470
3423
  artifactStores: serializeAws_json1_1ArtifactStoreMap(input.artifactStores, context),
3471
- })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.stages !== undefined &&
3472
- input.stages !== null && { stages: serializeAws_json1_1PipelineStageDeclarationList(input.stages, context) })), (input.version !== undefined && input.version !== null && { version: input.version }));
3424
+ })), (input.name != null && { name: input.name })), (input.roleArn != null && { roleArn: input.roleArn })), (input.stages != null && { stages: serializeAws_json1_1PipelineStageDeclarationList(input.stages, context) })), (input.version != null && { version: input.version }));
3473
3425
  };
3474
3426
  var serializeAws_json1_1PipelineStageDeclarationList = function (input, context) {
3475
3427
  return input
@@ -3482,13 +3434,10 @@ var serializeAws_json1_1PipelineStageDeclarationList = function (input, context)
3482
3434
  });
3483
3435
  };
3484
3436
  var serializeAws_json1_1PollForJobsInput = function (input, context) {
3485
- return __assign(__assign(__assign({}, (input.actionTypeId !== undefined &&
3486
- input.actionTypeId !== null && { actionTypeId: serializeAws_json1_1ActionTypeId(input.actionTypeId, context) })), (input.maxBatchSize !== undefined && input.maxBatchSize !== null && { maxBatchSize: input.maxBatchSize })), (input.queryParam !== undefined &&
3487
- input.queryParam !== null && { queryParam: serializeAws_json1_1QueryParamMap(input.queryParam, context) }));
3437
+ return __assign(__assign(__assign({}, (input.actionTypeId != null && { actionTypeId: serializeAws_json1_1ActionTypeId(input.actionTypeId, context) })), (input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize })), (input.queryParam != null && { queryParam: serializeAws_json1_1QueryParamMap(input.queryParam, context) }));
3488
3438
  };
3489
3439
  var serializeAws_json1_1PollForThirdPartyJobsInput = function (input, context) {
3490
- return __assign(__assign({}, (input.actionTypeId !== undefined &&
3491
- input.actionTypeId !== null && { actionTypeId: serializeAws_json1_1ActionTypeId(input.actionTypeId, context) })), (input.maxBatchSize !== undefined && input.maxBatchSize !== null && { maxBatchSize: input.maxBatchSize }));
3440
+ return __assign(__assign({}, (input.actionTypeId != null && { actionTypeId: serializeAws_json1_1ActionTypeId(input.actionTypeId, context) })), (input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize }));
3492
3441
  };
3493
3442
  var serializeAws_json1_1PollingAccountList = function (input, context) {
3494
3443
  return input
@@ -3511,53 +3460,41 @@ var serializeAws_json1_1PollingServicePrincipalList = function (input, context)
3511
3460
  });
3512
3461
  };
3513
3462
  var serializeAws_json1_1PutActionRevisionInput = function (input, context) {
3514
- return __assign(__assign(__assign(__assign({}, (input.actionName !== undefined && input.actionName !== null && { actionName: input.actionName })), (input.actionRevision !== undefined &&
3515
- input.actionRevision !== null && {
3463
+ return __assign(__assign(__assign(__assign({}, (input.actionName != null && { actionName: input.actionName })), (input.actionRevision != null && {
3516
3464
  actionRevision: serializeAws_json1_1ActionRevision(input.actionRevision, context),
3517
- })), (input.pipelineName !== undefined && input.pipelineName !== null && { pipelineName: input.pipelineName })), (input.stageName !== undefined && input.stageName !== null && { stageName: input.stageName }));
3465
+ })), (input.pipelineName != null && { pipelineName: input.pipelineName })), (input.stageName != null && { stageName: input.stageName }));
3518
3466
  };
3519
3467
  var serializeAws_json1_1PutApprovalResultInput = function (input, context) {
3520
- return __assign(__assign(__assign(__assign(__assign({}, (input.actionName !== undefined && input.actionName !== null && { actionName: input.actionName })), (input.pipelineName !== undefined && input.pipelineName !== null && { pipelineName: input.pipelineName })), (input.result !== undefined &&
3521
- input.result !== null && { result: serializeAws_json1_1ApprovalResult(input.result, context) })), (input.stageName !== undefined && input.stageName !== null && { stageName: input.stageName })), (input.token !== undefined && input.token !== null && { token: input.token }));
3468
+ return __assign(__assign(__assign(__assign(__assign({}, (input.actionName != null && { actionName: input.actionName })), (input.pipelineName != null && { pipelineName: input.pipelineName })), (input.result != null && { result: serializeAws_json1_1ApprovalResult(input.result, context) })), (input.stageName != null && { stageName: input.stageName })), (input.token != null && { token: input.token }));
3522
3469
  };
3523
3470
  var serializeAws_json1_1PutJobFailureResultInput = function (input, context) {
3524
- return __assign(__assign({}, (input.failureDetails !== undefined &&
3525
- input.failureDetails !== null && {
3471
+ return __assign(__assign({}, (input.failureDetails != null && {
3526
3472
  failureDetails: serializeAws_json1_1FailureDetails(input.failureDetails, context),
3527
- })), (input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }));
3473
+ })), (input.jobId != null && { jobId: input.jobId }));
3528
3474
  };
3529
3475
  var serializeAws_json1_1PutJobSuccessResultInput = function (input, context) {
3530
- return __assign(__assign(__assign(__assign(__assign({}, (input.continuationToken !== undefined &&
3531
- input.continuationToken !== null && { continuationToken: input.continuationToken })), (input.currentRevision !== undefined &&
3532
- input.currentRevision !== null && {
3476
+ return __assign(__assign(__assign(__assign(__assign({}, (input.continuationToken != null && { continuationToken: input.continuationToken })), (input.currentRevision != null && {
3533
3477
  currentRevision: serializeAws_json1_1CurrentRevision(input.currentRevision, context),
3534
- })), (input.executionDetails !== undefined &&
3535
- input.executionDetails !== null && {
3478
+ })), (input.executionDetails != null && {
3536
3479
  executionDetails: serializeAws_json1_1ExecutionDetails(input.executionDetails, context),
3537
- })), (input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId })), (input.outputVariables !== undefined &&
3538
- input.outputVariables !== null && {
3480
+ })), (input.jobId != null && { jobId: input.jobId })), (input.outputVariables != null && {
3539
3481
  outputVariables: serializeAws_json1_1OutputVariablesMap(input.outputVariables, context),
3540
3482
  }));
3541
3483
  };
3542
3484
  var serializeAws_json1_1PutThirdPartyJobFailureResultInput = function (input, context) {
3543
- return __assign(__assign(__assign({}, (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.failureDetails !== undefined &&
3544
- input.failureDetails !== null && {
3485
+ return __assign(__assign(__assign({}, (input.clientToken != null && { clientToken: input.clientToken })), (input.failureDetails != null && {
3545
3486
  failureDetails: serializeAws_json1_1FailureDetails(input.failureDetails, context),
3546
- })), (input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }));
3487
+ })), (input.jobId != null && { jobId: input.jobId }));
3547
3488
  };
3548
3489
  var serializeAws_json1_1PutThirdPartyJobSuccessResultInput = function (input, context) {
3549
- return __assign(__assign(__assign(__assign(__assign({}, (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.continuationToken !== undefined &&
3550
- input.continuationToken !== null && { continuationToken: input.continuationToken })), (input.currentRevision !== undefined &&
3551
- input.currentRevision !== null && {
3490
+ return __assign(__assign(__assign(__assign(__assign({}, (input.clientToken != null && { clientToken: input.clientToken })), (input.continuationToken != null && { continuationToken: input.continuationToken })), (input.currentRevision != null && {
3552
3491
  currentRevision: serializeAws_json1_1CurrentRevision(input.currentRevision, context),
3553
- })), (input.executionDetails !== undefined &&
3554
- input.executionDetails !== null && {
3492
+ })), (input.executionDetails != null && {
3555
3493
  executionDetails: serializeAws_json1_1ExecutionDetails(input.executionDetails, context),
3556
- })), (input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }));
3494
+ })), (input.jobId != null && { jobId: input.jobId }));
3557
3495
  };
3558
3496
  var serializeAws_json1_1PutWebhookInput = function (input, context) {
3559
- return __assign(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.webhook !== undefined &&
3560
- input.webhook !== null && { webhook: serializeAws_json1_1WebhookDefinition(input.webhook, context) }));
3497
+ return __assign(__assign({}, (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.webhook != null && { webhook: serializeAws_json1_1WebhookDefinition(input.webhook, context) }));
3561
3498
  };
3562
3499
  var serializeAws_json1_1QueryParamMap = function (input, context) {
3563
3500
  return Object.entries(input).reduce(function (acc, _a) {
@@ -3570,11 +3507,10 @@ var serializeAws_json1_1QueryParamMap = function (input, context) {
3570
3507
  }, {});
3571
3508
  };
3572
3509
  var serializeAws_json1_1RegisterWebhookWithThirdPartyInput = function (input, context) {
3573
- return __assign({}, (input.webhookName !== undefined && input.webhookName !== null && { webhookName: input.webhookName }));
3510
+ return __assign({}, (input.webhookName != null && { webhookName: input.webhookName }));
3574
3511
  };
3575
3512
  var serializeAws_json1_1RetryStageExecutionInput = function (input, context) {
3576
- return __assign(__assign(__assign(__assign({}, (input.pipelineExecutionId !== undefined &&
3577
- input.pipelineExecutionId !== null && { pipelineExecutionId: input.pipelineExecutionId })), (input.pipelineName !== undefined && input.pipelineName !== null && { pipelineName: input.pipelineName })), (input.retryMode !== undefined && input.retryMode !== null && { retryMode: input.retryMode })), (input.stageName !== undefined && input.stageName !== null && { stageName: input.stageName }));
3513
+ return __assign(__assign(__assign(__assign({}, (input.pipelineExecutionId != null && { pipelineExecutionId: input.pipelineExecutionId })), (input.pipelineName != null && { pipelineName: input.pipelineName })), (input.retryMode != null && { retryMode: input.retryMode })), (input.stageName != null && { stageName: input.stageName }));
3578
3514
  };
3579
3515
  var serializeAws_json1_1StageActionDeclarationList = function (input, context) {
3580
3516
  return input
@@ -3597,22 +3533,19 @@ var serializeAws_json1_1StageBlockerDeclarationList = function (input, context)
3597
3533
  });
3598
3534
  };
3599
3535
  var serializeAws_json1_1StageDeclaration = function (input, context) {
3600
- return __assign(__assign(__assign({}, (input.actions !== undefined &&
3601
- input.actions !== null && { actions: serializeAws_json1_1StageActionDeclarationList(input.actions, context) })), (input.blockers !== undefined &&
3602
- input.blockers !== null && {
3536
+ return __assign(__assign(__assign({}, (input.actions != null && { actions: serializeAws_json1_1StageActionDeclarationList(input.actions, context) })), (input.blockers != null && {
3603
3537
  blockers: serializeAws_json1_1StageBlockerDeclarationList(input.blockers, context),
3604
- })), (input.name !== undefined && input.name !== null && { name: input.name }));
3538
+ })), (input.name != null && { name: input.name }));
3605
3539
  };
3606
3540
  var serializeAws_json1_1StartPipelineExecutionInput = function (input, context) {
3607
3541
  var _a;
3608
- return __assign({ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.name !== undefined && input.name !== null && { name: input.name }));
3542
+ return __assign({ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.name != null && { name: input.name }));
3609
3543
  };
3610
3544
  var serializeAws_json1_1StopPipelineExecutionInput = function (input, context) {
3611
- return __assign(__assign(__assign(__assign({}, (input.abandon !== undefined && input.abandon !== null && { abandon: input.abandon })), (input.pipelineExecutionId !== undefined &&
3612
- input.pipelineExecutionId !== null && { pipelineExecutionId: input.pipelineExecutionId })), (input.pipelineName !== undefined && input.pipelineName !== null && { pipelineName: input.pipelineName })), (input.reason !== undefined && input.reason !== null && { reason: input.reason }));
3545
+ return __assign(__assign(__assign(__assign({}, (input.abandon != null && { abandon: input.abandon })), (input.pipelineExecutionId != null && { pipelineExecutionId: input.pipelineExecutionId })), (input.pipelineName != null && { pipelineName: input.pipelineName })), (input.reason != null && { reason: input.reason }));
3613
3546
  };
3614
3547
  var serializeAws_json1_1Tag = function (input, context) {
3615
- return __assign(__assign({}, (input.key !== undefined && input.key !== null && { key: input.key })), (input.value !== undefined && input.value !== null && { value: input.value }));
3548
+ return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
3616
3549
  };
3617
3550
  var serializeAws_json1_1TagKeyList = function (input, context) {
3618
3551
  return input
@@ -3635,37 +3568,29 @@ var serializeAws_json1_1TagList = function (input, context) {
3635
3568
  });
3636
3569
  };
3637
3570
  var serializeAws_json1_1TagResourceInput = function (input, context) {
3638
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
3571
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
3639
3572
  };
3640
3573
  var serializeAws_json1_1UntagResourceInput = function (input, context) {
3641
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tagKeys !== undefined &&
3642
- input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }));
3574
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }));
3643
3575
  };
3644
3576
  var serializeAws_json1_1UpdateActionTypeInput = function (input, context) {
3645
- return __assign({}, (input.actionType !== undefined &&
3646
- input.actionType !== null && {
3577
+ return __assign({}, (input.actionType != null && {
3647
3578
  actionType: serializeAws_json1_1ActionTypeDeclaration(input.actionType, context),
3648
3579
  }));
3649
3580
  };
3650
3581
  var serializeAws_json1_1UpdatePipelineInput = function (input, context) {
3651
- return __assign({}, (input.pipeline !== undefined &&
3652
- input.pipeline !== null && { pipeline: serializeAws_json1_1PipelineDeclaration(input.pipeline, context) }));
3582
+ return __assign({}, (input.pipeline != null && { pipeline: serializeAws_json1_1PipelineDeclaration(input.pipeline, context) }));
3653
3583
  };
3654
3584
  var serializeAws_json1_1WebhookAuthConfiguration = function (input, context) {
3655
- return __assign(__assign({}, (input.AllowedIPRange !== undefined &&
3656
- input.AllowedIPRange !== null && { AllowedIPRange: input.AllowedIPRange })), (input.SecretToken !== undefined && input.SecretToken !== null && { SecretToken: input.SecretToken }));
3585
+ return __assign(__assign({}, (input.AllowedIPRange != null && { AllowedIPRange: input.AllowedIPRange })), (input.SecretToken != null && { SecretToken: input.SecretToken }));
3657
3586
  };
3658
3587
  var serializeAws_json1_1WebhookDefinition = function (input, context) {
3659
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.authentication !== undefined &&
3660
- input.authentication !== null && { authentication: input.authentication })), (input.authenticationConfiguration !== undefined &&
3661
- input.authenticationConfiguration !== null && {
3588
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.authentication != null && { authentication: input.authentication })), (input.authenticationConfiguration != null && {
3662
3589
  authenticationConfiguration: serializeAws_json1_1WebhookAuthConfiguration(input.authenticationConfiguration, context),
3663
- })), (input.filters !== undefined &&
3664
- input.filters !== null && { filters: serializeAws_json1_1WebhookFilters(input.filters, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.targetAction !== undefined && input.targetAction !== null && { targetAction: input.targetAction })), (input.targetPipeline !== undefined &&
3665
- input.targetPipeline !== null && { targetPipeline: input.targetPipeline }));
3590
+ })), (input.filters != null && { filters: serializeAws_json1_1WebhookFilters(input.filters, context) })), (input.name != null && { name: input.name })), (input.targetAction != null && { targetAction: input.targetAction })), (input.targetPipeline != null && { targetPipeline: input.targetPipeline }));
3666
3591
  };
3667
3592
  var serializeAws_json1_1WebhookFilterRule = function (input, context) {
3668
- return __assign(__assign({}, (input.jsonPath !== undefined && input.jsonPath !== null && { jsonPath: input.jsonPath })), (input.matchEquals !== undefined && input.matchEquals !== null && { matchEquals: input.matchEquals }));
3593
+ return __assign(__assign({}, (input.jsonPath != null && { jsonPath: input.jsonPath })), (input.matchEquals != null && { matchEquals: input.matchEquals }));
3669
3594
  };
3670
3595
  var serializeAws_json1_1WebhookFilters = function (input, context) {
3671
3596
  return input
@@ -3689,7 +3614,7 @@ var deserializeAws_json1_1AcknowledgeThirdPartyJobOutput = function (output, con
3689
3614
  };
3690
3615
  var deserializeAws_json1_1ActionConfiguration = function (output, context) {
3691
3616
  return {
3692
- configuration: output.configuration !== undefined && output.configuration !== null
3617
+ configuration: output.configuration != null
3693
3618
  ? deserializeAws_json1_1ActionConfigurationMap(output.configuration, context)
3694
3619
  : undefined,
3695
3620
  };
@@ -3734,18 +3659,16 @@ var deserializeAws_json1_1ActionContext = function (output, context) {
3734
3659
  };
3735
3660
  var deserializeAws_json1_1ActionDeclaration = function (output, context) {
3736
3661
  return {
3737
- actionTypeId: output.actionTypeId !== undefined && output.actionTypeId !== null
3738
- ? deserializeAws_json1_1ActionTypeId(output.actionTypeId, context)
3739
- : undefined,
3740
- configuration: output.configuration !== undefined && output.configuration !== null
3662
+ actionTypeId: output.actionTypeId != null ? deserializeAws_json1_1ActionTypeId(output.actionTypeId, context) : undefined,
3663
+ configuration: output.configuration != null
3741
3664
  ? deserializeAws_json1_1ActionConfigurationMap(output.configuration, context)
3742
3665
  : undefined,
3743
- inputArtifacts: output.inputArtifacts !== undefined && output.inputArtifacts !== null
3666
+ inputArtifacts: output.inputArtifacts != null
3744
3667
  ? deserializeAws_json1_1InputArtifactList(output.inputArtifacts, context)
3745
3668
  : undefined,
3746
3669
  name: __expectString(output.name),
3747
3670
  namespace: __expectString(output.namespace),
3748
- outputArtifacts: output.outputArtifacts !== undefined && output.outputArtifacts !== null
3671
+ outputArtifacts: output.outputArtifacts != null
3749
3672
  ? deserializeAws_json1_1OutputArtifactList(output.outputArtifacts, context)
3750
3673
  : undefined,
3751
3674
  region: __expectString(output.region),
@@ -3756,12 +3679,10 @@ var deserializeAws_json1_1ActionDeclaration = function (output, context) {
3756
3679
  var deserializeAws_json1_1ActionExecution = function (output, context) {
3757
3680
  return {
3758
3681
  actionExecutionId: __expectString(output.actionExecutionId),
3759
- errorDetails: output.errorDetails !== undefined && output.errorDetails !== null
3760
- ? deserializeAws_json1_1ErrorDetails(output.errorDetails, context)
3761
- : undefined,
3682
+ errorDetails: output.errorDetails != null ? deserializeAws_json1_1ErrorDetails(output.errorDetails, context) : undefined,
3762
3683
  externalExecutionId: __expectString(output.externalExecutionId),
3763
3684
  externalExecutionUrl: __expectString(output.externalExecutionUrl),
3764
- lastStatusChange: output.lastStatusChange !== undefined && output.lastStatusChange !== null
3685
+ lastStatusChange: output.lastStatusChange != null
3765
3686
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastStatusChange)))
3766
3687
  : undefined,
3767
3688
  lastUpdatedBy: __expectString(output.lastUpdatedBy),
@@ -3775,21 +3696,15 @@ var deserializeAws_json1_1ActionExecutionDetail = function (output, context) {
3775
3696
  return {
3776
3697
  actionExecutionId: __expectString(output.actionExecutionId),
3777
3698
  actionName: __expectString(output.actionName),
3778
- input: output.input !== undefined && output.input !== null
3779
- ? deserializeAws_json1_1ActionExecutionInput(output.input, context)
3780
- : undefined,
3781
- lastUpdateTime: output.lastUpdateTime !== undefined && output.lastUpdateTime !== null
3699
+ input: output.input != null ? deserializeAws_json1_1ActionExecutionInput(output.input, context) : undefined,
3700
+ lastUpdateTime: output.lastUpdateTime != null
3782
3701
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
3783
3702
  : undefined,
3784
- output: output.output !== undefined && output.output !== null
3785
- ? deserializeAws_json1_1ActionExecutionOutput(output.output, context)
3786
- : undefined,
3703
+ output: output.output != null ? deserializeAws_json1_1ActionExecutionOutput(output.output, context) : undefined,
3787
3704
  pipelineExecutionId: __expectString(output.pipelineExecutionId),
3788
3705
  pipelineVersion: __expectInt32(output.pipelineVersion),
3789
3706
  stageName: __expectString(output.stageName),
3790
- startTime: output.startTime !== undefined && output.startTime !== null
3791
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
3792
- : undefined,
3707
+ startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
3793
3708
  status: __expectString(output.status),
3794
3709
  };
3795
3710
  };
@@ -3806,18 +3721,16 @@ var deserializeAws_json1_1ActionExecutionDetailList = function (output, context)
3806
3721
  };
3807
3722
  var deserializeAws_json1_1ActionExecutionInput = function (output, context) {
3808
3723
  return {
3809
- actionTypeId: output.actionTypeId !== undefined && output.actionTypeId !== null
3810
- ? deserializeAws_json1_1ActionTypeId(output.actionTypeId, context)
3811
- : undefined,
3812
- configuration: output.configuration !== undefined && output.configuration !== null
3724
+ actionTypeId: output.actionTypeId != null ? deserializeAws_json1_1ActionTypeId(output.actionTypeId, context) : undefined,
3725
+ configuration: output.configuration != null
3813
3726
  ? deserializeAws_json1_1ActionConfigurationMap(output.configuration, context)
3814
3727
  : undefined,
3815
- inputArtifacts: output.inputArtifacts !== undefined && output.inputArtifacts !== null
3728
+ inputArtifacts: output.inputArtifacts != null
3816
3729
  ? deserializeAws_json1_1ArtifactDetailList(output.inputArtifacts, context)
3817
3730
  : undefined,
3818
3731
  namespace: __expectString(output.namespace),
3819
3732
  region: __expectString(output.region),
3820
- resolvedConfiguration: output.resolvedConfiguration !== undefined && output.resolvedConfiguration !== null
3733
+ resolvedConfiguration: output.resolvedConfiguration != null
3821
3734
  ? deserializeAws_json1_1ResolvedActionConfigurationMap(output.resolvedConfiguration, context)
3822
3735
  : undefined,
3823
3736
  roleArn: __expectString(output.roleArn),
@@ -3825,13 +3738,13 @@ var deserializeAws_json1_1ActionExecutionInput = function (output, context) {
3825
3738
  };
3826
3739
  var deserializeAws_json1_1ActionExecutionOutput = function (output, context) {
3827
3740
  return {
3828
- executionResult: output.executionResult !== undefined && output.executionResult !== null
3741
+ executionResult: output.executionResult != null
3829
3742
  ? deserializeAws_json1_1ActionExecutionResult(output.executionResult, context)
3830
3743
  : undefined,
3831
- outputArtifacts: output.outputArtifacts !== undefined && output.outputArtifacts !== null
3744
+ outputArtifacts: output.outputArtifacts != null
3832
3745
  ? deserializeAws_json1_1ArtifactDetailList(output.outputArtifacts, context)
3833
3746
  : undefined,
3834
- outputVariables: output.outputVariables !== undefined && output.outputVariables !== null
3747
+ outputVariables: output.outputVariables != null
3835
3748
  ? deserializeAws_json1_1OutputVariablesMap(output.outputVariables, context)
3836
3749
  : undefined,
3837
3750
  };
@@ -3850,9 +3763,7 @@ var deserializeAws_json1_1ActionNotFoundException = function (output, context) {
3850
3763
  };
3851
3764
  var deserializeAws_json1_1ActionRevision = function (output, context) {
3852
3765
  return {
3853
- created: output.created !== undefined && output.created !== null
3854
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created)))
3855
- : undefined,
3766
+ created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
3856
3767
  revisionChangeId: __expectString(output.revisionChangeId),
3857
3768
  revisionId: __expectString(output.revisionId),
3858
3769
  };
@@ -3860,11 +3771,11 @@ var deserializeAws_json1_1ActionRevision = function (output, context) {
3860
3771
  var deserializeAws_json1_1ActionState = function (output, context) {
3861
3772
  return {
3862
3773
  actionName: __expectString(output.actionName),
3863
- currentRevision: output.currentRevision !== undefined && output.currentRevision !== null
3774
+ currentRevision: output.currentRevision != null
3864
3775
  ? deserializeAws_json1_1ActionRevision(output.currentRevision, context)
3865
3776
  : undefined,
3866
3777
  entityUrl: __expectString(output.entityUrl),
3867
- latestExecution: output.latestExecution !== undefined && output.latestExecution !== null
3778
+ latestExecution: output.latestExecution != null
3868
3779
  ? deserializeAws_json1_1ActionExecution(output.latestExecution, context)
3869
3780
  : undefined,
3870
3781
  revisionUrl: __expectString(output.revisionUrl),
@@ -3883,21 +3794,17 @@ var deserializeAws_json1_1ActionStateList = function (output, context) {
3883
3794
  };
3884
3795
  var deserializeAws_json1_1ActionType = function (output, context) {
3885
3796
  return {
3886
- actionConfigurationProperties: output.actionConfigurationProperties !== undefined && output.actionConfigurationProperties !== null
3797
+ actionConfigurationProperties: output.actionConfigurationProperties != null
3887
3798
  ? deserializeAws_json1_1ActionConfigurationPropertyList(output.actionConfigurationProperties, context)
3888
3799
  : undefined,
3889
- id: output.id !== undefined && output.id !== null
3890
- ? deserializeAws_json1_1ActionTypeId(output.id, context)
3891
- : undefined,
3892
- inputArtifactDetails: output.inputArtifactDetails !== undefined && output.inputArtifactDetails !== null
3800
+ id: output.id != null ? deserializeAws_json1_1ActionTypeId(output.id, context) : undefined,
3801
+ inputArtifactDetails: output.inputArtifactDetails != null
3893
3802
  ? deserializeAws_json1_1ArtifactDetails(output.inputArtifactDetails, context)
3894
3803
  : undefined,
3895
- outputArtifactDetails: output.outputArtifactDetails !== undefined && output.outputArtifactDetails !== null
3804
+ outputArtifactDetails: output.outputArtifactDetails != null
3896
3805
  ? deserializeAws_json1_1ArtifactDetails(output.outputArtifactDetails, context)
3897
3806
  : undefined,
3898
- settings: output.settings !== undefined && output.settings !== null
3899
- ? deserializeAws_json1_1ActionTypeSettings(output.settings, context)
3900
- : undefined,
3807
+ settings: output.settings != null ? deserializeAws_json1_1ActionTypeSettings(output.settings, context) : undefined,
3901
3808
  };
3902
3809
  };
3903
3810
  var deserializeAws_json1_1ActionTypeArtifactDetails = function (output, context) {
@@ -3909,32 +3816,22 @@ var deserializeAws_json1_1ActionTypeArtifactDetails = function (output, context)
3909
3816
  var deserializeAws_json1_1ActionTypeDeclaration = function (output, context) {
3910
3817
  return {
3911
3818
  description: __expectString(output.description),
3912
- executor: output.executor !== undefined && output.executor !== null
3913
- ? deserializeAws_json1_1ActionTypeExecutor(output.executor, context)
3914
- : undefined,
3915
- id: output.id !== undefined && output.id !== null
3916
- ? deserializeAws_json1_1ActionTypeIdentifier(output.id, context)
3917
- : undefined,
3918
- inputArtifactDetails: output.inputArtifactDetails !== undefined && output.inputArtifactDetails !== null
3819
+ executor: output.executor != null ? deserializeAws_json1_1ActionTypeExecutor(output.executor, context) : undefined,
3820
+ id: output.id != null ? deserializeAws_json1_1ActionTypeIdentifier(output.id, context) : undefined,
3821
+ inputArtifactDetails: output.inputArtifactDetails != null
3919
3822
  ? deserializeAws_json1_1ActionTypeArtifactDetails(output.inputArtifactDetails, context)
3920
3823
  : undefined,
3921
- outputArtifactDetails: output.outputArtifactDetails !== undefined && output.outputArtifactDetails !== null
3824
+ outputArtifactDetails: output.outputArtifactDetails != null
3922
3825
  ? deserializeAws_json1_1ActionTypeArtifactDetails(output.outputArtifactDetails, context)
3923
3826
  : undefined,
3924
- permissions: output.permissions !== undefined && output.permissions !== null
3925
- ? deserializeAws_json1_1ActionTypePermissions(output.permissions, context)
3926
- : undefined,
3927
- properties: output.properties !== undefined && output.properties !== null
3928
- ? deserializeAws_json1_1ActionTypeProperties(output.properties, context)
3929
- : undefined,
3930
- urls: output.urls !== undefined && output.urls !== null
3931
- ? deserializeAws_json1_1ActionTypeUrls(output.urls, context)
3932
- : undefined,
3827
+ permissions: output.permissions != null ? deserializeAws_json1_1ActionTypePermissions(output.permissions, context) : undefined,
3828
+ properties: output.properties != null ? deserializeAws_json1_1ActionTypeProperties(output.properties, context) : undefined,
3829
+ urls: output.urls != null ? deserializeAws_json1_1ActionTypeUrls(output.urls, context) : undefined,
3933
3830
  };
3934
3831
  };
3935
3832
  var deserializeAws_json1_1ActionTypeExecutor = function (output, context) {
3936
3833
  return {
3937
- configuration: output.configuration !== undefined && output.configuration !== null
3834
+ configuration: output.configuration != null
3938
3835
  ? deserializeAws_json1_1ExecutorConfiguration(output.configuration, context)
3939
3836
  : undefined,
3940
3837
  jobTimeout: __expectInt32(output.jobTimeout),
@@ -3976,7 +3873,7 @@ var deserializeAws_json1_1ActionTypeNotFoundException = function (output, contex
3976
3873
  };
3977
3874
  var deserializeAws_json1_1ActionTypePermissions = function (output, context) {
3978
3875
  return {
3979
- allowedAccounts: output.allowedAccounts !== undefined && output.allowedAccounts !== null
3876
+ allowedAccounts: output.allowedAccounts != null
3980
3877
  ? deserializeAws_json1_1AllowedAccounts(output.allowedAccounts, context)
3981
3878
  : undefined,
3982
3879
  };
@@ -4036,9 +3933,7 @@ var deserializeAws_json1_1ApprovalAlreadyCompletedException = function (output,
4036
3933
  };
4037
3934
  var deserializeAws_json1_1Artifact = function (output, context) {
4038
3935
  return {
4039
- location: output.location !== undefined && output.location !== null
4040
- ? deserializeAws_json1_1ArtifactLocation(output.location, context)
4041
- : undefined,
3936
+ location: output.location != null ? deserializeAws_json1_1ArtifactLocation(output.location, context) : undefined,
4042
3937
  name: __expectString(output.name),
4043
3938
  revision: __expectString(output.revision),
4044
3939
  };
@@ -4046,9 +3941,7 @@ var deserializeAws_json1_1Artifact = function (output, context) {
4046
3941
  var deserializeAws_json1_1ArtifactDetail = function (output, context) {
4047
3942
  return {
4048
3943
  name: __expectString(output.name),
4049
- s3location: output.s3location !== undefined && output.s3location !== null
4050
- ? deserializeAws_json1_1S3Location(output.s3location, context)
4051
- : undefined,
3944
+ s3location: output.s3location != null ? deserializeAws_json1_1S3Location(output.s3location, context) : undefined,
4052
3945
  };
4053
3946
  };
4054
3947
  var deserializeAws_json1_1ArtifactDetailList = function (output, context) {
@@ -4081,17 +3974,13 @@ var deserializeAws_json1_1ArtifactList = function (output, context) {
4081
3974
  };
4082
3975
  var deserializeAws_json1_1ArtifactLocation = function (output, context) {
4083
3976
  return {
4084
- s3Location: output.s3Location !== undefined && output.s3Location !== null
4085
- ? deserializeAws_json1_1S3ArtifactLocation(output.s3Location, context)
4086
- : undefined,
3977
+ s3Location: output.s3Location != null ? deserializeAws_json1_1S3ArtifactLocation(output.s3Location, context) : undefined,
4087
3978
  type: __expectString(output.type),
4088
3979
  };
4089
3980
  };
4090
3981
  var deserializeAws_json1_1ArtifactRevision = function (output, context) {
4091
3982
  return {
4092
- created: output.created !== undefined && output.created !== null
4093
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created)))
4094
- : undefined,
3983
+ created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
4095
3984
  name: __expectString(output.name),
4096
3985
  revisionChangeIdentifier: __expectString(output.revisionChangeIdentifier),
4097
3986
  revisionId: __expectString(output.revisionId),
@@ -4112,9 +4001,7 @@ var deserializeAws_json1_1ArtifactRevisionList = function (output, context) {
4112
4001
  };
4113
4002
  var deserializeAws_json1_1ArtifactStore = function (output, context) {
4114
4003
  return {
4115
- encryptionKey: output.encryptionKey !== undefined && output.encryptionKey !== null
4116
- ? deserializeAws_json1_1EncryptionKey(output.encryptionKey, context)
4117
- : undefined,
4004
+ encryptionKey: output.encryptionKey != null ? deserializeAws_json1_1EncryptionKey(output.encryptionKey, context) : undefined,
4118
4005
  location: __expectString(output.location),
4119
4006
  type: __expectString(output.type),
4120
4007
  };
@@ -4154,22 +4041,14 @@ var deserializeAws_json1_1ConflictException = function (output, context) {
4154
4041
  };
4155
4042
  var deserializeAws_json1_1CreateCustomActionTypeOutput = function (output, context) {
4156
4043
  return {
4157
- actionType: output.actionType !== undefined && output.actionType !== null
4158
- ? deserializeAws_json1_1ActionType(output.actionType, context)
4159
- : undefined,
4160
- tags: output.tags !== undefined && output.tags !== null
4161
- ? deserializeAws_json1_1TagList(output.tags, context)
4162
- : undefined,
4044
+ actionType: output.actionType != null ? deserializeAws_json1_1ActionType(output.actionType, context) : undefined,
4045
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
4163
4046
  };
4164
4047
  };
4165
4048
  var deserializeAws_json1_1CreatePipelineOutput = function (output, context) {
4166
4049
  return {
4167
- pipeline: output.pipeline !== undefined && output.pipeline !== null
4168
- ? deserializeAws_json1_1PipelineDeclaration(output.pipeline, context)
4169
- : undefined,
4170
- tags: output.tags !== undefined && output.tags !== null
4171
- ? deserializeAws_json1_1TagList(output.tags, context)
4172
- : undefined,
4050
+ pipeline: output.pipeline != null ? deserializeAws_json1_1PipelineDeclaration(output.pipeline, context) : undefined,
4051
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
4173
4052
  };
4174
4053
  };
4175
4054
  var deserializeAws_json1_1DeleteWebhookOutput = function (output, context) {
@@ -4203,65 +4082,49 @@ var deserializeAws_json1_1ExecutionTrigger = function (output, context) {
4203
4082
  };
4204
4083
  var deserializeAws_json1_1ExecutorConfiguration = function (output, context) {
4205
4084
  return {
4206
- jobWorkerExecutorConfiguration: output.jobWorkerExecutorConfiguration !== undefined && output.jobWorkerExecutorConfiguration !== null
4085
+ jobWorkerExecutorConfiguration: output.jobWorkerExecutorConfiguration != null
4207
4086
  ? deserializeAws_json1_1JobWorkerExecutorConfiguration(output.jobWorkerExecutorConfiguration, context)
4208
4087
  : undefined,
4209
- lambdaExecutorConfiguration: output.lambdaExecutorConfiguration !== undefined && output.lambdaExecutorConfiguration !== null
4088
+ lambdaExecutorConfiguration: output.lambdaExecutorConfiguration != null
4210
4089
  ? deserializeAws_json1_1LambdaExecutorConfiguration(output.lambdaExecutorConfiguration, context)
4211
4090
  : undefined,
4212
4091
  };
4213
4092
  };
4214
4093
  var deserializeAws_json1_1GetActionTypeOutput = function (output, context) {
4215
4094
  return {
4216
- actionType: output.actionType !== undefined && output.actionType !== null
4217
- ? deserializeAws_json1_1ActionTypeDeclaration(output.actionType, context)
4218
- : undefined,
4095
+ actionType: output.actionType != null ? deserializeAws_json1_1ActionTypeDeclaration(output.actionType, context) : undefined,
4219
4096
  };
4220
4097
  };
4221
4098
  var deserializeAws_json1_1GetJobDetailsOutput = function (output, context) {
4222
4099
  return {
4223
- jobDetails: output.jobDetails !== undefined && output.jobDetails !== null
4224
- ? deserializeAws_json1_1JobDetails(output.jobDetails, context)
4225
- : undefined,
4100
+ jobDetails: output.jobDetails != null ? deserializeAws_json1_1JobDetails(output.jobDetails, context) : undefined,
4226
4101
  };
4227
4102
  };
4228
4103
  var deserializeAws_json1_1GetPipelineExecutionOutput = function (output, context) {
4229
4104
  return {
4230
- pipelineExecution: output.pipelineExecution !== undefined && output.pipelineExecution !== null
4105
+ pipelineExecution: output.pipelineExecution != null
4231
4106
  ? deserializeAws_json1_1PipelineExecution(output.pipelineExecution, context)
4232
4107
  : undefined,
4233
4108
  };
4234
4109
  };
4235
4110
  var deserializeAws_json1_1GetPipelineOutput = function (output, context) {
4236
4111
  return {
4237
- metadata: output.metadata !== undefined && output.metadata !== null
4238
- ? deserializeAws_json1_1PipelineMetadata(output.metadata, context)
4239
- : undefined,
4240
- pipeline: output.pipeline !== undefined && output.pipeline !== null
4241
- ? deserializeAws_json1_1PipelineDeclaration(output.pipeline, context)
4242
- : undefined,
4112
+ metadata: output.metadata != null ? deserializeAws_json1_1PipelineMetadata(output.metadata, context) : undefined,
4113
+ pipeline: output.pipeline != null ? deserializeAws_json1_1PipelineDeclaration(output.pipeline, context) : undefined,
4243
4114
  };
4244
4115
  };
4245
4116
  var deserializeAws_json1_1GetPipelineStateOutput = function (output, context) {
4246
4117
  return {
4247
- created: output.created !== undefined && output.created !== null
4248
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created)))
4249
- : undefined,
4118
+ created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
4250
4119
  pipelineName: __expectString(output.pipelineName),
4251
4120
  pipelineVersion: __expectInt32(output.pipelineVersion),
4252
- stageStates: output.stageStates !== undefined && output.stageStates !== null
4253
- ? deserializeAws_json1_1StageStateList(output.stageStates, context)
4254
- : undefined,
4255
- updated: output.updated !== undefined && output.updated !== null
4256
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updated)))
4257
- : undefined,
4121
+ stageStates: output.stageStates != null ? deserializeAws_json1_1StageStateList(output.stageStates, context) : undefined,
4122
+ updated: output.updated != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updated))) : undefined,
4258
4123
  };
4259
4124
  };
4260
4125
  var deserializeAws_json1_1GetThirdPartyJobDetailsOutput = function (output, context) {
4261
4126
  return {
4262
- jobDetails: output.jobDetails !== undefined && output.jobDetails !== null
4263
- ? deserializeAws_json1_1ThirdPartyJobDetails(output.jobDetails, context)
4264
- : undefined,
4127
+ jobDetails: output.jobDetails != null ? deserializeAws_json1_1ThirdPartyJobDetails(output.jobDetails, context) : undefined,
4265
4128
  };
4266
4129
  };
4267
4130
  var deserializeAws_json1_1InputArtifact = function (output, context) {
@@ -4353,35 +4216,25 @@ var deserializeAws_json1_1InvalidWebhookFilterPatternException = function (outpu
4353
4216
  var deserializeAws_json1_1Job = function (output, context) {
4354
4217
  return {
4355
4218
  accountId: __expectString(output.accountId),
4356
- data: output.data !== undefined && output.data !== null
4357
- ? deserializeAws_json1_1JobData(output.data, context)
4358
- : undefined,
4219
+ data: output.data != null ? deserializeAws_json1_1JobData(output.data, context) : undefined,
4359
4220
  id: __expectString(output.id),
4360
4221
  nonce: __expectString(output.nonce),
4361
4222
  };
4362
4223
  };
4363
4224
  var deserializeAws_json1_1JobData = function (output, context) {
4364
4225
  return {
4365
- actionConfiguration: output.actionConfiguration !== undefined && output.actionConfiguration !== null
4226
+ actionConfiguration: output.actionConfiguration != null
4366
4227
  ? deserializeAws_json1_1ActionConfiguration(output.actionConfiguration, context)
4367
4228
  : undefined,
4368
- actionTypeId: output.actionTypeId !== undefined && output.actionTypeId !== null
4369
- ? deserializeAws_json1_1ActionTypeId(output.actionTypeId, context)
4370
- : undefined,
4371
- artifactCredentials: output.artifactCredentials !== undefined && output.artifactCredentials !== null
4229
+ actionTypeId: output.actionTypeId != null ? deserializeAws_json1_1ActionTypeId(output.actionTypeId, context) : undefined,
4230
+ artifactCredentials: output.artifactCredentials != null
4372
4231
  ? deserializeAws_json1_1AWSSessionCredentials(output.artifactCredentials, context)
4373
4232
  : undefined,
4374
4233
  continuationToken: __expectString(output.continuationToken),
4375
- encryptionKey: output.encryptionKey !== undefined && output.encryptionKey !== null
4376
- ? deserializeAws_json1_1EncryptionKey(output.encryptionKey, context)
4377
- : undefined,
4378
- inputArtifacts: output.inputArtifacts !== undefined && output.inputArtifacts !== null
4379
- ? deserializeAws_json1_1ArtifactList(output.inputArtifacts, context)
4380
- : undefined,
4381
- outputArtifacts: output.outputArtifacts !== undefined && output.outputArtifacts !== null
4382
- ? deserializeAws_json1_1ArtifactList(output.outputArtifacts, context)
4383
- : undefined,
4384
- pipelineContext: output.pipelineContext !== undefined && output.pipelineContext !== null
4234
+ encryptionKey: output.encryptionKey != null ? deserializeAws_json1_1EncryptionKey(output.encryptionKey, context) : undefined,
4235
+ inputArtifacts: output.inputArtifacts != null ? deserializeAws_json1_1ArtifactList(output.inputArtifacts, context) : undefined,
4236
+ outputArtifacts: output.outputArtifacts != null ? deserializeAws_json1_1ArtifactList(output.outputArtifacts, context) : undefined,
4237
+ pipelineContext: output.pipelineContext != null
4385
4238
  ? deserializeAws_json1_1PipelineContext(output.pipelineContext, context)
4386
4239
  : undefined,
4387
4240
  };
@@ -4389,9 +4242,7 @@ var deserializeAws_json1_1JobData = function (output, context) {
4389
4242
  var deserializeAws_json1_1JobDetails = function (output, context) {
4390
4243
  return {
4391
4244
  accountId: __expectString(output.accountId),
4392
- data: output.data !== undefined && output.data !== null
4393
- ? deserializeAws_json1_1JobData(output.data, context)
4394
- : undefined,
4245
+ data: output.data != null ? deserializeAws_json1_1JobData(output.data, context) : undefined,
4395
4246
  id: __expectString(output.id),
4396
4247
  };
4397
4248
  };
@@ -4413,10 +4264,10 @@ var deserializeAws_json1_1JobNotFoundException = function (output, context) {
4413
4264
  };
4414
4265
  var deserializeAws_json1_1JobWorkerExecutorConfiguration = function (output, context) {
4415
4266
  return {
4416
- pollingAccounts: output.pollingAccounts !== undefined && output.pollingAccounts !== null
4267
+ pollingAccounts: output.pollingAccounts != null
4417
4268
  ? deserializeAws_json1_1PollingAccountList(output.pollingAccounts, context)
4418
4269
  : undefined,
4419
- pollingServicePrincipals: output.pollingServicePrincipals !== undefined && output.pollingServicePrincipals !== null
4270
+ pollingServicePrincipals: output.pollingServicePrincipals != null
4420
4271
  ? deserializeAws_json1_1PollingServicePrincipalList(output.pollingServicePrincipals, context)
4421
4272
  : undefined,
4422
4273
  };
@@ -4433,7 +4284,7 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
4433
4284
  };
4434
4285
  var deserializeAws_json1_1ListActionExecutionsOutput = function (output, context) {
4435
4286
  return {
4436
- actionExecutionDetails: output.actionExecutionDetails !== undefined && output.actionExecutionDetails !== null
4287
+ actionExecutionDetails: output.actionExecutionDetails != null
4437
4288
  ? deserializeAws_json1_1ActionExecutionDetailList(output.actionExecutionDetails, context)
4438
4289
  : undefined,
4439
4290
  nextToken: __expectString(output.nextToken),
@@ -4441,16 +4292,14 @@ var deserializeAws_json1_1ListActionExecutionsOutput = function (output, context
4441
4292
  };
4442
4293
  var deserializeAws_json1_1ListActionTypesOutput = function (output, context) {
4443
4294
  return {
4444
- actionTypes: output.actionTypes !== undefined && output.actionTypes !== null
4445
- ? deserializeAws_json1_1ActionTypeList(output.actionTypes, context)
4446
- : undefined,
4295
+ actionTypes: output.actionTypes != null ? deserializeAws_json1_1ActionTypeList(output.actionTypes, context) : undefined,
4447
4296
  nextToken: __expectString(output.nextToken),
4448
4297
  };
4449
4298
  };
4450
4299
  var deserializeAws_json1_1ListPipelineExecutionsOutput = function (output, context) {
4451
4300
  return {
4452
4301
  nextToken: __expectString(output.nextToken),
4453
- pipelineExecutionSummaries: output.pipelineExecutionSummaries !== undefined && output.pipelineExecutionSummaries !== null
4302
+ pipelineExecutionSummaries: output.pipelineExecutionSummaries != null
4454
4303
  ? deserializeAws_json1_1PipelineExecutionSummaryList(output.pipelineExecutionSummaries, context)
4455
4304
  : undefined,
4456
4305
  };
@@ -4458,42 +4307,32 @@ var deserializeAws_json1_1ListPipelineExecutionsOutput = function (output, conte
4458
4307
  var deserializeAws_json1_1ListPipelinesOutput = function (output, context) {
4459
4308
  return {
4460
4309
  nextToken: __expectString(output.nextToken),
4461
- pipelines: output.pipelines !== undefined && output.pipelines !== null
4462
- ? deserializeAws_json1_1PipelineList(output.pipelines, context)
4463
- : undefined,
4310
+ pipelines: output.pipelines != null ? deserializeAws_json1_1PipelineList(output.pipelines, context) : undefined,
4464
4311
  };
4465
4312
  };
4466
4313
  var deserializeAws_json1_1ListTagsForResourceOutput = function (output, context) {
4467
4314
  return {
4468
4315
  nextToken: __expectString(output.nextToken),
4469
- tags: output.tags !== undefined && output.tags !== null
4470
- ? deserializeAws_json1_1TagList(output.tags, context)
4471
- : undefined,
4316
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
4472
4317
  };
4473
4318
  };
4474
4319
  var deserializeAws_json1_1ListWebhookItem = function (output, context) {
4475
4320
  return {
4476
4321
  arn: __expectString(output.arn),
4477
- definition: output.definition !== undefined && output.definition !== null
4478
- ? deserializeAws_json1_1WebhookDefinition(output.definition, context)
4479
- : undefined,
4322
+ definition: output.definition != null ? deserializeAws_json1_1WebhookDefinition(output.definition, context) : undefined,
4480
4323
  errorCode: __expectString(output.errorCode),
4481
4324
  errorMessage: __expectString(output.errorMessage),
4482
- lastTriggered: output.lastTriggered !== undefined && output.lastTriggered !== null
4325
+ lastTriggered: output.lastTriggered != null
4483
4326
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastTriggered)))
4484
4327
  : undefined,
4485
- tags: output.tags !== undefined && output.tags !== null
4486
- ? deserializeAws_json1_1TagList(output.tags, context)
4487
- : undefined,
4328
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
4488
4329
  url: __expectString(output.url),
4489
4330
  };
4490
4331
  };
4491
4332
  var deserializeAws_json1_1ListWebhooksOutput = function (output, context) {
4492
4333
  return {
4493
4334
  NextToken: __expectString(output.NextToken),
4494
- webhooks: output.webhooks !== undefined && output.webhooks !== null
4495
- ? deserializeAws_json1_1WebhookList(output.webhooks, context)
4496
- : undefined,
4335
+ webhooks: output.webhooks != null ? deserializeAws_json1_1WebhookList(output.webhooks, context) : undefined,
4497
4336
  };
4498
4337
  };
4499
4338
  var deserializeAws_json1_1NotLatestPipelineExecutionException = function (output, context) {
@@ -4534,36 +4373,28 @@ var deserializeAws_json1_1OutputVariablesSizeExceededException = function (outpu
4534
4373
  };
4535
4374
  var deserializeAws_json1_1PipelineContext = function (output, context) {
4536
4375
  return {
4537
- action: output.action !== undefined && output.action !== null
4538
- ? deserializeAws_json1_1ActionContext(output.action, context)
4539
- : undefined,
4376
+ action: output.action != null ? deserializeAws_json1_1ActionContext(output.action, context) : undefined,
4540
4377
  pipelineArn: __expectString(output.pipelineArn),
4541
4378
  pipelineExecutionId: __expectString(output.pipelineExecutionId),
4542
4379
  pipelineName: __expectString(output.pipelineName),
4543
- stage: output.stage !== undefined && output.stage !== null
4544
- ? deserializeAws_json1_1StageContext(output.stage, context)
4545
- : undefined,
4380
+ stage: output.stage != null ? deserializeAws_json1_1StageContext(output.stage, context) : undefined,
4546
4381
  };
4547
4382
  };
4548
4383
  var deserializeAws_json1_1PipelineDeclaration = function (output, context) {
4549
4384
  return {
4550
- artifactStore: output.artifactStore !== undefined && output.artifactStore !== null
4551
- ? deserializeAws_json1_1ArtifactStore(output.artifactStore, context)
4552
- : undefined,
4553
- artifactStores: output.artifactStores !== undefined && output.artifactStores !== null
4385
+ artifactStore: output.artifactStore != null ? deserializeAws_json1_1ArtifactStore(output.artifactStore, context) : undefined,
4386
+ artifactStores: output.artifactStores != null
4554
4387
  ? deserializeAws_json1_1ArtifactStoreMap(output.artifactStores, context)
4555
4388
  : undefined,
4556
4389
  name: __expectString(output.name),
4557
4390
  roleArn: __expectString(output.roleArn),
4558
- stages: output.stages !== undefined && output.stages !== null
4559
- ? deserializeAws_json1_1PipelineStageDeclarationList(output.stages, context)
4560
- : undefined,
4391
+ stages: output.stages != null ? deserializeAws_json1_1PipelineStageDeclarationList(output.stages, context) : undefined,
4561
4392
  version: __expectInt32(output.version),
4562
4393
  };
4563
4394
  };
4564
4395
  var deserializeAws_json1_1PipelineExecution = function (output, context) {
4565
4396
  return {
4566
- artifactRevisions: output.artifactRevisions !== undefined && output.artifactRevisions !== null
4397
+ artifactRevisions: output.artifactRevisions != null
4567
4398
  ? deserializeAws_json1_1ArtifactRevisionList(output.artifactRevisions, context)
4568
4399
  : undefined,
4569
4400
  pipelineExecutionId: __expectString(output.pipelineExecutionId),
@@ -4585,23 +4416,17 @@ var deserializeAws_json1_1PipelineExecutionNotStoppableException = function (out
4585
4416
  };
4586
4417
  var deserializeAws_json1_1PipelineExecutionSummary = function (output, context) {
4587
4418
  return {
4588
- lastUpdateTime: output.lastUpdateTime !== undefined && output.lastUpdateTime !== null
4419
+ lastUpdateTime: output.lastUpdateTime != null
4589
4420
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
4590
4421
  : undefined,
4591
4422
  pipelineExecutionId: __expectString(output.pipelineExecutionId),
4592
- sourceRevisions: output.sourceRevisions !== undefined && output.sourceRevisions !== null
4423
+ sourceRevisions: output.sourceRevisions != null
4593
4424
  ? deserializeAws_json1_1SourceRevisionList(output.sourceRevisions, context)
4594
4425
  : undefined,
4595
- startTime: output.startTime !== undefined && output.startTime !== null
4596
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
4597
- : undefined,
4426
+ startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
4598
4427
  status: __expectString(output.status),
4599
- stopTrigger: output.stopTrigger !== undefined && output.stopTrigger !== null
4600
- ? deserializeAws_json1_1StopExecutionTrigger(output.stopTrigger, context)
4601
- : undefined,
4602
- trigger: output.trigger !== undefined && output.trigger !== null
4603
- ? deserializeAws_json1_1ExecutionTrigger(output.trigger, context)
4604
- : undefined,
4428
+ stopTrigger: output.stopTrigger != null ? deserializeAws_json1_1StopExecutionTrigger(output.stopTrigger, context) : undefined,
4429
+ trigger: output.trigger != null ? deserializeAws_json1_1ExecutionTrigger(output.trigger, context) : undefined,
4605
4430
  };
4606
4431
  };
4607
4432
  var deserializeAws_json1_1PipelineExecutionSummaryList = function (output, context) {
@@ -4628,13 +4453,9 @@ var deserializeAws_json1_1PipelineList = function (output, context) {
4628
4453
  };
4629
4454
  var deserializeAws_json1_1PipelineMetadata = function (output, context) {
4630
4455
  return {
4631
- created: output.created !== undefined && output.created !== null
4632
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created)))
4633
- : undefined,
4456
+ created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
4634
4457
  pipelineArn: __expectString(output.pipelineArn),
4635
- updated: output.updated !== undefined && output.updated !== null
4636
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updated)))
4637
- : undefined,
4458
+ updated: output.updated != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updated))) : undefined,
4638
4459
  };
4639
4460
  };
4640
4461
  var deserializeAws_json1_1PipelineNameInUseException = function (output, context) {
@@ -4660,13 +4481,9 @@ var deserializeAws_json1_1PipelineStageDeclarationList = function (output, conte
4660
4481
  };
4661
4482
  var deserializeAws_json1_1PipelineSummary = function (output, context) {
4662
4483
  return {
4663
- created: output.created !== undefined && output.created !== null
4664
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created)))
4665
- : undefined,
4484
+ created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
4666
4485
  name: __expectString(output.name),
4667
- updated: output.updated !== undefined && output.updated !== null
4668
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updated)))
4669
- : undefined,
4486
+ updated: output.updated != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updated))) : undefined,
4670
4487
  version: __expectInt32(output.version),
4671
4488
  };
4672
4489
  };
@@ -4677,16 +4494,12 @@ var deserializeAws_json1_1PipelineVersionNotFoundException = function (output, c
4677
4494
  };
4678
4495
  var deserializeAws_json1_1PollForJobsOutput = function (output, context) {
4679
4496
  return {
4680
- jobs: output.jobs !== undefined && output.jobs !== null
4681
- ? deserializeAws_json1_1JobList(output.jobs, context)
4682
- : undefined,
4497
+ jobs: output.jobs != null ? deserializeAws_json1_1JobList(output.jobs, context) : undefined,
4683
4498
  };
4684
4499
  };
4685
4500
  var deserializeAws_json1_1PollForThirdPartyJobsOutput = function (output, context) {
4686
4501
  return {
4687
- jobs: output.jobs !== undefined && output.jobs !== null
4688
- ? deserializeAws_json1_1ThirdPartyJobList(output.jobs, context)
4689
- : undefined,
4502
+ jobs: output.jobs != null ? deserializeAws_json1_1ThirdPartyJobList(output.jobs, context) : undefined,
4690
4503
  };
4691
4504
  };
4692
4505
  var deserializeAws_json1_1PollingAccountList = function (output, context) {
@@ -4719,16 +4532,12 @@ var deserializeAws_json1_1PutActionRevisionOutput = function (output, context) {
4719
4532
  };
4720
4533
  var deserializeAws_json1_1PutApprovalResultOutput = function (output, context) {
4721
4534
  return {
4722
- approvedAt: output.approvedAt !== undefined && output.approvedAt !== null
4723
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.approvedAt)))
4724
- : undefined,
4535
+ approvedAt: output.approvedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.approvedAt))) : undefined,
4725
4536
  };
4726
4537
  };
4727
4538
  var deserializeAws_json1_1PutWebhookOutput = function (output, context) {
4728
4539
  return {
4729
- webhook: output.webhook !== undefined && output.webhook !== null
4730
- ? deserializeAws_json1_1ListWebhookItem(output.webhook, context)
4731
- : undefined,
4540
+ webhook: output.webhook != null ? deserializeAws_json1_1ListWebhookItem(output.webhook, context) : undefined,
4732
4541
  };
4733
4542
  };
4734
4543
  var deserializeAws_json1_1RegisterWebhookWithThirdPartyOutput = function (output, context) {
@@ -4819,12 +4628,8 @@ var deserializeAws_json1_1StageContext = function (output, context) {
4819
4628
  };
4820
4629
  var deserializeAws_json1_1StageDeclaration = function (output, context) {
4821
4630
  return {
4822
- actions: output.actions !== undefined && output.actions !== null
4823
- ? deserializeAws_json1_1StageActionDeclarationList(output.actions, context)
4824
- : undefined,
4825
- blockers: output.blockers !== undefined && output.blockers !== null
4826
- ? deserializeAws_json1_1StageBlockerDeclarationList(output.blockers, context)
4827
- : undefined,
4631
+ actions: output.actions != null ? deserializeAws_json1_1StageActionDeclarationList(output.actions, context) : undefined,
4632
+ blockers: output.blockers != null ? deserializeAws_json1_1StageBlockerDeclarationList(output.blockers, context) : undefined,
4828
4633
  name: __expectString(output.name),
4829
4634
  };
4830
4635
  };
@@ -4846,16 +4651,14 @@ var deserializeAws_json1_1StageNotRetryableException = function (output, context
4846
4651
  };
4847
4652
  var deserializeAws_json1_1StageState = function (output, context) {
4848
4653
  return {
4849
- actionStates: output.actionStates !== undefined && output.actionStates !== null
4850
- ? deserializeAws_json1_1ActionStateList(output.actionStates, context)
4851
- : undefined,
4852
- inboundExecution: output.inboundExecution !== undefined && output.inboundExecution !== null
4654
+ actionStates: output.actionStates != null ? deserializeAws_json1_1ActionStateList(output.actionStates, context) : undefined,
4655
+ inboundExecution: output.inboundExecution != null
4853
4656
  ? deserializeAws_json1_1StageExecution(output.inboundExecution, context)
4854
4657
  : undefined,
4855
- inboundTransitionState: output.inboundTransitionState !== undefined && output.inboundTransitionState !== null
4658
+ inboundTransitionState: output.inboundTransitionState != null
4856
4659
  ? deserializeAws_json1_1TransitionState(output.inboundTransitionState, context)
4857
4660
  : undefined,
4858
- latestExecution: output.latestExecution !== undefined && output.latestExecution !== null
4661
+ latestExecution: output.latestExecution != null
4859
4662
  ? deserializeAws_json1_1StageExecution(output.latestExecution, context)
4860
4663
  : undefined,
4861
4664
  stageName: __expectString(output.stageName),
@@ -4915,35 +4718,25 @@ var deserializeAws_json1_1ThirdPartyJob = function (output, context) {
4915
4718
  };
4916
4719
  var deserializeAws_json1_1ThirdPartyJobData = function (output, context) {
4917
4720
  return {
4918
- actionConfiguration: output.actionConfiguration !== undefined && output.actionConfiguration !== null
4721
+ actionConfiguration: output.actionConfiguration != null
4919
4722
  ? deserializeAws_json1_1ActionConfiguration(output.actionConfiguration, context)
4920
4723
  : undefined,
4921
- actionTypeId: output.actionTypeId !== undefined && output.actionTypeId !== null
4922
- ? deserializeAws_json1_1ActionTypeId(output.actionTypeId, context)
4923
- : undefined,
4924
- artifactCredentials: output.artifactCredentials !== undefined && output.artifactCredentials !== null
4724
+ actionTypeId: output.actionTypeId != null ? deserializeAws_json1_1ActionTypeId(output.actionTypeId, context) : undefined,
4725
+ artifactCredentials: output.artifactCredentials != null
4925
4726
  ? deserializeAws_json1_1AWSSessionCredentials(output.artifactCredentials, context)
4926
4727
  : undefined,
4927
4728
  continuationToken: __expectString(output.continuationToken),
4928
- encryptionKey: output.encryptionKey !== undefined && output.encryptionKey !== null
4929
- ? deserializeAws_json1_1EncryptionKey(output.encryptionKey, context)
4930
- : undefined,
4931
- inputArtifacts: output.inputArtifacts !== undefined && output.inputArtifacts !== null
4932
- ? deserializeAws_json1_1ArtifactList(output.inputArtifacts, context)
4933
- : undefined,
4934
- outputArtifacts: output.outputArtifacts !== undefined && output.outputArtifacts !== null
4935
- ? deserializeAws_json1_1ArtifactList(output.outputArtifacts, context)
4936
- : undefined,
4937
- pipelineContext: output.pipelineContext !== undefined && output.pipelineContext !== null
4729
+ encryptionKey: output.encryptionKey != null ? deserializeAws_json1_1EncryptionKey(output.encryptionKey, context) : undefined,
4730
+ inputArtifacts: output.inputArtifacts != null ? deserializeAws_json1_1ArtifactList(output.inputArtifacts, context) : undefined,
4731
+ outputArtifacts: output.outputArtifacts != null ? deserializeAws_json1_1ArtifactList(output.outputArtifacts, context) : undefined,
4732
+ pipelineContext: output.pipelineContext != null
4938
4733
  ? deserializeAws_json1_1PipelineContext(output.pipelineContext, context)
4939
4734
  : undefined,
4940
4735
  };
4941
4736
  };
4942
4737
  var deserializeAws_json1_1ThirdPartyJobDetails = function (output, context) {
4943
4738
  return {
4944
- data: output.data !== undefined && output.data !== null
4945
- ? deserializeAws_json1_1ThirdPartyJobData(output.data, context)
4946
- : undefined,
4739
+ data: output.data != null ? deserializeAws_json1_1ThirdPartyJobData(output.data, context) : undefined,
4947
4740
  id: __expectString(output.id),
4948
4741
  nonce: __expectString(output.nonce),
4949
4742
  };
@@ -4968,7 +4761,7 @@ var deserializeAws_json1_1TransitionState = function (output, context) {
4968
4761
  return {
4969
4762
  disabledReason: __expectString(output.disabledReason),
4970
4763
  enabled: __expectBoolean(output.enabled),
4971
- lastChangedAt: output.lastChangedAt !== undefined && output.lastChangedAt !== null
4764
+ lastChangedAt: output.lastChangedAt != null
4972
4765
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastChangedAt)))
4973
4766
  : undefined,
4974
4767
  lastChangedBy: __expectString(output.lastChangedBy),
@@ -4979,9 +4772,7 @@ var deserializeAws_json1_1UntagResourceOutput = function (output, context) {
4979
4772
  };
4980
4773
  var deserializeAws_json1_1UpdatePipelineOutput = function (output, context) {
4981
4774
  return {
4982
- pipeline: output.pipeline !== undefined && output.pipeline !== null
4983
- ? deserializeAws_json1_1PipelineDeclaration(output.pipeline, context)
4984
- : undefined,
4775
+ pipeline: output.pipeline != null ? deserializeAws_json1_1PipelineDeclaration(output.pipeline, context) : undefined,
4985
4776
  };
4986
4777
  };
4987
4778
  var deserializeAws_json1_1ValidationException = function (output, context) {
@@ -4998,12 +4789,10 @@ var deserializeAws_json1_1WebhookAuthConfiguration = function (output, context)
4998
4789
  var deserializeAws_json1_1WebhookDefinition = function (output, context) {
4999
4790
  return {
5000
4791
  authentication: __expectString(output.authentication),
5001
- authenticationConfiguration: output.authenticationConfiguration !== undefined && output.authenticationConfiguration !== null
4792
+ authenticationConfiguration: output.authenticationConfiguration != null
5002
4793
  ? deserializeAws_json1_1WebhookAuthConfiguration(output.authenticationConfiguration, context)
5003
4794
  : undefined,
5004
- filters: output.filters !== undefined && output.filters !== null
5005
- ? deserializeAws_json1_1WebhookFilters(output.filters, context)
5006
- : undefined,
4795
+ filters: output.filters != null ? deserializeAws_json1_1WebhookFilters(output.filters, context) : undefined,
5007
4796
  name: __expectString(output.name),
5008
4797
  targetAction: __expectString(output.targetAction),
5009
4798
  targetPipeline: __expectString(output.targetPipeline),
@@ -5096,6 +4885,9 @@ var loadRestJsonErrorCode = function (output, data) {
5096
4885
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
5097
4886
  var sanitizeErrorCode = function (rawValue) {
5098
4887
  var cleanValue = rawValue;
4888
+ if (typeof cleanValue === "number") {
4889
+ cleanValue = cleanValue.toString();
4890
+ }
5099
4891
  if (cleanValue.indexOf(":") >= 0) {
5100
4892
  cleanValue = cleanValue.split(":")[0];
5101
4893
  }