@aws-sdk/client-greengrassv2 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.
@@ -15,7 +15,7 @@ const serializeAws_restJson1AssociateServiceRoleToAccountCommand = async (input,
15
15
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/servicerole";
16
16
  let body;
17
17
  body = JSON.stringify({
18
- ...(input.roleArn !== undefined && input.roleArn !== null && { RoleArn: input.roleArn }),
18
+ ...(input.roleArn != null && { RoleArn: input.roleArn }),
19
19
  });
20
20
  return new protocol_http_1.HttpRequest({
21
21
  protocol,
@@ -47,8 +47,7 @@ const serializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommand = as
47
47
  }
48
48
  let body;
49
49
  body = JSON.stringify({
50
- ...(input.entries !== undefined &&
51
- input.entries !== null && {
50
+ ...(input.entries != null && {
52
51
  entries: serializeAws_restJson1AssociateClientDeviceWithCoreDeviceEntryList(input.entries, context),
53
52
  }),
54
53
  });
@@ -82,8 +81,7 @@ const serializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommand =
82
81
  }
83
82
  let body;
84
83
  body = JSON.stringify({
85
- ...(input.entries !== undefined &&
86
- input.entries !== null && {
84
+ ...(input.entries != null && {
87
85
  entries: serializeAws_restJson1DisassociateClientDeviceFromCoreDeviceEntryList(input.entries, context),
88
86
  }),
89
87
  });
@@ -135,13 +133,11 @@ const serializeAws_restJson1CreateComponentVersionCommand = async (input, contex
135
133
  let body;
136
134
  body = JSON.stringify({
137
135
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
138
- ...(input.inlineRecipe !== undefined &&
139
- input.inlineRecipe !== null && { inlineRecipe: context.base64Encoder(input.inlineRecipe) }),
140
- ...(input.lambdaFunction !== undefined &&
141
- input.lambdaFunction !== null && {
136
+ ...(input.inlineRecipe != null && { inlineRecipe: context.base64Encoder(input.inlineRecipe) }),
137
+ ...(input.lambdaFunction != null && {
142
138
  lambdaFunction: serializeAws_restJson1LambdaFunctionRecipeSource(input.lambdaFunction, context),
143
139
  }),
144
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
140
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
145
141
  });
146
142
  return new protocol_http_1.HttpRequest({
147
143
  protocol,
@@ -164,22 +160,18 @@ const serializeAws_restJson1CreateDeploymentCommand = async (input, context) =>
164
160
  let body;
165
161
  body = JSON.stringify({
166
162
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
167
- ...(input.components !== undefined &&
168
- input.components !== null && {
163
+ ...(input.components != null && {
169
164
  components: serializeAws_restJson1ComponentDeploymentSpecifications(input.components, context),
170
165
  }),
171
- ...(input.deploymentName !== undefined &&
172
- input.deploymentName !== null && { deploymentName: input.deploymentName }),
173
- ...(input.deploymentPolicies !== undefined &&
174
- input.deploymentPolicies !== null && {
166
+ ...(input.deploymentName != null && { deploymentName: input.deploymentName }),
167
+ ...(input.deploymentPolicies != null && {
175
168
  deploymentPolicies: serializeAws_restJson1DeploymentPolicies(input.deploymentPolicies, context),
176
169
  }),
177
- ...(input.iotJobConfiguration !== undefined &&
178
- input.iotJobConfiguration !== null && {
170
+ ...(input.iotJobConfiguration != null && {
179
171
  iotJobConfiguration: serializeAws_restJson1DeploymentIoTJobConfiguration(input.iotJobConfiguration, context),
180
172
  }),
181
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
182
- ...(input.targetArn !== undefined && input.targetArn !== null && { targetArn: input.targetArn }),
173
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
174
+ ...(input.targetArn != null && { targetArn: input.targetArn }),
183
175
  });
184
176
  return new protocol_http_1.HttpRequest({
185
177
  protocol,
@@ -714,12 +706,10 @@ const serializeAws_restJson1ResolveComponentCandidatesCommand = async (input, co
714
706
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/resolveComponentCandidates";
715
707
  let body;
716
708
  body = JSON.stringify({
717
- ...(input.componentCandidates !== undefined &&
718
- input.componentCandidates !== null && {
709
+ ...(input.componentCandidates != null && {
719
710
  componentCandidates: serializeAws_restJson1ComponentCandidateList(input.componentCandidates, context),
720
711
  }),
721
- ...(input.platform !== undefined &&
722
- input.platform !== null && { platform: serializeAws_restJson1ComponentPlatform(input.platform, context) }),
712
+ ...(input.platform != null && { platform: serializeAws_restJson1ComponentPlatform(input.platform, context) }),
723
713
  });
724
714
  return new protocol_http_1.HttpRequest({
725
715
  protocol,
@@ -750,7 +740,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
750
740
  }
751
741
  let body;
752
742
  body = JSON.stringify({
753
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
743
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
754
744
  });
755
745
  return new protocol_http_1.HttpRequest({
756
746
  protocol,
@@ -812,8 +802,7 @@ const serializeAws_restJson1UpdateConnectivityInfoCommand = async (input, contex
812
802
  }
813
803
  let body;
814
804
  body = JSON.stringify({
815
- ...(input.connectivityInfo !== undefined &&
816
- input.connectivityInfo !== null && {
805
+ ...(input.connectivityInfo != null && {
817
806
  ConnectivityInfo: serializeAws_restJson1connectivityInfoList(input.connectivityInfo, context),
818
807
  }),
819
808
  });
@@ -2526,7 +2515,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
2526
2515
  };
2527
2516
  const serializeAws_restJson1AssociateClientDeviceWithCoreDeviceEntry = (input, context) => {
2528
2517
  return {
2529
- ...(input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }),
2518
+ ...(input.thingName != null && { thingName: input.thingName }),
2530
2519
  };
2531
2520
  };
2532
2521
  const serializeAws_restJson1AssociateClientDeviceWithCoreDeviceEntryList = (input, context) => {
@@ -2541,11 +2530,9 @@ const serializeAws_restJson1AssociateClientDeviceWithCoreDeviceEntryList = (inpu
2541
2530
  };
2542
2531
  const serializeAws_restJson1ComponentCandidate = (input, context) => {
2543
2532
  return {
2544
- ...(input.componentName !== undefined && input.componentName !== null && { componentName: input.componentName }),
2545
- ...(input.componentVersion !== undefined &&
2546
- input.componentVersion !== null && { componentVersion: input.componentVersion }),
2547
- ...(input.versionRequirements !== undefined &&
2548
- input.versionRequirements !== null && {
2533
+ ...(input.componentName != null && { componentName: input.componentName }),
2534
+ ...(input.componentVersion != null && { componentVersion: input.componentVersion }),
2535
+ ...(input.versionRequirements != null && {
2549
2536
  versionRequirements: serializeAws_restJson1ComponentVersionRequirementMap(input.versionRequirements, context),
2550
2537
  }),
2551
2538
  };
@@ -2572,9 +2559,8 @@ const serializeAws_restJson1ComponentConfigurationPathList = (input, context) =>
2572
2559
  };
2573
2560
  const serializeAws_restJson1ComponentConfigurationUpdate = (input, context) => {
2574
2561
  return {
2575
- ...(input.merge !== undefined && input.merge !== null && { merge: input.merge }),
2576
- ...(input.reset !== undefined &&
2577
- input.reset !== null && { reset: serializeAws_restJson1ComponentConfigurationPathList(input.reset, context) }),
2562
+ ...(input.merge != null && { merge: input.merge }),
2563
+ ...(input.reset != null && { reset: serializeAws_restJson1ComponentConfigurationPathList(input.reset, context) }),
2578
2564
  };
2579
2565
  };
2580
2566
  const serializeAws_restJson1ComponentDependencyMap = (input, context) => {
@@ -2590,22 +2576,17 @@ const serializeAws_restJson1ComponentDependencyMap = (input, context) => {
2590
2576
  };
2591
2577
  const serializeAws_restJson1ComponentDependencyRequirement = (input, context) => {
2592
2578
  return {
2593
- ...(input.dependencyType !== undefined &&
2594
- input.dependencyType !== null && { dependencyType: input.dependencyType }),
2595
- ...(input.versionRequirement !== undefined &&
2596
- input.versionRequirement !== null && { versionRequirement: input.versionRequirement }),
2579
+ ...(input.dependencyType != null && { dependencyType: input.dependencyType }),
2580
+ ...(input.versionRequirement != null && { versionRequirement: input.versionRequirement }),
2597
2581
  };
2598
2582
  };
2599
2583
  const serializeAws_restJson1ComponentDeploymentSpecification = (input, context) => {
2600
2584
  return {
2601
- ...(input.componentVersion !== undefined &&
2602
- input.componentVersion !== null && { componentVersion: input.componentVersion }),
2603
- ...(input.configurationUpdate !== undefined &&
2604
- input.configurationUpdate !== null && {
2585
+ ...(input.componentVersion != null && { componentVersion: input.componentVersion }),
2586
+ ...(input.configurationUpdate != null && {
2605
2587
  configurationUpdate: serializeAws_restJson1ComponentConfigurationUpdate(input.configurationUpdate, context),
2606
2588
  }),
2607
- ...(input.runWith !== undefined &&
2608
- input.runWith !== null && { runWith: serializeAws_restJson1ComponentRunWith(input.runWith, context) }),
2589
+ ...(input.runWith != null && { runWith: serializeAws_restJson1ComponentRunWith(input.runWith, context) }),
2609
2590
  };
2610
2591
  };
2611
2592
  const serializeAws_restJson1ComponentDeploymentSpecifications = (input, context) => {
@@ -2621,11 +2602,10 @@ const serializeAws_restJson1ComponentDeploymentSpecifications = (input, context)
2621
2602
  };
2622
2603
  const serializeAws_restJson1ComponentPlatform = (input, context) => {
2623
2604
  return {
2624
- ...(input.attributes !== undefined &&
2625
- input.attributes !== null && {
2605
+ ...(input.attributes != null && {
2626
2606
  attributes: serializeAws_restJson1PlatformAttributesMap(input.attributes, context),
2627
2607
  }),
2628
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2608
+ ...(input.name != null && { name: input.name }),
2629
2609
  };
2630
2610
  };
2631
2611
  const serializeAws_restJson1ComponentPlatformList = (input, context) => {
@@ -2640,12 +2620,11 @@ const serializeAws_restJson1ComponentPlatformList = (input, context) => {
2640
2620
  };
2641
2621
  const serializeAws_restJson1ComponentRunWith = (input, context) => {
2642
2622
  return {
2643
- ...(input.posixUser !== undefined && input.posixUser !== null && { posixUser: input.posixUser }),
2644
- ...(input.systemResourceLimits !== undefined &&
2645
- input.systemResourceLimits !== null && {
2623
+ ...(input.posixUser != null && { posixUser: input.posixUser }),
2624
+ ...(input.systemResourceLimits != null && {
2646
2625
  systemResourceLimits: serializeAws_restJson1SystemResourceLimits(input.systemResourceLimits, context),
2647
2626
  }),
2648
- ...(input.windowsUser !== undefined && input.windowsUser !== null && { windowsUser: input.windowsUser }),
2627
+ ...(input.windowsUser != null && { windowsUser: input.windowsUser }),
2649
2628
  };
2650
2629
  };
2651
2630
  const serializeAws_restJson1ComponentVersionRequirementMap = (input, context) => {
@@ -2661,10 +2640,10 @@ const serializeAws_restJson1ComponentVersionRequirementMap = (input, context) =>
2661
2640
  };
2662
2641
  const serializeAws_restJson1ConnectivityInfo = (input, context) => {
2663
2642
  return {
2664
- ...(input.hostAddress !== undefined && input.hostAddress !== null && { HostAddress: input.hostAddress }),
2665
- ...(input.id !== undefined && input.id !== null && { Id: input.id }),
2666
- ...(input.metadata !== undefined && input.metadata !== null && { Metadata: input.metadata }),
2667
- ...(input.portNumber !== undefined && input.portNumber !== null && { PortNumber: input.portNumber }),
2643
+ ...(input.hostAddress != null && { HostAddress: input.hostAddress }),
2644
+ ...(input.id != null && { Id: input.id }),
2645
+ ...(input.metadata != null && { Metadata: input.metadata }),
2646
+ ...(input.portNumber != null && { PortNumber: input.portNumber }),
2668
2647
  };
2669
2648
  };
2670
2649
  const serializeAws_restJson1connectivityInfoList = (input, context) => {
@@ -2679,50 +2658,42 @@ const serializeAws_restJson1connectivityInfoList = (input, context) => {
2679
2658
  };
2680
2659
  const serializeAws_restJson1DeploymentComponentUpdatePolicy = (input, context) => {
2681
2660
  return {
2682
- ...(input.action !== undefined && input.action !== null && { action: input.action }),
2683
- ...(input.timeoutInSeconds !== undefined &&
2684
- input.timeoutInSeconds !== null && { timeoutInSeconds: input.timeoutInSeconds }),
2661
+ ...(input.action != null && { action: input.action }),
2662
+ ...(input.timeoutInSeconds != null && { timeoutInSeconds: input.timeoutInSeconds }),
2685
2663
  };
2686
2664
  };
2687
2665
  const serializeAws_restJson1DeploymentConfigurationValidationPolicy = (input, context) => {
2688
2666
  return {
2689
- ...(input.timeoutInSeconds !== undefined &&
2690
- input.timeoutInSeconds !== null && { timeoutInSeconds: input.timeoutInSeconds }),
2667
+ ...(input.timeoutInSeconds != null && { timeoutInSeconds: input.timeoutInSeconds }),
2691
2668
  };
2692
2669
  };
2693
2670
  const serializeAws_restJson1DeploymentIoTJobConfiguration = (input, context) => {
2694
2671
  return {
2695
- ...(input.abortConfig !== undefined &&
2696
- input.abortConfig !== null && {
2672
+ ...(input.abortConfig != null && {
2697
2673
  abortConfig: serializeAws_restJson1IoTJobAbortConfig(input.abortConfig, context),
2698
2674
  }),
2699
- ...(input.jobExecutionsRolloutConfig !== undefined &&
2700
- input.jobExecutionsRolloutConfig !== null && {
2675
+ ...(input.jobExecutionsRolloutConfig != null && {
2701
2676
  jobExecutionsRolloutConfig: serializeAws_restJson1IoTJobExecutionsRolloutConfig(input.jobExecutionsRolloutConfig, context),
2702
2677
  }),
2703
- ...(input.timeoutConfig !== undefined &&
2704
- input.timeoutConfig !== null && {
2678
+ ...(input.timeoutConfig != null && {
2705
2679
  timeoutConfig: serializeAws_restJson1IoTJobTimeoutConfig(input.timeoutConfig, context),
2706
2680
  }),
2707
2681
  };
2708
2682
  };
2709
2683
  const serializeAws_restJson1DeploymentPolicies = (input, context) => {
2710
2684
  return {
2711
- ...(input.componentUpdatePolicy !== undefined &&
2712
- input.componentUpdatePolicy !== null && {
2685
+ ...(input.componentUpdatePolicy != null && {
2713
2686
  componentUpdatePolicy: serializeAws_restJson1DeploymentComponentUpdatePolicy(input.componentUpdatePolicy, context),
2714
2687
  }),
2715
- ...(input.configurationValidationPolicy !== undefined &&
2716
- input.configurationValidationPolicy !== null && {
2688
+ ...(input.configurationValidationPolicy != null && {
2717
2689
  configurationValidationPolicy: serializeAws_restJson1DeploymentConfigurationValidationPolicy(input.configurationValidationPolicy, context),
2718
2690
  }),
2719
- ...(input.failureHandlingPolicy !== undefined &&
2720
- input.failureHandlingPolicy !== null && { failureHandlingPolicy: input.failureHandlingPolicy }),
2691
+ ...(input.failureHandlingPolicy != null && { failureHandlingPolicy: input.failureHandlingPolicy }),
2721
2692
  };
2722
2693
  };
2723
2694
  const serializeAws_restJson1DisassociateClientDeviceFromCoreDeviceEntry = (input, context) => {
2724
2695
  return {
2725
- ...(input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }),
2696
+ ...(input.thingName != null && { thingName: input.thingName }),
2726
2697
  };
2727
2698
  };
2728
2699
  const serializeAws_restJson1DisassociateClientDeviceFromCoreDeviceEntryList = (input, context) => {
@@ -2737,20 +2708,17 @@ const serializeAws_restJson1DisassociateClientDeviceFromCoreDeviceEntryList = (i
2737
2708
  };
2738
2709
  const serializeAws_restJson1IoTJobAbortConfig = (input, context) => {
2739
2710
  return {
2740
- ...(input.criteriaList !== undefined &&
2741
- input.criteriaList !== null && {
2711
+ ...(input.criteriaList != null && {
2742
2712
  criteriaList: serializeAws_restJson1IoTJobAbortCriteriaList(input.criteriaList, context),
2743
2713
  }),
2744
2714
  };
2745
2715
  };
2746
2716
  const serializeAws_restJson1IoTJobAbortCriteria = (input, context) => {
2747
2717
  return {
2748
- ...(input.action !== undefined && input.action !== null && { action: input.action }),
2749
- ...(input.failureType !== undefined && input.failureType !== null && { failureType: input.failureType }),
2750
- ...(input.minNumberOfExecutedThings !== undefined &&
2751
- input.minNumberOfExecutedThings !== null && { minNumberOfExecutedThings: input.minNumberOfExecutedThings }),
2752
- ...(input.thresholdPercentage !== undefined &&
2753
- input.thresholdPercentage !== null && { thresholdPercentage: (0, smithy_client_1.serializeFloat)(input.thresholdPercentage) }),
2718
+ ...(input.action != null && { action: input.action }),
2719
+ ...(input.failureType != null && { failureType: input.failureType }),
2720
+ ...(input.minNumberOfExecutedThings != null && { minNumberOfExecutedThings: input.minNumberOfExecutedThings }),
2721
+ ...(input.thresholdPercentage != null && { thresholdPercentage: (0, smithy_client_1.serializeFloat)(input.thresholdPercentage) }),
2754
2722
  };
2755
2723
  };
2756
2724
  const serializeAws_restJson1IoTJobAbortCriteriaList = (input, context) => {
@@ -2765,49 +2733,38 @@ const serializeAws_restJson1IoTJobAbortCriteriaList = (input, context) => {
2765
2733
  };
2766
2734
  const serializeAws_restJson1IoTJobExecutionsRolloutConfig = (input, context) => {
2767
2735
  return {
2768
- ...(input.exponentialRate !== undefined &&
2769
- input.exponentialRate !== null && {
2736
+ ...(input.exponentialRate != null && {
2770
2737
  exponentialRate: serializeAws_restJson1IoTJobExponentialRolloutRate(input.exponentialRate, context),
2771
2738
  }),
2772
- ...(input.maximumPerMinute !== undefined &&
2773
- input.maximumPerMinute !== null && { maximumPerMinute: input.maximumPerMinute }),
2739
+ ...(input.maximumPerMinute != null && { maximumPerMinute: input.maximumPerMinute }),
2774
2740
  };
2775
2741
  };
2776
2742
  const serializeAws_restJson1IoTJobExponentialRolloutRate = (input, context) => {
2777
2743
  return {
2778
- ...(input.baseRatePerMinute !== undefined &&
2779
- input.baseRatePerMinute !== null && { baseRatePerMinute: input.baseRatePerMinute }),
2780
- ...(input.incrementFactor !== undefined &&
2781
- input.incrementFactor !== null && { incrementFactor: (0, smithy_client_1.serializeFloat)(input.incrementFactor) }),
2782
- ...(input.rateIncreaseCriteria !== undefined &&
2783
- input.rateIncreaseCriteria !== null && {
2744
+ ...(input.baseRatePerMinute != null && { baseRatePerMinute: input.baseRatePerMinute }),
2745
+ ...(input.incrementFactor != null && { incrementFactor: (0, smithy_client_1.serializeFloat)(input.incrementFactor) }),
2746
+ ...(input.rateIncreaseCriteria != null && {
2784
2747
  rateIncreaseCriteria: serializeAws_restJson1IoTJobRateIncreaseCriteria(input.rateIncreaseCriteria, context),
2785
2748
  }),
2786
2749
  };
2787
2750
  };
2788
2751
  const serializeAws_restJson1IoTJobRateIncreaseCriteria = (input, context) => {
2789
2752
  return {
2790
- ...(input.numberOfNotifiedThings !== undefined &&
2791
- input.numberOfNotifiedThings !== null && { numberOfNotifiedThings: input.numberOfNotifiedThings }),
2792
- ...(input.numberOfSucceededThings !== undefined &&
2793
- input.numberOfSucceededThings !== null && { numberOfSucceededThings: input.numberOfSucceededThings }),
2753
+ ...(input.numberOfNotifiedThings != null && { numberOfNotifiedThings: input.numberOfNotifiedThings }),
2754
+ ...(input.numberOfSucceededThings != null && { numberOfSucceededThings: input.numberOfSucceededThings }),
2794
2755
  };
2795
2756
  };
2796
2757
  const serializeAws_restJson1IoTJobTimeoutConfig = (input, context) => {
2797
2758
  return {
2798
- ...(input.inProgressTimeoutInMinutes !== undefined &&
2799
- input.inProgressTimeoutInMinutes !== null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }),
2759
+ ...(input.inProgressTimeoutInMinutes != null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }),
2800
2760
  };
2801
2761
  };
2802
2762
  const serializeAws_restJson1LambdaContainerParams = (input, context) => {
2803
2763
  return {
2804
- ...(input.devices !== undefined &&
2805
- input.devices !== null && { devices: serializeAws_restJson1LambdaDeviceList(input.devices, context) }),
2806
- ...(input.memorySizeInKB !== undefined &&
2807
- input.memorySizeInKB !== null && { memorySizeInKB: input.memorySizeInKB }),
2808
- ...(input.mountROSysfs !== undefined && input.mountROSysfs !== null && { mountROSysfs: input.mountROSysfs }),
2809
- ...(input.volumes !== undefined &&
2810
- input.volumes !== null && { volumes: serializeAws_restJson1LambdaVolumeList(input.volumes, context) }),
2764
+ ...(input.devices != null && { devices: serializeAws_restJson1LambdaDeviceList(input.devices, context) }),
2765
+ ...(input.memorySizeInKB != null && { memorySizeInKB: input.memorySizeInKB }),
2766
+ ...(input.mountROSysfs != null && { mountROSysfs: input.mountROSysfs }),
2767
+ ...(input.volumes != null && { volumes: serializeAws_restJson1LambdaVolumeList(input.volumes, context) }),
2811
2768
  };
2812
2769
  };
2813
2770
  const serializeAws_restJson1LambdaDeviceList = (input, context) => {
@@ -2822,9 +2779,9 @@ const serializeAws_restJson1LambdaDeviceList = (input, context) => {
2822
2779
  };
2823
2780
  const serializeAws_restJson1LambdaDeviceMount = (input, context) => {
2824
2781
  return {
2825
- ...(input.addGroupOwner !== undefined && input.addGroupOwner !== null && { addGroupOwner: input.addGroupOwner }),
2826
- ...(input.path !== undefined && input.path !== null && { path: input.path }),
2827
- ...(input.permission !== undefined && input.permission !== null && { permission: input.permission }),
2782
+ ...(input.addGroupOwner != null && { addGroupOwner: input.addGroupOwner }),
2783
+ ...(input.path != null && { path: input.path }),
2784
+ ...(input.permission != null && { permission: input.permission }),
2828
2785
  };
2829
2786
  };
2830
2787
  const serializeAws_restJson1LambdaEnvironmentVariables = (input, context) => {
@@ -2840,8 +2797,8 @@ const serializeAws_restJson1LambdaEnvironmentVariables = (input, context) => {
2840
2797
  };
2841
2798
  const serializeAws_restJson1LambdaEventSource = (input, context) => {
2842
2799
  return {
2843
- ...(input.topic !== undefined && input.topic !== null && { topic: input.topic }),
2844
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
2800
+ ...(input.topic != null && { topic: input.topic }),
2801
+ ...(input.type != null && { type: input.type }),
2845
2802
  };
2846
2803
  };
2847
2804
  const serializeAws_restJson1LambdaEventSourceList = (input, context) => {
@@ -2866,61 +2823,47 @@ const serializeAws_restJson1LambdaExecArgsList = (input, context) => {
2866
2823
  };
2867
2824
  const serializeAws_restJson1LambdaExecutionParameters = (input, context) => {
2868
2825
  return {
2869
- ...(input.environmentVariables !== undefined &&
2870
- input.environmentVariables !== null && {
2826
+ ...(input.environmentVariables != null && {
2871
2827
  environmentVariables: serializeAws_restJson1LambdaEnvironmentVariables(input.environmentVariables, context),
2872
2828
  }),
2873
- ...(input.eventSources !== undefined &&
2874
- input.eventSources !== null && {
2829
+ ...(input.eventSources != null && {
2875
2830
  eventSources: serializeAws_restJson1LambdaEventSourceList(input.eventSources, context),
2876
2831
  }),
2877
- ...(input.execArgs !== undefined &&
2878
- input.execArgs !== null && { execArgs: serializeAws_restJson1LambdaExecArgsList(input.execArgs, context) }),
2879
- ...(input.inputPayloadEncodingType !== undefined &&
2880
- input.inputPayloadEncodingType !== null && { inputPayloadEncodingType: input.inputPayloadEncodingType }),
2881
- ...(input.linuxProcessParams !== undefined &&
2882
- input.linuxProcessParams !== null && {
2832
+ ...(input.execArgs != null && { execArgs: serializeAws_restJson1LambdaExecArgsList(input.execArgs, context) }),
2833
+ ...(input.inputPayloadEncodingType != null && { inputPayloadEncodingType: input.inputPayloadEncodingType }),
2834
+ ...(input.linuxProcessParams != null && {
2883
2835
  linuxProcessParams: serializeAws_restJson1LambdaLinuxProcessParams(input.linuxProcessParams, context),
2884
2836
  }),
2885
- ...(input.maxIdleTimeInSeconds !== undefined &&
2886
- input.maxIdleTimeInSeconds !== null && { maxIdleTimeInSeconds: input.maxIdleTimeInSeconds }),
2887
- ...(input.maxInstancesCount !== undefined &&
2888
- input.maxInstancesCount !== null && { maxInstancesCount: input.maxInstancesCount }),
2889
- ...(input.maxQueueSize !== undefined && input.maxQueueSize !== null && { maxQueueSize: input.maxQueueSize }),
2890
- ...(input.pinned !== undefined && input.pinned !== null && { pinned: input.pinned }),
2891
- ...(input.statusTimeoutInSeconds !== undefined &&
2892
- input.statusTimeoutInSeconds !== null && { statusTimeoutInSeconds: input.statusTimeoutInSeconds }),
2893
- ...(input.timeoutInSeconds !== undefined &&
2894
- input.timeoutInSeconds !== null && { timeoutInSeconds: input.timeoutInSeconds }),
2837
+ ...(input.maxIdleTimeInSeconds != null && { maxIdleTimeInSeconds: input.maxIdleTimeInSeconds }),
2838
+ ...(input.maxInstancesCount != null && { maxInstancesCount: input.maxInstancesCount }),
2839
+ ...(input.maxQueueSize != null && { maxQueueSize: input.maxQueueSize }),
2840
+ ...(input.pinned != null && { pinned: input.pinned }),
2841
+ ...(input.statusTimeoutInSeconds != null && { statusTimeoutInSeconds: input.statusTimeoutInSeconds }),
2842
+ ...(input.timeoutInSeconds != null && { timeoutInSeconds: input.timeoutInSeconds }),
2895
2843
  };
2896
2844
  };
2897
2845
  const serializeAws_restJson1LambdaFunctionRecipeSource = (input, context) => {
2898
2846
  return {
2899
- ...(input.componentDependencies !== undefined &&
2900
- input.componentDependencies !== null && {
2847
+ ...(input.componentDependencies != null && {
2901
2848
  componentDependencies: serializeAws_restJson1ComponentDependencyMap(input.componentDependencies, context),
2902
2849
  }),
2903
- ...(input.componentLambdaParameters !== undefined &&
2904
- input.componentLambdaParameters !== null && {
2850
+ ...(input.componentLambdaParameters != null && {
2905
2851
  componentLambdaParameters: serializeAws_restJson1LambdaExecutionParameters(input.componentLambdaParameters, context),
2906
2852
  }),
2907
- ...(input.componentName !== undefined && input.componentName !== null && { componentName: input.componentName }),
2908
- ...(input.componentPlatforms !== undefined &&
2909
- input.componentPlatforms !== null && {
2853
+ ...(input.componentName != null && { componentName: input.componentName }),
2854
+ ...(input.componentPlatforms != null && {
2910
2855
  componentPlatforms: serializeAws_restJson1ComponentPlatformList(input.componentPlatforms, context),
2911
2856
  }),
2912
- ...(input.componentVersion !== undefined &&
2913
- input.componentVersion !== null && { componentVersion: input.componentVersion }),
2914
- ...(input.lambdaArn !== undefined && input.lambdaArn !== null && { lambdaArn: input.lambdaArn }),
2857
+ ...(input.componentVersion != null && { componentVersion: input.componentVersion }),
2858
+ ...(input.lambdaArn != null && { lambdaArn: input.lambdaArn }),
2915
2859
  };
2916
2860
  };
2917
2861
  const serializeAws_restJson1LambdaLinuxProcessParams = (input, context) => {
2918
2862
  return {
2919
- ...(input.containerParams !== undefined &&
2920
- input.containerParams !== null && {
2863
+ ...(input.containerParams != null && {
2921
2864
  containerParams: serializeAws_restJson1LambdaContainerParams(input.containerParams, context),
2922
2865
  }),
2923
- ...(input.isolationMode !== undefined && input.isolationMode !== null && { isolationMode: input.isolationMode }),
2866
+ ...(input.isolationMode != null && { isolationMode: input.isolationMode }),
2924
2867
  };
2925
2868
  };
2926
2869
  const serializeAws_restJson1LambdaVolumeList = (input, context) => {
@@ -2935,11 +2878,10 @@ const serializeAws_restJson1LambdaVolumeList = (input, context) => {
2935
2878
  };
2936
2879
  const serializeAws_restJson1LambdaVolumeMount = (input, context) => {
2937
2880
  return {
2938
- ...(input.addGroupOwner !== undefined && input.addGroupOwner !== null && { addGroupOwner: input.addGroupOwner }),
2939
- ...(input.destinationPath !== undefined &&
2940
- input.destinationPath !== null && { destinationPath: input.destinationPath }),
2941
- ...(input.permission !== undefined && input.permission !== null && { permission: input.permission }),
2942
- ...(input.sourcePath !== undefined && input.sourcePath !== null && { sourcePath: input.sourcePath }),
2881
+ ...(input.addGroupOwner != null && { addGroupOwner: input.addGroupOwner }),
2882
+ ...(input.destinationPath != null && { destinationPath: input.destinationPath }),
2883
+ ...(input.permission != null && { permission: input.permission }),
2884
+ ...(input.sourcePath != null && { sourcePath: input.sourcePath }),
2943
2885
  };
2944
2886
  };
2945
2887
  const serializeAws_restJson1PlatformAttributesMap = (input, context) => {
@@ -2955,8 +2897,8 @@ const serializeAws_restJson1PlatformAttributesMap = (input, context) => {
2955
2897
  };
2956
2898
  const serializeAws_restJson1SystemResourceLimits = (input, context) => {
2957
2899
  return {
2958
- ...(input.cpus !== undefined && input.cpus !== null && { cpus: (0, smithy_client_1.serializeFloat)(input.cpus) }),
2959
- ...(input.memory !== undefined && input.memory !== null && { memory: input.memory }),
2900
+ ...(input.cpus != null && { cpus: (0, smithy_client_1.serializeFloat)(input.cpus) }),
2901
+ ...(input.memory != null && { memory: input.memory }),
2960
2902
  };
2961
2903
  };
2962
2904
  const serializeAws_restJson1TagMap = (input, context) => {
@@ -2990,7 +2932,7 @@ const deserializeAws_restJson1AssociateClientDeviceWithCoreDeviceErrorList = (ou
2990
2932
  };
2991
2933
  const deserializeAws_restJson1AssociatedClientDevice = (output, context) => {
2992
2934
  return {
2993
- associationTimestamp: output.associationTimestamp !== undefined && output.associationTimestamp !== null
2935
+ associationTimestamp: output.associationTimestamp != null
2994
2936
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.associationTimestamp)))
2995
2937
  : undefined,
2996
2938
  thingName: (0, smithy_client_1.expectString)(output.thingName),
@@ -3010,9 +2952,7 @@ const deserializeAws_restJson1AssociatedClientDeviceList = (output, context) =>
3010
2952
  const deserializeAws_restJson1CloudComponentStatus = (output, context) => {
3011
2953
  return {
3012
2954
  componentState: (0, smithy_client_1.expectString)(output.componentState),
3013
- errors: output.errors !== undefined && output.errors !== null
3014
- ? deserializeAws_restJson1StringMap(output.errors, context)
3015
- : undefined,
2955
+ errors: output.errors != null ? deserializeAws_restJson1StringMap(output.errors, context) : undefined,
3016
2956
  message: (0, smithy_client_1.expectString)(output.message),
3017
2957
  vendorGuidance: (0, smithy_client_1.expectString)(output.vendorGuidance),
3018
2958
  vendorGuidanceMessage: (0, smithy_client_1.expectString)(output.vendorGuidanceMessage),
@@ -3022,7 +2962,7 @@ const deserializeAws_restJson1Component = (output, context) => {
3022
2962
  return {
3023
2963
  arn: (0, smithy_client_1.expectString)(output.arn),
3024
2964
  componentName: (0, smithy_client_1.expectString)(output.componentName),
3025
- latestVersion: output.latestVersion !== undefined && output.latestVersion !== null
2965
+ latestVersion: output.latestVersion != null
3026
2966
  ? deserializeAws_restJson1ComponentLatestVersion(output.latestVersion, context)
3027
2967
  : undefined,
3028
2968
  };
@@ -3041,20 +2981,16 @@ const deserializeAws_restJson1ComponentConfigurationPathList = (output, context)
3041
2981
  const deserializeAws_restJson1ComponentConfigurationUpdate = (output, context) => {
3042
2982
  return {
3043
2983
  merge: (0, smithy_client_1.expectString)(output.merge),
3044
- reset: output.reset !== undefined && output.reset !== null
3045
- ? deserializeAws_restJson1ComponentConfigurationPathList(output.reset, context)
3046
- : undefined,
2984
+ reset: output.reset != null ? deserializeAws_restJson1ComponentConfigurationPathList(output.reset, context) : undefined,
3047
2985
  };
3048
2986
  };
3049
2987
  const deserializeAws_restJson1ComponentDeploymentSpecification = (output, context) => {
3050
2988
  return {
3051
2989
  componentVersion: (0, smithy_client_1.expectString)(output.componentVersion),
3052
- configurationUpdate: output.configurationUpdate !== undefined && output.configurationUpdate !== null
2990
+ configurationUpdate: output.configurationUpdate != null
3053
2991
  ? deserializeAws_restJson1ComponentConfigurationUpdate(output.configurationUpdate, context)
3054
2992
  : undefined,
3055
- runWith: output.runWith !== undefined && output.runWith !== null
3056
- ? deserializeAws_restJson1ComponentRunWith(output.runWith, context)
3057
- : undefined,
2993
+ runWith: output.runWith != null ? deserializeAws_restJson1ComponentRunWith(output.runWith, context) : undefined,
3058
2994
  };
3059
2995
  };
3060
2996
  const deserializeAws_restJson1ComponentDeploymentSpecifications = (output, context) => {
@@ -3072,13 +3008,11 @@ const deserializeAws_restJson1ComponentLatestVersion = (output, context) => {
3072
3008
  return {
3073
3009
  arn: (0, smithy_client_1.expectString)(output.arn),
3074
3010
  componentVersion: (0, smithy_client_1.expectString)(output.componentVersion),
3075
- creationTimestamp: output.creationTimestamp !== undefined && output.creationTimestamp !== null
3011
+ creationTimestamp: output.creationTimestamp != null
3076
3012
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTimestamp)))
3077
3013
  : undefined,
3078
3014
  description: (0, smithy_client_1.expectString)(output.description),
3079
- platforms: output.platforms !== undefined && output.platforms !== null
3080
- ? deserializeAws_restJson1ComponentPlatformList(output.platforms, context)
3081
- : undefined,
3015
+ platforms: output.platforms != null ? deserializeAws_restJson1ComponentPlatformList(output.platforms, context) : undefined,
3082
3016
  publisher: (0, smithy_client_1.expectString)(output.publisher),
3083
3017
  };
3084
3018
  };
@@ -3095,9 +3029,7 @@ const deserializeAws_restJson1ComponentList = (output, context) => {
3095
3029
  };
3096
3030
  const deserializeAws_restJson1ComponentPlatform = (output, context) => {
3097
3031
  return {
3098
- attributes: output.attributes !== undefined && output.attributes !== null
3099
- ? deserializeAws_restJson1PlatformAttributesMap(output.attributes, context)
3100
- : undefined,
3032
+ attributes: output.attributes != null ? deserializeAws_restJson1PlatformAttributesMap(output.attributes, context) : undefined,
3101
3033
  name: (0, smithy_client_1.expectString)(output.name),
3102
3034
  };
3103
3035
  };
@@ -3115,7 +3047,7 @@ const deserializeAws_restJson1ComponentPlatformList = (output, context) => {
3115
3047
  const deserializeAws_restJson1ComponentRunWith = (output, context) => {
3116
3048
  return {
3117
3049
  posixUser: (0, smithy_client_1.expectString)(output.posixUser),
3118
- systemResourceLimits: output.systemResourceLimits !== undefined && output.systemResourceLimits !== null
3050
+ systemResourceLimits: output.systemResourceLimits != null
3119
3051
  ? deserializeAws_restJson1SystemResourceLimits(output.systemResourceLimits, context)
3120
3052
  : undefined,
3121
3053
  windowsUser: (0, smithy_client_1.expectString)(output.windowsUser),
@@ -3161,7 +3093,7 @@ const deserializeAws_restJson1connectivityInfoList = (output, context) => {
3161
3093
  const deserializeAws_restJson1CoreDevice = (output, context) => {
3162
3094
  return {
3163
3095
  coreDeviceThingName: (0, smithy_client_1.expectString)(output.coreDeviceThingName),
3164
- lastStatusUpdateTimestamp: output.lastStatusUpdateTimestamp !== undefined && output.lastStatusUpdateTimestamp !== null
3096
+ lastStatusUpdateTimestamp: output.lastStatusUpdateTimestamp != null
3165
3097
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastStatusUpdateTimestamp)))
3166
3098
  : undefined,
3167
3099
  status: (0, smithy_client_1.expectString)(output.status),
@@ -3180,7 +3112,7 @@ const deserializeAws_restJson1CoreDevicesList = (output, context) => {
3180
3112
  };
3181
3113
  const deserializeAws_restJson1Deployment = (output, context) => {
3182
3114
  return {
3183
- creationTimestamp: output.creationTimestamp !== undefined && output.creationTimestamp !== null
3115
+ creationTimestamp: output.creationTimestamp != null
3184
3116
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTimestamp)))
3185
3117
  : undefined,
3186
3118
  deploymentId: (0, smithy_client_1.expectString)(output.deploymentId),
@@ -3204,13 +3136,11 @@ const deserializeAws_restJson1DeploymentConfigurationValidationPolicy = (output,
3204
3136
  };
3205
3137
  const deserializeAws_restJson1DeploymentIoTJobConfiguration = (output, context) => {
3206
3138
  return {
3207
- abortConfig: output.abortConfig !== undefined && output.abortConfig !== null
3208
- ? deserializeAws_restJson1IoTJobAbortConfig(output.abortConfig, context)
3209
- : undefined,
3210
- jobExecutionsRolloutConfig: output.jobExecutionsRolloutConfig !== undefined && output.jobExecutionsRolloutConfig !== null
3139
+ abortConfig: output.abortConfig != null ? deserializeAws_restJson1IoTJobAbortConfig(output.abortConfig, context) : undefined,
3140
+ jobExecutionsRolloutConfig: output.jobExecutionsRolloutConfig != null
3211
3141
  ? deserializeAws_restJson1IoTJobExecutionsRolloutConfig(output.jobExecutionsRolloutConfig, context)
3212
3142
  : undefined,
3213
- timeoutConfig: output.timeoutConfig !== undefined && output.timeoutConfig !== null
3143
+ timeoutConfig: output.timeoutConfig != null
3214
3144
  ? deserializeAws_restJson1IoTJobTimeoutConfig(output.timeoutConfig, context)
3215
3145
  : undefined,
3216
3146
  };
@@ -3228,10 +3158,10 @@ const deserializeAws_restJson1DeploymentList = (output, context) => {
3228
3158
  };
3229
3159
  const deserializeAws_restJson1DeploymentPolicies = (output, context) => {
3230
3160
  return {
3231
- componentUpdatePolicy: output.componentUpdatePolicy !== undefined && output.componentUpdatePolicy !== null
3161
+ componentUpdatePolicy: output.componentUpdatePolicy != null
3232
3162
  ? deserializeAws_restJson1DeploymentComponentUpdatePolicy(output.componentUpdatePolicy, context)
3233
3163
  : undefined,
3234
- configurationValidationPolicy: output.configurationValidationPolicy !== undefined && output.configurationValidationPolicy !== null
3164
+ configurationValidationPolicy: output.configurationValidationPolicy != null
3235
3165
  ? deserializeAws_restJson1DeploymentConfigurationValidationPolicy(output.configurationValidationPolicy, context)
3236
3166
  : undefined,
3237
3167
  failureHandlingPolicy: (0, smithy_client_1.expectString)(output.failureHandlingPolicy),
@@ -3258,7 +3188,7 @@ const deserializeAws_restJson1DisassociateClientDeviceFromCoreDeviceErrorList =
3258
3188
  const deserializeAws_restJson1EffectiveDeployment = (output, context) => {
3259
3189
  return {
3260
3190
  coreDeviceExecutionStatus: (0, smithy_client_1.expectString)(output.coreDeviceExecutionStatus),
3261
- creationTimestamp: output.creationTimestamp !== undefined && output.creationTimestamp !== null
3191
+ creationTimestamp: output.creationTimestamp != null
3262
3192
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTimestamp)))
3263
3193
  : undefined,
3264
3194
  deploymentId: (0, smithy_client_1.expectString)(output.deploymentId),
@@ -3266,7 +3196,7 @@ const deserializeAws_restJson1EffectiveDeployment = (output, context) => {
3266
3196
  description: (0, smithy_client_1.expectString)(output.description),
3267
3197
  iotJobArn: (0, smithy_client_1.expectString)(output.iotJobArn),
3268
3198
  iotJobId: (0, smithy_client_1.expectString)(output.iotJobId),
3269
- modifiedTimestamp: output.modifiedTimestamp !== undefined && output.modifiedTimestamp !== null
3199
+ modifiedTimestamp: output.modifiedTimestamp != null
3270
3200
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modifiedTimestamp)))
3271
3201
  : undefined,
3272
3202
  reason: (0, smithy_client_1.expectString)(output.reason),
@@ -3306,7 +3236,7 @@ const deserializeAws_restJson1InstalledComponentList = (output, context) => {
3306
3236
  };
3307
3237
  const deserializeAws_restJson1IoTJobAbortConfig = (output, context) => {
3308
3238
  return {
3309
- criteriaList: output.criteriaList !== undefined && output.criteriaList !== null
3239
+ criteriaList: output.criteriaList != null
3310
3240
  ? deserializeAws_restJson1IoTJobAbortCriteriaList(output.criteriaList, context)
3311
3241
  : undefined,
3312
3242
  };
@@ -3332,7 +3262,7 @@ const deserializeAws_restJson1IoTJobAbortCriteriaList = (output, context) => {
3332
3262
  };
3333
3263
  const deserializeAws_restJson1IoTJobExecutionsRolloutConfig = (output, context) => {
3334
3264
  return {
3335
- exponentialRate: output.exponentialRate !== undefined && output.exponentialRate !== null
3265
+ exponentialRate: output.exponentialRate != null
3336
3266
  ? deserializeAws_restJson1IoTJobExponentialRolloutRate(output.exponentialRate, context)
3337
3267
  : undefined,
3338
3268
  maximumPerMinute: (0, smithy_client_1.expectInt32)(output.maximumPerMinute),
@@ -3342,7 +3272,7 @@ const deserializeAws_restJson1IoTJobExponentialRolloutRate = (output, context) =
3342
3272
  return {
3343
3273
  baseRatePerMinute: (0, smithy_client_1.expectInt32)(output.baseRatePerMinute),
3344
3274
  incrementFactor: (0, smithy_client_1.limitedParseDouble)(output.incrementFactor),
3345
- rateIncreaseCriteria: output.rateIncreaseCriteria !== undefined && output.rateIncreaseCriteria !== null
3275
+ rateIncreaseCriteria: output.rateIncreaseCriteria != null
3346
3276
  ? deserializeAws_restJson1IoTJobRateIncreaseCriteria(output.rateIncreaseCriteria, context)
3347
3277
  : undefined,
3348
3278
  };
@@ -3375,7 +3305,7 @@ const deserializeAws_restJson1ResolvedComponentVersion = (output, context) => {
3375
3305
  componentName: (0, smithy_client_1.expectString)(output.componentName),
3376
3306
  componentVersion: (0, smithy_client_1.expectString)(output.componentVersion),
3377
3307
  message: (0, smithy_client_1.expectString)(output.message),
3378
- recipe: output.recipe !== undefined && output.recipe !== null ? context.base64Decoder(output.recipe) : undefined,
3308
+ recipe: output.recipe != null ? context.base64Decoder(output.recipe) : undefined,
3379
3309
  vendorGuidance: (0, smithy_client_1.expectString)(output.vendorGuidance),
3380
3310
  };
3381
3311
  };
@@ -3466,6 +3396,9 @@ const loadRestJsonErrorCode = (output, data) => {
3466
3396
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3467
3397
  const sanitizeErrorCode = (rawValue) => {
3468
3398
  let cleanValue = rawValue;
3399
+ if (typeof cleanValue === "number") {
3400
+ cleanValue = cleanValue.toString();
3401
+ }
3469
3402
  if (cleanValue.indexOf(":") >= 0) {
3470
3403
  cleanValue = cleanValue.split(":")[0];
3471
3404
  }