@aws-sdk/client-ssm-contacts 3.121.0 → 3.127.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,14 @@
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.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-ssm-contacts
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
15
 
8
16
 
@@ -1719,188 +1719,172 @@ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, c
1719
1719
  };
1720
1720
  const serializeAws_json1_1AcceptPageRequest = (input, context) => {
1721
1721
  return {
1722
- ...(input.AcceptCode !== undefined && input.AcceptCode !== null && { AcceptCode: input.AcceptCode }),
1723
- ...(input.AcceptCodeValidation !== undefined &&
1724
- input.AcceptCodeValidation !== null && { AcceptCodeValidation: input.AcceptCodeValidation }),
1725
- ...(input.AcceptType !== undefined && input.AcceptType !== null && { AcceptType: input.AcceptType }),
1726
- ...(input.ContactChannelId !== undefined &&
1727
- input.ContactChannelId !== null && { ContactChannelId: input.ContactChannelId }),
1728
- ...(input.Note !== undefined && input.Note !== null && { Note: input.Note }),
1729
- ...(input.PageId !== undefined && input.PageId !== null && { PageId: input.PageId }),
1722
+ ...(input.AcceptCode != null && { AcceptCode: input.AcceptCode }),
1723
+ ...(input.AcceptCodeValidation != null && { AcceptCodeValidation: input.AcceptCodeValidation }),
1724
+ ...(input.AcceptType != null && { AcceptType: input.AcceptType }),
1725
+ ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
1726
+ ...(input.Note != null && { Note: input.Note }),
1727
+ ...(input.PageId != null && { PageId: input.PageId }),
1730
1728
  };
1731
1729
  };
1732
1730
  const serializeAws_json1_1ActivateContactChannelRequest = (input, context) => {
1733
1731
  return {
1734
- ...(input.ActivationCode !== undefined &&
1735
- input.ActivationCode !== null && { ActivationCode: input.ActivationCode }),
1736
- ...(input.ContactChannelId !== undefined &&
1737
- input.ContactChannelId !== null && { ContactChannelId: input.ContactChannelId }),
1732
+ ...(input.ActivationCode != null && { ActivationCode: input.ActivationCode }),
1733
+ ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
1738
1734
  };
1739
1735
  };
1740
1736
  const serializeAws_json1_1ChannelTargetInfo = (input, context) => {
1741
1737
  return {
1742
- ...(input.ContactChannelId !== undefined &&
1743
- input.ContactChannelId !== null && { ContactChannelId: input.ContactChannelId }),
1744
- ...(input.RetryIntervalInMinutes !== undefined &&
1745
- input.RetryIntervalInMinutes !== null && { RetryIntervalInMinutes: input.RetryIntervalInMinutes }),
1738
+ ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
1739
+ ...(input.RetryIntervalInMinutes != null && { RetryIntervalInMinutes: input.RetryIntervalInMinutes }),
1746
1740
  };
1747
1741
  };
1748
1742
  const serializeAws_json1_1ContactChannelAddress = (input, context) => {
1749
1743
  return {
1750
- ...(input.SimpleAddress !== undefined && input.SimpleAddress !== null && { SimpleAddress: input.SimpleAddress }),
1744
+ ...(input.SimpleAddress != null && { SimpleAddress: input.SimpleAddress }),
1751
1745
  };
1752
1746
  };
1753
1747
  const serializeAws_json1_1ContactTargetInfo = (input, context) => {
1754
1748
  return {
1755
- ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
1756
- ...(input.IsEssential !== undefined && input.IsEssential !== null && { IsEssential: input.IsEssential }),
1749
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
1750
+ ...(input.IsEssential != null && { IsEssential: input.IsEssential }),
1757
1751
  };
1758
1752
  };
1759
1753
  const serializeAws_json1_1CreateContactChannelRequest = (input, context) => {
1760
1754
  var _a;
1761
1755
  return {
1762
- ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
1763
- ...(input.DeferActivation !== undefined &&
1764
- input.DeferActivation !== null && { DeferActivation: input.DeferActivation }),
1765
- ...(input.DeliveryAddress !== undefined &&
1766
- input.DeliveryAddress !== null && {
1756
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
1757
+ ...(input.DeferActivation != null && { DeferActivation: input.DeferActivation }),
1758
+ ...(input.DeliveryAddress != null && {
1767
1759
  DeliveryAddress: serializeAws_json1_1ContactChannelAddress(input.DeliveryAddress, context),
1768
1760
  }),
1769
1761
  IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1770
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1771
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
1762
+ ...(input.Name != null && { Name: input.Name }),
1763
+ ...(input.Type != null && { Type: input.Type }),
1772
1764
  };
1773
1765
  };
1774
1766
  const serializeAws_json1_1CreateContactRequest = (input, context) => {
1775
1767
  var _a;
1776
1768
  return {
1777
- ...(input.Alias !== undefined && input.Alias !== null && { Alias: input.Alias }),
1778
- ...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
1769
+ ...(input.Alias != null && { Alias: input.Alias }),
1770
+ ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
1779
1771
  IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1780
- ...(input.Plan !== undefined && input.Plan !== null && { Plan: serializeAws_json1_1Plan(input.Plan, context) }),
1781
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagsList(input.Tags, context) }),
1782
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
1772
+ ...(input.Plan != null && { Plan: serializeAws_json1_1Plan(input.Plan, context) }),
1773
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagsList(input.Tags, context) }),
1774
+ ...(input.Type != null && { Type: input.Type }),
1783
1775
  };
1784
1776
  };
1785
1777
  const serializeAws_json1_1DeactivateContactChannelRequest = (input, context) => {
1786
1778
  return {
1787
- ...(input.ContactChannelId !== undefined &&
1788
- input.ContactChannelId !== null && { ContactChannelId: input.ContactChannelId }),
1779
+ ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
1789
1780
  };
1790
1781
  };
1791
1782
  const serializeAws_json1_1DeleteContactChannelRequest = (input, context) => {
1792
1783
  return {
1793
- ...(input.ContactChannelId !== undefined &&
1794
- input.ContactChannelId !== null && { ContactChannelId: input.ContactChannelId }),
1784
+ ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
1795
1785
  };
1796
1786
  };
1797
1787
  const serializeAws_json1_1DeleteContactRequest = (input, context) => {
1798
1788
  return {
1799
- ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
1789
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
1800
1790
  };
1801
1791
  };
1802
1792
  const serializeAws_json1_1DescribeEngagementRequest = (input, context) => {
1803
1793
  return {
1804
- ...(input.EngagementId !== undefined && input.EngagementId !== null && { EngagementId: input.EngagementId }),
1794
+ ...(input.EngagementId != null && { EngagementId: input.EngagementId }),
1805
1795
  };
1806
1796
  };
1807
1797
  const serializeAws_json1_1DescribePageRequest = (input, context) => {
1808
1798
  return {
1809
- ...(input.PageId !== undefined && input.PageId !== null && { PageId: input.PageId }),
1799
+ ...(input.PageId != null && { PageId: input.PageId }),
1810
1800
  };
1811
1801
  };
1812
1802
  const serializeAws_json1_1GetContactChannelRequest = (input, context) => {
1813
1803
  return {
1814
- ...(input.ContactChannelId !== undefined &&
1815
- input.ContactChannelId !== null && { ContactChannelId: input.ContactChannelId }),
1804
+ ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
1816
1805
  };
1817
1806
  };
1818
1807
  const serializeAws_json1_1GetContactPolicyRequest = (input, context) => {
1819
1808
  return {
1820
- ...(input.ContactArn !== undefined && input.ContactArn !== null && { ContactArn: input.ContactArn }),
1809
+ ...(input.ContactArn != null && { ContactArn: input.ContactArn }),
1821
1810
  };
1822
1811
  };
1823
1812
  const serializeAws_json1_1GetContactRequest = (input, context) => {
1824
1813
  return {
1825
- ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
1814
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
1826
1815
  };
1827
1816
  };
