@aws-sdk/client-application-insights 3.121.0 → 3.130.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-application-insights
20
+
21
+
22
+
23
+
24
+
25
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-application-insights
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
34
 
8
35
 
@@ -1529,176 +1529,147 @@ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, c
1529
1529
  };
1530
1530
  const serializeAws_json1_1CreateApplicationRequest = (input, context) => {
1531
1531
  return {
1532
- ...(input.AutoConfigEnabled !== undefined &&
1533
- input.AutoConfigEnabled !== null && { AutoConfigEnabled: input.AutoConfigEnabled }),
1534
- ...(input.AutoCreate !== undefined && input.AutoCreate !== null && { AutoCreate: input.AutoCreate }),
1535
- ...(input.CWEMonitorEnabled !== undefined &&
1536
- input.CWEMonitorEnabled !== null && { CWEMonitorEnabled: input.CWEMonitorEnabled }),
1537
- ...(input.GroupingType !== undefined && input.GroupingType !== null && { GroupingType: input.GroupingType }),
1538
- ...(input.OpsCenterEnabled !== undefined &&
1539
- input.OpsCenterEnabled !== null && { OpsCenterEnabled: input.OpsCenterEnabled }),
1540
- ...(input.OpsItemSNSTopicArn !== undefined &&
1541
- input.OpsItemSNSTopicArn !== null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn }),
1542
- ...(input.ResourceGroupName !== undefined &&
1543
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1544
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
1532
+ ...(input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled }),
1533
+ ...(input.AutoCreate != null && { AutoCreate: input.AutoCreate }),
1534
+ ...(input.CWEMonitorEnabled != null && { CWEMonitorEnabled: input.CWEMonitorEnabled }),
1535
+ ...(input.GroupingType != null && { GroupingType: input.GroupingType }),
1536
+ ...(input.OpsCenterEnabled != null && { OpsCenterEnabled: input.OpsCenterEnabled }),
1537
+ ...(input.OpsItemSNSTopicArn != null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn }),
1538
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1539
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
1545
1540
  };
1546
1541
  };
1547
1542
  const serializeAws_json1_1CreateComponentRequest = (input, context) => {
1548
1543
  return {
1549
- ...(input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName }),
1550
- ...(input.ResourceGroupName !== undefined &&
1551
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1552
- ...(input.ResourceList !== undefined &&
1553
- input.ResourceList !== null && { ResourceList: serializeAws_json1_1ResourceList(input.ResourceList, context) }),
1544
+ ...(input.ComponentName != null && { ComponentName: input.ComponentName }),
1545
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1546
+ ...(input.ResourceList != null && { ResourceList: serializeAws_json1_1ResourceList(input.ResourceList, context) }),
1554
1547
  };
1555
1548
  };
