@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.
@@ -2448,15 +2448,15 @@ const deserializeAws_json1_1WebhookNotFoundExceptionResponse = async (parsedOutp
2448
2448
  };
2449
2449
  const serializeAws_json1_1AcknowledgeJobInput = (input, context) => {
2450
2450
  return {
2451
- ...(input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }),
2452
- ...(input.nonce !== undefined && input.nonce !== null && { nonce: input.nonce }),
2451
+ ...(input.jobId != null && { jobId: input.jobId }),
2452
+ ...(input.nonce != null && { nonce: input.nonce }),
2453
2453
  };
2454
2454
  };
2455
2455
  const serializeAws_json1_1AcknowledgeThirdPartyJobInput = (input, context) => {
2456
2456
  return {
2457
- ...(input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken }),
2458
- ...(input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }),
2459
- ...(input.nonce !== undefined && input.nonce !== null && { nonce: input.nonce }),
2457
+ ...(input.clientToken != null && { clientToken: input.clientToken }),
2458
+ ...(input.jobId != null && { jobId: input.jobId }),
2459
+ ...(input.nonce != null && { nonce: input.nonce }),
2460
2460
  };
2461
2461
  };
2462
2462
  const serializeAws_json1_1ActionConfigurationMap = (input, context) => {
@@ -2472,13 +2472,13 @@ const serializeAws_json1_1ActionConfigurationMap = (input, context) => {
2472
2472
  };
2473
2473
  const serializeAws_json1_1ActionConfigurationProperty = (input, context) => {
2474
2474
  return {
2475
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
2476
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
2477
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2478
- ...(input.queryable !== undefined && input.queryable !== null && { queryable: input.queryable }),
2479
- ...(input.required !== undefined && input.required !== null && { required: input.required }),
2480
- ...(input.secret !== undefined && input.secret !== null && { secret: input.secret }),
2481
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
2475
+ ...(input.description != null && { description: input.description }),
2476
+ ...(input.key != null && { key: input.key }),
2477
+ ...(input.name != null && { name: input.name }),
2478
+ ...(input.queryable != null && { queryable: input.queryable }),
2479
+ ...(input.required != null && { required: input.required }),
2480
+ ...(input.secret != null && { secret: input.secret }),
2481
+ ...(input.type != null && { type: input.type }),
2482
2482
  };
2483
2483
  };
2484
2484
  const serializeAws_json1_1ActionConfigurationPropertyList = (input, context) => {
@@ -2493,105 +2493,90 @@ const serializeAws_json1_1ActionConfigurationPropertyList = (input, context) =>
2493
2493
  };
2494
2494
  const serializeAws_json1_1ActionDeclaration = (input, context) => {
2495
2495
  return {
2496
- ...(input.actionTypeId !== undefined &&
2497
- input.actionTypeId !== null && { actionTypeId: serializeAws_json1_1ActionTypeId(input.actionTypeId, context) }),
2498
- ...(input.configuration !== undefined &&
2499
- input.configuration !== null && {
2496
+ ...(input.actionTypeId != null && { actionTypeId: serializeAws_json1_1ActionTypeId(input.actionTypeId, context) }),
2497
+ ...(input.configuration != null && {
2500
2498
  configuration: serializeAws_json1_1ActionConfigurationMap(input.configuration, context),
2501
2499
  }),
2502
- ...(input.inputArtifacts !== undefined &&
2503
- input.inputArtifacts !== null && {
2500
+ ...(input.inputArtifacts != null && {
2504
2501
  inputArtifacts: serializeAws_json1_1InputArtifactList(input.inputArtifacts, context),
2505
2502
  }),
2506
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2507
- ...(input.namespace !== undefined && input.namespace !== null && { namespace: input.namespace }),
2508
- ...(input.outputArtifacts !== undefined &&
2509
- input.outputArtifacts !== null && {
2503
+ ...(input.name != null && { name: input.name }),
2504
+ ...(input.namespace != null && { namespace: input.namespace }),
2505
+ ...(input.outputArtifacts != null && {
2510
2506
  outputArtifacts: serializeAws_json1_1OutputArtifactList(input.outputArtifacts, context),
2511
2507
  }),
2512
- ...(input.region !== undefined && input.region !== null && { region: input.region }),
2513
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
2514
- ...(input.runOrder !== undefined && input.runOrder !== null && { runOrder: input.runOrder }),
2508
+ ...(input.region != null && { region: input.region }),
2509
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
2510
+ ...(input.runOrder != null && { runOrder: input.runOrder }),
2515
2511
  };
2516
2512
  };
2517
2513
  const serializeAws_json1_1ActionExecutionFilter = (input, context) => {
2518
2514
  return {
2519
- ...(input.pipelineExecutionId !== undefined &&
2520
- input.pipelineExecutionId !== null && { pipelineExecutionId: input.pipelineExecutionId }),
2515
+ ...(input.pipelineExecutionId != null && { pipelineExecutionId: input.pipelineExecutionId }),
2521
2516
  };
2522
2517
  };
2523
2518
  const serializeAws_json1_1ActionRevision = (input, context) => {
2524
2519
  return {
2525
- ...(input.created !== undefined &&
2526
- input.created !== null && { created: Math.round(input.created.getTime() / 1000) }),
2527
- ...(input.revisionChangeId !== undefined &&
2528
- input.revisionChangeId !== null && { revisionChangeId: input.revisionChangeId }),
2529
- ...(input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId }),
2520
+ ...(input.created != null && { created: Math.round(input.created.getTime() / 1000) }),
2521
+ ...(input.revisionChangeId != null && { revisionChangeId: input.revisionChangeId }),
2522
+ ...(input.revisionId != null && { revisionId: input.revisionId }),
2530
2523
  };
2531
2524
  };
2532
2525
  const serializeAws_json1_1ActionTypeArtifactDetails = (input, context) => {
2533
2526
  return {
2534
- ...(input.maximumCount !== undefined && input.maximumCount !== null && { maximumCount: input.maximumCount }),
2535
- ...(input.minimumCount !== undefined && input.minimumCount !== null && { minimumCount: input.minimumCount }),
2527
+ ...(input.maximumCount != null && { maximumCount: input.maximumCount }),
2528
+ ...(input.minimumCount != null && { minimumCount: input.minimumCount }),
2536
2529
  };
2537
2530
  };
2538
2531
  const serializeAws_json1_1ActionTypeDeclaration = (input, context) => {
2539
2532
  return {
2540
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
2541
- ...(input.executor !== undefined &&
2542
- input.executor !== null && { executor: serializeAws_json1_1ActionTypeExecutor(input.executor, context) }),
2543
- ...(input.id !== undefined &&
2544
- input.id !== null && { id: serializeAws_json1_1ActionTypeIdentifier(input.id, context) }),
2545
- ...(input.inputArtifactDetails !== undefined &&
2546
- input.inputArtifactDetails !== null && {
2533
+ ...(input.description != null && { description: input.description }),
2534
+ ...(input.executor != null && { executor: serializeAws_json1_1ActionTypeExecutor(input.executor, context) }),
2535
+ ...(input.id != null && { id: serializeAws_json1_1ActionTypeIdentifier(input.id, context) }),
2536
+ ...(input.inputArtifactDetails != null && {
2547
2537
  inputArtifactDetails: serializeAws_json1_1ActionTypeArtifactDetails(input.inputArtifactDetails, context),
2548
2538
  }),
2549
- ...(input.outputArtifactDetails !== undefined &&
2550
- input.outputArtifactDetails !== null && {
2539
+ ...(input.outputArtifactDetails != null && {
2551
2540
  outputArtifactDetails: serializeAws_json1_1ActionTypeArtifactDetails(input.outputArtifactDetails, context),
2552
2541
  }),
2553
- ...(input.permissions !== undefined &&
2554
- input.permissions !== null && {
2542
+ ...(input.permissions != null && {
2555
2543
  permissions: serializeAws_json1_1ActionTypePermissions(input.permissions, context),
2556
2544
  }),
2557
- ...(input.properties !== undefined &&
2558
- input.properties !== null && { properties: serializeAws_json1_1ActionTypeProperties(input.properties, context) }),
2559
- ...(input.urls !== undefined &&
2560
- input.urls !== null && { urls: serializeAws_json1_1ActionTypeUrls(input.urls, context) }),
2545
+ ...(input.properties != null && {
2546
+ properties: serializeAws_json1_1ActionTypeProperties(input.properties, context),
2547
+ }),
2548
+ ...(input.urls != null && { urls: serializeAws_json1_1ActionTypeUrls(input.urls, context) }),
2561
2549
  };
2562
2550
  };
2563
2551
  const serializeAws_json1_1ActionTypeExecutor = (input, context) => {
2564
2552
  return {
2565
- ...(input.configuration !== undefined &&
2566
- input.configuration !== null && {
2553
+ ...(input.configuration != null && {
2567
2554
  configuration: serializeAws_json1_1ExecutorConfiguration(input.configuration, context),
2568
2555
  }),
2569
- ...(input.jobTimeout !== undefined && input.jobTimeout !== null && { jobTimeout: input.jobTimeout }),
2570
- ...(input.policyStatementsTemplate !== undefined &&
2571
- input.policyStatementsTemplate !== null && { policyStatementsTemplate: input.policyStatementsTemplate }),
2572
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
2556
+ ...(input.jobTimeout != null && { jobTimeout: input.jobTimeout }),
2557
+ ...(input.policyStatementsTemplate != null && { policyStatementsTemplate: input.policyStatementsTemplate }),
2558
+ ...(input.type != null && { type: input.type }),
2573
2559
  };
2574
2560
  };
2575
2561
  const serializeAws_json1_1ActionTypeId = (input, context) => {
2576
2562
  return {
2577
- ...(input.category !== undefined && input.category !== null && { category: input.category }),
2578
- ...(input.owner !== undefined && input.owner !== null && { owner: input.owner }),
2579
- ...(input.provider !== undefined && input.provider !== null && { provider: input.provider }),
2580
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
2563
+ ...(input.category != null && { category: input.category }),
2564
+ ...(input.owner != null && { owner: input.owner }),
2565
+ ...(input.provider != null && { provider: input.provider }),
2566
+ ...(input.version != null && { version: input.version }),
2581
2567
  };
2582
2568
  };
2583
2569
  const serializeAws_json1_1ActionTypeIdentifier = (input, context) => {
2584
2570
  return {
2585
- ...(input.category !== undefined && input.category !== null && { category: input.category }),
2586
- ...(input.owner !== undefined && input.owner !== null && { owner: input.owner }),
2587
- ...(input.provider !== undefined && input.provider !== null && { provider: input.provider }),
2588
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
2571
+ ...(input.category != null && { category: input.category }),
2572
+ ...(input.owner != null && { owner: input.owner }),
2573
+ ...(input.provider != null && { provider: input.provider }),
2574
+ ...(input.version != null && { version: input.version }),
2589
2575
  };
2590
2576
  };
2591
2577
  const serializeAws_json1_1ActionTypePermissions = (input, context) => {
2592
2578
  return {
2593
- ...(input.allowedAccounts !== undefined &&
2594
- input.allowedAccounts !== null && {
2579
+ ...(input.allowedAccounts != null && {
2595
2580
  allowedAccounts: serializeAws_json1_1AllowedAccounts(input.allowedAccounts, context),
2596
2581
  }),
2597
2582
  };
@@ -2608,36 +2593,28 @@ const serializeAws_json1_1ActionTypeProperties = (input, context) => {
2608
2593
  };
2609
2594
  const serializeAws_json1_1ActionTypeProperty = (input, context) => {
2610
2595
  return {
2611
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
2612
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
2613
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2614
- ...(input.noEcho !== undefined && input.noEcho !== null && { noEcho: input.noEcho }),
2615
- ...(input.optional !== undefined && input.optional !== null && { optional: input.optional }),
2616
- ...(input.queryable !== undefined && input.queryable !== null && { queryable: input.queryable }),
2596
+ ...(input.description != null && { description: input.description }),
2597
+ ...(input.key != null && { key: input.key }),
2598
+ ...(input.name != null && { name: input.name }),
2599
+ ...(input.noEcho != null && { noEcho: input.noEcho }),
2600
+ ...(input.optional != null && { optional: input.optional }),
2601
+ ...(input.queryable != null && { queryable: input.queryable }),
2617
2602
  };
2618
2603
  };
2619
2604
  const serializeAws_json1_1ActionTypeSettings = (input, context) => {
2620
2605
  return {
2621
- ...(input.entityUrlTemplate !== undefined &&
2622
- input.entityUrlTemplate !== null && { entityUrlTemplate: input.entityUrlTemplate }),
2623
- ...(input.executionUrlTemplate !== undefined &&
2624
- input.executionUrlTemplate !== null && { executionUrlTemplate: input.executionUrlTemplate }),
2625
- ...(input.revisionUrlTemplate !== undefined &&
2626
- input.revisionUrlTemplate !== null && { revisionUrlTemplate: input.revisionUrlTemplate }),
2627
- ...(input.thirdPartyConfigurationUrl !== undefined &&
2628
- input.thirdPartyConfigurationUrl !== null && { thirdPartyConfigurationUrl: input.thirdPartyConfigurationUrl }),
2606
+ ...(input.entityUrlTemplate != null && { entityUrlTemplate: input.entityUrlTemplate }),
2607
+ ...(input.executionUrlTemplate != null && { executionUrlTemplate: input.executionUrlTemplate }),
2608
+ ...(input.revisionUrlTemplate != null && { revisionUrlTemplate: input.revisionUrlTemplate }),
2609
+ ...(input.thirdPartyConfigurationUrl != null && { thirdPartyConfigurationUrl: input.thirdPartyConfigurationUrl }),
2629
2610
  };
2630
2611
  };
2631
2612
  const serializeAws_json1_1ActionTypeUrls = (input, context) => {
2632
2613
  return {
2633
- ...(input.configurationUrl !== undefined &&
2634
- input.configurationUrl !== null && { configurationUrl: input.configurationUrl }),
2635
- ...(input.entityUrlTemplate !== undefined &&
2636
- input.entityUrlTemplate !== null && { entityUrlTemplate: input.entityUrlTemplate }),
2637
- ...(input.executionUrlTemplate !== undefined &&
2638
- input.executionUrlTemplate !== null && { executionUrlTemplate: input.executionUrlTemplate }),
2639
- ...(input.revisionUrlTemplate !== undefined &&
2640
- input.revisionUrlTemplate !== null && { revisionUrlTemplate: input.revisionUrlTemplate }),
2614
+ ...(input.configurationUrl != null && { configurationUrl: input.configurationUrl }),
2615
+ ...(input.entityUrlTemplate != null && { entityUrlTemplate: input.entityUrlTemplate }),
2616
+ ...(input.executionUrlTemplate != null && { executionUrlTemplate: input.executionUrlTemplate }),
2617
+ ...(input.revisionUrlTemplate != null && { revisionUrlTemplate: input.revisionUrlTemplate }),
2641
2618
  };
2642
2619
  };
2643
2620
  const serializeAws_json1_1AllowedAccounts = (input, context) => {
@@ -2652,24 +2629,23 @@ const serializeAws_json1_1AllowedAccounts = (input, context) => {
2652
2629
  };
2653
2630
  const serializeAws_json1_1ApprovalResult = (input, context) => {
2654
2631
  return {
2655
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
2656
- ...(input.summary !== undefined && input.summary !== null && { summary: input.summary }),
2632
+ ...(input.status != null && { status: input.status }),
2633
+ ...(input.summary != null && { summary: input.summary }),
2657
2634
  };
2658
2635
  };
2659
2636
  const serializeAws_json1_1ArtifactDetails = (input, context) => {
2660
2637
  return {
2661
- ...(input.maximumCount !== undefined && input.maximumCount !== null && { maximumCount: input.maximumCount }),
2662
- ...(input.minimumCount !== undefined && input.minimumCount !== null && { minimumCount: input.minimumCount }),
2638
+ ...(input.maximumCount != null && { maximumCount: input.maximumCount }),
2639
+ ...(input.minimumCount != null && { minimumCount: input.minimumCount }),
2663
2640
  };
2664
2641
  };
2665
2642
  const serializeAws_json1_1ArtifactStore = (input, context) => {
2666
2643
  return {
2667
- ...(input.encryptionKey !== undefined &&
2668
- input.encryptionKey !== null && {
2644
+ ...(input.encryptionKey != null && {
2669
2645
  encryptionKey: serializeAws_json1_1EncryptionKey(input.encryptionKey, context),
2670
2646
  }),
2671
- ...(input.location !== undefined && input.location !== null && { location: input.location }),
2672
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
2647
+ ...(input.location != null && { location: input.location }),
2648
+ ...(input.type != null && { type: input.type }),
2673
2649
  };
2674
2650
  };
2675
2651
  const serializeAws_json1_1ArtifactStoreMap = (input, context) => {
@@ -2685,164 +2661,148 @@ const serializeAws_json1_1ArtifactStoreMap = (input, context) => {
2685
2661
  };
2686
2662
  const serializeAws_json1_1BlockerDeclaration = (input, context) => {
2687
2663
  return {
2688
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2689
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
2664
+ ...(input.name != null && { name: input.name }),
2665
+ ...(input.type != null && { type: input.type }),
2690
2666
  };
2691
2667
  };
2692
2668
  const serializeAws_json1_1CreateCustomActionTypeInput = (input, context) => {
2693
2669
  return {
2694
- ...(input.category !== undefined && input.category !== null && { category: input.category }),
2695
- ...(input.configurationProperties !== undefined &&
2696
- input.configurationProperties !== null && {
2670
+ ...(input.category != null && { category: input.category }),
2671
+ ...(input.configurationProperties != null && {
2697
2672
  configurationProperties: serializeAws_json1_1ActionConfigurationPropertyList(input.configurationProperties, context),
2698
2673
  }),
2699
- ...(input.inputArtifactDetails !== undefined &&
2700
- input.inputArtifactDetails !== null && {
2674
+ ...(input.inputArtifactDetails != null && {
2701
2675
  inputArtifactDetails: serializeAws_json1_1ArtifactDetails(input.inputArtifactDetails, context),
2702
2676
  }),
2703
- ...(input.outputArtifactDetails !== undefined &&
2704
- input.outputArtifactDetails !== null && {
2677
+ ...(input.outputArtifactDetails != null && {
2705
2678
  outputArtifactDetails: serializeAws_json1_1ArtifactDetails(input.outputArtifactDetails, context),
2706
2679
  }),
2707
- ...(input.provider !== undefined && input.provider !== null && { provider: input.provider }),
2708
- ...(input.settings !== undefined &&
2709
- input.settings !== null && { settings: serializeAws_json1_1ActionTypeSettings(input.settings, context) }),
2710
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
2711
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
2680
+ ...(input.provider != null && { provider: input.provider }),
2681
+ ...(input.settings != null && { settings: serializeAws_json1_1ActionTypeSettings(input.settings, context) }),
2682
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
2683
+ ...(input.version != null && { version: input.version }),
2712
2684
  };
2713
2685
  };
2714
2686
  const serializeAws_json1_1CreatePipelineInput = (input, context) => {
2715
2687
  return {
2716
- ...(input.pipeline !== undefined &&
2717
- input.pipeline !== null && { pipeline: serializeAws_json1_1PipelineDeclaration(input.pipeline, context) }),
2718
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
2688
+ ...(input.pipeline != null && { pipeline: serializeAws_json1_1PipelineDeclaration(input.pipeline, context) }),
2689
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
2719
2690
  };
2720
2691
  };
2721
2692
  const serializeAws_json1_1CurrentRevision = (input, context) => {
2722
2693
  return {
2723
- ...(input.changeIdentifier !== undefined &&
2724
- input.changeIdentifier !== null && { changeIdentifier: input.changeIdentifier }),
2725
- ...(input.created !== undefined &&
2726
- input.created !== null && { created: Math.round(input.created.getTime() / 1000) }),
2727
- ...(input.revision !== undefined && input.revision !== null && { revision: input.revision }),
2728
- ...(input.revisionSummary !== undefined &&
2729
- input.revisionSummary !== null && { revisionSummary: input.revisionSummary }),
2694
+ ...(input.changeIdentifier != null && { changeIdentifier: input.changeIdentifier }),
2695
+ ...(input.created != null && { created: Math.round(input.created.getTime() / 1000) }),
2696
+ ...(input.revision != null && { revision: input.revision }),
2697
+ ...(input.revisionSummary != null && { revisionSummary: input.revisionSummary }),
2730
2698
  };
2731
2699
  };
2732
2700
  const serializeAws_json1_1DeleteCustomActionTypeInput = (input, context) => {
2733
2701
  return {
2734
- ...(input.category !== undefined && input.category !== null && { category: input.category }),
2735
- ...(input.provider !== undefined && input.provider !== null && { provider: input.provider }),
2736
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
2702
+ ...(input.category != null && { category: input.category }),
2703
+ ...(input.provider != null && { provider: input.provider }),
2704
+ ...(input.version != null && { version: input.version }),
2737
2705
  };
2738
2706
  };
2739
2707
  const serializeAws_json1_1DeletePipelineInput = (input, context) => {
2740
2708
  return {
2741
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2709
+ ...(input.name != null && { name: input.name }),
2742
2710
  };
2743
2711
  };
2744
2712
  const serializeAws_json1_1DeleteWebhookInput = (input, context) => {
2745
2713
  return {
2746
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2714
+ ...(input.name != null && { name: input.name }),
2747
2715
  };
2748
2716
  };
2749
2717
  const serializeAws_json1_1DeregisterWebhookWithThirdPartyInput = (input, context) => {
2750
2718
  return {
2751
- ...(input.webhookName !== undefined && input.webhookName !== null && { webhookName: input.webhookName }),
2719
+ ...(input.webhookName != null && { webhookName: input.webhookName }),
2752
2720
  };
2753
2721
  };
2754
2722
  const serializeAws_json1_1DisableStageTransitionInput = (input, context) => {
2755
2723
  return {
2756
- ...(input.pipelineName !== undefined && input.pipelineName !== null && { pipelineName: input.pipelineName }),
2757
- ...(input.reason !== undefined && input.reason !== null && { reason: input.reason }),
2758
- ...(input.stageName !== undefined && input.stageName !== null && { stageName: input.stageName }),
2759
- ...(input.transitionType !== undefined &&
2760
- input.transitionType !== null && { transitionType: input.transitionType }),
2724
+ ...(input.pipelineName != null && { pipelineName: input.pipelineName }),
2725
+ ...(input.reason != null && { reason: input.reason }),
2726
+ ...(input.stageName != null && { stageName: input.stageName }),
2727
+ ...(input.transitionType != null && { transitionType: input.transitionType }),
2761
2728
  };
2762
2729
  };
2763
2730
  const serializeAws_json1_1EnableStageTransitionInput = (input, context) => {
2764
2731
  return {
2765
- ...(input.pipelineName !== undefined && input.pipelineName !== null && { pipelineName: input.pipelineName }),
2766
- ...(input.stageName !== undefined && input.stageName !== null && { stageName: input.stageName }),
2767
- ...(input.transitionType !== undefined &&
2768
- input.transitionType !== null && { transitionType: input.transitionType }),
2732
+ ...(input.pipelineName != null && { pipelineName: input.pipelineName }),
2733
+ ...(input.stageName != null && { stageName: input.stageName }),
2734
+ ...(input.transitionType != null && { transitionType: input.transitionType }),
2769
2735
  };
2770
2736
  };
2771
2737
  const serializeAws_json1_1EncryptionKey = (input, context) => {
2772
2738
  return {
2773
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
2774
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
2739
+ ...(input.id != null && { id: input.id }),
2740
+ ...(input.type != null && { type: input.type }),
2775
2741
  };
2776
2742
  };
2777
2743
  const serializeAws_json1_1ExecutionDetails = (input, context) => {
2778
2744
  return {
2779
- ...(input.externalExecutionId !== undefined &&
2780
- input.externalExecutionId !== null && { externalExecutionId: input.externalExecutionId }),
2781
- ...(input.percentComplete !== undefined &&
2782
- input.percentComplete !== null && { percentComplete: input.percentComplete }),
2783
- ...(input.summary !== undefined && input.summary !== null && { summary: input.summary }),
2745
+ ...(input.externalExecutionId != null && { externalExecutionId: input.externalExecutionId }),
2746
+ ...(input.percentComplete != null && { percentComplete: input.percentComplete }),
2747
+ ...(input.summary != null && { summary: input.summary }),
2784
2748
  };
2785
2749
  };
2786
2750
  const serializeAws_json1_1ExecutorConfiguration = (input, context) => {
2787
2751
  return {
2788
- ...(input.jobWorkerExecutorConfiguration !== undefined &&
2789
- input.jobWorkerExecutorConfiguration !== null && {
2752
+ ...(input.jobWorkerExecutorConfiguration != null && {
2790
2753
  jobWorkerExecutorConfiguration: serializeAws_json1_1JobWorkerExecutorConfiguration(input.jobWorkerExecutorConfiguration, context),
2791
2754
  }),
2792
- ...(input.lambdaExecutorConfiguration !== undefined &&
2793
- input.lambdaExecutorConfiguration !== null && {
2755
+ ...(input.lambdaExecutorConfiguration != null && {
2794
2756
  lambdaExecutorConfiguration: serializeAws_json1_1LambdaExecutorConfiguration(input.lambdaExecutorConfiguration, context),
2795
2757
  }),
2796
2758
  };
2797
2759
  };
2798
2760
  const serializeAws_json1_1FailureDetails = (input, context) => {
2799
2761
  return {
2800
- ...(input.externalExecutionId !== undefined &&
2801
- input.externalExecutionId !== null && { externalExecutionId: input.externalExecutionId }),
2802
- ...(input.message !== undefined && input.message !== null && { message: input.message }),
2803
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
2762
+ ...(input.externalExecutionId != null && { externalExecutionId: input.externalExecutionId }),
2763
+ ...(input.message != null && { message: input.message }),
2764
+ ...(input.type != null && { type: input.type }),
2804
2765
  };
2805
2766
  };
2806
2767
  const serializeAws_json1_1GetActionTypeInput = (input, context) => {
2807
2768
  return {
2808
- ...(input.category !== undefined && input.category !== null && { category: input.category }),
2809
- ...(input.owner !== undefined && input.owner !== null && { owner: input.owner }),
2810
- ...(input.provider !== undefined && input.provider !== null && { provider: input.provider }),
2811
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
2769
+ ...(input.category != null && { category: input.category }),
2770
+ ...(input.owner != null && { owner: input.owner }),
2771
+ ...(input.provider != null && { provider: input.provider }),
2772
+ ...(input.version != null && { version: input.version }),
2812
2773
  };
2813
2774
  };
2814
2775
  const serializeAws_json1_1GetJobDetailsInput = (input, context) => {
2815
2776
  return {
2816
- ...(input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }),
2777
+ ...(input.jobId != null && { jobId: input.jobId }),
2817
2778
  };
2818
2779
  };
2819
2780
  const serializeAws_json1_1GetPipelineExecutionInput = (input, context) => {
2820
2781
  return {
2821
- ...(input.pipelineExecutionId !== undefined &&
2822
- input.pipelineExecutionId !== null && { pipelineExecutionId: input.pipelineExecutionId }),
2823
- ...(input.pipelineName !== undefined && input.pipelineName !== null && { pipelineName: input.pipelineName }),
2782
+ ...(input.pipelineExecutionId != null && { pipelineExecutionId: input.pipelineExecutionId }),
2783
+ ...(input.pipelineName != null && { pipelineName: input.pipelineName }),
2824
2784
  };
2825
2785
  };
2826
2786
  const serializeAws_json1_1GetPipelineInput = (input, context) => {
2827
2787
  return {
2828
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2829
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
2788
+ ...(input.name != null && { name: input.name }),
2789
+ ...(input.version != null && { version: input.version }),
2830
2790
  };
2831
2791
  };
2832
2792
  const serializeAws_json1_1GetPipelineStateInput = (input, context) => {
2833
2793
  return {
2834
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2794
+ ...(input.name != null && { name: input.name }),
2835
2795
  };
2836
2796
  };
2837
2797
  const serializeAws_json1_1GetThirdPartyJobDetailsInput = (input, context) => {
2838
2798
  return {
2839
- ...(input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken }),
2840
- ...(input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }),
2799
+ ...(input.clientToken != null && { clientToken: input.clientToken }),
2800
+ ...(input.jobId != null && { jobId: input.jobId }),
2841
2801
  };
2842
2802
  };
2843
2803
  const serializeAws_json1_1InputArtifact = (input, context) => {
2844
2804
  return {
2845
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2805
+ ...(input.name != null && { name: input.name }),
2846
2806
  };
2847
2807
  };
2848
2808
  const serializeAws_json1_1InputArtifactList = (input, context) => {
@@ -2857,68 +2817,63 @@ const serializeAws_json1_1InputArtifactList = (input, context) => {
2857
2817
  };
2858
2818
  const serializeAws_json1_1JobWorkerExecutorConfiguration = (input, context) => {
2859
2819
  return {
2860
- ...(input.pollingAccounts !== undefined &&
2861
- input.pollingAccounts !== null && {
2820
+ ...(input.pollingAccounts != null && {
2862
2821
  pollingAccounts: serializeAws_json1_1PollingAccountList(input.pollingAccounts, context),
2863
2822
  }),
2864
- ...(input.pollingServicePrincipals !== undefined &&
2865
- input.pollingServicePrincipals !== null && {
2823
+ ...(input.pollingServicePrincipals != null && {
2866
2824
  pollingServicePrincipals: serializeAws_json1_1PollingServicePrincipalList(input.pollingServicePrincipals, context),
2867
2825
  }),
2868
2826
  };
2869
2827
  };
2870
2828
  const serializeAws_json1_1LambdaExecutorConfiguration = (input, context) => {
2871
2829
  return {
2872
- ...(input.lambdaFunctionArn !== undefined &&
2873
- input.lambdaFunctionArn !== null && { lambdaFunctionArn: input.lambdaFunctionArn }),
2830
+ ...(input.lambdaFunctionArn != null && { lambdaFunctionArn: input.lambdaFunctionArn }),
2874
2831
  };
2875
2832
  };
2876
2833
  const serializeAws_json1_1ListActionExecutionsInput = (input, context) => {
2877
2834
  return {
2878
- ...(input.filter !== undefined &&
2879
- input.filter !== null && { filter: serializeAws_json1_1ActionExecutionFilter(input.filter, context) }),
2880
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
2881
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
2882
- ...(input.pipelineName !== undefined && input.pipelineName !== null && { pipelineName: input.pipelineName }),
2835
+ ...(input.filter != null && { filter: serializeAws_json1_1ActionExecutionFilter(input.filter, context) }),
2836
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
2837
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
2838
+ ...(input.pipelineName != null && { pipelineName: input.pipelineName }),
2883
2839
  };
2884
2840
  };
2885
2841
  const serializeAws_json1_1ListActionTypesInput = (input, context) => {
2886
2842
  return {
2887
- ...(input.actionOwnerFilter !== undefined &&
2888
- input.actionOwnerFilter !== null && { actionOwnerFilter: input.actionOwnerFilter }),
2889
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
2890
- ...(input.regionFilter !== undefined && input.regionFilter !== null && { regionFilter: input.regionFilter }),
2843
+ ...(input.actionOwnerFilter != null && { actionOwnerFilter: input.actionOwnerFilter }),
2844
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
2845
+ ...(input.regionFilter != null && { regionFilter: input.regionFilter }),
2891
2846
  };
2892
2847
  };
2893
2848
  const serializeAws_json1_1ListPipelineExecutionsInput = (input, context) => {
2894
2849
  return {
2895
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
2896
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
2897
- ...(input.pipelineName !== undefined && input.pipelineName !== null && { pipelineName: input.pipelineName }),
2850
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
2851
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
2852
+ ...(input.pipelineName != null && { pipelineName: input.pipelineName }),
2898
2853
  };
2899
2854
  };
2900
2855
  const serializeAws_json1_1ListPipelinesInput = (input, context) => {
2901
2856
  return {
2902
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
2903
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
2857
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
2858
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
2904
2859
  };
2905
2860
  };
2906
2861
  const serializeAws_json1_1ListTagsForResourceInput = (input, context) => {
2907
2862
  return {
2908
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
2909
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
2910
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
2863
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
2864
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
2865
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2911
2866
  };
2912
2867
  };
2913
2868
  const serializeAws_json1_1ListWebhooksInput = (input, context) => {
2914
2869
  return {
2915
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2916
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2870
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2871
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2917
2872
  };
2918
2873
  };
2919
2874
  const serializeAws_json1_1OutputArtifact = (input, context) => {
2920
2875
  return {
2921
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2876
+ ...(input.name != null && { name: input.name }),
2922
2877
  };
2923
2878
  };
2924
2879
  const serializeAws_json1_1OutputArtifactList = (input, context) => {
@@ -2944,19 +2899,16 @@ const serializeAws_json1_1OutputVariablesMap = (input, context) => {
2944
2899
  };
2945
2900
  const serializeAws_json1_1PipelineDeclaration = (input, context) => {
2946
2901
  return {
2947
- ...(input.artifactStore !== undefined &&
2948
- input.artifactStore !== null && {
2902
+ ...(input.artifactStore != null && {
2949
2903
  artifactStore: serializeAws_json1_1ArtifactStore(input.artifactStore, context),
2950
2904
  }),
2951
- ...(input.artifactStores !== undefined &&
2952
- input.artifactStores !== null && {
2905
+ ...(input.artifactStores != null && {
2953
2906
  artifactStores: serializeAws_json1_1ArtifactStoreMap(input.artifactStores, context),
2954
2907
  }),
2955
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2956
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
2957
- ...(input.stages !== undefined &&
2958
- input.stages !== null && { stages: serializeAws_json1_1PipelineStageDeclarationList(input.stages, context) }),
2959
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
2908
+ ...(input.name != null && { name: input.name }),
2909
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
2910
+ ...(input.stages != null && { stages: serializeAws_json1_1PipelineStageDeclarationList(input.stages, context) }),
2911
+ ...(input.version != null && { version: input.version }),
2960
2912
  };
2961
2913
  };
2962
2914
  const serializeAws_json1_1PipelineStageDeclarationList = (input, context) => {
@@ -2971,18 +2923,15 @@ const serializeAws_json1_1PipelineStageDeclarationList = (input, context) => {
2971
2923
  };
2972
2924
  const serializeAws_json1_1PollForJobsInput = (input, context) => {
2973
2925
  return {
2974
- ...(input.actionTypeId !== undefined &&
2975
- input.actionTypeId !== null && { actionTypeId: serializeAws_json1_1ActionTypeId(input.actionTypeId, context) }),
2976
- ...(input.maxBatchSize !== undefined && input.maxBatchSize !== null && { maxBatchSize: input.maxBatchSize }),
2977
- ...(input.queryParam !== undefined &&
2978
- input.queryParam !== null && { queryParam: serializeAws_json1_1QueryParamMap(input.queryParam, context) }),
2926
+ ...(input.actionTypeId != null && { actionTypeId: serializeAws_json1_1ActionTypeId(input.actionTypeId, context) }),
2927
+ ...(input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize }),
2928
+ ...(input.queryParam != null && { queryParam: serializeAws_json1_1QueryParamMap(input.queryParam, context) }),
2979
2929
  };
2980
2930
  };
2981
2931
  const serializeAws_json1_1PollForThirdPartyJobsInput = (input, context) => {
2982
2932
  return {
2983
- ...(input.actionTypeId !== undefined &&
2984
- input.actionTypeId !== null && { actionTypeId: serializeAws_json1_1ActionTypeId(input.actionTypeId, context) }),
2985
- ...(input.maxBatchSize !== undefined && input.maxBatchSize !== null && { maxBatchSize: input.maxBatchSize }),
2933
+ ...(input.actionTypeId != null && { actionTypeId: serializeAws_json1_1ActionTypeId(input.actionTypeId, context) }),
2934
+ ...(input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize }),
2986
2935
  };
2987
2936
  };
2988
2937
  const serializeAws_json1_1PollingAccountList = (input, context) => {
@@ -3007,84 +2956,72 @@ const serializeAws_json1_1PollingServicePrincipalList = (input, context) => {
3007
2956
  };
3008
2957
  const serializeAws_json1_1PutActionRevisionInput = (input, context) => {
3009
2958
  return {
3010
- ...(input.actionName !== undefined && input.actionName !== null && { actionName: input.actionName }),
3011
- ...(input.actionRevision !== undefined &&
3012
- input.actionRevision !== null && {
2959
+ ...(input.actionName != null && { actionName: input.actionName }),
2960
+ ...(input.actionRevision != null && {
3013
2961
  actionRevision: serializeAws_json1_1ActionRevision(input.actionRevision, context),
3014
2962
  }),
3015
- ...(input.pipelineName !== undefined && input.pipelineName !== null && { pipelineName: input.pipelineName }),
3016
- ...(input.stageName !== undefined && input.stageName !== null && { stageName: input.stageName }),
2963
+ ...(input.pipelineName != null && { pipelineName: input.pipelineName }),
2964
+ ...(input.stageName != null && { stageName: input.stageName }),
3017
2965
  };
3018
2966
  };
3019
2967
  const serializeAws_json1_1PutApprovalResultInput = (input, context) => {
3020
2968
  return {
3021
- ...(input.actionName !== undefined && input.actionName !== null && { actionName: input.actionName }),
3022
- ...(input.pipelineName !== undefined && input.pipelineName !== null && { pipelineName: input.pipelineName }),
3023
- ...(input.result !== undefined &&
3024
- input.result !== null && { result: serializeAws_json1_1ApprovalResult(input.result, context) }),
3025
- ...(input.stageName !== undefined && input.stageName !== null && { stageName: input.stageName }),
3026
- ...(input.token !== undefined && input.token !== null && { token: input.token }),
2969
+ ...(input.actionName != null && { actionName: input.actionName }),
2970
+ ...(input.pipelineName != null && { pipelineName: input.pipelineName }),
2971
+ ...(input.result != null && { result: serializeAws_json1_1ApprovalResult(input.result, context) }),
2972
+ ...(input.stageName != null && { stageName: input.stageName }),
2973
+ ...(input.token != null && { token: input.token }),
3027
2974
  };
3028
2975
  };
3029
2976
  const serializeAws_json1_1PutJobFailureResultInput = (input, context) => {
3030
2977
  return {
3031
- ...(input.failureDetails !== undefined &&
3032
- input.failureDetails !== null && {
2978
+ ...(input.failureDetails != null && {
3033
2979
  failureDetails: serializeAws_json1_1FailureDetails(input.failureDetails, context),
3034
2980
  }),
3035
- ...(input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }),
2981
+ ...(input.jobId != null && { jobId: input.jobId }),
3036
2982
  };
3037
2983
  };
3038
2984
  const serializeAws_json1_1PutJobSuccessResultInput = (input, context) => {
3039
2985
  return {
3040
- ...(input.continuationToken !== undefined &&
3041
- input.continuationToken !== null && { continuationToken: input.continuationToken }),
3042
- ...(input.currentRevision !== undefined &&
3043
- input.currentRevision !== null && {
2986
+ ...(input.continuationToken != null && { continuationToken: input.continuationToken }),
2987
+ ...(input.currentRevision != null && {
3044
2988
  currentRevision: serializeAws_json1_1CurrentRevision(input.currentRevision, context),
3045
2989
  }),
3046
- ...(input.executionDetails !== undefined &&
3047
- input.executionDetails !== null && {
2990
+ ...(input.executionDetails != null && {
3048
2991
  executionDetails: serializeAws_json1_1ExecutionDetails(input.executionDetails, context),
3049
2992
  }),
3050
- ...(input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }),
3051
- ...(input.outputVariables !== undefined &&
3052
- input.outputVariables !== null && {
2993
+ ...(input.jobId != null && { jobId: input.jobId }),
2994
+ ...(input.outputVariables != null && {
3053
2995
  outputVariables: serializeAws_json1_1OutputVariablesMap(input.outputVariables, context),
3054
2996
  }),
3055
2997
  };
3056
2998
  };
3057
2999
  const serializeAws_json1_1PutThirdPartyJobFailureResultInput = (input, context) => {
3058
3000
  return {
3059
- ...(input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken }),
3060
- ...(input.failureDetails !== undefined &&
3061
- input.failureDetails !== null && {
3001
+ ...(input.clientToken != null && { clientToken: input.clientToken }),
3002
+ ...(input.failureDetails != null && {
3062
3003
  failureDetails: serializeAws_json1_1FailureDetails(input.failureDetails, context),
3063
3004
  }),
3064
- ...(input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }),
3005
+ ...(input.jobId != null && { jobId: input.jobId }),
3065
3006
  };
3066
3007
  };
3067
3008
  const serializeAws_json1_1PutThirdPartyJobSuccessResultInput = (input, context) => {
3068
3009
  return {
3069
- ...(input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken }),
3070
- ...(input.continuationToken !== undefined &&
3071
- input.continuationToken !== null && { continuationToken: input.continuationToken }),
3072
- ...(input.currentRevision !== undefined &&
3073
- input.currentRevision !== null && {
3010
+ ...(input.clientToken != null && { clientToken: input.clientToken }),
3011
+ ...(input.continuationToken != null && { continuationToken: input.continuationToken }),
3012
+ ...(input.currentRevision != null && {
3074
3013
  currentRevision: serializeAws_json1_1CurrentRevision(input.currentRevision, context),
3075
3014
  }),
3076
- ...(input.executionDetails !== undefined &&
3077
- input.executionDetails !== null && {
3015
+ ...(input.executionDetails != null && {
3078
3016
  executionDetails: serializeAws_json1_1ExecutionDetails(input.executionDetails, context),
3079
3017
  }),
3080
- ...(input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }),
3018
+ ...(input.jobId != null && { jobId: input.jobId }),
3081
3019
  };
3082
3020
  };
3083
3021
  const serializeAws_json1_1PutWebhookInput = (input, context) => {
3084
3022
  return {
3085
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3086
- ...(input.webhook !== undefined &&
3087
- input.webhook !== null && { webhook: serializeAws_json1_1WebhookDefinition(input.webhook, context) }),
3023
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3024
+ ...(input.webhook != null && { webhook: serializeAws_json1_1WebhookDefinition(input.webhook, context) }),
3088
3025
  };
3089
3026
  };
3090
3027
  const serializeAws_json1_1QueryParamMap = (input, context) => {
@@ -3100,16 +3037,15 @@ const serializeAws_json1_1QueryParamMap = (input, context) => {
3100
3037
  };
3101
3038
  const serializeAws_json1_1RegisterWebhookWithThirdPartyInput = (input, context) => {
3102
3039
  return {
3103
- ...(input.webhookName !== undefined && input.webhookName !== null && { webhookName: input.webhookName }),
3040
+ ...(input.webhookName != null && { webhookName: input.webhookName }),
3104
3041
  };
3105
3042
  };
3106
3043
  const serializeAws_json1_1RetryStageExecutionInput = (input, context) => {
3107
3044
  return {
3108
- ...(input.pipelineExecutionId !== undefined &&
3109
- input.pipelineExecutionId !== null && { pipelineExecutionId: input.pipelineExecutionId }),
3110
- ...(input.pipelineName !== undefined && input.pipelineName !== null && { pipelineName: input.pipelineName }),
3111
- ...(input.retryMode !== undefined && input.retryMode !== null && { retryMode: input.retryMode }),
3112
- ...(input.stageName !== undefined && input.stageName !== null && { stageName: input.stageName }),
3045
+ ...(input.pipelineExecutionId != null && { pipelineExecutionId: input.pipelineExecutionId }),
3046
+ ...(input.pipelineName != null && { pipelineName: input.pipelineName }),
3047
+ ...(input.retryMode != null && { retryMode: input.retryMode }),
3048
+ ...(input.stageName != null && { stageName: input.stageName }),
3113
3049
  };
3114
3050
  };
3115
3051
  const serializeAws_json1_1StageActionDeclarationList = (input, context) => {
@@ -3134,35 +3070,32 @@ const serializeAws_json1_1StageBlockerDeclarationList = (input, context) => {
3134
3070
  };
3135
3071
  const serializeAws_json1_1StageDeclaration = (input, context) => {
3136
3072
  return {
3137
- ...(input.actions !== undefined &&
3138
- input.actions !== null && { actions: serializeAws_json1_1StageActionDeclarationList(input.actions, context) }),
3139
- ...(input.blockers !== undefined &&
3140
- input.blockers !== null && {
3073
+ ...(input.actions != null && { actions: serializeAws_json1_1StageActionDeclarationList(input.actions, context) }),
3074
+ ...(input.blockers != null && {
3141
3075
  blockers: serializeAws_json1_1StageBlockerDeclarationList(input.blockers, context),
3142
3076
  }),
3143
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3077
+ ...(input.name != null && { name: input.name }),
3144
3078
  };
3145
3079
  };
3146
3080
  const serializeAws_json1_1StartPipelineExecutionInput = (input, context) => {
3147
3081
  var _a;
3148
3082
  return {
3149
3083
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
3150
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3084
+ ...(input.name != null && { name: input.name }),
3151
3085
  };
3152
3086
  };
3153
3087
  const serializeAws_json1_1StopPipelineExecutionInput = (input, context) => {
3154
3088
  return {
3155
- ...(input.abandon !== undefined && input.abandon !== null && { abandon: input.abandon }),
3156
- ...(input.pipelineExecutionId !== undefined &&
3157
- input.pipelineExecutionId !== null && { pipelineExecutionId: input.pipelineExecutionId }),
3158
- ...(input.pipelineName !== undefined && input.pipelineName !== null && { pipelineName: input.pipelineName }),
3159
- ...(input.reason !== undefined && input.reason !== null && { reason: input.reason }),
3089
+ ...(input.abandon != null && { abandon: input.abandon }),
3090
+ ...(input.pipelineExecutionId != null && { pipelineExecutionId: input.pipelineExecutionId }),
3091
+ ...(input.pipelineName != null && { pipelineName: input.pipelineName }),
3092
+ ...(input.reason != null && { reason: input.reason }),
3160
3093
  };
3161
3094
  };
3162
3095
  const serializeAws_json1_1Tag = (input, context) => {
3163
3096
  return {
3164
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
3165
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
3097
+ ...(input.key != null && { key: input.key }),
3098
+ ...(input.value != null && { value: input.value }),
3166
3099
  };
3167
3100
  };
3168
3101
  const serializeAws_json1_1TagKeyList = (input, context) => {
@@ -3187,58 +3120,50 @@ const serializeAws_json1_1TagList = (input, context) => {
3187
3120
  };
3188
3121
  const serializeAws_json1_1TagResourceInput = (input, context) => {
3189
3122
  return {
3190
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
3191
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3123
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
3124
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3192
3125
  };
3193
3126
  };
3194
3127
  const serializeAws_json1_1UntagResourceInput = (input, context) => {
3195
3128
  return {
3196
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
3197
- ...(input.tagKeys !== undefined &&
3198
- input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
3129
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
3130
+ ...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
3199
3131
  };
3200
3132
  };
3201
3133
  const serializeAws_json1_1UpdateActionTypeInput = (input, context) => {
3202
3134
  return {
3203
- ...(input.actionType !== undefined &&
3204
- input.actionType !== null && {
3135
+ ...(input.actionType != null && {
3205
3136
  actionType: serializeAws_json1_1ActionTypeDeclaration(input.actionType, context),
3206
3137
  }),
3207
3138
  };
3208
3139
  };
3209
3140
  const serializeAws_json1_1UpdatePipelineInput = (input, context) => {
3210
3141
  return {
3211
- ...(input.pipeline !== undefined &&
3212
- input.pipeline !== null && { pipeline: serializeAws_json1_1PipelineDeclaration(input.pipeline, context) }),
3142
+ ...(input.pipeline != null && { pipeline: serializeAws_json1_1PipelineDeclaration(input.pipeline, context) }),
3213
3143
  };
3214
3144
  };
3215
3145
  const serializeAws_json1_1WebhookAuthConfiguration = (input, context) => {
3216
3146
  return {
3217
- ...(input.AllowedIPRange !== undefined &&
3218
- input.AllowedIPRange !== null && { AllowedIPRange: input.AllowedIPRange }),
3219
- ...(input.SecretToken !== undefined && input.SecretToken !== null && { SecretToken: input.SecretToken }),
3147
+ ...(input.AllowedIPRange != null && { AllowedIPRange: input.AllowedIPRange }),
3148
+ ...(input.SecretToken != null && { SecretToken: input.SecretToken }),
3220
3149
  };
3221
3150
  };
3222
3151
  const serializeAws_json1_1WebhookDefinition = (input, context) => {
3223
3152
  return {
3224
- ...(input.authentication !== undefined &&
3225
- input.authentication !== null && { authentication: input.authentication }),
3226
- ...(input.authenticationConfiguration !== undefined &&
3227
- input.authenticationConfiguration !== null && {
3153
+ ...(input.authentication != null && { authentication: input.authentication }),
3154
+ ...(input.authenticationConfiguration != null && {
3228
3155
  authenticationConfiguration: serializeAws_json1_1WebhookAuthConfiguration(input.authenticationConfiguration, context),
3229
3156
  }),
3230
- ...(input.filters !== undefined &&
3231
- input.filters !== null && { filters: serializeAws_json1_1WebhookFilters(input.filters, context) }),
3232
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3233
- ...(input.targetAction !== undefined && input.targetAction !== null && { targetAction: input.targetAction }),
3234
- ...(input.targetPipeline !== undefined &&
3235
- input.targetPipeline !== null && { targetPipeline: input.targetPipeline }),
3157
+ ...(input.filters != null && { filters: serializeAws_json1_1WebhookFilters(input.filters, context) }),
3158
+ ...(input.name != null && { name: input.name }),
3159
+ ...(input.targetAction != null && { targetAction: input.targetAction }),
3160
+ ...(input.targetPipeline != null && { targetPipeline: input.targetPipeline }),
3236
3161
  };
3237
3162
  };
3238
3163
  const serializeAws_json1_1WebhookFilterRule = (input, context) => {
3239
3164
  return {
3240
- ...(input.jsonPath !== undefined && input.jsonPath !== null && { jsonPath: input.jsonPath }),
3241
- ...(input.matchEquals !== undefined && input.matchEquals !== null && { matchEquals: input.matchEquals }),
3165
+ ...(input.jsonPath != null && { jsonPath: input.jsonPath }),
3166
+ ...(input.matchEquals != null && { matchEquals: input.matchEquals }),
3242
3167
  };
3243
3168
  };
3244
3169
  const serializeAws_json1_1WebhookFilters = (input, context) => {
@@ -3263,7 +3188,7 @@ const deserializeAws_json1_1AcknowledgeThirdPartyJobOutput = (output, context) =
3263
3188
  };
3264
3189
  const deserializeAws_json1_1ActionConfiguration = (output, context) => {
3265
3190
  return {
3266
- configuration: output.configuration !== undefined && output.configuration !== null
3191
+ configuration: output.configuration != null
3267
3192
  ? deserializeAws_json1_1ActionConfigurationMap(output.configuration, context)
3268
3193
  : undefined,
3269
3194
  };
@@ -3309,18 +3234,16 @@ const deserializeAws_json1_1ActionContext = (output, context) => {
3309
3234
  };
3310
3235
  const deserializeAws_json1_1ActionDeclaration = (output, context) => {
3311
3236
  return {
3312
- actionTypeId: output.actionTypeId !== undefined && output.actionTypeId !== null
3313
- ? deserializeAws_json1_1ActionTypeId(output.actionTypeId, context)
3314
- : undefined,
3315
- configuration: output.configuration !== undefined && output.configuration !== null
3237
+ actionTypeId: output.actionTypeId != null ? deserializeAws_json1_1ActionTypeId(output.actionTypeId, context) : undefined,
3238
+ configuration: output.configuration != null
3316
3239
  ? deserializeAws_json1_1ActionConfigurationMap(output.configuration, context)
3317
3240
  : undefined,
3318
- inputArtifacts: output.inputArtifacts !== undefined && output.inputArtifacts !== null
3241
+ inputArtifacts: output.inputArtifacts != null
3319
3242
  ? deserializeAws_json1_1InputArtifactList(output.inputArtifacts, context)
3320
3243
  : undefined,
3321
3244
  name: (0, smithy_client_1.expectString)(output.name),
3322
3245
  namespace: (0, smithy_client_1.expectString)(output.namespace),
3323
- outputArtifacts: output.outputArtifacts !== undefined && output.outputArtifacts !== null
3246
+ outputArtifacts: output.outputArtifacts != null
3324
3247
  ? deserializeAws_json1_1OutputArtifactList(output.outputArtifacts, context)
3325
3248
  : undefined,
3326
3249
  region: (0, smithy_client_1.expectString)(output.region),
@@ -3331,12 +3254,10 @@ const deserializeAws_json1_1ActionDeclaration = (output, context) => {
3331
3254
  const deserializeAws_json1_1ActionExecution = (output, context) => {
3332
3255
  return {
3333
3256
  actionExecutionId: (0, smithy_client_1.expectString)(output.actionExecutionId),
3334
- errorDetails: output.errorDetails !== undefined && output.errorDetails !== null
3335
- ? deserializeAws_json1_1ErrorDetails(output.errorDetails, context)
3336
- : undefined,
3257
+ errorDetails: output.errorDetails != null ? deserializeAws_json1_1ErrorDetails(output.errorDetails, context) : undefined,
3337
3258
  externalExecutionId: (0, smithy_client_1.expectString)(output.externalExecutionId),
3338
3259
  externalExecutionUrl: (0, smithy_client_1.expectString)(output.externalExecutionUrl),
3339
- lastStatusChange: output.lastStatusChange !== undefined && output.lastStatusChange !== null
3260
+ lastStatusChange: output.lastStatusChange != null
3340
3261
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastStatusChange)))
3341
3262
  : undefined,
3342
3263
  lastUpdatedBy: (0, smithy_client_1.expectString)(output.lastUpdatedBy),
@@ -3350,21 +3271,15 @@ const deserializeAws_json1_1ActionExecutionDetail = (output, context) => {
3350
3271
  return {
3351
3272
  actionExecutionId: (0, smithy_client_1.expectString)(output.actionExecutionId),
3352
3273
  actionName: (0, smithy_client_1.expectString)(output.actionName),
3353
- input: output.input !== undefined && output.input !== null
3354
- ? deserializeAws_json1_1ActionExecutionInput(output.input, context)
3355
- : undefined,
3356
- lastUpdateTime: output.lastUpdateTime !== undefined && output.lastUpdateTime !== null
3274
+ input: output.input != null ? deserializeAws_json1_1ActionExecutionInput(output.input, context) : undefined,
3275
+ lastUpdateTime: output.lastUpdateTime != null
3357
3276
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateTime)))
3358
3277
  : undefined,
3359
- output: output.output !== undefined && output.output !== null
3360
- ? deserializeAws_json1_1ActionExecutionOutput(output.output, context)
3361
- : undefined,
3278
+ output: output.output != null ? deserializeAws_json1_1ActionExecutionOutput(output.output, context) : undefined,
3362
3279
  pipelineExecutionId: (0, smithy_client_1.expectString)(output.pipelineExecutionId),
3363
3280
  pipelineVersion: (0, smithy_client_1.expectInt32)(output.pipelineVersion),
3364
3281
  stageName: (0, smithy_client_1.expectString)(output.stageName),
3365
- startTime: output.startTime !== undefined && output.startTime !== null
3366
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
3367
- : undefined,
3282
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
3368
3283
  status: (0, smithy_client_1.expectString)(output.status),
3369
3284
  };
3370
3285
  };
@@ -3381,18 +3296,16 @@ const deserializeAws_json1_1ActionExecutionDetailList = (output, context) => {
3381
3296
  };
3382
3297
  const deserializeAws_json1_1ActionExecutionInput = (output, context) => {
3383
3298
  return {
3384
- actionTypeId: output.actionTypeId !== undefined && output.actionTypeId !== null
3385
- ? deserializeAws_json1_1ActionTypeId(output.actionTypeId, context)
3386
- : undefined,
3387
- configuration: output.configuration !== undefined && output.configuration !== null
3299
+ actionTypeId: output.actionTypeId != null ? deserializeAws_json1_1ActionTypeId(output.actionTypeId, context) : undefined,
3300
+ configuration: output.configuration != null
3388
3301
  ? deserializeAws_json1_1ActionConfigurationMap(output.configuration, context)
3389
3302
  : undefined,
3390
- inputArtifacts: output.inputArtifacts !== undefined && output.inputArtifacts !== null
3303
+ inputArtifacts: output.inputArtifacts != null
3391
3304
  ? deserializeAws_json1_1ArtifactDetailList(output.inputArtifacts, context)
3392
3305
  : undefined,
3393
3306
  namespace: (0, smithy_client_1.expectString)(output.namespace),
3394
3307
  region: (0, smithy_client_1.expectString)(output.region),
3395
- resolvedConfiguration: output.resolvedConfiguration !== undefined && output.resolvedConfiguration !== null
3308
+ resolvedConfiguration: output.resolvedConfiguration != null
3396
3309
  ? deserializeAws_json1_1ResolvedActionConfigurationMap(output.resolvedConfiguration, context)
3397
3310
  : undefined,
3398
3311
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
@@ -3400,13 +3313,13 @@ const deserializeAws_json1_1ActionExecutionInput = (output, context) => {
3400
3313
  };
3401
3314
  const deserializeAws_json1_1ActionExecutionOutput = (output, context) => {
3402
3315
  return {
3403
- executionResult: output.executionResult !== undefined && output.executionResult !== null
3316
+ executionResult: output.executionResult != null
3404
3317
  ? deserializeAws_json1_1ActionExecutionResult(output.executionResult, context)
3405
3318
  : undefined,
3406
- outputArtifacts: output.outputArtifacts !== undefined && output.outputArtifacts !== null
3319
+ outputArtifacts: output.outputArtifacts != null
3407
3320
  ? deserializeAws_json1_1ArtifactDetailList(output.outputArtifacts, context)
3408
3321
  : undefined,
3409
- outputVariables: output.outputVariables !== undefined && output.outputVariables !== null
3322
+ outputVariables: output.outputVariables != null
3410
3323
  ? deserializeAws_json1_1OutputVariablesMap(output.outputVariables, context)
3411
3324
  : undefined,
3412
3325
  };
@@ -3425,9 +3338,7 @@ const deserializeAws_json1_1ActionNotFoundException = (output, context) => {
3425
3338
  };
3426
3339
  const deserializeAws_json1_1ActionRevision = (output, context) => {
3427
3340
  return {
3428
- created: output.created !== undefined && output.created !== null
3429
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
3430
- : undefined,
3341
+ created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
3431
3342
  revisionChangeId: (0, smithy_client_1.expectString)(output.revisionChangeId),
3432
3343
  revisionId: (0, smithy_client_1.expectString)(output.revisionId),
3433
3344
  };
@@ -3435,11 +3346,11 @@ const deserializeAws_json1_1ActionRevision = (output, context) => {
3435
3346
  const deserializeAws_json1_1ActionState = (output, context) => {
3436
3347
  return {
3437
3348
  actionName: (0, smithy_client_1.expectString)(output.actionName),
3438
- currentRevision: output.currentRevision !== undefined && output.currentRevision !== null
3349
+ currentRevision: output.currentRevision != null
3439
3350
  ? deserializeAws_json1_1ActionRevision(output.currentRevision, context)
3440
3351
  : undefined,
3441
3352
  entityUrl: (0, smithy_client_1.expectString)(output.entityUrl),
3442
- latestExecution: output.latestExecution !== undefined && output.latestExecution !== null
3353
+ latestExecution: output.latestExecution != null
3443
3354
  ? deserializeAws_json1_1ActionExecution(output.latestExecution, context)
3444
3355
  : undefined,
3445
3356
  revisionUrl: (0, smithy_client_1.expectString)(output.revisionUrl),
@@ -3458,21 +3369,17 @@ const deserializeAws_json1_1ActionStateList = (output, context) => {
3458
3369
  };
3459
3370
  const deserializeAws_json1_1ActionType = (output, context) => {
3460
3371
  return {
3461
- actionConfigurationProperties: output.actionConfigurationProperties !== undefined && output.actionConfigurationProperties !== null
3372
+ actionConfigurationProperties: output.actionConfigurationProperties != null
3462
3373
  ? deserializeAws_json1_1ActionConfigurationPropertyList(output.actionConfigurationProperties, context)
3463
3374
  : undefined,
3464
- id: output.id !== undefined && output.id !== null
3465
- ? deserializeAws_json1_1ActionTypeId(output.id, context)
3466
- : undefined,
3467
- inputArtifactDetails: output.inputArtifactDetails !== undefined && output.inputArtifactDetails !== null
3375
+ id: output.id != null ? deserializeAws_json1_1ActionTypeId(output.id, context) : undefined,
3376
+ inputArtifactDetails: output.inputArtifactDetails != null
3468
3377
  ? deserializeAws_json1_1ArtifactDetails(output.inputArtifactDetails, context)
3469
3378
  : undefined,
3470
- outputArtifactDetails: output.outputArtifactDetails !== undefined && output.outputArtifactDetails !== null
3379
+ outputArtifactDetails: output.outputArtifactDetails != null
3471
3380
  ? deserializeAws_json1_1ArtifactDetails(output.outputArtifactDetails, context)
3472
3381
  : undefined,
3473
- settings: output.settings !== undefined && output.settings !== null
3474
- ? deserializeAws_json1_1ActionTypeSettings(output.settings, context)
3475
- : undefined,
3382
+ settings: output.settings != null ? deserializeAws_json1_1ActionTypeSettings(output.settings, context) : undefined,
3476
3383
  };
3477
3384
  };
3478
3385
  const deserializeAws_json1_1ActionTypeArtifactDetails = (output, context) => {
@@ -3484,32 +3391,22 @@ const deserializeAws_json1_1ActionTypeArtifactDetails = (output, context) => {
3484
3391
  const deserializeAws_json1_1ActionTypeDeclaration = (output, context) => {
3485
3392
  return {
3486
3393
  description: (0, smithy_client_1.expectString)(output.description),
3487
- executor: output.executor !== undefined && output.executor !== null
3488
- ? deserializeAws_json1_1ActionTypeExecutor(output.executor, context)
3489
- : undefined,
3490
- id: output.id !== undefined && output.id !== null
3491
- ? deserializeAws_json1_1ActionTypeIdentifier(output.id, context)
3492
- : undefined,
3493
- inputArtifactDetails: output.inputArtifactDetails !== undefined && output.inputArtifactDetails !== null
3394
+ executor: output.executor != null ? deserializeAws_json1_1ActionTypeExecutor(output.executor, context) : undefined,
3395
+ id: output.id != null ? deserializeAws_json1_1ActionTypeIdentifier(output.id, context) : undefined,
3396
+ inputArtifactDetails: output.inputArtifactDetails != null
3494
3397
  ? deserializeAws_json1_1ActionTypeArtifactDetails(output.inputArtifactDetails, context)
3495
3398
  : undefined,
3496
- outputArtifactDetails: output.outputArtifactDetails !== undefined && output.outputArtifactDetails !== null
3399
+ outputArtifactDetails: output.outputArtifactDetails != null
3497
3400
  ? deserializeAws_json1_1ActionTypeArtifactDetails(output.outputArtifactDetails, context)
3498
3401
  : undefined,
3499
- permissions: output.permissions !== undefined && output.permissions !== null
3500
- ? deserializeAws_json1_1ActionTypePermissions(output.permissions, context)
3501
- : undefined,
3502
- properties: output.properties !== undefined && output.properties !== null
3503
- ? deserializeAws_json1_1ActionTypeProperties(output.properties, context)
3504
- : undefined,
3505
- urls: output.urls !== undefined && output.urls !== null
3506
- ? deserializeAws_json1_1ActionTypeUrls(output.urls, context)
3507
- : undefined,
3402
+ permissions: output.permissions != null ? deserializeAws_json1_1ActionTypePermissions(output.permissions, context) : undefined,
3403
+ properties: output.properties != null ? deserializeAws_json1_1ActionTypeProperties(output.properties, context) : undefined,
3404
+ urls: output.urls != null ? deserializeAws_json1_1ActionTypeUrls(output.urls, context) : undefined,
3508
3405
  };
3509
3406
  };
3510
3407
  const deserializeAws_json1_1ActionTypeExecutor = (output, context) => {
3511
3408
  return {
3512
- configuration: output.configuration !== undefined && output.configuration !== null
3409
+ configuration: output.configuration != null
3513
3410
  ? deserializeAws_json1_1ExecutorConfiguration(output.configuration, context)
3514
3411
  : undefined,
3515
3412
  jobTimeout: (0, smithy_client_1.expectInt32)(output.jobTimeout),
@@ -3551,7 +3448,7 @@ const deserializeAws_json1_1ActionTypeNotFoundException = (output, context) => {
3551
3448
  };
3552
3449
  const deserializeAws_json1_1ActionTypePermissions = (output, context) => {
3553
3450
  return {
3554
- allowedAccounts: output.allowedAccounts !== undefined && output.allowedAccounts !== null
3451
+ allowedAccounts: output.allowedAccounts != null
3555
3452
  ? deserializeAws_json1_1AllowedAccounts(output.allowedAccounts, context)
3556
3453
  : undefined,
3557
3454
  };
@@ -3611,9 +3508,7 @@ const deserializeAws_json1_1ApprovalAlreadyCompletedException = (output, context
3611
3508
  };
3612
3509
  const deserializeAws_json1_1Artifact = (output, context) => {
3613
3510
  return {
3614
- location: output.location !== undefined && output.location !== null
3615
- ? deserializeAws_json1_1ArtifactLocation(output.location, context)
3616
- : undefined,
3511
+ location: output.location != null ? deserializeAws_json1_1ArtifactLocation(output.location, context) : undefined,
3617
3512
  name: (0, smithy_client_1.expectString)(output.name),
3618
3513
  revision: (0, smithy_client_1.expectString)(output.revision),
3619
3514
  };
@@ -3621,9 +3516,7 @@ const deserializeAws_json1_1Artifact = (output, context) => {
3621
3516
  const deserializeAws_json1_1ArtifactDetail = (output, context) => {
3622
3517
  return {
3623
3518
  name: (0, smithy_client_1.expectString)(output.name),
3624
- s3location: output.s3location !== undefined && output.s3location !== null
3625
- ? deserializeAws_json1_1S3Location(output.s3location, context)
3626
- : undefined,
3519
+ s3location: output.s3location != null ? deserializeAws_json1_1S3Location(output.s3location, context) : undefined,
3627
3520
  };
3628
3521
  };
3629
3522
  const deserializeAws_json1_1ArtifactDetailList = (output, context) => {
@@ -3656,17 +3549,13 @@ const deserializeAws_json1_1ArtifactList = (output, context) => {
3656
3549
  };
3657
3550
  const deserializeAws_json1_1ArtifactLocation = (output, context) => {
3658
3551
  return {
3659
- s3Location: output.s3Location !== undefined && output.s3Location !== null
3660
- ? deserializeAws_json1_1S3ArtifactLocation(output.s3Location, context)
3661
- : undefined,
3552
+ s3Location: output.s3Location != null ? deserializeAws_json1_1S3ArtifactLocation(output.s3Location, context) : undefined,
3662
3553
  type: (0, smithy_client_1.expectString)(output.type),
3663
3554
  };
3664
3555
  };
3665
3556
  const deserializeAws_json1_1ArtifactRevision = (output, context) => {
3666
3557
  return {
3667
- created: output.created !== undefined && output.created !== null
3668
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
3669
- : undefined,
3558
+ created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
3670
3559
  name: (0, smithy_client_1.expectString)(output.name),
3671
3560
  revisionChangeIdentifier: (0, smithy_client_1.expectString)(output.revisionChangeIdentifier),
3672
3561
  revisionId: (0, smithy_client_1.expectString)(output.revisionId),
@@ -3687,9 +3576,7 @@ const deserializeAws_json1_1ArtifactRevisionList = (output, context) => {
3687
3576
  };
3688
3577
  const deserializeAws_json1_1ArtifactStore = (output, context) => {
3689
3578
  return {
3690
- encryptionKey: output.encryptionKey !== undefined && output.encryptionKey !== null
3691
- ? deserializeAws_json1_1EncryptionKey(output.encryptionKey, context)
3692
- : undefined,
3579
+ encryptionKey: output.encryptionKey != null ? deserializeAws_json1_1EncryptionKey(output.encryptionKey, context) : undefined,
3693
3580
  location: (0, smithy_client_1.expectString)(output.location),
3694
3581
  type: (0, smithy_client_1.expectString)(output.type),
3695
3582
  };
@@ -3730,22 +3617,14 @@ const deserializeAws_json1_1ConflictException = (output, context) => {
3730
3617
  };
3731
3618
  const deserializeAws_json1_1CreateCustomActionTypeOutput = (output, context) => {
3732
3619
  return {
3733
- actionType: output.actionType !== undefined && output.actionType !== null
3734
- ? deserializeAws_json1_1ActionType(output.actionType, context)
3735
- : undefined,
3736
- tags: output.tags !== undefined && output.tags !== null
3737
- ? deserializeAws_json1_1TagList(output.tags, context)
3738
- : undefined,
3620
+ actionType: output.actionType != null ? deserializeAws_json1_1ActionType(output.actionType, context) : undefined,
3621
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
3739
3622
  };
3740
3623
  };
3741
3624
  const deserializeAws_json1_1CreatePipelineOutput = (output, context) => {
3742
3625
  return {
3743
- pipeline: output.pipeline !== undefined && output.pipeline !== null
3744
- ? deserializeAws_json1_1PipelineDeclaration(output.pipeline, context)
3745
- : undefined,
3746
- tags: output.tags !== undefined && output.tags !== null
3747
- ? deserializeAws_json1_1TagList(output.tags, context)
3748
- : undefined,
3626
+ pipeline: output.pipeline != null ? deserializeAws_json1_1PipelineDeclaration(output.pipeline, context) : undefined,
3627
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
3749
3628
  };
3750
3629
  };
3751
3630
  const deserializeAws_json1_1DeleteWebhookOutput = (output, context) => {
@@ -3779,65 +3658,49 @@ const deserializeAws_json1_1ExecutionTrigger = (output, context) => {
3779
3658
  };
3780
3659
  const deserializeAws_json1_1ExecutorConfiguration = (output, context) => {
3781
3660
  return {
3782
- jobWorkerExecutorConfiguration: output.jobWorkerExecutorConfiguration !== undefined && output.jobWorkerExecutorConfiguration !== null
3661
+ jobWorkerExecutorConfiguration: output.jobWorkerExecutorConfiguration != null
3783
3662
  ? deserializeAws_json1_1JobWorkerExecutorConfiguration(output.jobWorkerExecutorConfiguration, context)
3784
3663
  : undefined,
3785
- lambdaExecutorConfiguration: output.lambdaExecutorConfiguration !== undefined && output.lambdaExecutorConfiguration !== null
3664
+ lambdaExecutorConfiguration: output.lambdaExecutorConfiguration != null
3786
3665
  ? deserializeAws_json1_1LambdaExecutorConfiguration(output.lambdaExecutorConfiguration, context)
3787
3666
  : undefined,
3788
3667
  };
3789
3668
  };
3790
3669
  const deserializeAws_json1_1GetActionTypeOutput = (output, context) => {
3791
3670
  return {
3792
- actionType: output.actionType !== undefined && output.actionType !== null
3793
- ? deserializeAws_json1_1ActionTypeDeclaration(output.actionType, context)
3794
- : undefined,
3671
+ actionType: output.actionType != null ? deserializeAws_json1_1ActionTypeDeclaration(output.actionType, context) : undefined,
3795
3672
  };
3796
3673
  };
3797
3674
  const deserializeAws_json1_1GetJobDetailsOutput = (output, context) => {
3798
3675
  return {
3799
- jobDetails: output.jobDetails !== undefined && output.jobDetails !== null
3800
- ? deserializeAws_json1_1JobDetails(output.jobDetails, context)
3801
- : undefined,
3676
+ jobDetails: output.jobDetails != null ? deserializeAws_json1_1JobDetails(output.jobDetails, context) : undefined,
3802
3677
  };
3803
3678
  };
3804
3679
  const deserializeAws_json1_1GetPipelineExecutionOutput = (output, context) => {
3805
3680
  return {
3806
- pipelineExecution: output.pipelineExecution !== undefined && output.pipelineExecution !== null
3681
+ pipelineExecution: output.pipelineExecution != null
3807
3682
  ? deserializeAws_json1_1PipelineExecution(output.pipelineExecution, context)
3808
3683
  : undefined,
3809
3684
  };
3810
3685
  };
3811
3686
  const deserializeAws_json1_1GetPipelineOutput = (output, context) => {
3812
3687
  return {
3813
- metadata: output.metadata !== undefined && output.metadata !== null
3814
- ? deserializeAws_json1_1PipelineMetadata(output.metadata, context)
3815
- : undefined,
3816
- pipeline: output.pipeline !== undefined && output.pipeline !== null
3817
- ? deserializeAws_json1_1PipelineDeclaration(output.pipeline, context)
3818
- : undefined,
3688
+ metadata: output.metadata != null ? deserializeAws_json1_1PipelineMetadata(output.metadata, context) : undefined,
3689
+ pipeline: output.pipeline != null ? deserializeAws_json1_1PipelineDeclaration(output.pipeline, context) : undefined,
3819
3690
  };
3820
3691
  };
3821
3692
  const deserializeAws_json1_1GetPipelineStateOutput = (output, context) => {
3822
3693
  return {
3823
- created: output.created !== undefined && output.created !== null
3824
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
3825
- : undefined,
3694
+ created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
3826
3695
  pipelineName: (0, smithy_client_1.expectString)(output.pipelineName),
3827
3696
  pipelineVersion: (0, smithy_client_1.expectInt32)(output.pipelineVersion),
3828
- stageStates: output.stageStates !== undefined && output.stageStates !== null
3829
- ? deserializeAws_json1_1StageStateList(output.stageStates, context)
3830
- : undefined,
3831
- updated: output.updated !== undefined && output.updated !== null
3832
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updated)))
3833
- : undefined,
3697
+ stageStates: output.stageStates != null ? deserializeAws_json1_1StageStateList(output.stageStates, context) : undefined,
3698
+ updated: output.updated != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updated))) : undefined,
3834
3699
  };
3835
3700
  };
3836
3701
  const deserializeAws_json1_1GetThirdPartyJobDetailsOutput = (output, context) => {
3837
3702
  return {
3838
- jobDetails: output.jobDetails !== undefined && output.jobDetails !== null
3839
- ? deserializeAws_json1_1ThirdPartyJobDetails(output.jobDetails, context)
3840
- : undefined,
3703
+ jobDetails: output.jobDetails != null ? deserializeAws_json1_1ThirdPartyJobDetails(output.jobDetails, context) : undefined,
3841
3704
  };
3842
3705
  };
3843
3706
  const deserializeAws_json1_1InputArtifact = (output, context) => {
@@ -3929,35 +3792,25 @@ const deserializeAws_json1_1InvalidWebhookFilterPatternException = (output, cont
3929
3792
  const deserializeAws_json1_1Job = (output, context) => {
3930
3793
  return {
3931
3794
  accountId: (0, smithy_client_1.expectString)(output.accountId),
3932
- data: output.data !== undefined && output.data !== null
3933
- ? deserializeAws_json1_1JobData(output.data, context)
3934
- : undefined,
3795
+ data: output.data != null ? deserializeAws_json1_1JobData(output.data, context) : undefined,
3935
3796
  id: (0, smithy_client_1.expectString)(output.id),
3936
3797
  nonce: (0, smithy_client_1.expectString)(output.nonce),
3937
3798
  };
3938
3799
  };
3939
3800
  const deserializeAws_json1_1JobData = (output, context) => {
3940
3801
  return {
3941
- actionConfiguration: output.actionConfiguration !== undefined && output.actionConfiguration !== null
3802
+ actionConfiguration: output.actionConfiguration != null
3942
3803
  ? deserializeAws_json1_1ActionConfiguration(output.actionConfiguration, context)
3943
3804
  : undefined,
3944
- actionTypeId: output.actionTypeId !== undefined && output.actionTypeId !== null
3945
- ? deserializeAws_json1_1ActionTypeId(output.actionTypeId, context)
3946
- : undefined,
3947
- artifactCredentials: output.artifactCredentials !== undefined && output.artifactCredentials !== null
3805
+ actionTypeId: output.actionTypeId != null ? deserializeAws_json1_1ActionTypeId(output.actionTypeId, context) : undefined,
3806
+ artifactCredentials: output.artifactCredentials != null
3948
3807
  ? deserializeAws_json1_1AWSSessionCredentials(output.artifactCredentials, context)
3949
3808
  : undefined,
3950
3809
  continuationToken: (0, smithy_client_1.expectString)(output.continuationToken),
3951
- encryptionKey: output.encryptionKey !== undefined && output.encryptionKey !== null
3952
- ? deserializeAws_json1_1EncryptionKey(output.encryptionKey, context)
3953
- : undefined,
3954
- inputArtifacts: output.inputArtifacts !== undefined && output.inputArtifacts !== null
3955
- ? deserializeAws_json1_1ArtifactList(output.inputArtifacts, context)
3956
- : undefined,
3957
- outputArtifacts: output.outputArtifacts !== undefined && output.outputArtifacts !== null
3958
- ? deserializeAws_json1_1ArtifactList(output.outputArtifacts, context)
3959
- : undefined,
3960
- pipelineContext: output.pipelineContext !== undefined && output.pipelineContext !== null
3810
+ encryptionKey: output.encryptionKey != null ? deserializeAws_json1_1EncryptionKey(output.encryptionKey, context) : undefined,
3811
+ inputArtifacts: output.inputArtifacts != null ? deserializeAws_json1_1ArtifactList(output.inputArtifacts, context) : undefined,
3812
+ outputArtifacts: output.outputArtifacts != null ? deserializeAws_json1_1ArtifactList(output.outputArtifacts, context) : undefined,
3813
+ pipelineContext: output.pipelineContext != null
3961
3814
  ? deserializeAws_json1_1PipelineContext(output.pipelineContext, context)
3962
3815
  : undefined,
3963
3816
  };
@@ -3965,9 +3818,7 @@ const deserializeAws_json1_1JobData = (output, context) => {
3965
3818
  const deserializeAws_json1_1JobDetails = (output, context) => {
3966
3819
  return {
3967
3820
  accountId: (0, smithy_client_1.expectString)(output.accountId),
3968
- data: output.data !== undefined && output.data !== null
3969
- ? deserializeAws_json1_1JobData(output.data, context)
3970
- : undefined,
3821
+ data: output.data != null ? deserializeAws_json1_1JobData(output.data, context) : undefined,
3971
3822
  id: (0, smithy_client_1.expectString)(output.id),
3972
3823
  };
3973
3824
  };
@@ -3989,10 +3840,10 @@ const deserializeAws_json1_1JobNotFoundException = (output, context) => {
3989
3840
  };
3990
3841
  const deserializeAws_json1_1JobWorkerExecutorConfiguration = (output, context) => {
3991
3842
  return {
3992
- pollingAccounts: output.pollingAccounts !== undefined && output.pollingAccounts !== null
3843
+ pollingAccounts: output.pollingAccounts != null
3993
3844
  ? deserializeAws_json1_1PollingAccountList(output.pollingAccounts, context)
3994
3845
  : undefined,
3995
- pollingServicePrincipals: output.pollingServicePrincipals !== undefined && output.pollingServicePrincipals !== null
3846
+ pollingServicePrincipals: output.pollingServicePrincipals != null
3996
3847
  ? deserializeAws_json1_1PollingServicePrincipalList(output.pollingServicePrincipals, context)
3997
3848
  : undefined,
3998
3849
  };
@@ -4009,7 +3860,7 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
4009
3860
  };
4010
3861
  const deserializeAws_json1_1ListActionExecutionsOutput = (output, context) => {
4011
3862
  return {
4012
- actionExecutionDetails: output.actionExecutionDetails !== undefined && output.actionExecutionDetails !== null
3863
+ actionExecutionDetails: output.actionExecutionDetails != null
4013
3864
  ? deserializeAws_json1_1ActionExecutionDetailList(output.actionExecutionDetails, context)
4014
3865
  : undefined,
4015
3866
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -4017,16 +3868,14 @@ const deserializeAws_json1_1ListActionExecutionsOutput = (output, context) => {
4017
3868
  };
4018
3869
  const deserializeAws_json1_1ListActionTypesOutput = (output, context) => {
4019
3870
  return {
4020
- actionTypes: output.actionTypes !== undefined && output.actionTypes !== null
4021
- ? deserializeAws_json1_1ActionTypeList(output.actionTypes, context)
4022
- : undefined,
3871
+ actionTypes: output.actionTypes != null ? deserializeAws_json1_1ActionTypeList(output.actionTypes, context) : undefined,
4023
3872
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4024
3873
  };
4025
3874
  };
4026
3875
  const deserializeAws_json1_1ListPipelineExecutionsOutput = (output, context) => {
4027
3876
  return {
4028
3877
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4029
- pipelineExecutionSummaries: output.pipelineExecutionSummaries !== undefined && output.pipelineExecutionSummaries !== null
3878
+ pipelineExecutionSummaries: output.pipelineExecutionSummaries != null
4030
3879
  ? deserializeAws_json1_1PipelineExecutionSummaryList(output.pipelineExecutionSummaries, context)
4031
3880
  : undefined,
4032
3881
  };
@@ -4034,42 +3883,32 @@ const deserializeAws_json1_1ListPipelineExecutionsOutput = (output, context) =>
4034
3883
  const deserializeAws_json1_1ListPipelinesOutput = (output, context) => {
4035
3884
  return {
4036
3885
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4037
- pipelines: output.pipelines !== undefined && output.pipelines !== null
4038
- ? deserializeAws_json1_1PipelineList(output.pipelines, context)
4039
- : undefined,
3886
+ pipelines: output.pipelines != null ? deserializeAws_json1_1PipelineList(output.pipelines, context) : undefined,
4040
3887
  };
4041
3888
  };
4042
3889
  const deserializeAws_json1_1ListTagsForResourceOutput = (output, context) => {
4043
3890
  return {
4044
3891
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4045
- tags: output.tags !== undefined && output.tags !== null
4046
- ? deserializeAws_json1_1TagList(output.tags, context)
4047
- : undefined,
3892
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
4048
3893
  };
4049
3894
  };
4050
3895
  const deserializeAws_json1_1ListWebhookItem = (output, context) => {
4051
3896
  return {
4052
3897
  arn: (0, smithy_client_1.expectString)(output.arn),
4053
- definition: output.definition !== undefined && output.definition !== null
4054
- ? deserializeAws_json1_1WebhookDefinition(output.definition, context)
4055
- : undefined,
3898
+ definition: output.definition != null ? deserializeAws_json1_1WebhookDefinition(output.definition, context) : undefined,
4056
3899
  errorCode: (0, smithy_client_1.expectString)(output.errorCode),
4057
3900
  errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
4058
- lastTriggered: output.lastTriggered !== undefined && output.lastTriggered !== null
3901
+ lastTriggered: output.lastTriggered != null
4059
3902
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastTriggered)))
4060
3903
  : undefined,
4061
- tags: output.tags !== undefined && output.tags !== null
4062
- ? deserializeAws_json1_1TagList(output.tags, context)
4063
- : undefined,
3904
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
4064
3905
  url: (0, smithy_client_1.expectString)(output.url),
4065
3906
  };
4066
3907
  };
4067
3908
  const deserializeAws_json1_1ListWebhooksOutput = (output, context) => {
4068
3909
  return {
4069
3910
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4070
- webhooks: output.webhooks !== undefined && output.webhooks !== null
4071
- ? deserializeAws_json1_1WebhookList(output.webhooks, context)
4072
- : undefined,
3911
+ webhooks: output.webhooks != null ? deserializeAws_json1_1WebhookList(output.webhooks, context) : undefined,
4073
3912
  };
4074
3913
  };
4075
3914
  const deserializeAws_json1_1NotLatestPipelineExecutionException = (output, context) => {
@@ -4111,36 +3950,28 @@ const deserializeAws_json1_1OutputVariablesSizeExceededException = (output, cont
4111
3950
  };
4112
3951
  const deserializeAws_json1_1PipelineContext = (output, context) => {
4113
3952
  return {
4114
- action: output.action !== undefined && output.action !== null
4115
- ? deserializeAws_json1_1ActionContext(output.action, context)
4116
- : undefined,
3953
+ action: output.action != null ? deserializeAws_json1_1ActionContext(output.action, context) : undefined,
4117
3954
  pipelineArn: (0, smithy_client_1.expectString)(output.pipelineArn),
4118
3955
  pipelineExecutionId: (0, smithy_client_1.expectString)(output.pipelineExecutionId),
4119
3956
  pipelineName: (0, smithy_client_1.expectString)(output.pipelineName),
4120
- stage: output.stage !== undefined && output.stage !== null
4121
- ? deserializeAws_json1_1StageContext(output.stage, context)
4122
- : undefined,
3957
+ stage: output.stage != null ? deserializeAws_json1_1StageContext(output.stage, context) : undefined,
4123
3958
  };
4124
3959
  };
4125
3960
  const deserializeAws_json1_1PipelineDeclaration = (output, context) => {
4126
3961
  return {
4127
- artifactStore: output.artifactStore !== undefined && output.artifactStore !== null
4128
- ? deserializeAws_json1_1ArtifactStore(output.artifactStore, context)
4129
- : undefined,
4130
- artifactStores: output.artifactStores !== undefined && output.artifactStores !== null
3962
+ artifactStore: output.artifactStore != null ? deserializeAws_json1_1ArtifactStore(output.artifactStore, context) : undefined,
3963
+ artifactStores: output.artifactStores != null
4131
3964
  ? deserializeAws_json1_1ArtifactStoreMap(output.artifactStores, context)
4132
3965
  : undefined,
4133
3966
  name: (0, smithy_client_1.expectString)(output.name),
4134
3967
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
4135
- stages: output.stages !== undefined && output.stages !== null
4136
- ? deserializeAws_json1_1PipelineStageDeclarationList(output.stages, context)
4137
- : undefined,
3968
+ stages: output.stages != null ? deserializeAws_json1_1PipelineStageDeclarationList(output.stages, context) : undefined,
4138
3969
  version: (0, smithy_client_1.expectInt32)(output.version),
4139
3970
  };
4140
3971
  };
4141
3972
  const deserializeAws_json1_1PipelineExecution = (output, context) => {
4142
3973
  return {
4143
- artifactRevisions: output.artifactRevisions !== undefined && output.artifactRevisions !== null
3974
+ artifactRevisions: output.artifactRevisions != null
4144
3975
  ? deserializeAws_json1_1ArtifactRevisionList(output.artifactRevisions, context)
4145
3976
  : undefined,
4146
3977
  pipelineExecutionId: (0, smithy_client_1.expectString)(output.pipelineExecutionId),
@@ -4162,23 +3993,17 @@ const deserializeAws_json1_1PipelineExecutionNotStoppableException = (output, co
4162
3993
  };
4163
3994
  const deserializeAws_json1_1PipelineExecutionSummary = (output, context) => {
4164
3995
  return {
4165
- lastUpdateTime: output.lastUpdateTime !== undefined && output.lastUpdateTime !== null
3996
+ lastUpdateTime: output.lastUpdateTime != null
4166
3997
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateTime)))
4167
3998
  : undefined,
4168
3999
  pipelineExecutionId: (0, smithy_client_1.expectString)(output.pipelineExecutionId),
4169
- sourceRevisions: output.sourceRevisions !== undefined && output.sourceRevisions !== null
4000
+ sourceRevisions: output.sourceRevisions != null
4170
4001
  ? deserializeAws_json1_1SourceRevisionList(output.sourceRevisions, context)
4171
4002
  : undefined,
4172
- startTime: output.startTime !== undefined && output.startTime !== null
4173
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
4174
- : undefined,
4003
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
4175
4004
  status: (0, smithy_client_1.expectString)(output.status),
4176
- stopTrigger: output.stopTrigger !== undefined && output.stopTrigger !== null
4177
- ? deserializeAws_json1_1StopExecutionTrigger(output.stopTrigger, context)
4178
- : undefined,
4179
- trigger: output.trigger !== undefined && output.trigger !== null
4180
- ? deserializeAws_json1_1ExecutionTrigger(output.trigger, context)
4181
- : undefined,
4005
+ stopTrigger: output.stopTrigger != null ? deserializeAws_json1_1StopExecutionTrigger(output.stopTrigger, context) : undefined,
4006
+ trigger: output.trigger != null ? deserializeAws_json1_1ExecutionTrigger(output.trigger, context) : undefined,
4182
4007
  };
4183
4008
  };
4184
4009
  const deserializeAws_json1_1PipelineExecutionSummaryList = (output, context) => {
@@ -4205,13 +4030,9 @@ const deserializeAws_json1_1PipelineList = (output, context) => {
4205
4030
  };
4206
4031
  const deserializeAws_json1_1PipelineMetadata = (output, context) => {
4207
4032
  return {
4208
- created: output.created !== undefined && output.created !== null
4209
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
4210
- : undefined,
4033
+ created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
4211
4034
  pipelineArn: (0, smithy_client_1.expectString)(output.pipelineArn),
4212
- updated: output.updated !== undefined && output.updated !== null
4213
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updated)))
4214
- : undefined,
4035
+ updated: output.updated != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updated))) : undefined,
4215
4036
  };
4216
4037
  };
4217
4038
  const deserializeAws_json1_1PipelineNameInUseException = (output, context) => {
@@ -4237,13 +4058,9 @@ const deserializeAws_json1_1PipelineStageDeclarationList = (output, context) =>
4237
4058
  };
4238
4059
  const deserializeAws_json1_1PipelineSummary = (output, context) => {
4239
4060
  return {
4240
- created: output.created !== undefined && output.created !== null
4241
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
4242
- : undefined,
4061
+ created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
4243
4062
  name: (0, smithy_client_1.expectString)(output.name),
4244
- updated: output.updated !== undefined && output.updated !== null
4245
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updated)))
4246
- : undefined,
4063
+ updated: output.updated != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updated))) : undefined,
4247
4064
  version: (0, smithy_client_1.expectInt32)(output.version),
4248
4065
  };
4249
4066
  };
@@ -4254,16 +4071,12 @@ const deserializeAws_json1_1PipelineVersionNotFoundException = (output, context)
4254
4071
  };
4255
4072
  const deserializeAws_json1_1PollForJobsOutput = (output, context) => {
4256
4073
  return {
4257
- jobs: output.jobs !== undefined && output.jobs !== null
4258
- ? deserializeAws_json1_1JobList(output.jobs, context)
4259
- : undefined,
4074
+ jobs: output.jobs != null ? deserializeAws_json1_1JobList(output.jobs, context) : undefined,
4260
4075
  };
4261
4076
  };
4262
4077
  const deserializeAws_json1_1PollForThirdPartyJobsOutput = (output, context) => {
4263
4078
  return {
4264
- jobs: output.jobs !== undefined && output.jobs !== null
4265
- ? deserializeAws_json1_1ThirdPartyJobList(output.jobs, context)
4266
- : undefined,
4079
+ jobs: output.jobs != null ? deserializeAws_json1_1ThirdPartyJobList(output.jobs, context) : undefined,
4267
4080
  };
4268
4081
  };
4269
4082
  const deserializeAws_json1_1PollingAccountList = (output, context) => {
@@ -4296,16 +4109,12 @@ const deserializeAws_json1_1PutActionRevisionOutput = (output, context) => {
4296
4109
  };
4297
4110
  const deserializeAws_json1_1PutApprovalResultOutput = (output, context) => {
4298
4111
  return {
4299
- approvedAt: output.approvedAt !== undefined && output.approvedAt !== null
4300
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.approvedAt)))
4301
- : undefined,
4112
+ approvedAt: output.approvedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.approvedAt))) : undefined,
4302
4113
  };
4303
4114
  };
4304
4115
  const deserializeAws_json1_1PutWebhookOutput = (output, context) => {
4305
4116
  return {
4306
- webhook: output.webhook !== undefined && output.webhook !== null
4307
- ? deserializeAws_json1_1ListWebhookItem(output.webhook, context)
4308
- : undefined,
4117
+ webhook: output.webhook != null ? deserializeAws_json1_1ListWebhookItem(output.webhook, context) : undefined,
4309
4118
  };
4310
4119
  };
4311
4120
  const deserializeAws_json1_1RegisterWebhookWithThirdPartyOutput = (output, context) => {
@@ -4397,12 +4206,8 @@ const deserializeAws_json1_1StageContext = (output, context) => {
4397
4206
  };
4398
4207
  const deserializeAws_json1_1StageDeclaration = (output, context) => {
4399
4208
  return {
4400
- actions: output.actions !== undefined && output.actions !== null
4401
- ? deserializeAws_json1_1StageActionDeclarationList(output.actions, context)
4402
- : undefined,
4403
- blockers: output.blockers !== undefined && output.blockers !== null
4404
- ? deserializeAws_json1_1StageBlockerDeclarationList(output.blockers, context)
4405
- : undefined,
4209
+ actions: output.actions != null ? deserializeAws_json1_1StageActionDeclarationList(output.actions, context) : undefined,
4210
+ blockers: output.blockers != null ? deserializeAws_json1_1StageBlockerDeclarationList(output.blockers, context) : undefined,
4406
4211
  name: (0, smithy_client_1.expectString)(output.name),
4407
4212
  };
4408
4213
  };
@@ -4424,16 +4229,14 @@ const deserializeAws_json1_1StageNotRetryableException = (output, context) => {
4424
4229
  };
4425
4230
  const deserializeAws_json1_1StageState = (output, context) => {
4426
4231
  return {
4427
- actionStates: output.actionStates !== undefined && output.actionStates !== null
4428
- ? deserializeAws_json1_1ActionStateList(output.actionStates, context)
4429
- : undefined,
4430
- inboundExecution: output.inboundExecution !== undefined && output.inboundExecution !== null
4232
+ actionStates: output.actionStates != null ? deserializeAws_json1_1ActionStateList(output.actionStates, context) : undefined,
4233
+ inboundExecution: output.inboundExecution != null
4431
4234
  ? deserializeAws_json1_1StageExecution(output.inboundExecution, context)
4432
4235
  : undefined,
4433
- inboundTransitionState: output.inboundTransitionState !== undefined && output.inboundTransitionState !== null
4236
+ inboundTransitionState: output.inboundTransitionState != null
4434
4237
  ? deserializeAws_json1_1TransitionState(output.inboundTransitionState, context)
4435
4238
  : undefined,
4436
- latestExecution: output.latestExecution !== undefined && output.latestExecution !== null
4239
+ latestExecution: output.latestExecution != null
4437
4240
  ? deserializeAws_json1_1StageExecution(output.latestExecution, context)
4438
4241
  : undefined,
4439
4242
  stageName: (0, smithy_client_1.expectString)(output.stageName),
@@ -4493,35 +4296,25 @@ const deserializeAws_json1_1ThirdPartyJob = (output, context) => {
4493
4296
  };
4494
4297
  const deserializeAws_json1_1ThirdPartyJobData = (output, context) => {
4495
4298
  return {
4496
- actionConfiguration: output.actionConfiguration !== undefined && output.actionConfiguration !== null
4299
+ actionConfiguration: output.actionConfiguration != null
4497
4300
  ? deserializeAws_json1_1ActionConfiguration(output.actionConfiguration, context)
4498
4301
  : undefined,
4499
- actionTypeId: output.actionTypeId !== undefined && output.actionTypeId !== null
4500
- ? deserializeAws_json1_1ActionTypeId(output.actionTypeId, context)
4501
- : undefined,
4502
- artifactCredentials: output.artifactCredentials !== undefined && output.artifactCredentials !== null
4302
+ actionTypeId: output.actionTypeId != null ? deserializeAws_json1_1ActionTypeId(output.actionTypeId, context) : undefined,
4303
+ artifactCredentials: output.artifactCredentials != null
4503
4304
  ? deserializeAws_json1_1AWSSessionCredentials(output.artifactCredentials, context)
4504
4305
  : undefined,
4505
4306
  continuationToken: (0, smithy_client_1.expectString)(output.continuationToken),
4506
- encryptionKey: output.encryptionKey !== undefined && output.encryptionKey !== null
4507
- ? deserializeAws_json1_1EncryptionKey(output.encryptionKey, context)
4508
- : undefined,
4509
- inputArtifacts: output.inputArtifacts !== undefined && output.inputArtifacts !== null
4510
- ? deserializeAws_json1_1ArtifactList(output.inputArtifacts, context)
4511
- : undefined,
4512
- outputArtifacts: output.outputArtifacts !== undefined && output.outputArtifacts !== null
4513
- ? deserializeAws_json1_1ArtifactList(output.outputArtifacts, context)
4514
- : undefined,
4515
- pipelineContext: output.pipelineContext !== undefined && output.pipelineContext !== null
4307
+ encryptionKey: output.encryptionKey != null ? deserializeAws_json1_1EncryptionKey(output.encryptionKey, context) : undefined,
4308
+ inputArtifacts: output.inputArtifacts != null ? deserializeAws_json1_1ArtifactList(output.inputArtifacts, context) : undefined,
4309
+ outputArtifacts: output.outputArtifacts != null ? deserializeAws_json1_1ArtifactList(output.outputArtifacts, context) : undefined,
4310
+ pipelineContext: output.pipelineContext != null
4516
4311
  ? deserializeAws_json1_1PipelineContext(output.pipelineContext, context)
4517
4312
  : undefined,
4518
4313
  };
4519
4314
  };
4520
4315
  const deserializeAws_json1_1ThirdPartyJobDetails = (output, context) => {
4521
4316
  return {
4522
- data: output.data !== undefined && output.data !== null
4523
- ? deserializeAws_json1_1ThirdPartyJobData(output.data, context)
4524
- : undefined,
4317
+ data: output.data != null ? deserializeAws_json1_1ThirdPartyJobData(output.data, context) : undefined,
4525
4318
  id: (0, smithy_client_1.expectString)(output.id),
4526
4319
  nonce: (0, smithy_client_1.expectString)(output.nonce),
4527
4320
  };
@@ -4546,7 +4339,7 @@ const deserializeAws_json1_1TransitionState = (output, context) => {
4546
4339
  return {
4547
4340
  disabledReason: (0, smithy_client_1.expectString)(output.disabledReason),
4548
4341
  enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
4549
- lastChangedAt: output.lastChangedAt !== undefined && output.lastChangedAt !== null
4342
+ lastChangedAt: output.lastChangedAt != null
4550
4343
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastChangedAt)))
4551
4344
  : undefined,
4552
4345
  lastChangedBy: (0, smithy_client_1.expectString)(output.lastChangedBy),
@@ -4557,9 +4350,7 @@ const deserializeAws_json1_1UntagResourceOutput = (output, context) => {
4557
4350
  };
4558
4351
  const deserializeAws_json1_1UpdatePipelineOutput = (output, context) => {
4559
4352
  return {
4560
- pipeline: output.pipeline !== undefined && output.pipeline !== null
4561
- ? deserializeAws_json1_1PipelineDeclaration(output.pipeline, context)
4562
- : undefined,
4353
+ pipeline: output.pipeline != null ? deserializeAws_json1_1PipelineDeclaration(output.pipeline, context) : undefined,
4563
4354
  };
4564
4355
  };
4565
4356
  const deserializeAws_json1_1ValidationException = (output, context) => {
@@ -4576,12 +4367,10 @@ const deserializeAws_json1_1WebhookAuthConfiguration = (output, context) => {
4576
4367
  const deserializeAws_json1_1WebhookDefinition = (output, context) => {
4577
4368
  return {
4578
4369
  authentication: (0, smithy_client_1.expectString)(output.authentication),
4579
- authenticationConfiguration: output.authenticationConfiguration !== undefined && output.authenticationConfiguration !== null
4370
+ authenticationConfiguration: output.authenticationConfiguration != null
4580
4371
  ? deserializeAws_json1_1WebhookAuthConfiguration(output.authenticationConfiguration, context)
4581
4372
  : undefined,
4582
- filters: output.filters !== undefined && output.filters !== null
4583
- ? deserializeAws_json1_1WebhookFilters(output.filters, context)
4584
- : undefined,
4373
+ filters: output.filters != null ? deserializeAws_json1_1WebhookFilters(output.filters, context) : undefined,
4585
4374
  name: (0, smithy_client_1.expectString)(output.name),
4586
4375
  targetAction: (0, smithy_client_1.expectString)(output.targetAction),
4587
4376
  targetPipeline: (0, smithy_client_1.expectString)(output.targetPipeline),
@@ -4662,6 +4451,9 @@ const loadRestJsonErrorCode = (output, data) => {
4662
4451
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
4663
4452
  const sanitizeErrorCode = (rawValue) => {
4664
4453
  let cleanValue = rawValue;
4454
+ if (typeof cleanValue === "number") {
4455
+ cleanValue = cleanValue.toString();
4456
+ }
4665
4457
  if (cleanValue.indexOf(":") >= 0) {
4666
4458
  cleanValue = cleanValue.split(":")[0];
4667
4459
  }