1828
1817
  const serializeAws_json1_1ListContactChannelsRequest = (input, context) => {
1829
1818
  return {
1830
- ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
1831
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1832
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1819
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
1820
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1821
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1833
1822
  };
1834
1823
  };
1835
1824
  const serializeAws_json1_1ListContactsRequest = (input, context) => {
1836
1825
  return {
1837
- ...(input.AliasPrefix !== undefined && input.AliasPrefix !== null && { AliasPrefix: input.AliasPrefix }),
1838
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1839
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1840
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
1826
+ ...(input.AliasPrefix != null && { AliasPrefix: input.AliasPrefix }),
1827
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1828
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1829
+ ...(input.Type != null && { Type: input.Type }),
1841
1830
  };
1842
1831
  };
1843
1832
  const serializeAws_json1_1ListEngagementsRequest = (input, context) => {
1844
1833
  return {
1845
- ...(input.IncidentId !== undefined && input.IncidentId !== null && { IncidentId: input.IncidentId }),
1846
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1847
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1848
- ...(input.TimeRangeValue !== undefined &&
1849
- input.TimeRangeValue !== null && {
1834
+ ...(input.IncidentId != null && { IncidentId: input.IncidentId }),
1835
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1836
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1837
+ ...(input.TimeRangeValue != null && {
1850
1838
  TimeRangeValue: serializeAws_json1_1TimeRange(input.TimeRangeValue, context),
1851
1839
  }),
1852
1840
  };
1853
1841
  };
1854
1842
  const serializeAws_json1_1ListPageReceiptsRequest = (input, context) => {
1855
1843
  return {
1856
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1857
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1858
- ...(input.PageId !== undefined && input.PageId !== null && { PageId: input.PageId }),
1844
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1845
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1846
+ ...(input.PageId != null && { PageId: input.PageId }),
1859
1847
  };
1860
1848
  };
1861
1849
  const serializeAws_json1_1ListPagesByContactRequest = (input, context) => {
1862
1850
  return {
1863
- ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
1864
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1865
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1851
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
1852
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1853
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1866
1854
  };
1867
1855
  };
1868
1856
  const serializeAws_json1_1ListPagesByEngagementRequest = (input, context) => {
1869
1857
  return {
1870
- ...(input.EngagementId !== undefined && input.EngagementId !== null && { EngagementId: input.EngagementId }),
1871
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1872
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1858
+ ...(input.EngagementId != null && { EngagementId: input.EngagementId }),
1859
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1860
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1873
1861
  };
1874
1862
  };
1875
1863
  const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
1876
1864
  return {
1877
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
1865
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1878
1866
  };
1879
1867
  };
1880
1868
  const serializeAws_json1_1Plan = (input, context) => {
1881
1869
  return {
1882
- ...(input.Stages !== undefined &&
1883
- input.Stages !== null && { Stages: serializeAws_json1_1StagesList(input.Stages, context) }),
1870
+ ...(input.Stages != null && { Stages: serializeAws_json1_1StagesList(input.Stages, context) }),
1884
1871
  };
1885
1872
  };
1886
1873
  const serializeAws_json1_1PutContactPolicyRequest = (input, context) => {
1887
1874
  return {
1888
- ...(input.ContactArn !== undefined && input.ContactArn !== null && { ContactArn: input.ContactArn }),
1889
- ...(input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy }),
1875
+ ...(input.ContactArn != null && { ContactArn: input.ContactArn }),
1876
+ ...(input.Policy != null && { Policy: input.Policy }),
1890
1877
  };
1891
1878
  };
1892
1879
  const serializeAws_json1_1SendActivationCodeRequest = (input, context) => {
1893
1880
  return {
1894
- ...(input.ContactChannelId !== undefined &&
1895
- input.ContactChannelId !== null && { ContactChannelId: input.ContactChannelId }),
1881
+ ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
1896
1882
  };
1897
1883
  };
1898
1884
  const serializeAws_json1_1Stage = (input, context) => {
1899
1885
  return {
1900
- ...(input.DurationInMinutes !== undefined &&
1901
- input.DurationInMinutes !== null && { DurationInMinutes: input.DurationInMinutes }),
1902
- ...(input.Targets !== undefined &&
1903
- input.Targets !== null && { Targets: serializeAws_json1_1TargetsList(input.Targets, context) }),
1886
+ ...(input.DurationInMinutes != null && { DurationInMinutes: input.DurationInMinutes }),
1887
+ ...(input.Targets != null && { Targets: serializeAws_json1_1TargetsList(input.Targets, context) }),
1904
1888
  };
1905
1889
  };
1906
1890
  const serializeAws_json1_1StagesList = (input, context) => {
@@ -1916,26 +1900,26 @@ const serializeAws_json1_1StagesList = (input, context) => {
1916
1900
  const serializeAws_json1_1StartEngagementRequest = (input, context) => {
1917
1901
  var _a;
1918
1902
  return {
1919
- ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
1920
- ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
1903
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
1904
+ ...(input.Content != null && { Content: input.Content }),
1921
1905
  IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1922
- ...(input.IncidentId !== undefined && input.IncidentId !== null && { IncidentId: input.IncidentId }),
1923
- ...(input.PublicContent !== undefined && input.PublicContent !== null && { PublicContent: input.PublicContent }),
1924
- ...(input.PublicSubject !== undefined && input.PublicSubject !== null && { PublicSubject: input.PublicSubject }),
1925
- ...(input.Sender !== undefined && input.Sender !== null && { Sender: input.Sender }),
1926
- ...(input.Subject !== undefined && input.Subject !== null && { Subject: input.Subject }),
1906
+ ...(input.IncidentId != null && { IncidentId: input.IncidentId }),
1907
+ ...(input.PublicContent != null && { PublicContent: input.PublicContent }),
1908
+ ...(input.PublicSubject != null && { PublicSubject: input.PublicSubject }),
1909
+ ...(input.Sender != null && { Sender: input.Sender }),
1910
+ ...(input.Subject != null && { Subject: input.Subject }),
1927
1911
  };
1928
1912
  };
1929
1913
  const serializeAws_json1_1StopEngagementRequest = (input, context) => {
1930
1914
  return {
1931
- ...(input.EngagementId !== undefined && input.EngagementId !== null && { EngagementId: input.EngagementId }),
1932
- ...(input.Reason !== undefined && input.Reason !== null && { Reason: input.Reason }),
1915
+ ...(input.EngagementId != null && { EngagementId: input.EngagementId }),
1916
+ ...(input.Reason != null && { Reason: input.Reason }),
1933
1917
  };
1934
1918
  };
1935
1919
  const serializeAws_json1_1Tag = (input, context) => {
1936
1920
  return {
1937
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
1938
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
1921
+ ...(input.Key != null && { Key: input.Key }),
1922
+ ...(input.Value != null && { Value: input.Value }),
1939
1923
  };
1940
1924
  };
1941
1925
  const serializeAws_json1_1TagKeyList = (input, context) => {
@@ -1950,8 +1934,8 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
1950
1934
  };
1951
1935
  const serializeAws_json1_1TagResourceRequest = (input, context) => {
1952
1936
  return {
1953
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
1954
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagsList(input.Tags, context) }),
1937
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1938
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagsList(input.Tags, context) }),
1955
1939
  };
1956
1940
  };