1556
1549
  const serializeAws_json1_1CreateLogPatternRequest = (input, context) => {
1557
1550
  return {
1558
- ...(input.Pattern !== undefined && input.Pattern !== null && { Pattern: input.Pattern }),
1559
- ...(input.PatternName !== undefined && input.PatternName !== null && { PatternName: input.PatternName }),
1560
- ...(input.PatternSetName !== undefined &&
1561
- input.PatternSetName !== null && { PatternSetName: input.PatternSetName }),
1562
- ...(input.Rank !== undefined && input.Rank !== null && { Rank: input.Rank }),
1563
- ...(input.ResourceGroupName !== undefined &&
1564
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1551
+ ...(input.Pattern != null && { Pattern: input.Pattern }),
1552
+ ...(input.PatternName != null && { PatternName: input.PatternName }),
1553
+ ...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
1554
+ ...(input.Rank != null && { Rank: input.Rank }),
1555
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1565
1556
  };
1566
1557
  };
1567
1558
  const serializeAws_json1_1DeleteApplicationRequest = (input, context) => {
1568
1559
  return {
1569
- ...(input.ResourceGroupName !== undefined &&
1570
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1560
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1571
1561
  };
1572
1562
  };
1573
1563
  const serializeAws_json1_1DeleteComponentRequest = (input, context) => {
1574
1564
  return {
1575
- ...(input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName }),
1576
- ...(input.ResourceGroupName !== undefined &&
1577
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1565
+ ...(input.ComponentName != null && { ComponentName: input.ComponentName }),
1566
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1578
1567
  };
1579
1568
  };
1580
1569
  const serializeAws_json1_1DeleteLogPatternRequest = (input, context) => {
1581
1570
  return {
1582
- ...(input.PatternName !== undefined && input.PatternName !== null && { PatternName: input.PatternName }),
1583
- ...(input.PatternSetName !== undefined &&
1584
- input.PatternSetName !== null && { PatternSetName: input.PatternSetName }),
1585
- ...(input.ResourceGroupName !== undefined &&
1586
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1571
+ ...(input.PatternName != null && { PatternName: input.PatternName }),
1572
+ ...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
1573
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1587
1574
  };
1588
1575
  };
1589
1576
  const serializeAws_json1_1DescribeApplicationRequest = (input, context) => {
1590
1577
  return {
1591
- ...(input.ResourceGroupName !== undefined &&
1592
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1578
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1593
1579
  };
1594
1580
  };
1595
1581
  const serializeAws_json1_1DescribeComponentConfigurationRecommendationRequest = (input, context) => {
1596
1582
  return {
1597
- ...(input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName }),
1598
- ...(input.ResourceGroupName !== undefined &&
1599
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1600
- ...(input.Tier !== undefined && input.Tier !== null && { Tier: input.Tier }),
1583
+ ...(input.ComponentName != null && { ComponentName: input.ComponentName }),
1584
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1585
+ ...(input.Tier != null && { Tier: input.Tier }),
1601
1586
  };
1602
1587
  };
1603
1588
  const serializeAws_json1_1DescribeComponentConfigurationRequest = (input, context) => {
1604
1589
  return {
1605
- ...(input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName }),
1606
- ...(input.ResourceGroupName !== undefined &&
1607
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1590
+ ...(input.ComponentName != null && { ComponentName: input.ComponentName }),
1591
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1608
1592
  };
1609
1593
  };
1610
1594
  const serializeAws_json1_1DescribeComponentRequest = (input, context) => {
1611
1595
  return {
1612
- ...(input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName }),
1613
- ...(input.ResourceGroupName !== undefined &&
1614
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1596
+ ...(input.ComponentName != null && { ComponentName: input.ComponentName }),
1597
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1615
1598
  };
1616
1599
  };
1617
1600
  const serializeAws_json1_1DescribeLogPatternRequest = (input, context) => {
1618
1601
  return {
1619
- ...(input.PatternName !== undefined && input.PatternName !== null && { PatternName: input.PatternName }),
1620
- ...(input.PatternSetName !== undefined &&
1621
- input.PatternSetName !== null && { PatternSetName: input.PatternSetName }),
1622
- ...(input.ResourceGroupName !== undefined &&
1623
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1602
+ ...(input.PatternName != null && { PatternName: input.PatternName }),
1603
+ ...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
1604
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1624
1605
  };
1625
1606
  };
1626
1607
  const serializeAws_json1_1DescribeObservationRequest = (input, context) => {
1627
1608
  return {
1628
- ...(input.ObservationId !== undefined && input.ObservationId !== null && { ObservationId: input.ObservationId }),
1609
+ ...(input.ObservationId != null && { ObservationId: input.ObservationId }),
1629
1610
  };
1630
1611
  };
1631
1612
  const serializeAws_json1_1DescribeProblemObservationsRequest = (input, context) => {
1632
1613
  return {
1633
- ...(input.ProblemId !== undefined && input.ProblemId !== null && { ProblemId: input.ProblemId }),
1614
+ ...(input.ProblemId != null && { ProblemId: input.ProblemId }),
1634
1615
  };
1635
1616
  };
1636
1617
  const serializeAws_json1_1DescribeProblemRequest = (input, context) => {
1637
1618
  return {
1638
- ...(input.ProblemId !== undefined && input.ProblemId !== null && { ProblemId: input.ProblemId }),
1619
+ ...(input.ProblemId != null && { ProblemId: input.ProblemId }),
1639
1620
  };
1640
1621
  };
1641
1622
  const serializeAws_json1_1ListApplicationsRequest = (input, context) => {
1642
1623
  return {
1643
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1644
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1624
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1625
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1645
1626
  };
1646
1627
  };
1647
1628
  const serializeAws_json1_1ListComponentsRequest = (input, context) => {
1648
1629
  return {
1649
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1650
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1651
- ...(input.ResourceGroupName !== undefined &&
1652
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1630
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1631
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1632
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1653
1633
  };
1654
1634
  };
1655
1635
  const serializeAws_json1_1ListConfigurationHistoryRequest = (input, context) => {
1656
1636
  return {
1657
- ...(input.EndTime !== undefined &&
1658
- input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
1659
- ...(input.EventStatus !== undefined && input.EventStatus !== null && { EventStatus: input.EventStatus }),
1660
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1661
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1662
- ...(input.ResourceGroupName !== undefined &&
1663
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1664
- ...(input.StartTime !== undefined &&
1665
- input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
1637
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
1638
+ ...(input.EventStatus != null && { EventStatus: input.EventStatus }),
1639
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1640
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1641
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1642
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
1666
1643
  };
1667
1644
  };
1668
1645
  const serializeAws_json1_1ListLogPatternSetsRequest = (input, context) => {
1669
1646
  return {
1670
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1671
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1672
- ...(input.ResourceGroupName !== undefined &&
1673
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1647
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1648
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1649
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1674
1650
  };
1675
1651
  };
1676
1652
  const serializeAws_json1_1ListLogPatternsRequest = (input, context) => {
1677
1653
  return {
1678
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1679
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1680
- ...(input.PatternSetName !== undefined &&
1681
- input.PatternSetName !== null && { PatternSetName: input.PatternSetName }),
1682
- ...(input.ResourceGroupName !== undefined &&
1683
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1654
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1655
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1656
+ ...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
1657
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1684
1658
  };
1685
1659
  };
1686
1660
  const serializeAws_json1_1ListProblemsRequest = (input, context) => {
1687
1661
  return {
1688
- ...(input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName }),
1689
- ...(input.EndTime !== undefined &&
1690
- input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
1691
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1692
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1693
- ...(input.ResourceGroupName !== undefined &&
1694
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1695
- ...(input.StartTime !== undefined &&
1696
- input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
1662
+ ...(input.ComponentName != null && { ComponentName: input.ComponentName }),
1663
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
1664
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1665
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1666
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1667
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
1697
1668
  };
1698
1669
  };
1699
1670
  const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
1700
1671
  return {
1701
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
1672
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1702
1673
  };
1703
1674
  };
1704
1675
  const serializeAws_json1_1ResourceList = (input, context) => {
@@ -1713,8 +1684,8 @@ const serializeAws_json1_1ResourceList = (input, context) => {
1713
1684
  };
1714
1685
  const serializeAws_json1_1Tag = (input, context) => {
1715
1686
  return {
1716
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
1717
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
1687
+ ...(input.Key != null && { Key: input.Key }),
1688
+ ...(input.Value != null && { Value: input.Value }),
1718
1689
  };
1719
1690
  };
1720
1691
  const serializeAws_json1_1TagKeyList = (input, context) => {
@@ -1739,66 +1710,51 @@ const serializeAws_json1_1TagList = (input, context) => {
1739
1710
  };
1740
1711
  const serializeAws_json1_1TagResourceRequest = (input, context) => {
1741
1712
  return {
1742
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
1743
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
1713
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1714
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
1744
1715
  };
1745
1716
  };
1746
1717
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
1747
1718
  return {
1748
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
1749
- ...(input.TagKeys !== undefined &&
1750
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
1719
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1720
+ ...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
1751
1721
  };
1752
1722
  };
1753
1723
  const serializeAws_json1_1UpdateApplicationRequest = (input, context) => {
1754
1724
  return {
1755
- ...(input.AutoConfigEnabled !== undefined &&
1756
- input.AutoConfigEnabled !== null && { AutoConfigEnabled: input.AutoConfigEnabled }),
1757
- ...(input.CWEMonitorEnabled !== undefined &&
1758
- input.CWEMonitorEnabled !== null && { CWEMonitorEnabled: input.CWEMonitorEnabled }),
1759
- ...(input.OpsCenterEnabled !== undefined &&
1760
- input.OpsCenterEnabled !== null && { OpsCenterEnabled: input.OpsCenterEnabled }),
1761
- ...(input.OpsItemSNSTopicArn !== undefined &&
1762
- input.OpsItemSNSTopicArn !== null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn }),
1763
- ...(input.RemoveSNSTopic !== undefined &&
1764
- input.RemoveSNSTopic !== null && { RemoveSNSTopic: input.RemoveSNSTopic }),
1765
- ...(input.ResourceGroupName !== undefined &&
1766
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1725
+ ...(input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled }),
1726
+ ...(input.CWEMonitorEnabled != null && { CWEMonitorEnabled: input.CWEMonitorEnabled }),
1727
+ ...(input.OpsCenterEnabled != null && { OpsCenterEnabled: input.OpsCenterEnabled }),
1728
+ ...(input.OpsItemSNSTopicArn != null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn }),
1729
+ ...(input.RemoveSNSTopic != null && { RemoveSNSTopic: input.RemoveSNSTopic }),
1730
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1767
1731
  };
1768
1732
  };
1769
1733
  const serializeAws_json1_1UpdateComponentConfigurationRequest = (input, context) => {
1770
1734
  return {
1771
- ...(input.AutoConfigEnabled !== undefined &&
1772
- input.AutoConfigEnabled !== null && { AutoConfigEnabled: input.AutoConfigEnabled }),
1773
- ...(input.ComponentConfiguration !== undefined &&
1774
- input.ComponentConfiguration !== null && { ComponentConfiguration: input.ComponentConfiguration }),
1775
- ...(input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName }),
1776
- ...(input.Monitor !== undefined && input.Monitor !== null && { Monitor: input.Monitor }),
1777
- ...(input.ResourceGroupName !== undefined &&
1778
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1779
- ...(input.Tier !== undefined && input.Tier !== null && { Tier: input.Tier }),
1735
+ ...(input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled }),
1736
+ ...(input.ComponentConfiguration != null && { ComponentConfiguration: input.ComponentConfiguration }),
1737
+ ...(input.ComponentName != null && { ComponentName: input.ComponentName }),
1738
+ ...(input.Monitor != null && { Monitor: input.Monitor }),
1739
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1740
+ ...(input.Tier != null && { Tier: input.Tier }),
1780
1741
  };
1781
1742
  };
1782
1743
  const serializeAws_json1_1UpdateComponentRequest = (input, context) => {
1783
1744
  return {
1784
- ...(input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName }),
1785
- ...(input.NewComponentName !== undefined &&
1786
- input.NewComponentName !== null && { NewComponentName: input.NewComponentName }),
1787
- ...(input.ResourceGroupName !== undefined &&
1788
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1789
- ...(input.ResourceList !== undefined &&
1790
- input.ResourceList !== null && { ResourceList: serializeAws_json1_1ResourceList(input.ResourceList, context) }),
1745
+ ...(input.ComponentName != null && { ComponentName: input.ComponentName }),
1746
+ ...(input.NewComponentName != null && { NewComponentName: input.NewComponentName }),
1747
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1748
+ ...(input.ResourceList != null && { ResourceList: serializeAws_json1_1ResourceList(input.ResourceList, context) }),
1791
1749
  };
1792
1750
  };
1793
1751
  const serializeAws_json1_1UpdateLogPatternRequest = (input, context) => {
1794
1752
  return {
1795
- ...(input.Pattern !== undefined && input.Pattern !== null && { Pattern: input.Pattern }),
1796
- ...(input.PatternName !== undefined && input.PatternName !== null && { PatternName: input.PatternName }),
1797
- ...(input.PatternSetName !== undefined &&
1798
- input.PatternSetName !== null && { PatternSetName: input.PatternSetName }),
1799
- ...(input.Rank !== undefined && input.Rank !== null && { Rank: input.Rank }),
1800
- ...(input.ResourceGroupName !== undefined &&
1801
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
1753
+ ...(input.Pattern != null && { Pattern: input.Pattern }),
1754
+ ...(input.PatternName != null && { PatternName: input.PatternName }),
1755
+ ...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
1756
+ ...(input.Rank != null && { Rank: input.Rank }),
1757
+ ...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
1802
1758
  };
1803
1759
  };
1804
1760
  const deserializeAws_json1_1AccessDeniedException = (output, context) => {
@@ -1810,7 +1766,7 @@ const deserializeAws_json1_1ApplicationComponent = (output, context) => {
1810
1766
  return {
1811
1767
  ComponentName: (0, smithy_client_1.expectString)(output.ComponentName),
1812
1768
  ComponentRemarks: (0, smithy_client_1.expectString)(output.ComponentRemarks),
1813
- DetectedWorkload: output.DetectedWorkload !== undefined && output.DetectedWorkload !== null
1769
+ DetectedWorkload: output.DetectedWorkload != null
1814
1770
  ? deserializeAws_json1_1DetectedWorkload(output.DetectedWorkload, context)
1815
1771
  : undefined,
1816
1772
  Monitor: (0, smithy_client_1.expectBoolean)(output.Monitor),
@@ -1864,9 +1820,7 @@ const deserializeAws_json1_1ConfigurationEvent = (output, context) => {
1864
1820
  EventResourceName: (0, smithy_client_1.expectString)(output.EventResourceName),
1865
1821
  EventResourceType: (0, smithy_client_1.expectString)(output.EventResourceType),
1866
1822
  EventStatus: (0, smithy_client_1.expectString)(output.EventStatus),
1867
- EventTime: output.EventTime !== undefined && output.EventTime !== null
1868
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventTime)))
1869
- : undefined,
1823
+ EventTime: output.EventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventTime))) : undefined,
1870
1824
  MonitoredResourceARN: (0, smithy_client_1.expectString)(output.MonitoredResourceARN),
1871
1825
  };
1872
1826
  };
@@ -1883,7 +1837,7 @@ const deserializeAws_json1_1ConfigurationEventList = (output, context) => {
1883
1837
  };
1884
1838
  const deserializeAws_json1_1CreateApplicationResponse = (output, context) => {
1885
1839
  return {
1886
- ApplicationInfo: output.ApplicationInfo !== undefined && output.ApplicationInfo !== null
1840
+ ApplicationInfo: output.ApplicationInfo != null
1887
1841
  ? deserializeAws_json1_1ApplicationInfo(output.ApplicationInfo, context)
1888
1842
  : undefined,
1889
1843
  };
@@ -1893,9 +1847,7 @@ const deserializeAws_json1_1CreateComponentResponse = (output, context) => {
1893
1847
  };
1894
1848
  const deserializeAws_json1_1CreateLogPatternResponse = (output, context) => {
1895
1849
  return {
1896
- LogPattern: output.LogPattern !== undefined && output.LogPattern !== null
1897
- ? deserializeAws_json1_1LogPattern(output.LogPattern, context)
1898
- : undefined,
1850
+ LogPattern: output.LogPattern != null ? deserializeAws_json1_1LogPattern(output.LogPattern, context) : undefined,
1899
1851
  ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
1900
1852
  };
1901
1853
  };
@@ -1910,7 +1862,7 @@ const deserializeAws_json1_1DeleteLogPatternResponse = (output, context) => {
1910
1862
  };
1911
1863
  const deserializeAws_json1_1DescribeApplicationResponse = (output, context) => {
1912
1864
  return {
1913
- ApplicationInfo: output.ApplicationInfo !== undefined && output.ApplicationInfo !== null
1865
+ ApplicationInfo: output.ApplicationInfo != null
1914
1866
  ? deserializeAws_json1_1ApplicationInfo(output.ApplicationInfo, context)
1915
1867
  : undefined,
1916
1868
  };
@@ -1929,41 +1881,33 @@ const deserializeAws_json1_1DescribeComponentConfigurationResponse = (output, co
1929
1881
  };
1930
1882
  const deserializeAws_json1_1DescribeComponentResponse = (output, context) => {
1931
1883
  return {
1932
- ApplicationComponent: output.ApplicationComponent !== undefined && output.ApplicationComponent !== null
1884
+ ApplicationComponent: output.ApplicationComponent != null
1933
1885
  ? deserializeAws_json1_1ApplicationComponent(output.ApplicationComponent, context)
1934
1886
  : undefined,
1935
- ResourceList: output.ResourceList !== undefined && output.ResourceList !== null
1936
- ? deserializeAws_json1_1ResourceList(output.ResourceList, context)
1937
- : undefined,
1887
+ ResourceList: output.ResourceList != null ? deserializeAws_json1_1ResourceList(output.ResourceList, context) : undefined,
1938
1888
  };
1939
1889
  };
1940
1890
  const deserializeAws_json1_1DescribeLogPatternResponse = (output, context) => {
1941
1891
  return {
1942
- LogPattern: output.LogPattern !== undefined && output.LogPattern !== null
1943
- ? deserializeAws_json1_1LogPattern(output.LogPattern, context)
1944
- : undefined,
1892
+ LogPattern: output.LogPattern != null ? deserializeAws_json1_1LogPattern(output.LogPattern, context) : undefined,
1945
1893
  ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
1946
1894
  };
1947
1895
  };
1948
1896
  const deserializeAws_json1_1DescribeObservationResponse = (output, context) => {
1949
1897
  return {
1950
- Observation: output.Observation !== undefined && output.Observation !== null
1951
- ? deserializeAws_json1_1Observation(output.Observation, context)
1952
- : undefined,
1898
+ Observation: output.Observation != null ? deserializeAws_json1_1Observation(output.Observation, context) : undefined,
1953
1899
  };
1954
1900
  };
1955
1901
  const deserializeAws_json1_1DescribeProblemObservationsResponse = (output, context) => {
1956
1902
  return {
1957
- RelatedObservations: output.RelatedObservations !== undefined && output.RelatedObservations !== null
1903
+ RelatedObservations: output.RelatedObservations != null
1958
1904
  ? deserializeAws_json1_1RelatedObservations(output.RelatedObservations, context)
1959
1905
  : undefined,
1960
1906
  };
1961
1907
  };
1962
1908
  const deserializeAws_json1_1DescribeProblemResponse = (output, context) => {
1963
1909
  return {
1964
- Problem: output.Problem !== undefined && output.Problem !== null
1965
- ? deserializeAws_json1_1Problem(output.Problem, context)
1966
- : undefined,
1910
+ Problem: output.Problem != null ? deserializeAws_json1_1Problem(output.Problem, context) : undefined,
1967
1911
  };
1968
1912
  };
1969
1913
  const deserializeAws_json1_1DetectedWorkload = (output, context) => {
@@ -1995,7 +1939,7 @@ const deserializeAws_json1_1InternalServerException = (output, context) => {
1995
1939
  };
1996
1940
  const deserializeAws_json1_1ListApplicationsResponse = (output, context) => {
1997
1941
  return {
1998
- ApplicationInfoList: output.ApplicationInfoList !== undefined && output.ApplicationInfoList !== null
1942
+ ApplicationInfoList: output.ApplicationInfoList != null
1999
1943
  ? deserializeAws_json1_1ApplicationInfoList(output.ApplicationInfoList, context)
2000
1944
  : undefined,
2001
1945
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -2003,7 +1947,7 @@ const deserializeAws_json1_1ListApplicationsResponse = (output, context) => {
2003
1947
  };
2004
1948
  const deserializeAws_json1_1ListComponentsResponse = (output, context) => {
2005
1949
  return {
2006
- ApplicationComponentList: output.ApplicationComponentList !== undefined && output.ApplicationComponentList !== null
1950
+ ApplicationComponentList: output.ApplicationComponentList != null
2007
1951
  ? deserializeAws_json1_1ApplicationComponentList(output.ApplicationComponentList, context)
2008
1952
  : undefined,
2009
1953
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -2011,15 +1955,13 @@ const deserializeAws_json1_1ListComponentsResponse = (output, context) => {
2011
1955
  };
2012
1956
  const deserializeAws_json1_1ListConfigurationHistoryResponse = (output, context) => {
2013
1957
  return {
2014
- EventList: output.EventList !== undefined && output.EventList !== null
2015
- ? deserializeAws_json1_1ConfigurationEventList(output.EventList, context)
2016
- : undefined,
1958
+ EventList: output.EventList != null ? deserializeAws_json1_1ConfigurationEventList(output.EventList, context) : undefined,
2017
1959
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2018
1960
  };
2019
1961
  };
2020
1962
  const deserializeAws_json1_1ListLogPatternSetsResponse = (output, context) => {
2021
1963
  return {
2022
- LogPatternSets: output.LogPatternSets !== undefined && output.LogPatternSets !== null
1964
+ LogPatternSets: output.LogPatternSets != null
2023
1965
  ? deserializeAws_json1_1LogPatternSetList(output.LogPatternSets, context)
2024
1966
  : undefined,
2025
1967
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -2028,9 +1970,7 @@ const deserializeAws_json1_1ListLogPatternSetsResponse = (output, context) => {
2028
1970
  };
2029
1971
  const deserializeAws_json1_1ListLogPatternsResponse = (output, context) => {
2030
1972
  return {
2031
- LogPatterns: output.LogPatterns !== undefined && output.LogPatterns !== null
2032
- ? deserializeAws_json1_1LogPatternList(output.LogPatterns, context)
2033
- : undefined,
1973
+ LogPatterns: output.LogPatterns != null ? deserializeAws_json1_1LogPatternList(output.LogPatterns, context) : undefined,
2034
1974
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2035
1975
  ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
2036
1976
  };
@@ -2038,17 +1978,13 @@ const deserializeAws_json1_1ListLogPatternsResponse = (output, context) => {
2038
1978
  const deserializeAws_json1_1ListProblemsResponse = (output, context) => {
2039
1979
  return {
2040
1980
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2041
- ProblemList: output.ProblemList !== undefined && output.ProblemList !== null
2042
- ? deserializeAws_json1_1ProblemList(output.ProblemList, context)
2043
- : undefined,
1981
+ ProblemList: output.ProblemList != null ? deserializeAws_json1_1ProblemList(output.ProblemList, context) : undefined,
2044
1982
  ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
2045
1983
  };
2046
1984
  };
2047
1985
  const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
2048
1986
  return {
2049
- Tags: output.Tags !== undefined && output.Tags !== null
2050
- ? deserializeAws_json1_1TagList(output.Tags, context)
2051
- : undefined,
1987
+ Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
2052
1988
  };
2053
1989
  };
2054
1990
  const deserializeAws_json1_1LogPattern = (output, context) => {
@@ -2096,18 +2032,14 @@ const deserializeAws_json1_1Observation = (output, context) => {
2096
2032
  EbsRequestId: (0, smithy_client_1.expectString)(output.EbsRequestId),
2097
2033
  EbsResult: (0, smithy_client_1.expectString)(output.EbsResult),
2098
2034
  Ec2State: (0, smithy_client_1.expectString)(output.Ec2State),
2099
- EndTime: output.EndTime !== undefined && output.EndTime !== null
2100
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
2101
- : undefined,
2035
+ EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
2102
2036
  HealthEventArn: (0, smithy_client_1.expectString)(output.HealthEventArn),
2103
2037
  HealthEventDescription: (0, smithy_client_1.expectString)(output.HealthEventDescription),
2104
2038
  HealthEventTypeCategory: (0, smithy_client_1.expectString)(output.HealthEventTypeCategory),
2105
2039
  HealthEventTypeCode: (0, smithy_client_1.expectString)(output.HealthEventTypeCode),
2106
2040
  HealthService: (0, smithy_client_1.expectString)(output.HealthService),
2107
2041
  Id: (0, smithy_client_1.expectString)(output.Id),
2108
- LineTime: output.LineTime !== undefined && output.LineTime !== null
2109
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LineTime)))
2110
- : undefined,
2042
+ LineTime: output.LineTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LineTime))) : undefined,
2111
2043
  LogFilter: (0, smithy_client_1.expectString)(output.LogFilter),
2112
2044
  LogGroup: (0, smithy_client_1.expectString)(output.LogGroup),
2113
2045
  LogText: (0, smithy_client_1.expectString)(output.LogText),
@@ -2118,9 +2050,7 @@ const deserializeAws_json1_1Observation = (output, context) => {
2118
2050
  S3EventName: (0, smithy_client_1.expectString)(output.S3EventName),
2119
2051
  SourceARN: (0, smithy_client_1.expectString)(output.SourceARN),
2120
2052
  SourceType: (0, smithy_client_1.expectString)(output.SourceType),
2121
- StartTime: output.StartTime !== undefined && output.StartTime !== null
2122
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
2123
- : undefined,
2053
+ StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
2124
2054
  StatesArn: (0, smithy_client_1.expectString)(output.StatesArn),
2125
2055
  StatesExecutionArn: (0, smithy_client_1.expectString)(output.StatesExecutionArn),
2126
2056
  StatesInput: (0, smithy_client_1.expectString)(output.StatesInput),
@@ -2150,23 +2080,17 @@ const deserializeAws_json1_1ObservationList = (output, context) => {
2150
2080
  const deserializeAws_json1_1Problem = (output, context) => {
2151
2081
  return {
2152
2082
  AffectedResource: (0, smithy_client_1.expectString)(output.AffectedResource),
2153
- EndTime: output.EndTime !== undefined && output.EndTime !== null
2154
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
2155
- : undefined,
2156
- Feedback: output.Feedback !== undefined && output.Feedback !== null
2157
- ? deserializeAws_json1_1Feedback(output.Feedback, context)
2158
- : undefined,
2083
+ EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
2084
+ Feedback: output.Feedback != null ? deserializeAws_json1_1Feedback(output.Feedback, context) : undefined,
2159
2085
  Id: (0, smithy_client_1.expectString)(output.Id),
2160
2086
  Insights: (0, smithy_client_1.expectString)(output.Insights),
2161
- LastRecurrenceTime: output.LastRecurrenceTime !== undefined && output.LastRecurrenceTime !== null
2087
+ LastRecurrenceTime: output.LastRecurrenceTime != null
2162
2088
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastRecurrenceTime)))
2163
2089
  : undefined,
2164
2090
  RecurringCount: (0, smithy_client_1.expectLong)(output.RecurringCount),
2165
2091
  ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
2166
2092
  SeverityLevel: (0, smithy_client_1.expectString)(output.SeverityLevel),
2167
- StartTime: output.StartTime !== undefined && output.StartTime !== null
2168
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
2169
- : undefined,
2093
+ StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
2170
2094
  Status: (0, smithy_client_1.expectString)(output.Status),
2171
2095
  Title: (0, smithy_client_1.expectString)(output.Title),
2172
2096
  };
@@ -2184,7 +2108,7 @@ const deserializeAws_json1_1ProblemList = (output, context) => {
2184
2108
  };
2185
2109
  const deserializeAws_json1_1RelatedObservations = (output, context) => {
2186
2110
  return {
2187
- ObservationList: output.ObservationList !== undefined && output.ObservationList !== null
2111
+ ObservationList: output.ObservationList != null
2188
2112
  ? deserializeAws_json1_1ObservationList(output.ObservationList, context)
2189
2113
  : undefined,
2190
2114
  };
@@ -2246,7 +2170,7 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
2246
2170
  };
2247
2171
  const deserializeAws_json1_1UpdateApplicationResponse = (output, context) => {
2248
2172
  return {
2249
- ApplicationInfo: output.ApplicationInfo !== undefined && output.ApplicationInfo !== null
2173
+ ApplicationInfo: output.ApplicationInfo != null
2250
2174
  ? deserializeAws_json1_1ApplicationInfo(output.ApplicationInfo, context)
2251
2175
  : undefined,
2252
2176
  };
@@ -2259,9 +2183,7 @@ const deserializeAws_json1_1UpdateComponentResponse = (output, context) => {
2259
2183
  };
2260
2184
  const deserializeAws_json1_1UpdateLogPatternResponse = (output, context) => {
2261
2185
  return {
2262
- LogPattern: output.LogPattern !== undefined && output.LogPattern !== null
2263
- ? deserializeAws_json1_1LogPattern(output.LogPattern, context)
2264
- : undefined,
2186
+ LogPattern: output.LogPattern != null ? deserializeAws_json1_1LogPattern(output.LogPattern, context) : undefined,
2265
2187
  ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
2266
2188
  };
2267
2189
  };
@@ -2325,6 +2247,9 @@ const loadRestJsonErrorCode = (output, data) => {
2325
2247
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
2326
2248
  const sanitizeErrorCode = (rawValue) => {
2327
2249
  let cleanValue = rawValue;
2250
+ if (typeof cleanValue === "number") {
2251
+ cleanValue = cleanValue.toString();
2252
+ }
2328
2253
  if (cleanValue.indexOf(":") >= 0) {
2329
2254
  cleanValue = cleanValue.split(":")[0];
2330
2255
  }
@@ -1990,96 +1990,67 @@ var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput,
1990
1990
  });
1991
1991
  }); };
1992
1992
  var serializeAws_json1_1CreateApplicationRequest = function (input, context) {
1993
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoConfigEnabled !== undefined &&
1994
- input.AutoConfigEnabled !== null && { AutoConfigEnabled: input.AutoConfigEnabled })), (input.AutoCreate !== undefined && input.AutoCreate !== null && { AutoCreate: input.AutoCreate })), (input.CWEMonitorEnabled !== undefined &&
1995
- input.CWEMonitorEnabled !== null && { CWEMonitorEnabled: input.CWEMonitorEnabled })), (input.GroupingType !== undefined && input.GroupingType !== null && { GroupingType: input.GroupingType })), (input.OpsCenterEnabled !== undefined &&
1996
- input.OpsCenterEnabled !== null && { OpsCenterEnabled: input.OpsCenterEnabled })), (input.OpsItemSNSTopicArn !== undefined &&
1997
- input.OpsItemSNSTopicArn !== null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn })), (input.ResourceGroupName !== undefined &&
1998
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
1993
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled })), (input.AutoCreate != null && { AutoCreate: input.AutoCreate })), (input.CWEMonitorEnabled != null && { CWEMonitorEnabled: input.CWEMonitorEnabled })), (input.GroupingType != null && { GroupingType: input.GroupingType })), (input.OpsCenterEnabled != null && { OpsCenterEnabled: input.OpsCenterEnabled })), (input.OpsItemSNSTopicArn != null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
1999
1994
  };