1957
1941
  const serializeAws_json1_1TagsList = (input, context) => {
@@ -1966,12 +1950,10 @@ const serializeAws_json1_1TagsList = (input, context) => {
1966
1950
  };
1967
1951
  const serializeAws_json1_1Target = (input, context) => {
1968
1952
  return {
1969
- ...(input.ChannelTargetInfo !== undefined &&
1970
- input.ChannelTargetInfo !== null && {
1953
+ ...(input.ChannelTargetInfo != null && {
1971
1954
  ChannelTargetInfo: serializeAws_json1_1ChannelTargetInfo(input.ChannelTargetInfo, context),
1972
1955
  }),
1973
- ...(input.ContactTargetInfo !== undefined &&
1974
- input.ContactTargetInfo !== null && {
1956
+ ...(input.ContactTargetInfo != null && {
1975
1957
  ContactTargetInfo: serializeAws_json1_1ContactTargetInfo(input.ContactTargetInfo, context),
1976
1958
  }),
1977
1959
  };
@@ -1988,35 +1970,30 @@ const serializeAws_json1_1TargetsList = (input, context) => {
1988
1970
  };
1989
1971
  const serializeAws_json1_1TimeRange = (input, context) => {
1990
1972
  return {
1991
- ...(input.EndTime !== undefined &&
1992
- input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
1993
- ...(input.StartTime !== undefined &&
1994
- input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
1973
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
1974
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
1995
1975
  };
1996
1976
  };
1997
1977
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
1998
1978
  return {
1999
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
2000
- ...(input.TagKeys !== undefined &&
2001
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
1979
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
1980
+ ...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
2002
1981
  };
2003
1982
  };
2004
1983
  const serializeAws_json1_1UpdateContactChannelRequest = (input, context) => {
2005
1984
  return {
2006
- ...(input.ContactChannelId !== undefined &&
2007
- input.ContactChannelId !== null && { ContactChannelId: input.ContactChannelId }),
2008
- ...(input.DeliveryAddress !== undefined &&
2009
- input.DeliveryAddress !== null && {
1985
+ ...(input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }),
1986
+ ...(input.DeliveryAddress != null && {
2010
1987
  DeliveryAddress: serializeAws_json1_1ContactChannelAddress(input.DeliveryAddress, context),
2011
1988
  }),
2012
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1989
+ ...(input.Name != null && { Name: input.Name }),
2013
1990
  };
2014
1991
  };
2015
1992
  const serializeAws_json1_1UpdateContactRequest = (input, context) => {
2016
1993
  return {
2017
- ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
2018
- ...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
2019
- ...(input.Plan !== undefined && input.Plan !== null && { Plan: serializeAws_json1_1Plan(input.Plan, context) }),
1994
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
1995
+ ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
1996
+ ...(input.Plan != null && { Plan: serializeAws_json1_1Plan(input.Plan, context) }),
2020
1997
  };
2021
1998
  };
2022
1999
  const deserializeAws_json1_1AcceptPageResult = (output, context) => {
@@ -2056,7 +2033,7 @@ const deserializeAws_json1_1ContactChannel = (output, context) => {
2056
2033
  ActivationStatus: (0, smithy_client_1.expectString)(output.ActivationStatus),
2057
2034
  ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2058
2035
  ContactChannelArn: (0, smithy_client_1.expectString)(output.ContactChannelArn),
2059
- DeliveryAddress: output.DeliveryAddress !== undefined && output.DeliveryAddress !== null
2036
+ DeliveryAddress: output.DeliveryAddress != null
2060
2037
  ? deserializeAws_json1_1ContactChannelAddress(output.DeliveryAddress, context)
2061
2038
  : undefined,
2062
2039
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -2129,12 +2106,8 @@ const deserializeAws_json1_1DescribeEngagementResult = (output, context) => {
2129
2106
  PublicContent: (0, smithy_client_1.expectString)(output.PublicContent),
2130
2107
  PublicSubject: (0, smithy_client_1.expectString)(output.PublicSubject),
2131
2108
  Sender: (0, smithy_client_1.expectString)(output.Sender),
2132
- StartTime: output.StartTime !== undefined && output.StartTime !== null
2133
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
2134
- : undefined,
2135
- StopTime: output.StopTime !== undefined && output.StopTime !== null
2136
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StopTime)))
2137
- : undefined,
2109
+ StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
2110
+ StopTime: output.StopTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StopTime))) : undefined,
2138
2111
  Subject: (0, smithy_client_1.expectString)(output.Subject),
2139
2112
  };
2140
2113
  };
@@ -2142,7 +2115,7 @@ const deserializeAws_json1_1DescribePageResult = (output, context) => {
2142
2115
  return {
2143
2116
  ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2144
2117
  Content: (0, smithy_client_1.expectString)(output.Content),
2145
- DeliveryTime: output.DeliveryTime !== undefined && output.DeliveryTime !== null
2118
+ DeliveryTime: output.DeliveryTime != null
2146
2119
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeliveryTime)))
2147
2120
  : undefined,
2148
2121
  EngagementArn: (0, smithy_client_1.expectString)(output.EngagementArn),
@@ -2150,13 +2123,9 @@ const deserializeAws_json1_1DescribePageResult = (output, context) => {
2150
2123
  PageArn: (0, smithy_client_1.expectString)(output.PageArn),
2151
2124
  PublicContent: (0, smithy_client_1.expectString)(output.PublicContent),
2152
2125
  PublicSubject: (0, smithy_client_1.expectString)(output.PublicSubject),
2153
- ReadTime: output.ReadTime !== undefined && output.ReadTime !== null
2154
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadTime)))
2155
- : undefined,
2126
+ ReadTime: output.ReadTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadTime))) : undefined,
2156
2127
  Sender: (0, smithy_client_1.expectString)(output.Sender),
2157
- SentTime: output.SentTime !== undefined && output.SentTime !== null
2158
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SentTime)))
2159
- : undefined,
2128
+ SentTime: output.SentTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SentTime))) : undefined,
2160
2129
  Subject: (0, smithy_client_1.expectString)(output.Subject),
2161
2130
  };
2162
2131
  };
@@ -2166,12 +2135,8 @@ const deserializeAws_json1_1Engagement = (output, context) => {
2166
2135
  EngagementArn: (0, smithy_client_1.expectString)(output.EngagementArn),
2167
2136
  IncidentId: (0, smithy_client_1.expectString)(output.IncidentId),
2168
2137
  Sender: (0, smithy_client_1.expectString)(output.Sender),
2169
- StartTime: output.StartTime !== undefined && output.StartTime !== null
2170
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
2171
- : undefined,
2172
- StopTime: output.StopTime !== undefined && output.StopTime !== null
2173
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StopTime)))
2174
- : undefined,
2138
+ StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
2139
+ StopTime: output.StopTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StopTime))) : undefined,
2175
2140
  };
2176
2141
  };
2177
2142
  const deserializeAws_json1_1EngagementsList = (output, context) => {
@@ -2190,7 +2155,7 @@ const deserializeAws_json1_1GetContactChannelResult = (output, context) => {
2190
2155
  ActivationStatus: (0, smithy_client_1.expectString)(output.ActivationStatus),
2191
2156
  ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2192
2157
  ContactChannelArn: (0, smithy_client_1.expectString)(output.ContactChannelArn),
2193
- DeliveryAddress: output.DeliveryAddress !== undefined && output.DeliveryAddress !== null
2158
+ DeliveryAddress: output.DeliveryAddress != null
2194
2159
  ? deserializeAws_json1_1ContactChannelAddress(output.DeliveryAddress, context)
2195
2160
  : undefined,
2196
2161
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -2208,7 +2173,7 @@ const deserializeAws_json1_1GetContactResult = (output, context) => {
2208
2173
  Alias: (0, smithy_client_1.expectString)(output.Alias),
2209
2174
  ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2210
2175
  DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
2211
- Plan: output.Plan !== undefined && output.Plan !== null ? deserializeAws_json1_1Plan(output.Plan, context) : undefined,
2176
+ Plan: output.Plan != null ? deserializeAws_json1_1Plan(output.Plan, context) : undefined,
2212
2177
  Type: (0, smithy_client_1.expectString)(output.Type),
2213
2178
  };
2214
2179
  };
@@ -2220,7 +2185,7 @@ const deserializeAws_json1_1InternalServerException = (output, context) => {
2220
2185
  };
2221
2186
  const deserializeAws_json1_1ListContactChannelsResult = (output, context) => {
2222
2187
  return {
2223
- ContactChannels: output.ContactChannels !== undefined && output.ContactChannels !== null
2188
+ ContactChannels: output.ContactChannels != null
2224
2189
  ? deserializeAws_json1_1ContactChannelList(output.ContactChannels, context)
2225
2190
  : undefined,
2226
2191
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -2228,67 +2193,51 @@ const deserializeAws_json1_1ListContactChannelsResult = (output, context) => {
2228
2193
  };
2229
2194
  const deserializeAws_json1_1ListContactsResult = (output, context) => {
2230
2195
  return {
2231
- Contacts: output.Contacts !== undefined && output.Contacts !== null
2232
- ? deserializeAws_json1_1ContactsList(output.Contacts, context)
2233
- : undefined,
2196
+ Contacts: output.Contacts != null ? deserializeAws_json1_1ContactsList(output.Contacts, context) : undefined,
2234
2197
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2235
2198
  };
2236
2199
  };
2237
2200
  const deserializeAws_json1_1ListEngagementsResult = (output, context) => {
2238
2201
  return {
2239
- Engagements: output.Engagements !== undefined && output.Engagements !== null
2240
- ? deserializeAws_json1_1EngagementsList(output.Engagements, context)
2241
- : undefined,
2202
+ Engagements: output.Engagements != null ? deserializeAws_json1_1EngagementsList(output.Engagements, context) : undefined,
2242
2203
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2243
2204
  };
2244
2205
  };
2245
2206
  const deserializeAws_json1_1ListPageReceiptsResult = (output, context) => {
2246
2207
  return {
2247
2208
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2248
- Receipts: output.Receipts !== undefined && output.Receipts !== null
2249
- ? deserializeAws_json1_1ReceiptsList(output.Receipts, context)
2250
- : undefined,
2209
+ Receipts: output.Receipts != null ? deserializeAws_json1_1ReceiptsList(output.Receipts, context) : undefined,
2251
2210
  };
2252
2211
  };
2253
2212
  const deserializeAws_json1_1ListPagesByContactResult = (output, context) => {
2254
2213
  return {
2255
2214
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2256
- Pages: output.Pages !== undefined && output.Pages !== null
2257
- ? deserializeAws_json1_1PagesList(output.Pages, context)
2258
- : undefined,
2215
+ Pages: output.Pages != null ? deserializeAws_json1_1PagesList(output.Pages, context) : undefined,
2259
2216
  };
2260
2217
  };
2261
2218
  const deserializeAws_json1_1ListPagesByEngagementResult = (output, context) => {
2262
2219
  return {
2263
2220
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2264
- Pages: output.Pages !== undefined && output.Pages !== null
2265
- ? deserializeAws_json1_1PagesList(output.Pages, context)
2266
- : undefined,
2221
+ Pages: output.Pages != null ? deserializeAws_json1_1PagesList(output.Pages, context) : undefined,
2267
2222
  };
2268
2223
  };
2269
2224
  const deserializeAws_json1_1ListTagsForResourceResult = (output, context) => {
2270
2225
  return {
2271
- Tags: output.Tags !== undefined && output.Tags !== null
2272
- ? deserializeAws_json1_1TagsList(output.Tags, context)
2273
- : undefined,
2226
+ Tags: output.Tags != null ? deserializeAws_json1_1TagsList(output.Tags, context) : undefined,
2274
2227
  };
2275
2228
  };
2276
2229
  const deserializeAws_json1_1Page = (output, context) => {
2277
2230
  return {
2278
2231
  ContactArn: (0, smithy_client_1.expectString)(output.ContactArn),
2279
- DeliveryTime: output.DeliveryTime !== undefined && output.DeliveryTime !== null
2232
+ DeliveryTime: output.DeliveryTime != null
2280
2233
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeliveryTime)))
2281
2234
  : undefined,
2282
2235
  EngagementArn: (0, smithy_client_1.expectString)(output.EngagementArn),
2283
2236
  IncidentId: (0, smithy_client_1.expectString)(output.IncidentId),
2284
2237
  PageArn: (0, smithy_client_1.expectString)(output.PageArn),
2285
- ReadTime: output.ReadTime !== undefined && output.ReadTime !== null
2286
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadTime)))
2287
- : undefined,
2238
+ ReadTime: output.ReadTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadTime))) : undefined,
2288
2239
  Sender: (0, smithy_client_1.expectString)(output.Sender),
2289
- SentTime: output.SentTime !== undefined && output.SentTime !== null
2290
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SentTime)))
2291
- : undefined,
2240
+ SentTime: output.SentTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SentTime))) : undefined,
2292
2241
  };
2293
2242
  };
2294
2243
  const deserializeAws_json1_1PagesList = (output, context) => {
@@ -2304,9 +2253,7 @@ const deserializeAws_json1_1PagesList = (output, context) => {
2304
2253
  };
2305
2254
  const deserializeAws_json1_1Plan = (output, context) => {
2306
2255
  return {
2307
- Stages: output.Stages !== undefined && output.Stages !== null
2308
- ? deserializeAws_json1_1StagesList(output.Stages, context)
2309
- : undefined,
2256
+ Stages: output.Stages != null ? deserializeAws_json1_1StagesList(output.Stages, context) : undefined,
2310
2257
  };
2311
2258
  };
2312
2259
  const deserializeAws_json1_1PutContactPolicyResult = (output, context) => {
@@ -2316,7 +2263,7 @@ const deserializeAws_json1_1Receipt = (output, context) => {
2316
2263
  return {
2317
2264
  ContactChannelArn: (0, smithy_client_1.expectString)(output.ContactChannelArn),
2318
2265
  ReceiptInfo: (0, smithy_client_1.expectString)(output.ReceiptInfo),
2319
- ReceiptTime: output.ReceiptTime !== undefined && output.ReceiptTime !== null
2266
+ ReceiptTime: output.ReceiptTime != null
2320
2267
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReceiptTime)))
2321
2268
  : undefined,
2322
2269
  ReceiptType: (0, smithy_client_1.expectString)(output.ReceiptType),
@@ -2355,9 +2302,7 @@ const deserializeAws_json1_1ServiceQuotaExceededException = (output, context) =>
2355
2302
  const deserializeAws_json1_1Stage = (output, context) => {
2356
2303
  return {
2357
2304
  DurationInMinutes: (0, smithy_client_1.expectInt32)(output.DurationInMinutes),
2358
- Targets: output.Targets !== undefined && output.Targets !== null
2359
- ? deserializeAws_json1_1TargetsList(output.Targets, context)
2360
- : undefined,
2305
+ Targets: output.Targets != null ? deserializeAws_json1_1TargetsList(output.Targets, context) : undefined,
2361
2306
  };
2362
2307
  };
2363
2308
  const deserializeAws_json1_1StagesList = (output, context) => {
@@ -2401,10 +2346,10 @@ const deserializeAws_json1_1TagsList = (output, context) => {
2401
2346
  };
2402
2347
  const deserializeAws_json1_1Target = (output, context) => {
2403
2348
  return {
2404
- ChannelTargetInfo: output.ChannelTargetInfo !== undefined && output.ChannelTargetInfo !== null
2349
+ ChannelTargetInfo: output.ChannelTargetInfo != null
2405
2350
  ? deserializeAws_json1_1ChannelTargetInfo(output.ChannelTargetInfo, context)
2406
2351
  : undefined,
2407
- ContactTargetInfo: output.ContactTargetInfo !== undefined && output.ContactTargetInfo !== null
2352
+ ContactTargetInfo: output.ContactTargetInfo != null
2408
2353
  ? deserializeAws_json1_1ContactTargetInfo(output.ContactTargetInfo, context)
2409
2354
  : undefined,
2410
2355
  };
@@ -2439,9 +2384,7 @@ const deserializeAws_json1_1UpdateContactResult = (output, context) => {
2439
2384
  };
2440
2385
  const deserializeAws_json1_1ValidationException = (output, context) => {
2441
2386
  return {
2442
- Fields: output.Fields !== undefined && output.Fields !== null
2443
- ? deserializeAws_json1_1ValidationExceptionFieldList(output.Fields, context)
2444
- : undefined,
2387
+ Fields: output.Fields != null ? deserializeAws_json1_1ValidationExceptionFieldList(output.Fields, context) : undefined,
2445
2388
  Message: (0, smithy_client_1.expectString)(output.Message),
2446
2389
  Reason: (0, smithy_client_1.expectString)(output.Reason),
2447
2390
  };
@@ -2243,104 +2243,88 @@ var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput,
2243
2243
  });
2244
2244
  }); };