2000
1995
  var serializeAws_json1_1CreateComponentRequest = function (input, context) {
2001
- return __assign(__assign(__assign({}, (input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName })), (input.ResourceGroupName !== undefined &&
2002
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName })), (input.ResourceList !== undefined &&
2003
- input.ResourceList !== null && { ResourceList: serializeAws_json1_1ResourceList(input.ResourceList, context) }));
1996
+ return __assign(__assign(__assign({}, (input.ComponentName != null && { ComponentName: input.ComponentName })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName })), (input.ResourceList != null && { ResourceList: serializeAws_json1_1ResourceList(input.ResourceList, context) }));
2004
1997
  };
2005
1998
  var serializeAws_json1_1CreateLogPatternRequest = function (input, context) {
2006
- return __assign(__assign(__assign(__assign(__assign({}, (input.Pattern !== undefined && input.Pattern !== null && { Pattern: input.Pattern })), (input.PatternName !== undefined && input.PatternName !== null && { PatternName: input.PatternName })), (input.PatternSetName !== undefined &&
2007
- input.PatternSetName !== null && { PatternSetName: input.PatternSetName })), (input.Rank !== undefined && input.Rank !== null && { Rank: input.Rank })), (input.ResourceGroupName !== undefined &&
2008
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }));
1999
+ return __assign(__assign(__assign(__assign(__assign({}, (input.Pattern != null && { Pattern: input.Pattern })), (input.PatternName != null && { PatternName: input.PatternName })), (input.PatternSetName != null && { PatternSetName: input.PatternSetName })), (input.Rank != null && { Rank: input.Rank })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
2009
2000
  };
2010
2001
  var serializeAws_json1_1DeleteApplicationRequest = function (input, context) {
2011
- return __assign({}, (input.ResourceGroupName !== undefined &&
2012
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }));
2002
+ return __assign({}, (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
2013
2003
  };
2014
2004
  var serializeAws_json1_1DeleteComponentRequest = function (input, context) {
2015
- return __assign(__assign({}, (input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName })), (input.ResourceGroupName !== undefined &&
2016
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }));
2005
+ return __assign(__assign({}, (input.ComponentName != null && { ComponentName: input.ComponentName })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
2017
2006
  };
2018
2007
  var serializeAws_json1_1DeleteLogPatternRequest = function (input, context) {
2019
- return __assign(__assign(__assign({}, (input.PatternName !== undefined && input.PatternName !== null && { PatternName: input.PatternName })), (input.PatternSetName !== undefined &&
2020
- input.PatternSetName !== null && { PatternSetName: input.PatternSetName })), (input.ResourceGroupName !== undefined &&
2021
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }));
2008
+ return __assign(__assign(__assign({}, (input.PatternName != null && { PatternName: input.PatternName })), (input.PatternSetName != null && { PatternSetName: input.PatternSetName })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
2022
2009
  };
2023
2010
  var serializeAws_json1_1DescribeApplicationRequest = function (input, context) {
2024
- return __assign({}, (input.ResourceGroupName !== undefined &&
2025
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }));
2011
+ return __assign({}, (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
2026
2012
  };
2027
2013
  var serializeAws_json1_1DescribeComponentConfigurationRecommendationRequest = function (input, context) {
2028
- return __assign(__assign(__assign({}, (input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName })), (input.ResourceGroupName !== undefined &&
2029
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName })), (input.Tier !== undefined && input.Tier !== null && { Tier: input.Tier }));
2014
+ return __assign(__assign(__assign({}, (input.ComponentName != null && { ComponentName: input.ComponentName })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName })), (input.Tier != null && { Tier: input.Tier }));
2030
2015
  };
2031
2016
  var serializeAws_json1_1DescribeComponentConfigurationRequest = function (input, context) {
2032
- return __assign(__assign({}, (input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName })), (input.ResourceGroupName !== undefined &&
2033
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }));
2017
+ return __assign(__assign({}, (input.ComponentName != null && { ComponentName: input.ComponentName })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
2034
2018
  };
2035
2019
  var serializeAws_json1_1DescribeComponentRequest = function (input, context) {
2036
- return __assign(__assign({}, (input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName })), (input.ResourceGroupName !== undefined &&
2037
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }));
2020
+ return __assign(__assign({}, (input.ComponentName != null && { ComponentName: input.ComponentName })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
2038
2021
  };
2039
2022
  var serializeAws_json1_1DescribeLogPatternRequest = function (input, context) {
2040
- return __assign(__assign(__assign({}, (input.PatternName !== undefined && input.PatternName !== null && { PatternName: input.PatternName })), (input.PatternSetName !== undefined &&
2041
- input.PatternSetName !== null && { PatternSetName: input.PatternSetName })), (input.ResourceGroupName !== undefined &&
2042
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }));
2023
+ return __assign(__assign(__assign({}, (input.PatternName != null && { PatternName: input.PatternName })), (input.PatternSetName != null && { PatternSetName: input.PatternSetName })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
2043
2024
  };
2044
2025
  var serializeAws_json1_1DescribeObservationRequest = function (input, context) {
2045
- return __assign({}, (input.ObservationId !== undefined && input.ObservationId !== null && { ObservationId: input.ObservationId }));
2026
+ return __assign({}, (input.ObservationId != null && { ObservationId: input.ObservationId }));
2046
2027
  };
2047
2028
  var serializeAws_json1_1DescribeProblemObservationsRequest = function (input, context) {
2048
- return __assign({}, (input.ProblemId !== undefined && input.ProblemId !== null && { ProblemId: input.ProblemId }));
2029
+ return __assign({}, (input.ProblemId != null && { ProblemId: input.ProblemId }));
2049
2030
  };
2050
2031
  var serializeAws_json1_1DescribeProblemRequest = function (input, context) {
2051
- return __assign({}, (input.ProblemId !== undefined && input.ProblemId !== null && { ProblemId: input.ProblemId }));
2032
+ return __assign({}, (input.ProblemId != null && { ProblemId: input.ProblemId }));
2052
2033
  };
2053
2034
  var serializeAws_json1_1ListApplicationsRequest = function (input, context) {
2054
- return __assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2035
+ return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2055
2036
  };
2056
2037
  var serializeAws_json1_1ListComponentsRequest = function (input, context) {
2057
- return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ResourceGroupName !== undefined &&
2058
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }));
2038
+ return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
2059
2039
  };