2245
2245
  var serializeAws_json1_1AcceptPageRequest = function (input, context) {
2246
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AcceptCode !== undefined && input.AcceptCode !== null && { AcceptCode: input.AcceptCode })), (input.AcceptCodeValidation !== undefined &&
2247
- input.AcceptCodeValidation !== null && { AcceptCodeValidation: input.AcceptCodeValidation })), (input.AcceptType !== undefined && input.AcceptType !== null && { AcceptType: input.AcceptType })), (input.ContactChannelId !== undefined &&
2248
- input.ContactChannelId !== null && { ContactChannelId: input.ContactChannelId })), (input.Note !== undefined && input.Note !== null && { Note: input.Note })), (input.PageId !== undefined && input.PageId !== null && { PageId: input.PageId }));
2246
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AcceptCode != null && { AcceptCode: input.AcceptCode })), (input.AcceptCodeValidation != null && { AcceptCodeValidation: input.AcceptCodeValidation })), (input.AcceptType != null && { AcceptType: input.AcceptType })), (input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId })), (input.Note != null && { Note: input.Note })), (input.PageId != null && { PageId: input.PageId }));
2249
2247
  };
2250
2248
  var serializeAws_json1_1ActivateContactChannelRequest = function (input, context) {
2251
- return __assign(__assign({}, (input.ActivationCode !== undefined &&
2252
- input.ActivationCode !== null && { ActivationCode: input.ActivationCode })), (input.ContactChannelId !== undefined &&
2253
- input.ContactChannelId !== null && { ContactChannelId: input.ContactChannelId }));
2249
+ return __assign(__assign({}, (input.ActivationCode != null && { ActivationCode: input.ActivationCode })), (input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }));
2254
2250
  };
2255
2251
  var serializeAws_json1_1ChannelTargetInfo = function (input, context) {
2256
- return __assign(__assign({}, (input.ContactChannelId !== undefined &&
2257
- input.ContactChannelId !== null && { ContactChannelId: input.ContactChannelId })), (input.RetryIntervalInMinutes !== undefined &&
2258
- input.RetryIntervalInMinutes !== null && { RetryIntervalInMinutes: input.RetryIntervalInMinutes }));
2252
+ return __assign(__assign({}, (input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId })), (input.RetryIntervalInMinutes != null && { RetryIntervalInMinutes: input.RetryIntervalInMinutes }));
2259
2253
  };
2260
2254
  var serializeAws_json1_1ContactChannelAddress = function (input, context) {
2261
- return __assign({}, (input.SimpleAddress !== undefined && input.SimpleAddress !== null && { SimpleAddress: input.SimpleAddress }));
2255
+ return __assign({}, (input.SimpleAddress != null && { SimpleAddress: input.SimpleAddress }));
2262
2256
  };
2263
2257
  var serializeAws_json1_1ContactTargetInfo = function (input, context) {
2264
- return __assign(__assign({}, (input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId })), (input.IsEssential !== undefined && input.IsEssential !== null && { IsEssential: input.IsEssential }));
2258
+ return __assign(__assign({}, (input.ContactId != null && { ContactId: input.ContactId })), (input.IsEssential != null && { IsEssential: input.IsEssential }));
2265
2259
  };
2266
2260
  var serializeAws_json1_1CreateContactChannelRequest = function (input, context) {
2267
2261
  var _a;
2268
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId })), (input.DeferActivation !== undefined &&
2269
- input.DeferActivation !== null && { DeferActivation: input.DeferActivation })), (input.DeliveryAddress !== undefined &&
2270
- input.DeliveryAddress !== null && {
2262
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContactId != null && { ContactId: input.ContactId })), (input.DeferActivation != null && { DeferActivation: input.DeferActivation })), (input.DeliveryAddress != null && {
2271
2263
  DeliveryAddress: serializeAws_json1_1ContactChannelAddress(input.DeliveryAddress, context),
2272
- })), { IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
2264
+ })), { IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.Name != null && { Name: input.Name })), (input.Type != null && { Type: input.Type }));
2273
2265
  };
2274
2266
  var serializeAws_json1_1CreateContactRequest = function (input, context) {
2275
2267
  var _a;
2276
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Alias !== undefined && input.Alias !== null && { Alias: input.Alias })), (input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName })), { IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.Plan !== undefined && input.Plan !== null && { Plan: serializeAws_json1_1Plan(input.Plan, context) })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagsList(input.Tags, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
2268
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Alias != null && { Alias: input.Alias })), (input.DisplayName != null && { DisplayName: input.DisplayName })), { IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.Plan != null && { Plan: serializeAws_json1_1Plan(input.Plan, context) })), (input.Tags != null && { Tags: serializeAws_json1_1TagsList(input.Tags, context) })), (input.Type != null && { Type: input.Type }));
2277
2269
  };
2278
2270
  var serializeAws_json1_1DeactivateContactChannelRequest = function (input, context) {
2279
- return __assign({}, (input.ContactChannelId !== undefined &&
2280
- input.ContactChannelId !== null && { ContactChannelId: input.ContactChannelId }));
2271
+ return __assign({}, (input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }));
2281
2272
  };
2282
2273
  var serializeAws_json1_1DeleteContactChannelRequest = function (input, context) {
2283
- return __assign({}, (input.ContactChannelId !== undefined &&
2284
- input.ContactChannelId !== null && { ContactChannelId: input.ContactChannelId }));
2274
+ return __assign({}, (input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }));
2285
2275
  };
2286
2276
  var serializeAws_json1_1DeleteContactRequest = function (input, context) {
2287
- return __assign({}, (input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }));
2277
+ return __assign({}, (input.ContactId != null && { ContactId: input.ContactId }));
2288
2278
  };
2289
2279
  var serializeAws_json1_1DescribeEngagementRequest = function (input, context) {
2290
- return __assign({}, (input.EngagementId !== undefined && input.EngagementId !== null && { EngagementId: input.EngagementId }));
2280
+ return __assign({}, (input.EngagementId != null && { EngagementId: input.EngagementId }));
2291
2281
  };
2292
2282
  var serializeAws_json1_1DescribePageRequest = function (input, context) {
2293
- return __assign({}, (input.PageId !== undefined && input.PageId !== null && { PageId: input.PageId }));
2283
+ return __assign({}, (input.PageId != null && { PageId: input.PageId }));
2294
2284
  };
2295
2285
  var serializeAws_json1_1GetContactChannelRequest = function (input, context) {
2296
- return __assign({}, (input.ContactChannelId !== undefined &&
2297
- input.ContactChannelId !== null && { ContactChannelId: input.ContactChannelId }));
2286
+ return __assign({}, (input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }));
2298
2287
  };
2299
2288
  var serializeAws_json1_1GetContactPolicyRequest = function (input, context) {
2300
- return __assign({}, (input.ContactArn !== undefined && input.ContactArn !== null && { ContactArn: input.ContactArn }));
2289
+ return __assign({}, (input.ContactArn != null && { ContactArn: input.ContactArn }));
2301
2290
  };
2302
2291
  var serializeAws_json1_1GetContactRequest = function (input, context) {
2303
- return __assign({}, (input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }));
2292
+ return __assign({}, (input.ContactId != null && { ContactId: input.ContactId }));
2304
2293
  };