2060
2040
  var serializeAws_json1_1ListConfigurationHistoryRequest = function (input, context) {
2061
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.EndTime !== undefined &&
2062
- input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.EventStatus !== undefined && input.EventStatus !== null && { EventStatus: input.EventStatus })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ResourceGroupName !== undefined &&
2063
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName })), (input.StartTime !== undefined &&
2064
- input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
2041
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.EventStatus != null && { EventStatus: input.EventStatus })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
2065
2042
  };
2066
2043
  var serializeAws_json1_1ListLogPatternSetsRequest = function (input, context) {
2067
- return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ResourceGroupName !== undefined &&
2068
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }));
2044
+ return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
2069
2045
  };
2070
2046
  var serializeAws_json1_1ListLogPatternsRequest = function (input, context) {
2071
- return __assign(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.PatternSetName !== undefined &&
2072
- input.PatternSetName !== null && { PatternSetName: input.PatternSetName })), (input.ResourceGroupName !== undefined &&
2073
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }));
2047
+ return __assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.PatternSetName != null && { PatternSetName: input.PatternSetName })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
2074
2048
  };
2075
2049
  var serializeAws_json1_1ListProblemsRequest = function (input, context) {
2076
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName })), (input.EndTime !== undefined &&
2077
- input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ResourceGroupName !== undefined &&
2078
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName })), (input.StartTime !== undefined &&
2079
- input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
2050
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ComponentName != null && { ComponentName: input.ComponentName })), (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
2080
2051
  };
2081
2052
  var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
2082
- return __assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }));
2053
+ return __assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN }));
2083
2054
  };
2084
2055
  var serializeAws_json1_1ResourceList = function (input, context) {
2085
2056
  return input
@@ -2092,7 +2063,7 @@ var serializeAws_json1_1ResourceList = function (input, context) {
2092
2063
  });
2093
2064
  };
2094
2065
  var serializeAws_json1_1Tag = function (input, context) {
2095
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
2066
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
2096
2067
  };
2097
2068
  var serializeAws_json1_1TagKeyList = function (input, context) {
2098
2069
  return input
@@ -2115,37 +2086,22 @@ var serializeAws_json1_1TagList = function (input, context) {
2115
2086
  });
2116
2087
  };
2117
2088
  var serializeAws_json1_1TagResourceRequest = function (input, context) {
2118
- return __assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
2089
+ return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
2119
2090
  };
2120
2091
  var serializeAws_json1_1UntagResourceRequest = function (input, context) {
2121
- return __assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.TagKeys !== undefined &&
2122
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
2092
+ return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
2123
2093
  };
2124
2094
  var serializeAws_json1_1UpdateApplicationRequest = function (input, context) {
2125
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoConfigEnabled !== undefined &&
2126
- input.AutoConfigEnabled !== null && { AutoConfigEnabled: input.AutoConfigEnabled })), (input.CWEMonitorEnabled !== undefined &&
2127
- input.CWEMonitorEnabled !== null && { CWEMonitorEnabled: input.CWEMonitorEnabled })), (input.OpsCenterEnabled !== undefined &&
2128
- input.OpsCenterEnabled !== null && { OpsCenterEnabled: input.OpsCenterEnabled })), (input.OpsItemSNSTopicArn !== undefined &&
2129
- input.OpsItemSNSTopicArn !== null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn })), (input.RemoveSNSTopic !== undefined &&
2130
- input.RemoveSNSTopic !== null && { RemoveSNSTopic: input.RemoveSNSTopic })), (input.ResourceGroupName !== undefined &&
2131
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }));
2095
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled })), (input.CWEMonitorEnabled != null && { CWEMonitorEnabled: input.CWEMonitorEnabled })), (input.OpsCenterEnabled != null && { OpsCenterEnabled: input.OpsCenterEnabled })), (input.OpsItemSNSTopicArn != null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn })), (input.RemoveSNSTopic != null && { RemoveSNSTopic: input.RemoveSNSTopic })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
2132
2096
  };