2305
2294
  var serializeAws_json1_1ListContactChannelsRequest = function (input, context) {
2306
- return __assign(__assign(__assign({}, (input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2295
+ return __assign(__assign(__assign({}, (input.ContactId != null && { ContactId: input.ContactId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2307
2296
  };
2308
2297
  var serializeAws_json1_1ListContactsRequest = function (input, context) {
2309
- return __assign(__assign(__assign(__assign({}, (input.AliasPrefix !== undefined && input.AliasPrefix !== null && { AliasPrefix: input.AliasPrefix })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
2298
+ return __assign(__assign(__assign(__assign({}, (input.AliasPrefix != null && { AliasPrefix: input.AliasPrefix })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Type != null && { Type: input.Type }));
2310
2299
  };
2311
2300
  var serializeAws_json1_1ListEngagementsRequest = function (input, context) {
2312
- return __assign(__assign(__assign(__assign({}, (input.IncidentId !== undefined && input.IncidentId !== null && { IncidentId: input.IncidentId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.TimeRangeValue !== undefined &&
2313
- input.TimeRangeValue !== null && {
2301
+ return __assign(__assign(__assign(__assign({}, (input.IncidentId != null && { IncidentId: input.IncidentId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.TimeRangeValue != null && {
2314
2302
  TimeRangeValue: serializeAws_json1_1TimeRange(input.TimeRangeValue, context),
2315
2303
  }));
2316
2304
  };
2317
2305
  var serializeAws_json1_1ListPageReceiptsRequest = function (input, context) {
2318
- return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.PageId !== undefined && input.PageId !== null && { PageId: input.PageId }));
2306
+ return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.PageId != null && { PageId: input.PageId }));
2319
2307
  };
2320
2308
  var serializeAws_json1_1ListPagesByContactRequest = function (input, context) {
2321
- return __assign(__assign(__assign({}, (input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2309
+ return __assign(__assign(__assign({}, (input.ContactId != null && { ContactId: input.ContactId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2322
2310
  };
2323
2311
  var serializeAws_json1_1ListPagesByEngagementRequest = function (input, context) {
2324
- return __assign(__assign(__assign({}, (input.EngagementId !== undefined && input.EngagementId !== null && { EngagementId: input.EngagementId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2312
+ return __assign(__assign(__assign({}, (input.EngagementId != null && { EngagementId: input.EngagementId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2325
2313
  };
2326
2314
  var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
2327
- return __assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }));
2315
+ return __assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN }));
2328
2316
  };
2329
2317
  var serializeAws_json1_1Plan = function (input, context) {
2330
- return __assign({}, (input.Stages !== undefined &&
2331
- input.Stages !== null && { Stages: serializeAws_json1_1StagesList(input.Stages, context) }));
2318
+ return __assign({}, (input.Stages != null && { Stages: serializeAws_json1_1StagesList(input.Stages, context) }));
2332
2319
  };
2333
2320
  var serializeAws_json1_1PutContactPolicyRequest = function (input, context) {
2334
- return __assign(__assign({}, (input.ContactArn !== undefined && input.ContactArn !== null && { ContactArn: input.ContactArn })), (input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy }));
2321
+ return __assign(__assign({}, (input.ContactArn != null && { ContactArn: input.ContactArn })), (input.Policy != null && { Policy: input.Policy }));
2335
2322
  };
2336
2323
  var serializeAws_json1_1SendActivationCodeRequest = function (input, context) {
2337
- return __assign({}, (input.ContactChannelId !== undefined &&
2338
- input.ContactChannelId !== null && { ContactChannelId: input.ContactChannelId }));
2324
+ return __assign({}, (input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId }));
2339
2325
  };
2340
2326
  var serializeAws_json1_1Stage = function (input, context) {
2341
- return __assign(__assign({}, (input.DurationInMinutes !== undefined &&
2342
- input.DurationInMinutes !== null && { DurationInMinutes: input.DurationInMinutes })), (input.Targets !== undefined &&
2343
- input.Targets !== null && { Targets: serializeAws_json1_1TargetsList(input.Targets, context) }));
2327
+ return __assign(__assign({}, (input.DurationInMinutes != null && { DurationInMinutes: input.DurationInMinutes })), (input.Targets != null && { Targets: serializeAws_json1_1TargetsList(input.Targets, context) }));
2344
2328
  };
2345
2329
  var serializeAws_json1_1StagesList = function (input, context) {
2346
2330
  return input
@@ -2354,13 +2338,13 @@ var serializeAws_json1_1StagesList = function (input, context) {
2354
2338
  };
2355
2339
  var serializeAws_json1_1StartEngagementRequest = function (input, context) {
2356
2340
  var _a;
2357
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId })), (input.Content !== undefined && input.Content !== null && { Content: input.Content })), { IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.IncidentId !== undefined && input.IncidentId !== null && { IncidentId: input.IncidentId })), (input.PublicContent !== undefined && input.PublicContent !== null && { PublicContent: input.PublicContent })), (input.PublicSubject !== undefined && input.PublicSubject !== null && { PublicSubject: input.PublicSubject })), (input.Sender !== undefined && input.Sender !== null && { Sender: input.Sender })), (input.Subject !== undefined && input.Subject !== null && { Subject: input.Subject }));
2341
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContactId != null && { ContactId: input.ContactId })), (input.Content != null && { Content: input.Content })), { IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.IncidentId != null && { IncidentId: input.IncidentId })), (input.PublicContent != null && { PublicContent: input.PublicContent })), (input.PublicSubject != null && { PublicSubject: input.PublicSubject })), (input.Sender != null && { Sender: input.Sender })), (input.Subject != null && { Subject: input.Subject }));
2358
2342
  };
2359
2343
  var serializeAws_json1_1StopEngagementRequest = function (input, context) {
2360
- return __assign(__assign({}, (input.EngagementId !== undefined && input.EngagementId !== null && { EngagementId: input.EngagementId })), (input.Reason !== undefined && input.Reason !== null && { Reason: input.Reason }));
2344
+ return __assign(__assign({}, (input.EngagementId != null && { EngagementId: input.EngagementId })), (input.Reason != null && { Reason: input.Reason }));
2361
2345
  };
2362
2346
  var serializeAws_json1_1Tag = function (input, context) {
2363
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
2347
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
2364
2348
  };
2365
2349
  var serializeAws_json1_1TagKeyList = function (input, context) {
2366
2350
  return input
@@ -2373,7 +2357,7 @@ var serializeAws_json1_1TagKeyList = function (input, context) {
2373
2357
  });
2374
2358
  };
2375
2359
  var serializeAws_json1_1TagResourceRequest = function (input, context) {
2376
- return __assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagsList(input.Tags, context) }));
2360
+ return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_json1_1TagsList(input.Tags, context) }));
2377
2361
  };
2378
2362
  var serializeAws_json1_1TagsList = function (input, context) {
2379
2363
  return input
@@ -2386,11 +2370,9 @@ var serializeAws_json1_1TagsList = function (input, context) {
2386
2370
  });
2387
2371
  };
2388
2372
  var serializeAws_json1_1Target = function (input, context) {
2389
- return __assign(__assign({}, (input.ChannelTargetInfo !== undefined &&
2390
- input.ChannelTargetInfo !== null && {
2373
+ return __assign(__assign({}, (input.ChannelTargetInfo != null && {
2391
2374
  ChannelTargetInfo: serializeAws_json1_1ChannelTargetInfo(input.ChannelTargetInfo, context),
2392
- })), (input.ContactTargetInfo !== undefined &&
2393
- input.ContactTargetInfo !== null && {
2375
+ })), (input.ContactTargetInfo != null && {
2394
2376
  ContactTargetInfo: serializeAws_json1_1ContactTargetInfo(input.ContactTargetInfo, context),
2395
2377
  }));
2396
2378
  };
@@ -2405,23 +2387,18 @@ var serializeAws_json1_1TargetsList = function (input, context) {
2405
2387
  });
2406
2388
  };
2407
2389
  var serializeAws_json1_1TimeRange = function (input, context) {
2408
- return __assign(__assign({}, (input.EndTime !== undefined &&
2409
- input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.StartTime !== undefined &&
2410
- input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
2390
+ return __assign(__assign({}, (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
2411
2391
  };
2412
2392
  var serializeAws_json1_1UntagResourceRequest = function (input, context) {
2413
- return __assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.TagKeys !== undefined &&
2414
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
2393
+ return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
2415
2394
  };
2416
2395
  var serializeAws_json1_1UpdateContactChannelRequest = function (input, context) {
2417
- return __assign(__assign(__assign({}, (input.ContactChannelId !== undefined &&
2418
- input.ContactChannelId !== null && { ContactChannelId: input.ContactChannelId })), (input.DeliveryAddress !== undefined &&
2419
- input.DeliveryAddress !== null && {
2396
+ return __assign(__assign(__assign({}, (input.ContactChannelId != null && { ContactChannelId: input.ContactChannelId })), (input.DeliveryAddress != null && {
2420
2397
  DeliveryAddress: serializeAws_json1_1ContactChannelAddress(input.DeliveryAddress, context),
2421
- })), (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
2398
+ })), (input.Name != null && { Name: input.Name }));
2422
2399
  };
2423
2400
  var serializeAws_json1_1UpdateContactRequest = function (input, context) {
2424
- return __assign(__assign(__assign({}, (input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId })), (input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName })), (input.Plan !== undefined && input.Plan !== null && { Plan: serializeAws_json1_1Plan(input.Plan, context) }));
2401
+ return __assign(__assign(__assign({}, (input.ContactId != null && { ContactId: input.ContactId })), (input.DisplayName != null && { DisplayName: input.DisplayName })), (input.Plan != null && { Plan: serializeAws_json1_1Plan(input.Plan, context) }));
2425
2402
  };
2426
2403
  var deserializeAws_json1_1AcceptPageResult = function (output, context) {
2427
2404
  return {};
@@ -2460,7 +2437,7 @@ var deserializeAws_json1_1ContactChannel = function (output, context) {
2460
2437
  ActivationStatus: __expectString(output.ActivationStatus),
2461
2438
  ContactArn: __expectString(output.ContactArn),
2462
2439
  ContactChannelArn: __expectString(output.ContactChannelArn),
2463
- DeliveryAddress: output.DeliveryAddress !== undefined && output.DeliveryAddress !== null
2440
+ DeliveryAddress: output.DeliveryAddress != null
2464
2441
  ? deserializeAws_json1_1ContactChannelAddress(output.DeliveryAddress, context)
2465
2442
  : undefined,
2466
2443
  Name: __expectString(output.Name),
@@ -2533,12 +2510,8 @@ var deserializeAws_json1_1DescribeEngagementResult = function (output, context)
2533
2510
  PublicContent: __expectString(output.PublicContent),
2534
2511
  PublicSubject: __expectString(output.PublicSubject),
2535
2512
  Sender: __expectString(output.Sender),
2536
- StartTime: output.StartTime !== undefined && output.StartTime !== null
2537
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
2538
- : undefined,
2539
- StopTime: output.StopTime !== undefined && output.StopTime !== null
2540
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StopTime)))
2541
- : undefined,
2513
+ StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
2514
+ StopTime: output.StopTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StopTime))) : undefined,
2542
2515
  Subject: __expectString(output.Subject),
2543
2516
  };
2544
2517
  };
@@ -2546,7 +2519,7 @@ var deserializeAws_json1_1DescribePageResult = function (output, context) {
2546
2519
  return {
2547
2520
  ContactArn: __expectString(output.ContactArn),
2548
2521
  Content: __expectString(output.Content),
2549
- DeliveryTime: output.DeliveryTime !== undefined && output.DeliveryTime !== null
2522
+ DeliveryTime: output.DeliveryTime != null
2550
2523
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeliveryTime)))
2551
2524
  : undefined,
2552
2525
  EngagementArn: __expectString(output.EngagementArn),
@@ -2554,13 +2527,9 @@ var deserializeAws_json1_1DescribePageResult = function (output, context) {
2554
2527
  PageArn: __expectString(output.PageArn),
2555
2528
  PublicContent: __expectString(output.PublicContent),
2556
2529
  PublicSubject: __expectString(output.PublicSubject),
2557
- ReadTime: output.ReadTime !== undefined && output.ReadTime !== null
2558
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReadTime)))
2559
- : undefined,
2530
+ ReadTime: output.ReadTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReadTime))) : undefined,
2560
2531
  Sender: __expectString(output.Sender),
2561
- SentTime: output.SentTime !== undefined && output.SentTime !== null
2562
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SentTime)))
2563
- : undefined,
2532
+ SentTime: output.SentTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SentTime))) : undefined,
2564
2533
  Subject: __expectString(output.Subject),