2133
2097
  var serializeAws_json1_1UpdateComponentConfigurationRequest = function (input, context) {
2134
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoConfigEnabled !== undefined &&
2135
- input.AutoConfigEnabled !== null && { AutoConfigEnabled: input.AutoConfigEnabled })), (input.ComponentConfiguration !== undefined &&
2136
- input.ComponentConfiguration !== null && { ComponentConfiguration: input.ComponentConfiguration })), (input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName })), (input.Monitor !== undefined && input.Monitor !== null && { Monitor: input.Monitor })), (input.ResourceGroupName !== undefined &&
2137
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName })), (input.Tier !== undefined && input.Tier !== null && { Tier: input.Tier }));
2098
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled })), (input.ComponentConfiguration != null && { ComponentConfiguration: input.ComponentConfiguration })), (input.ComponentName != null && { ComponentName: input.ComponentName })), (input.Monitor != null && { Monitor: input.Monitor })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName })), (input.Tier != null && { Tier: input.Tier }));
2138
2099
  };
2139
2100
  var serializeAws_json1_1UpdateComponentRequest = function (input, context) {
2140
- return __assign(__assign(__assign(__assign({}, (input.ComponentName !== undefined && input.ComponentName !== null && { ComponentName: input.ComponentName })), (input.NewComponentName !== undefined &&
2141
- input.NewComponentName !== null && { NewComponentName: input.NewComponentName })), (input.ResourceGroupName !== undefined &&
2142
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName })), (input.ResourceList !== undefined &&
2143
- input.ResourceList !== null && { ResourceList: serializeAws_json1_1ResourceList(input.ResourceList, context) }));
2101
+ return __assign(__assign(__assign(__assign({}, (input.ComponentName != null && { ComponentName: input.ComponentName })), (input.NewComponentName != null && { NewComponentName: input.NewComponentName })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName })), (input.ResourceList != null && { ResourceList: serializeAws_json1_1ResourceList(input.ResourceList, context) }));
2144
2102
  };
2145
2103
  var serializeAws_json1_1UpdateLogPatternRequest = function (input, context) {
2146
- return __assign(__assign(__assign(__assign(__assign({}, (input.Pattern !== undefined && input.Pattern !== null && { Pattern: input.Pattern })), (input.PatternName !== undefined && input.PatternName !== null && { PatternName: input.PatternName })), (input.PatternSetName !== undefined &&
2147
- input.PatternSetName !== null && { PatternSetName: input.PatternSetName })), (input.Rank !== undefined && input.Rank !== null && { Rank: input.Rank })), (input.ResourceGroupName !== undefined &&
2148
- input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }));
2104
+ return __assign(__assign(__assign(__assign(__assign({}, (input.Pattern != null && { Pattern: input.Pattern })), (input.PatternName != null && { PatternName: input.PatternName })), (input.PatternSetName != null && { PatternSetName: input.PatternSetName })), (input.Rank != null && { Rank: input.Rank })), (input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }));
2149
2105
  };