2565
2534
  };
2566
2535
  };
@@ -2570,12 +2539,8 @@ var deserializeAws_json1_1Engagement = function (output, context) {
2570
2539
  EngagementArn: __expectString(output.EngagementArn),
2571
2540
  IncidentId: __expectString(output.IncidentId),
2572
2541
  Sender: __expectString(output.Sender),
2573
- StartTime: output.StartTime !== undefined && output.StartTime !== null
2574
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
2575
- : undefined,
2576
- StopTime: output.StopTime !== undefined && output.StopTime !== null
2577
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StopTime)))
2578
- : undefined,
2542
+ StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
2543
+ StopTime: output.StopTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StopTime))) : undefined,
2579
2544
  };
2580
2545
  };
2581
2546
  var deserializeAws_json1_1EngagementsList = function (output, context) {
@@ -2594,7 +2559,7 @@ var deserializeAws_json1_1GetContactChannelResult = function (output, context) {
2594
2559
  ActivationStatus: __expectString(output.ActivationStatus),
2595
2560
  ContactArn: __expectString(output.ContactArn),
2596
2561
  ContactChannelArn: __expectString(output.ContactChannelArn),
2597
- DeliveryAddress: output.DeliveryAddress !== undefined && output.DeliveryAddress !== null
2562
+ DeliveryAddress: output.DeliveryAddress != null
2598
2563
  ? deserializeAws_json1_1ContactChannelAddress(output.DeliveryAddress, context)
2599
2564
  : undefined,
2600
2565
  Name: __expectString(output.Name),
@@ -2612,7 +2577,7 @@ var deserializeAws_json1_1GetContactResult = function (output, context) {
2612
2577
  Alias: __expectString(output.Alias),
2613
2578
  ContactArn: __expectString(output.ContactArn),
2614
2579
  DisplayName: __expectString(output.DisplayName),
2615
- Plan: output.Plan !== undefined && output.Plan !== null ? deserializeAws_json1_1Plan(output.Plan, context) : undefined,
2580
+ Plan: output.Plan != null ? deserializeAws_json1_1Plan(output.Plan, context) : undefined,
2616
2581
  Type: __expectString(output.Type),
2617
2582
  };
2618
2583
  };
@@ -2624,7 +2589,7 @@ var deserializeAws_json1_1InternalServerException = function (output, context) {
2624
2589
  };
2625
2590
  var deserializeAws_json1_1ListContactChannelsResult = function (output, context) {
2626
2591
  return {
2627
- ContactChannels: output.ContactChannels !== undefined && output.ContactChannels !== null
2592
+ ContactChannels: output.ContactChannels != null
2628
2593
  ? deserializeAws_json1_1ContactChannelList(output.ContactChannels, context)
2629
2594
  : undefined,
2630
2595
  NextToken: __expectString(output.NextToken),
@@ -2632,67 +2597,51 @@ var deserializeAws_json1_1ListContactChannelsResult = function (output, context)
2632
2597
  };
2633
2598
  var deserializeAws_json1_1ListContactsResult = function (output, context) {
2634
2599
  return {
2635
- Contacts: output.Contacts !== undefined && output.Contacts !== null
2636
- ? deserializeAws_json1_1ContactsList(output.Contacts, context)
2637
- : undefined,
2600
+ Contacts: output.Contacts != null ? deserializeAws_json1_1ContactsList(output.Contacts, context) : undefined,
2638
2601
  NextToken: __expectString(output.NextToken),
2639
2602
  };
2640
2603
  };
2641
2604
  var deserializeAws_json1_1ListEngagementsResult = function (output, context) {
2642
2605
  return {
2643
- Engagements: output.Engagements !== undefined && output.Engagements !== null
2644
- ? deserializeAws_json1_1EngagementsList(output.Engagements, context)
2645
- : undefined,
2606
+ Engagements: output.Engagements != null ? deserializeAws_json1_1EngagementsList(output.Engagements, context) : undefined,
2646
2607
  NextToken: __expectString(output.NextToken),
2647
2608
  };
2648
2609
  };
2649
2610
  var deserializeAws_json1_1ListPageReceiptsResult = function (output, context) {
2650
2611
  return {
2651
2612
  NextToken: __expectString(output.NextToken),
2652
- Receipts: output.Receipts !== undefined && output.Receipts !== null
2653
- ? deserializeAws_json1_1ReceiptsList(output.Receipts, context)
2654
- : undefined,
2613
+ Receipts: output.Receipts != null ? deserializeAws_json1_1ReceiptsList(output.Receipts, context) : undefined,
2655
2614
  };
2656
2615
  };
2657
2616
  var deserializeAws_json1_1ListPagesByContactResult = function (output, context) {
2658
2617
  return {
2659
2618
  NextToken: __expectString(output.NextToken),
2660
- Pages: output.Pages !== undefined && output.Pages !== null
2661
- ? deserializeAws_json1_1PagesList(output.Pages, context)
2662
- : undefined,
2619
+ Pages: output.Pages != null ? deserializeAws_json1_1PagesList(output.Pages, context) : undefined,
2663
2620
  };
2664
2621
  };
2665
2622
  var deserializeAws_json1_1ListPagesByEngagementResult = function (output, context) {
2666
2623
  return {
2667
2624
  NextToken: __expectString(output.NextToken),
2668
- Pages: output.Pages !== undefined && output.Pages !== null
2669
- ? deserializeAws_json1_1PagesList(output.Pages, context)
2670
- : undefined,
2625
+ Pages: output.Pages != null ? deserializeAws_json1_1PagesList(output.Pages, context) : undefined,
2671
2626
  };
2672
2627
  };
2673
2628
  var deserializeAws_json1_1ListTagsForResourceResult = function (output, context) {
2674
2629
  return {
2675
- Tags: output.Tags !== undefined && output.Tags !== null
2676
- ? deserializeAws_json1_1TagsList(output.Tags, context)
2677
- : undefined,
2630
+ Tags: output.Tags != null ? deserializeAws_json1_1TagsList(output.Tags, context) : undefined,
2678
2631
  };
2679
2632
  };
2680
2633
  var deserializeAws_json1_1Page = function (output, context) {
2681
2634
  return {
2682
2635
  ContactArn: __expectString(output.ContactArn),
2683
- DeliveryTime: output.DeliveryTime !== undefined && output.DeliveryTime !== null
2636
+ DeliveryTime: output.DeliveryTime != null
2684
2637
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeliveryTime)))
2685
2638
  : undefined,
2686
2639
  EngagementArn: __expectString(output.EngagementArn),
2687
2640
  IncidentId: __expectString(output.IncidentId),
2688
2641
  PageArn: __expectString(output.PageArn),
2689
- ReadTime: output.ReadTime !== undefined && output.ReadTime !== null
2690
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReadTime)))
2691
- : undefined,
2642
+ ReadTime: output.ReadTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReadTime))) : undefined,
2692
2643
  Sender: __expectString(output.Sender),