2150
2106
  var deserializeAws_json1_1AccessDeniedException = function (output, context) {
2151
2107
  return {
@@ -2156,7 +2112,7 @@ var deserializeAws_json1_1ApplicationComponent = function (output, context) {
2156
2112
  return {
2157
2113
  ComponentName: __expectString(output.ComponentName),
2158
2114
  ComponentRemarks: __expectString(output.ComponentRemarks),
2159
- DetectedWorkload: output.DetectedWorkload !== undefined && output.DetectedWorkload !== null
2115
+ DetectedWorkload: output.DetectedWorkload != null
2160
2116
  ? deserializeAws_json1_1DetectedWorkload(output.DetectedWorkload, context)
2161
2117
  : undefined,
2162
2118
  Monitor: __expectBoolean(output.Monitor),
@@ -2210,9 +2166,7 @@ var deserializeAws_json1_1ConfigurationEvent = function (output, context) {
2210
2166
  EventResourceName: __expectString(output.EventResourceName),
2211
2167
  EventResourceType: __expectString(output.EventResourceType),
2212
2168
  EventStatus: __expectString(output.EventStatus),
2213
- EventTime: output.EventTime !== undefined && output.EventTime !== null
2214
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EventTime)))
2215
- : undefined,
2169
+ EventTime: output.EventTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EventTime))) : undefined,
2216
2170
  MonitoredResourceARN: __expectString(output.MonitoredResourceARN),
2217
2171
  };
2218
2172
  };
@@ -2229,7 +2183,7 @@ var deserializeAws_json1_1ConfigurationEventList = function (output, context) {
2229
2183
  };
2230
2184
  var deserializeAws_json1_1CreateApplicationResponse = function (output, context) {
2231
2185
  return {
2232
- ApplicationInfo: output.ApplicationInfo !== undefined && output.ApplicationInfo !== null
2186
+ ApplicationInfo: output.ApplicationInfo != null
2233
2187
  ? deserializeAws_json1_1ApplicationInfo(output.ApplicationInfo, context)
2234
2188
  : undefined,
2235
2189
  };
@@ -2239,9 +2193,7 @@ var deserializeAws_json1_1CreateComponentResponse = function (output, context) {
2239
2193
  };
2240
2194
  var deserializeAws_json1_1CreateLogPatternResponse = function (output, context) {
2241
2195
  return {
2242
- LogPattern: output.LogPattern !== undefined && output.LogPattern !== null
2243
- ? deserializeAws_json1_1LogPattern(output.LogPattern, context)
2244
- : undefined,
2196
+ LogPattern: output.LogPattern != null ? deserializeAws_json1_1LogPattern(output.LogPattern, context) : undefined,
2245
2197
  ResourceGroupName: __expectString(output.ResourceGroupName),
2246
2198
  };
2247
2199
  };
@@ -2256,7 +2208,7 @@ var deserializeAws_json1_1DeleteLogPatternResponse = function (output, context)
2256
2208
  };