2693
- SentTime: output.SentTime !== undefined && output.SentTime !== null
2694
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SentTime)))
2695
- : undefined,
2644
+ SentTime: output.SentTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SentTime))) : undefined,
2696
2645
  };
2697
2646
  };
2698
2647
  var deserializeAws_json1_1PagesList = function (output, context) {
@@ -2708,9 +2657,7 @@ var deserializeAws_json1_1PagesList = function (output, context) {
2708
2657
  };
2709
2658
  var deserializeAws_json1_1Plan = function (output, context) {
2710
2659
  return {
2711
- Stages: output.Stages !== undefined && output.Stages !== null
2712
- ? deserializeAws_json1_1StagesList(output.Stages, context)
2713
- : undefined,
2660
+ Stages: output.Stages != null ? deserializeAws_json1_1StagesList(output.Stages, context) : undefined,
2714
2661
  };
2715
2662
  };
2716
2663
  var deserializeAws_json1_1PutContactPolicyResult = function (output, context) {
@@ -2720,7 +2667,7 @@ var deserializeAws_json1_1Receipt = function (output, context) {
2720
2667
  return {
2721
2668
  ContactChannelArn: __expectString(output.ContactChannelArn),
2722
2669
  ReceiptInfo: __expectString(output.ReceiptInfo),
2723
- ReceiptTime: output.ReceiptTime !== undefined && output.ReceiptTime !== null
2670
+ ReceiptTime: output.ReceiptTime != null
2724
2671
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReceiptTime)))
2725
2672
  : undefined,
2726
2673
  ReceiptType: __expectString(output.ReceiptType),
@@ -2759,9 +2706,7 @@ var deserializeAws_json1_1ServiceQuotaExceededException = function (output, cont
2759
2706
  var deserializeAws_json1_1Stage = function (output, context) {
2760
2707
  return {
2761
2708
  DurationInMinutes: __expectInt32(output.DurationInMinutes),
2762
- Targets: output.Targets !== undefined && output.Targets !== null
2763
- ? deserializeAws_json1_1TargetsList(output.Targets, context)
2764
- : undefined,
2709
+ Targets: output.Targets != null ? deserializeAws_json1_1TargetsList(output.Targets, context) : undefined,
2765
2710
  };
2766
2711
  };
2767
2712
  var deserializeAws_json1_1StagesList = function (output, context) {
@@ -2805,10 +2750,10 @@ var deserializeAws_json1_1TagsList = function (output, context) {
2805
2750
  };
2806
2751
  var deserializeAws_json1_1Target = function (output, context) {
2807
2752
  return {
2808
- ChannelTargetInfo: output.ChannelTargetInfo !== undefined && output.ChannelTargetInfo !== null
2753
+ ChannelTargetInfo: output.ChannelTargetInfo != null
2809
2754
  ? deserializeAws_json1_1ChannelTargetInfo(output.ChannelTargetInfo, context)
2810
2755
  : undefined,
2811
- ContactTargetInfo: output.ContactTargetInfo !== undefined && output.ContactTargetInfo !== null
2756
+ ContactTargetInfo: output.ContactTargetInfo != null
2812
2757
  ? deserializeAws_json1_1ContactTargetInfo(output.ContactTargetInfo, context)
2813
2758
  : undefined,
2814
2759
  };
@@ -2843,9 +2788,7 @@ var deserializeAws_json1_1UpdateContactResult = function (output, context) {
2843
2788
  };
2844
2789
  var deserializeAws_json1_1ValidationException = function (output, context) {
2845
2790
  return {
2846
- Fields: output.Fields !== undefined && output.Fields !== null
2847
- ? deserializeAws_json1_1ValidationExceptionFieldList(output.Fields, context)
2848
- : undefined,
2791
+ Fields: output.Fields != null ? deserializeAws_json1_1ValidationExceptionFieldList(output.Fields, context) : undefined,
2849
2792
  Message: __expectString(output.Message),
2850
2793
  Reason: __expectString(output.Reason),
2851
2794
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ssm-contacts",
3
3
  "description": "AWS SDK for JavaScript Ssm Contacts Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.127.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.127.0",
22
+ "@aws-sdk/config-resolver": "3.127.0",
23
+ "@aws-sdk/credential-provider-node": "3.127.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.127.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.127.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",