2257
2209
  var deserializeAws_json1_1DescribeApplicationResponse = function (output, context) {
2258
2210
  return {
2259
- ApplicationInfo: output.ApplicationInfo !== undefined && output.ApplicationInfo !== null
2211
+ ApplicationInfo: output.ApplicationInfo != null
2260
2212
  ? deserializeAws_json1_1ApplicationInfo(output.ApplicationInfo, context)
2261
2213
  : undefined,
2262
2214
  };
@@ -2275,41 +2227,33 @@ var deserializeAws_json1_1DescribeComponentConfigurationResponse = function (out
2275
2227
  };
2276
2228
  var deserializeAws_json1_1DescribeComponentResponse = function (output, context) {
2277
2229
  return {
2278
- ApplicationComponent: output.ApplicationComponent !== undefined && output.ApplicationComponent !== null
2230
+ ApplicationComponent: output.ApplicationComponent != null
2279
2231
  ? deserializeAws_json1_1ApplicationComponent(output.ApplicationComponent, context)
2280
2232
  : undefined,
2281
- ResourceList: output.ResourceList !== undefined && output.ResourceList !== null
2282
- ? deserializeAws_json1_1ResourceList(output.ResourceList, context)
2283
- : undefined,
2233
+ ResourceList: output.ResourceList != null ? deserializeAws_json1_1ResourceList(output.ResourceList, context) : undefined,
2284
2234
  };
2285
2235
  };
2286
2236
  var deserializeAws_json1_1DescribeLogPatternResponse = function (output, context) {
2287
2237
  return {
2288
- LogPattern: output.LogPattern !== undefined && output.LogPattern !== null
2289
- ? deserializeAws_json1_1LogPattern(output.LogPattern, context)
2290
- : undefined,
2238
+ LogPattern: output.LogPattern != null ? deserializeAws_json1_1LogPattern(output.LogPattern, context) : undefined,
2291
2239
  ResourceGroupName: __expectString(output.ResourceGroupName),
2292
2240
  };
2293
2241
  };
2294
2242
  var deserializeAws_json1_1DescribeObservationResponse = function (output, context) {
2295
2243
  return {
2296
- Observation: output.Observation !== undefined && output.Observation !== null
2297
- ? deserializeAws_json1_1Observation(output.Observation, context)
2298
- : undefined,
2244
+ Observation: output.Observation != null ? deserializeAws_json1_1Observation(output.Observation, context) : undefined,
2299
2245
  };
2300
2246
  };
2301
2247
  var deserializeAws_json1_1DescribeProblemObservationsResponse = function (output, context) {
2302
2248
  return {
2303
- RelatedObservations: output.RelatedObservations !== undefined && output.RelatedObservations !== null
2249
+ RelatedObservations: output.RelatedObservations != null
2304
2250
  ? deserializeAws_json1_1RelatedObservations(output.RelatedObservations, context)
2305
2251
  : undefined,
2306
2252
  };
2307
2253
  };
2308
2254
  var deserializeAws_json1_1DescribeProblemResponse = function (output, context) {
2309
2255
  return {
2310
- Problem: output.Problem !== undefined && output.Problem !== null
2311
- ? deserializeAws_json1_1Problem(output.Problem, context)
2312
- : undefined,
2256
+ Problem: output.Problem != null ? deserializeAws_json1_1Problem(output.Problem, context) : undefined,
2313
2257
  };
2314
2258
  };
2315
2259
  var deserializeAws_json1_1DetectedWorkload = function (output, context) {
@@ -2339,7 +2283,7 @@ var deserializeAws_json1_1InternalServerException = function (output, context) {
2339
2283
  };
2340
2284
  var deserializeAws_json1_1ListApplicationsResponse = function (output, context) {
2341
2285
  return {
2342
- ApplicationInfoList: output.ApplicationInfoList !== undefined && output.ApplicationInfoList !== null
2286
+ ApplicationInfoList: output.ApplicationInfoList != null
2343
2287
  ? deserializeAws_json1_1ApplicationInfoList(output.ApplicationInfoList, context)
2344
2288
  : undefined,
2345
2289
  NextToken: __expectString(output.NextToken),
@@ -2347,7 +2291,7 @@ var deserializeAws_json1_1ListApplicationsResponse = function (output, context)
2347
2291
  };
2348
2292
  var deserializeAws_json1_1ListComponentsResponse = function (output, context) {
2349
2293
  return {
2350
- ApplicationComponentList: output.ApplicationComponentList !== undefined && output.ApplicationComponentList !== null
2294
+ ApplicationComponentList: output.ApplicationComponentList != null
2351
2295
  ? deserializeAws_json1_1ApplicationComponentList(output.ApplicationComponentList, context)
2352
2296
  : undefined,
2353
2297
  NextToken: __expectString(output.NextToken),
@@ -2355,15 +2299,13 @@ var deserializeAws_json1_1ListComponentsResponse = function (output, context) {
2355
2299
  };
2356
2300
  var deserializeAws_json1_1ListConfigurationHistoryResponse = function (output, context) {
2357
2301
  return {
2358
- EventList: output.EventList !== undefined && output.EventList !== null
2359
- ? deserializeAws_json1_1ConfigurationEventList(output.EventList, context)
2360
- : undefined,
2302
+ EventList: output.EventList != null ? deserializeAws_json1_1ConfigurationEventList(output.EventList, context) : undefined,
2361
2303
  NextToken: __expectString(output.NextToken),
2362
2304
  };
2363
2305
  };
2364
2306
  var deserializeAws_json1_1ListLogPatternSetsResponse = function (output, context) {
2365
2307
  return {
2366
- LogPatternSets: output.LogPatternSets !== undefined && output.LogPatternSets !== null
2308
+ LogPatternSets: output.LogPatternSets != null
2367
2309
  ? deserializeAws_json1_1LogPatternSetList(output.LogPatternSets, context)
2368
2310
  : undefined,
2369
2311
  NextToken: __expectString(output.NextToken),
@@ -2372,9 +2314,7 @@ var deserializeAws_json1_1ListLogPatternSetsResponse = function (output, context
2372
2314
  };
2373
2315
  var deserializeAws_json1_1ListLogPatternsResponse = function (output, context) {
2374
2316
  return {
2375
- LogPatterns: output.LogPatterns !== undefined && output.LogPatterns !== null
2376
- ? deserializeAws_json1_1LogPatternList(output.LogPatterns, context)
2377
- : undefined,
2317
+ LogPatterns: output.LogPatterns != null ? deserializeAws_json1_1LogPatternList(output.LogPatterns, context) : undefined,
2378
2318
  NextToken: __expectString(output.NextToken),
2379
2319
  ResourceGroupName: __expectString(output.ResourceGroupName),
2380
2320
  };
@@ -2382,17 +2322,13 @@ var deserializeAws_json1_1ListLogPatternsResponse = function (output, context) {
2382
2322
  var deserializeAws_json1_1ListProblemsResponse = function (output, context) {
2383
2323
  return {
2384
2324
  NextToken: __expectString(output.NextToken),
2385
- ProblemList: output.ProblemList !== undefined && output.ProblemList !== null
2386
- ? deserializeAws_json1_1ProblemList(output.ProblemList, context)
2387
- : undefined,
2325
+ ProblemList: output.ProblemList != null ? deserializeAws_json1_1ProblemList(output.ProblemList, context) : undefined,
2388
2326
  ResourceGroupName: __expectString(output.ResourceGroupName),
2389
2327
  };
2390
2328
  };
2391
2329
  var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
2392
2330
  return {
2393
- Tags: output.Tags !== undefined && output.Tags !== null
2394
- ? deserializeAws_json1_1TagList(output.Tags, context)
2395
- : undefined,
2331
+ Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
2396
2332
  };
2397
2333
  };
2398
2334
  var deserializeAws_json1_1LogPattern = function (output, context) {
@@ -2440,18 +2376,14 @@ var deserializeAws_json1_1Observation = function (output, context) {
2440
2376
  EbsRequestId: __expectString(output.EbsRequestId),
2441
2377
  EbsResult: __expectString(output.EbsResult),
2442
2378
  Ec2State: __expectString(output.Ec2State),
2443
- EndTime: output.EndTime !== undefined && output.EndTime !== null
2444
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
2445
- : undefined,
2379
+ EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
2446
2380
  HealthEventArn: __expectString(output.HealthEventArn),
2447
2381
  HealthEventDescription: __expectString(output.HealthEventDescription),
2448
2382
  HealthEventTypeCategory: __expectString(output.HealthEventTypeCategory),
2449
2383
  HealthEventTypeCode: __expectString(output.HealthEventTypeCode),
2450
2384
  HealthService: __expectString(output.HealthService),
2451
2385
  Id: __expectString(output.Id),
2452
- LineTime: output.LineTime !== undefined && output.LineTime !== null
2453
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LineTime)))
2454
- : undefined,
2386
+ LineTime: output.LineTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LineTime))) : undefined,
2455
2387
  LogFilter: __expectString(output.LogFilter),
2456
2388
  LogGroup: __expectString(output.LogGroup),
2457
2389
  LogText: __expectString(output.LogText),
@@ -2462,9 +2394,7 @@ var deserializeAws_json1_1Observation = function (output, context) {
2462
2394
  S3EventName: __expectString(output.S3EventName),
2463
2395
  SourceARN: __expectString(output.SourceARN),
2464
2396
  SourceType: __expectString(output.SourceType),
2465
- StartTime: output.StartTime !== undefined && output.StartTime !== null
2466
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
2467
- : undefined,
2397
+ StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
2468
2398
  StatesArn: __expectString(output.StatesArn),
2469
2399
  StatesExecutionArn: __expectString(output.StatesExecutionArn),
2470
2400
  StatesInput: __expectString(output.StatesInput),
@@ -2494,23 +2424,17 @@ var deserializeAws_json1_1ObservationList = function (output, context) {
2494
2424
  var deserializeAws_json1_1Problem = function (output, context) {
2495
2425
  return {
2496
2426
  AffectedResource: __expectString(output.AffectedResource),
2497
- EndTime: output.EndTime !== undefined && output.EndTime !== null
2498
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
2499
- : undefined,
2500
- Feedback: output.Feedback !== undefined && output.Feedback !== null
2501
- ? deserializeAws_json1_1Feedback(output.Feedback, context)
2502
- : undefined,
2427
+ EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
2428
+ Feedback: output.Feedback != null ? deserializeAws_json1_1Feedback(output.Feedback, context) : undefined,
2503
2429
  Id: __expectString(output.Id),
2504
2430
  Insights: __expectString(output.Insights),
2505
- LastRecurrenceTime: output.LastRecurrenceTime !== undefined && output.LastRecurrenceTime !== null
2431
+ LastRecurrenceTime: output.LastRecurrenceTime != null
2506
2432
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastRecurrenceTime)))
2507
2433
  : undefined,
2508
2434
  RecurringCount: __expectLong(output.RecurringCount),
2509
2435
  ResourceGroupName: __expectString(output.ResourceGroupName),
2510
2436
  SeverityLevel: __expectString(output.SeverityLevel),
2511
- StartTime: output.StartTime !== undefined && output.StartTime !== null
2512
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
2513
- : undefined,
2437
+ StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
2514
2438
  Status: __expectString(output.Status),
2515
2439
  Title: __expectString(output.Title),
2516
2440
  };
@@ -2528,7 +2452,7 @@ var deserializeAws_json1_1ProblemList = function (output, context) {
2528
2452
  };
2529
2453
  var deserializeAws_json1_1RelatedObservations = function (output, context) {
2530
2454
  return {
2531
- ObservationList: output.ObservationList !== undefined && output.ObservationList !== null
2455
+ ObservationList: output.ObservationList != null
2532
2456
  ? deserializeAws_json1_1ObservationList(output.ObservationList, context)
2533
2457
  : undefined,
2534
2458
  };
@@ -2590,7 +2514,7 @@ var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
2590
2514
  };
2591
2515
  var deserializeAws_json1_1UpdateApplicationResponse = function (output, context) {
2592
2516
  return {
2593
- ApplicationInfo: output.ApplicationInfo !== undefined && output.ApplicationInfo !== null
2517
+ ApplicationInfo: output.ApplicationInfo != null
2594
2518
  ? deserializeAws_json1_1ApplicationInfo(output.ApplicationInfo, context)
2595
2519
  : undefined,
2596
2520
  };
@@ -2603,9 +2527,7 @@ var deserializeAws_json1_1UpdateComponentResponse = function (output, context) {
2603
2527
  };
2604
2528
  var deserializeAws_json1_1UpdateLogPatternResponse = function (output, context) {
2605
2529
  return {
2606
- LogPattern: output.LogPattern !== undefined && output.LogPattern !== null
2607
- ? deserializeAws_json1_1LogPattern(output.LogPattern, context)
2608
- : undefined,
2530
+ LogPattern: output.LogPattern != null ? deserializeAws_json1_1LogPattern(output.LogPattern, context) : undefined,
2609
2531
  ResourceGroupName: __expectString(output.ResourceGroupName),
2610
2532
  };
2611
2533
  };
@@ -2680,6 +2602,9 @@ var loadRestJsonErrorCode = function (output, data) {
2680
2602
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
2681
2603
  var sanitizeErrorCode = function (rawValue) {
2682
2604
  var cleanValue = rawValue;
2605
+ if (typeof cleanValue === "number") {
2606
+ cleanValue = cleanValue.toString();
2607
+ }
2683
2608
  if (cleanValue.indexOf(":") >= 0) {
2684
2609
  cleanValue = cleanValue.split(":")[0];
2685
2610
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-application-insights",
3
3
  "description": "AWS SDK for JavaScript Application Insights Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.130.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1"