@aws-sdk/client-route53-recovery-readiness 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-route53-recovery-readiness
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
 
@@ -14,10 +14,9 @@ const serializeAws_restJson1CreateCellCommand = async (input, context) => {
14
14
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/cells";
15
15
  let body;
16
16
  body = JSON.stringify({
17
- ...(input.CellName !== undefined && input.CellName !== null && { cellName: input.CellName }),
18
- ...(input.Cells !== undefined &&
19
- input.Cells !== null && { cells: serializeAws_restJson1__listOf__string(input.Cells, context) }),
20
- ...(input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
17
+ ...(input.CellName != null && { cellName: input.CellName }),
18
+ ...(input.Cells != null && { cells: serializeAws_restJson1__listOf__string(input.Cells, context) }),
19
+ ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
21
20
  });
22
21
  return new protocol_http_1.HttpRequest({
23
22
  protocol,
@@ -38,8 +37,7 @@ const serializeAws_restJson1CreateCrossAccountAuthorizationCommand = async (inpu
38
37
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/crossaccountauthorizations";
39
38
  let body;
40
39
  body = JSON.stringify({
41
- ...(input.CrossAccountAuthorization !== undefined &&
42
- input.CrossAccountAuthorization !== null && { crossAccountAuthorization: input.CrossAccountAuthorization }),
40
+ ...(input.CrossAccountAuthorization != null && { crossAccountAuthorization: input.CrossAccountAuthorization }),
43
41
  });
44
42
  return new protocol_http_1.HttpRequest({
45
43
  protocol,
@@ -60,11 +58,9 @@ const serializeAws_restJson1CreateReadinessCheckCommand = async (input, context)
60
58
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/readinesschecks";
61
59
  let body;
62
60
  body = JSON.stringify({
63
- ...(input.ReadinessCheckName !== undefined &&
64
- input.ReadinessCheckName !== null && { readinessCheckName: input.ReadinessCheckName }),
65
- ...(input.ResourceSetName !== undefined &&
66
- input.ResourceSetName !== null && { resourceSetName: input.ResourceSetName }),
67
- ...(input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
61
+ ...(input.ReadinessCheckName != null && { readinessCheckName: input.ReadinessCheckName }),
62
+ ...(input.ResourceSetName != null && { resourceSetName: input.ResourceSetName }),
63
+ ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
68
64
  });
69
65
  return new protocol_http_1.HttpRequest({
70
66
  protocol,
@@ -85,11 +81,9 @@ const serializeAws_restJson1CreateRecoveryGroupCommand = async (input, context)
85
81
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/recoverygroups";
86
82
  let body;
87
83
  body = JSON.stringify({
88
- ...(input.Cells !== undefined &&
89
- input.Cells !== null && { cells: serializeAws_restJson1__listOf__string(input.Cells, context) }),
90
- ...(input.RecoveryGroupName !== undefined &&
91
- input.RecoveryGroupName !== null && { recoveryGroupName: input.RecoveryGroupName }),
92
- ...(input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
84
+ ...(input.Cells != null && { cells: serializeAws_restJson1__listOf__string(input.Cells, context) }),
85
+ ...(input.RecoveryGroupName != null && { recoveryGroupName: input.RecoveryGroupName }),
86
+ ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
93
87
  });
94
88
  return new protocol_http_1.HttpRequest({
95
89
  protocol,
@@ -110,13 +104,10 @@ const serializeAws_restJson1CreateResourceSetCommand = async (input, context) =>
110
104
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/resourcesets";
111
105
  let body;
112
106
  body = JSON.stringify({
113
- ...(input.ResourceSetName !== undefined &&
114
- input.ResourceSetName !== null && { resourceSetName: input.ResourceSetName }),
115
- ...(input.ResourceSetType !== undefined &&
116
- input.ResourceSetType !== null && { resourceSetType: input.ResourceSetType }),
117
- ...(input.Resources !== undefined &&
118
- input.Resources !== null && { resources: serializeAws_restJson1__listOfResource(input.Resources, context) }),
119
- ...(input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
107
+ ...(input.ResourceSetName != null && { resourceSetName: input.ResourceSetName }),
108
+ ...(input.ResourceSetType != null && { resourceSetType: input.ResourceSetType }),
109
+ ...(input.Resources != null && { resources: serializeAws_restJson1__listOfResource(input.Resources, context) }),
110
+ ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
120
111
  });
121
112
  return new protocol_http_1.HttpRequest({
122
113
  protocol,
@@ -704,7 +695,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
704
695
  }
705
696
  let body;
706
697
  body = JSON.stringify({
707
- ...(input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
698
+ ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
708
699
  });
709
700
  return new protocol_http_1.HttpRequest({
710
701
  protocol,
@@ -765,8 +756,7 @@ const serializeAws_restJson1UpdateCellCommand = async (input, context) => {
765
756
  }
766
757
  let body;
767
758
  body = JSON.stringify({
768
- ...(input.Cells !== undefined &&
769
- input.Cells !== null && { cells: serializeAws_restJson1__listOf__string(input.Cells, context) }),
759
+ ...(input.Cells != null && { cells: serializeAws_restJson1__listOf__string(input.Cells, context) }),
770
760
  });
771
761
  return new protocol_http_1.HttpRequest({
772
762
  protocol,
@@ -797,8 +787,7 @@ const serializeAws_restJson1UpdateReadinessCheckCommand = async (input, context)
797
787
  }
798
788
  let body;
799
789
  body = JSON.stringify({
800
- ...(input.ResourceSetName !== undefined &&
801
- input.ResourceSetName !== null && { resourceSetName: input.ResourceSetName }),
790
+ ...(input.ResourceSetName != null && { resourceSetName: input.ResourceSetName }),
802
791
  });
803
792
  return new protocol_http_1.HttpRequest({
804
793
  protocol,
@@ -829,8 +818,7 @@ const serializeAws_restJson1UpdateRecoveryGroupCommand = async (input, context)
829
818
  }
830
819
  let body;
831
820
  body = JSON.stringify({
832
- ...(input.Cells !== undefined &&
833
- input.Cells !== null && { cells: serializeAws_restJson1__listOf__string(input.Cells, context) }),
821
+ ...(input.Cells != null && { cells: serializeAws_restJson1__listOf__string(input.Cells, context) }),
834
822
  });
835
823
  return new protocol_http_1.HttpRequest({
836
824
  protocol,
@@ -861,10 +849,8 @@ const serializeAws_restJson1UpdateResourceSetCommand = async (input, context) =>
861
849
  }
862
850
  let body;
863
851
  body = JSON.stringify({
864
- ...(input.ResourceSetType !== undefined &&
865
- input.ResourceSetType !== null && { resourceSetType: input.ResourceSetType }),
866
- ...(input.Resources !== undefined &&
867
- input.Resources !== null && { resources: serializeAws_restJson1__listOfResource(input.Resources, context) }),
852
+ ...(input.ResourceSetType != null && { resourceSetType: input.ResourceSetType }),
853
+ ...(input.Resources != null && { resources: serializeAws_restJson1__listOfResource(input.Resources, context) }),
868
854
  });
869
855
  return new protocol_http_1.HttpRequest({
870
856
  protocol,
@@ -2740,39 +2726,36 @@ const serializeAws_restJson1__listOfResource = (input, context) => {
2740
2726
  };
2741
2727
  const serializeAws_restJson1DNSTargetResource = (input, context) => {
2742
2728
  return {
2743
- ...(input.DomainName !== undefined && input.DomainName !== null && { domainName: input.DomainName }),
2744
- ...(input.HostedZoneArn !== undefined && input.HostedZoneArn !== null && { hostedZoneArn: input.HostedZoneArn }),
2745
- ...(input.RecordSetId !== undefined && input.RecordSetId !== null && { recordSetId: input.RecordSetId }),
2746
- ...(input.RecordType !== undefined && input.RecordType !== null && { recordType: input.RecordType }),
2747
- ...(input.TargetResource !== undefined &&
2748
- input.TargetResource !== null && {
2729
+ ...(input.DomainName != null && { domainName: input.DomainName }),
2730
+ ...(input.HostedZoneArn != null && { hostedZoneArn: input.HostedZoneArn }),
2731
+ ...(input.RecordSetId != null && { recordSetId: input.RecordSetId }),
2732
+ ...(input.RecordType != null && { recordType: input.RecordType }),
2733
+ ...(input.TargetResource != null && {
2749
2734
  targetResource: serializeAws_restJson1TargetResource(input.TargetResource, context),
2750
2735
  }),
2751
2736
  };
2752
2737
  };
2753
2738
  const serializeAws_restJson1NLBResource = (input, context) => {
2754
2739
  return {
2755
- ...(input.Arn !== undefined && input.Arn !== null && { arn: input.Arn }),
2740
+ ...(input.Arn != null && { arn: input.Arn }),
2756
2741
  };
2757
2742
  };
2758
2743
  const serializeAws_restJson1R53ResourceRecord = (input, context) => {
2759
2744
  return {
2760
- ...(input.DomainName !== undefined && input.DomainName !== null && { domainName: input.DomainName }),
2761
- ...(input.RecordSetId !== undefined && input.RecordSetId !== null && { recordSetId: input.RecordSetId }),
2745
+ ...(input.DomainName != null && { domainName: input.DomainName }),
2746
+ ...(input.RecordSetId != null && { recordSetId: input.RecordSetId }),
2762
2747
  };
2763
2748
  };
2764
2749
  const serializeAws_restJson1Resource = (input, context) => {
2765
2750
  return {
2766
- ...(input.ComponentId !== undefined && input.ComponentId !== null && { componentId: input.ComponentId }),
2767
- ...(input.DnsTargetResource !== undefined &&
2768
- input.DnsTargetResource !== null && {
2751
+ ...(input.ComponentId != null && { componentId: input.ComponentId }),
2752
+ ...(input.DnsTargetResource != null && {
2769
2753
  dnsTargetResource: serializeAws_restJson1DNSTargetResource(input.DnsTargetResource, context),
2770
2754
  }),
2771
- ...(input.ReadinessScopes !== undefined &&
2772
- input.ReadinessScopes !== null && {
2755
+ ...(input.ReadinessScopes != null && {
2773
2756
  readinessScopes: serializeAws_restJson1__listOf__string(input.ReadinessScopes, context),
2774
2757
  }),
2775
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { resourceArn: input.ResourceArn }),
2758
+ ...(input.ResourceArn != null && { resourceArn: input.ResourceArn }),
2776
2759
  };
2777
2760
  };
2778
2761
  const serializeAws_restJson1Tags = (input, context) => {
@@ -2788,10 +2771,8 @@ const serializeAws_restJson1Tags = (input, context) => {
2788
2771
  };
2789
2772
  const serializeAws_restJson1TargetResource = (input, context) => {
2790
2773
  return {
2791
- ...(input.NLBResource !== undefined &&
2792
- input.NLBResource !== null && { nLBResource: serializeAws_restJson1NLBResource(input.NLBResource, context) }),
2793
- ...(input.R53Resource !== undefined &&
2794
- input.R53Resource !== null && {
2774
+ ...(input.NLBResource != null && { nLBResource: serializeAws_restJson1NLBResource(input.NLBResource, context) }),
2775
+ ...(input.R53Resource != null && {
2795
2776
  r53Resource: serializeAws_restJson1R53ResourceRecord(input.R53Resource, context),
2796
2777
  }),
2797
2778
  };
@@ -2943,15 +2924,11 @@ const deserializeAws_restJson1CellOutput = (output, context) => {
2943
2924
  return {
2944
2925
  CellArn: (0, smithy_client_1.expectString)(output.cellArn),
2945
2926
  CellName: (0, smithy_client_1.expectString)(output.cellName),
2946
- Cells: output.cells !== undefined && output.cells !== null
2947
- ? deserializeAws_restJson1__listOf__string(output.cells, context)
2948
- : undefined,
2949
- ParentReadinessScopes: output.parentReadinessScopes !== undefined && output.parentReadinessScopes !== null
2927
+ Cells: output.cells != null ? deserializeAws_restJson1__listOf__string(output.cells, context) : undefined,
2928
+ ParentReadinessScopes: output.parentReadinessScopes != null
2950
2929
  ? deserializeAws_restJson1__listOf__string(output.parentReadinessScopes, context)
2951
2930
  : undefined,
2952
- Tags: output.tags !== undefined && output.tags !== null
2953
- ? deserializeAws_restJson1Tags(output.tags, context)
2954
- : undefined,
2931
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2955
2932
  };
2956
2933
  };
2957
2934
  const deserializeAws_restJson1DNSTargetResource = (output, context) => {
@@ -2960,7 +2937,7 @@ const deserializeAws_restJson1DNSTargetResource = (output, context) => {
2960
2937
  HostedZoneArn: (0, smithy_client_1.expectString)(output.hostedZoneArn),
2961
2938
  RecordSetId: (0, smithy_client_1.expectString)(output.recordSetId),
2962
2939
  RecordType: (0, smithy_client_1.expectString)(output.recordType),
2963
- TargetResource: output.targetResource !== undefined && output.targetResource !== null
2940
+ TargetResource: output.targetResource != null
2964
2941
  ? deserializeAws_restJson1TargetResource(output.targetResource, context)
2965
2942
  : undefined,
2966
2943
  };
@@ -2993,9 +2970,7 @@ const deserializeAws_restJson1ReadinessCheckOutput = (output, context) => {
2993
2970
  ReadinessCheckArn: (0, smithy_client_1.expectString)(output.readinessCheckArn),
2994
2971
  ReadinessCheckName: (0, smithy_client_1.expectString)(output.readinessCheckName),
2995
2972
  ResourceSet: (0, smithy_client_1.expectString)(output.resourceSet),
2996
- Tags: output.tags !== undefined && output.tags !== null
2997
- ? deserializeAws_restJson1Tags(output.tags, context)
2998
- : undefined,
2973
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2999
2974
  };
3000
2975
  };
3001
2976
  const deserializeAws_restJson1ReadinessCheckSummary = (output, context) => {
@@ -3011,23 +2986,19 @@ const deserializeAws_restJson1Recommendation = (output, context) => {
3011
2986
  };
3012
2987
  const deserializeAws_restJson1RecoveryGroupOutput = (output, context) => {
3013
2988
  return {
3014
- Cells: output.cells !== undefined && output.cells !== null
3015
- ? deserializeAws_restJson1__listOf__string(output.cells, context)
3016
- : undefined,
2989
+ Cells: output.cells != null ? deserializeAws_restJson1__listOf__string(output.cells, context) : undefined,
3017
2990
  RecoveryGroupArn: (0, smithy_client_1.expectString)(output.recoveryGroupArn),
3018
2991
  RecoveryGroupName: (0, smithy_client_1.expectString)(output.recoveryGroupName),
3019
- Tags: output.tags !== undefined && output.tags !== null
3020
- ? deserializeAws_restJson1Tags(output.tags, context)
3021
- : undefined,
2992
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
3022
2993
  };
3023
2994
  };
3024
2995
  const deserializeAws_restJson1Resource = (output, context) => {
3025
2996
  return {
3026
2997
  ComponentId: (0, smithy_client_1.expectString)(output.componentId),
3027
- DnsTargetResource: output.dnsTargetResource !== undefined && output.dnsTargetResource !== null
2998
+ DnsTargetResource: output.dnsTargetResource != null
3028
2999
  ? deserializeAws_restJson1DNSTargetResource(output.dnsTargetResource, context)
3029
3000
  : undefined,
3030
- ReadinessScopes: output.readinessScopes !== undefined && output.readinessScopes !== null
3001
+ ReadinessScopes: output.readinessScopes != null
3031
3002
  ? deserializeAws_restJson1__listOf__string(output.readinessScopes, context)
3032
3003
  : undefined,
3033
3004
  ResourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
@@ -3036,7 +3007,7 @@ const deserializeAws_restJson1Resource = (output, context) => {
3036
3007
  const deserializeAws_restJson1ResourceResult = (output, context) => {
3037
3008
  return {
3038
3009
  ComponentId: (0, smithy_client_1.expectString)(output.componentId),
3039
- LastCheckedTimestamp: output.lastCheckedTimestamp !== undefined && output.lastCheckedTimestamp !== null
3010
+ LastCheckedTimestamp: output.lastCheckedTimestamp != null
3040
3011
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastCheckedTimestamp))
3041
3012
  : undefined,
3042
3013
  Readiness: (0, smithy_client_1.expectString)(output.readiness),
@@ -3048,22 +3019,16 @@ const deserializeAws_restJson1ResourceSetOutput = (output, context) => {
3048
3019
  ResourceSetArn: (0, smithy_client_1.expectString)(output.resourceSetArn),
3049
3020
  ResourceSetName: (0, smithy_client_1.expectString)(output.resourceSetName),
3050
3021
  ResourceSetType: (0, smithy_client_1.expectString)(output.resourceSetType),
3051
- Resources: output.resources !== undefined && output.resources !== null
3052
- ? deserializeAws_restJson1__listOfResource(output.resources, context)
3053
- : undefined,
3054
- Tags: output.tags !== undefined && output.tags !== null
3055
- ? deserializeAws_restJson1Tags(output.tags, context)
3056
- : undefined,
3022
+ Resources: output.resources != null ? deserializeAws_restJson1__listOfResource(output.resources, context) : undefined,
3023
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
3057
3024
  };
3058
3025
  };
3059
3026
  const deserializeAws_restJson1RuleResult = (output, context) => {
3060
3027
  return {
3061
- LastCheckedTimestamp: output.lastCheckedTimestamp !== undefined && output.lastCheckedTimestamp !== null
3028
+ LastCheckedTimestamp: output.lastCheckedTimestamp != null
3062
3029
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastCheckedTimestamp))
3063
3030
  : undefined,
3064
- Messages: output.messages !== undefined && output.messages !== null
3065
- ? deserializeAws_restJson1__listOfMessage(output.messages, context)
3066
- : undefined,
3031
+ Messages: output.messages != null ? deserializeAws_restJson1__listOfMessage(output.messages, context) : undefined,
3067
3032
  Readiness: (0, smithy_client_1.expectString)(output.readiness),
3068
3033
  RuleId: (0, smithy_client_1.expectString)(output.ruleId),
3069
3034
  };
@@ -3081,12 +3046,8 @@ const deserializeAws_restJson1Tags = (output, context) => {
3081
3046
  };
3082
3047
  const deserializeAws_restJson1TargetResource = (output, context) => {
3083
3048
  return {
3084
- NLBResource: output.nLBResource !== undefined && output.nLBResource !== null
3085
- ? deserializeAws_restJson1NLBResource(output.nLBResource, context)
3086
- : undefined,
3087
- R53Resource: output.r53Resource !== undefined && output.r53Resource !== null
3088
- ? deserializeAws_restJson1R53ResourceRecord(output.r53Resource, context)
3089
- : undefined,
3049
+ NLBResource: output.nLBResource != null ? deserializeAws_restJson1NLBResource(output.nLBResource, context) : undefined,
3050
+ R53Resource: output.r53Resource != null ? deserializeAws_restJson1R53ResourceRecord(output.r53Resource, context) : undefined,
3090
3051
  };
3091
3052
  };
3092
3053
  const deserializeMetadata = (output) => {
@@ -14,8 +14,7 @@ export var serializeAws_restJson1CreateCellCommand = function (input, context) {
14
14
  "content-type": "application/json",
15
15
  };
16
16
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/cells";
17
- body = JSON.stringify(__assign(__assign(__assign({}, (input.CellName !== undefined && input.CellName !== null && { cellName: input.CellName })), (input.Cells !== undefined &&
18
- input.Cells !== null && { cells: serializeAws_restJson1__listOf__string(input.Cells, context) })), (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
17
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.CellName != null && { cellName: input.CellName })), (input.Cells != null && { cells: serializeAws_restJson1__listOf__string(input.Cells, context) })), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
19
18
  return [2, new __HttpRequest({
20
19
  protocol: protocol,
21
20
  hostname: hostname,
@@ -39,8 +38,7 @@ export var serializeAws_restJson1CreateCrossAccountAuthorizationCommand = functi
39
38
  "content-type": "application/json",
40
39
  };
41
40
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/crossaccountauthorizations";
42
- body = JSON.stringify(__assign({}, (input.CrossAccountAuthorization !== undefined &&
43
- input.CrossAccountAuthorization !== null && { crossAccountAuthorization: input.CrossAccountAuthorization })));
41
+ body = JSON.stringify(__assign({}, (input.CrossAccountAuthorization != null && { crossAccountAuthorization: input.CrossAccountAuthorization })));
44
42
  return [2, new __HttpRequest({
45
43
  protocol: protocol,
46
44
  hostname: hostname,
@@ -64,9 +62,7 @@ export var serializeAws_restJson1CreateReadinessCheckCommand = function (input,
64
62
  "content-type": "application/json",
65
63
  };
66
64
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/readinesschecks";
67
- body = JSON.stringify(__assign(__assign(__assign({}, (input.ReadinessCheckName !== undefined &&
68
- input.ReadinessCheckName !== null && { readinessCheckName: input.ReadinessCheckName })), (input.ResourceSetName !== undefined &&
69
- input.ResourceSetName !== null && { resourceSetName: input.ResourceSetName })), (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
65
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.ReadinessCheckName != null && { readinessCheckName: input.ReadinessCheckName })), (input.ResourceSetName != null && { resourceSetName: input.ResourceSetName })), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
70
66
  return [2, new __HttpRequest({
71
67
  protocol: protocol,
72
68
  hostname: hostname,
@@ -90,9 +86,7 @@ export var serializeAws_restJson1CreateRecoveryGroupCommand = function (input, c
90
86
  "content-type": "application/json",
91
87
  };
92
88
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/recoverygroups";
93
- body = JSON.stringify(__assign(__assign(__assign({}, (input.Cells !== undefined &&
94
- input.Cells !== null && { cells: serializeAws_restJson1__listOf__string(input.Cells, context) })), (input.RecoveryGroupName !== undefined &&
95
- input.RecoveryGroupName !== null && { recoveryGroupName: input.RecoveryGroupName })), (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
89
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.Cells != null && { cells: serializeAws_restJson1__listOf__string(input.Cells, context) })), (input.RecoveryGroupName != null && { recoveryGroupName: input.RecoveryGroupName })), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
96
90
  return [2, new __HttpRequest({
97
91
  protocol: protocol,
98
92
  hostname: hostname,
@@ -116,10 +110,7 @@ export var serializeAws_restJson1CreateResourceSetCommand = function (input, con
116
110
  "content-type": "application/json",
117
111
  };
118
112
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resourcesets";
119
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ResourceSetName !== undefined &&
120
- input.ResourceSetName !== null && { resourceSetName: input.ResourceSetName })), (input.ResourceSetType !== undefined &&
121
- input.ResourceSetType !== null && { resourceSetType: input.ResourceSetType })), (input.Resources !== undefined &&
122
- input.Resources !== null && { resources: serializeAws_restJson1__listOfResource(input.Resources, context) })), (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
113
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ResourceSetName != null && { resourceSetName: input.ResourceSetName })), (input.ResourceSetType != null && { resourceSetType: input.ResourceSetType })), (input.Resources != null && { resources: serializeAws_restJson1__listOfResource(input.Resources, context) })), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
123
114
  return [2, new __HttpRequest({
124
115
  protocol: protocol,
125
116
  hostname: hostname,
@@ -781,7 +772,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
781
772
  else {
782
773
  throw new Error("No value provided for input HTTP label: ResourceArn.");
783
774
  }
784
- body = JSON.stringify(__assign({}, (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
775
+ body = JSON.stringify(__assign({}, (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
785
776
  return [2, new __HttpRequest({
786
777
  protocol: protocol,
787
778
  hostname: hostname,
@@ -848,8 +839,7 @@ export var serializeAws_restJson1UpdateCellCommand = function (input, context) {
848
839
  else {
849
840
  throw new Error("No value provided for input HTTP label: CellName.");
850
841
  }
851
- body = JSON.stringify(__assign({}, (input.Cells !== undefined &&
852
- input.Cells !== null && { cells: serializeAws_restJson1__listOf__string(input.Cells, context) })));
842
+ body = JSON.stringify(__assign({}, (input.Cells != null && { cells: serializeAws_restJson1__listOf__string(input.Cells, context) })));
853
843
  return [2, new __HttpRequest({
854
844
  protocol: protocol,
855
845
  hostname: hostname,
@@ -883,8 +873,7 @@ export var serializeAws_restJson1UpdateReadinessCheckCommand = function (input,
883
873
  else {
884
874
  throw new Error("No value provided for input HTTP label: ReadinessCheckName.");
885
875
  }
886
- body = JSON.stringify(__assign({}, (input.ResourceSetName !== undefined &&
887
- input.ResourceSetName !== null && { resourceSetName: input.ResourceSetName })));
876
+ body = JSON.stringify(__assign({}, (input.ResourceSetName != null && { resourceSetName: input.ResourceSetName })));
888
877
  return [2, new __HttpRequest({
889
878
  protocol: protocol,
890
879
  hostname: hostname,
@@ -918,8 +907,7 @@ export var serializeAws_restJson1UpdateRecoveryGroupCommand = function (input, c
918
907
  else {
919
908
  throw new Error("No value provided for input HTTP label: RecoveryGroupName.");
920
909
  }
921
- body = JSON.stringify(__assign({}, (input.Cells !== undefined &&
922
- input.Cells !== null && { cells: serializeAws_restJson1__listOf__string(input.Cells, context) })));
910
+ body = JSON.stringify(__assign({}, (input.Cells != null && { cells: serializeAws_restJson1__listOf__string(input.Cells, context) })));
923
911
  return [2, new __HttpRequest({
924
912
  protocol: protocol,
925
913
  hostname: hostname,
@@ -953,9 +941,7 @@ export var serializeAws_restJson1UpdateResourceSetCommand = function (input, con
953
941
  else {
954
942
  throw new Error("No value provided for input HTTP label: ResourceSetName.");
955
943
  }
956
- body = JSON.stringify(__assign(__assign({}, (input.ResourceSetType !== undefined &&
957
- input.ResourceSetType !== null && { resourceSetType: input.ResourceSetType })), (input.Resources !== undefined &&
958
- input.Resources !== null && { resources: serializeAws_restJson1__listOfResource(input.Resources, context) })));
944
+ body = JSON.stringify(__assign(__assign({}, (input.ResourceSetType != null && { resourceSetType: input.ResourceSetType })), (input.Resources != null && { resources: serializeAws_restJson1__listOfResource(input.Resources, context) })));
959
945
  return [2, new __HttpRequest({
960
946
  protocol: protocol,
961
947
  hostname: hostname,
@@ -3539,25 +3525,22 @@ var serializeAws_restJson1__listOfResource = function (input, context) {
3539
3525
  });
3540
3526
  };
3541
3527
  var serializeAws_restJson1DNSTargetResource = function (input, context) {
3542
- return __assign(__assign(__assign(__assign(__assign({}, (input.DomainName !== undefined && input.DomainName !== null && { domainName: input.DomainName })), (input.HostedZoneArn !== undefined && input.HostedZoneArn !== null && { hostedZoneArn: input.HostedZoneArn })), (input.RecordSetId !== undefined && input.RecordSetId !== null && { recordSetId: input.RecordSetId })), (input.RecordType !== undefined && input.RecordType !== null && { recordType: input.RecordType })), (input.TargetResource !== undefined &&
3543
- input.TargetResource !== null && {
3528
+ return __assign(__assign(__assign(__assign(__assign({}, (input.DomainName != null && { domainName: input.DomainName })), (input.HostedZoneArn != null && { hostedZoneArn: input.HostedZoneArn })), (input.RecordSetId != null && { recordSetId: input.RecordSetId })), (input.RecordType != null && { recordType: input.RecordType })), (input.TargetResource != null && {
3544
3529
  targetResource: serializeAws_restJson1TargetResource(input.TargetResource, context),
3545
3530
  }));
3546
3531
  };
3547
3532
  var serializeAws_restJson1NLBResource = function (input, context) {
3548
- return __assign({}, (input.Arn !== undefined && input.Arn !== null && { arn: input.Arn }));
3533
+ return __assign({}, (input.Arn != null && { arn: input.Arn }));
3549
3534
  };
3550
3535
  var serializeAws_restJson1R53ResourceRecord = function (input, context) {
3551
- return __assign(__assign({}, (input.DomainName !== undefined && input.DomainName !== null && { domainName: input.DomainName })), (input.RecordSetId !== undefined && input.RecordSetId !== null && { recordSetId: input.RecordSetId }));
3536
+ return __assign(__assign({}, (input.DomainName != null && { domainName: input.DomainName })), (input.RecordSetId != null && { recordSetId: input.RecordSetId }));
3552
3537
  };
3553
3538
  var serializeAws_restJson1Resource = function (input, context) {
3554
- return __assign(__assign(__assign(__assign({}, (input.ComponentId !== undefined && input.ComponentId !== null && { componentId: input.ComponentId })), (input.DnsTargetResource !== undefined &&
3555
- input.DnsTargetResource !== null && {
3539
+ return __assign(__assign(__assign(__assign({}, (input.ComponentId != null && { componentId: input.ComponentId })), (input.DnsTargetResource != null && {
3556
3540
  dnsTargetResource: serializeAws_restJson1DNSTargetResource(input.DnsTargetResource, context),
3557
- })), (input.ReadinessScopes !== undefined &&
3558
- input.ReadinessScopes !== null && {
3541
+ })), (input.ReadinessScopes != null && {
3559
3542
  readinessScopes: serializeAws_restJson1__listOf__string(input.ReadinessScopes, context),
3560
- })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { resourceArn: input.ResourceArn }));
3543
+ })), (input.ResourceArn != null && { resourceArn: input.ResourceArn }));
3561
3544
  };
3562
3545
  var serializeAws_restJson1Tags = function (input, context) {
3563
3546
  return Object.entries(input).reduce(function (acc, _a) {
@@ -3570,9 +3553,7 @@ var serializeAws_restJson1Tags = function (input, context) {
3570
3553
  }, {});
3571
3554
  };
3572
3555
  var serializeAws_restJson1TargetResource = function (input, context) {
3573
- return __assign(__assign({}, (input.NLBResource !== undefined &&
3574
- input.NLBResource !== null && { nLBResource: serializeAws_restJson1NLBResource(input.NLBResource, context) })), (input.R53Resource !== undefined &&
3575
- input.R53Resource !== null && {
3556
+ return __assign(__assign({}, (input.NLBResource != null && { nLBResource: serializeAws_restJson1NLBResource(input.NLBResource, context) })), (input.R53Resource != null && {
3576
3557
  r53Resource: serializeAws_restJson1R53ResourceRecord(input.R53Resource, context),
3577
3558
  }));
3578
3559
  };
@@ -3723,15 +3704,11 @@ var deserializeAws_restJson1CellOutput = function (output, context) {
3723
3704
  return {
3724
3705
  CellArn: __expectString(output.cellArn),
3725
3706
  CellName: __expectString(output.cellName),
3726
- Cells: output.cells !== undefined && output.cells !== null
3727
- ? deserializeAws_restJson1__listOf__string(output.cells, context)
3728
- : undefined,
3729
- ParentReadinessScopes: output.parentReadinessScopes !== undefined && output.parentReadinessScopes !== null
3707
+ Cells: output.cells != null ? deserializeAws_restJson1__listOf__string(output.cells, context) : undefined,
3708
+ ParentReadinessScopes: output.parentReadinessScopes != null
3730
3709
  ? deserializeAws_restJson1__listOf__string(output.parentReadinessScopes, context)
3731
3710
  : undefined,
3732
- Tags: output.tags !== undefined && output.tags !== null
3733
- ? deserializeAws_restJson1Tags(output.tags, context)
3734
- : undefined,
3711
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
3735
3712
  };
3736
3713
  };
3737
3714
  var deserializeAws_restJson1DNSTargetResource = function (output, context) {
@@ -3740,7 +3717,7 @@ var deserializeAws_restJson1DNSTargetResource = function (output, context) {
3740
3717
  HostedZoneArn: __expectString(output.hostedZoneArn),
3741
3718
  RecordSetId: __expectString(output.recordSetId),
3742
3719
  RecordType: __expectString(output.recordType),
3743
- TargetResource: output.targetResource !== undefined && output.targetResource !== null
3720
+ TargetResource: output.targetResource != null
3744
3721
  ? deserializeAws_restJson1TargetResource(output.targetResource, context)
3745
3722
  : undefined,
3746
3723
  };
@@ -3773,9 +3750,7 @@ var deserializeAws_restJson1ReadinessCheckOutput = function (output, context) {
3773
3750
  ReadinessCheckArn: __expectString(output.readinessCheckArn),
3774
3751
  ReadinessCheckName: __expectString(output.readinessCheckName),
3775
3752
  ResourceSet: __expectString(output.resourceSet),
3776
- Tags: output.tags !== undefined && output.tags !== null
3777
- ? deserializeAws_restJson1Tags(output.tags, context)
3778
- : undefined,
3753
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
3779
3754
  };
3780
3755
  };
3781
3756
  var deserializeAws_restJson1ReadinessCheckSummary = function (output, context) {
@@ -3791,23 +3766,19 @@ var deserializeAws_restJson1Recommendation = function (output, context) {
3791
3766
  };
3792
3767
  var deserializeAws_restJson1RecoveryGroupOutput = function (output, context) {
3793
3768
  return {
3794
- Cells: output.cells !== undefined && output.cells !== null
3795
- ? deserializeAws_restJson1__listOf__string(output.cells, context)
3796
- : undefined,
3769
+ Cells: output.cells != null ? deserializeAws_restJson1__listOf__string(output.cells, context) : undefined,
3797
3770
  RecoveryGroupArn: __expectString(output.recoveryGroupArn),
3798
3771
  RecoveryGroupName: __expectString(output.recoveryGroupName),
3799
- Tags: output.tags !== undefined && output.tags !== null
3800
- ? deserializeAws_restJson1Tags(output.tags, context)
3801
- : undefined,
3772
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
3802
3773
  };
3803
3774
  };
3804
3775
  var deserializeAws_restJson1Resource = function (output, context) {
3805
3776
  return {
3806
3777
  ComponentId: __expectString(output.componentId),
3807
- DnsTargetResource: output.dnsTargetResource !== undefined && output.dnsTargetResource !== null
3778
+ DnsTargetResource: output.dnsTargetResource != null
3808
3779
  ? deserializeAws_restJson1DNSTargetResource(output.dnsTargetResource, context)
3809
3780
  : undefined,
3810
- ReadinessScopes: output.readinessScopes !== undefined && output.readinessScopes !== null
3781
+ ReadinessScopes: output.readinessScopes != null
3811
3782
  ? deserializeAws_restJson1__listOf__string(output.readinessScopes, context)
3812
3783
  : undefined,
3813
3784
  ResourceArn: __expectString(output.resourceArn),
@@ -3816,7 +3787,7 @@ var deserializeAws_restJson1Resource = function (output, context) {
3816
3787
  var deserializeAws_restJson1ResourceResult = function (output, context) {
3817
3788
  return {
3818
3789
  ComponentId: __expectString(output.componentId),
3819
- LastCheckedTimestamp: output.lastCheckedTimestamp !== undefined && output.lastCheckedTimestamp !== null
3790
+ LastCheckedTimestamp: output.lastCheckedTimestamp != null
3820
3791
  ? __expectNonNull(__parseRfc3339DateTime(output.lastCheckedTimestamp))
3821
3792
  : undefined,
3822
3793
  Readiness: __expectString(output.readiness),
@@ -3828,22 +3799,16 @@ var deserializeAws_restJson1ResourceSetOutput = function (output, context) {
3828
3799
  ResourceSetArn: __expectString(output.resourceSetArn),
3829
3800
  ResourceSetName: __expectString(output.resourceSetName),
3830
3801
  ResourceSetType: __expectString(output.resourceSetType),
3831
- Resources: output.resources !== undefined && output.resources !== null
3832
- ? deserializeAws_restJson1__listOfResource(output.resources, context)
3833
- : undefined,
3834
- Tags: output.tags !== undefined && output.tags !== null
3835
- ? deserializeAws_restJson1Tags(output.tags, context)
3836
- : undefined,
3802
+ Resources: output.resources != null ? deserializeAws_restJson1__listOfResource(output.resources, context) : undefined,
3803
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
3837
3804
  };
3838
3805
  };
3839
3806
  var deserializeAws_restJson1RuleResult = function (output, context) {
3840
3807
  return {
3841
- LastCheckedTimestamp: output.lastCheckedTimestamp !== undefined && output.lastCheckedTimestamp !== null
3808
+ LastCheckedTimestamp: output.lastCheckedTimestamp != null
3842
3809
  ? __expectNonNull(__parseRfc3339DateTime(output.lastCheckedTimestamp))
3843
3810
  : undefined,
3844
- Messages: output.messages !== undefined && output.messages !== null
3845
- ? deserializeAws_restJson1__listOfMessage(output.messages, context)
3846
- : undefined,
3811
+ Messages: output.messages != null ? deserializeAws_restJson1__listOfMessage(output.messages, context) : undefined,
3847
3812
  Readiness: __expectString(output.readiness),
3848
3813
  RuleId: __expectString(output.ruleId),
3849
3814
  };
@@ -3860,12 +3825,8 @@ var deserializeAws_restJson1Tags = function (output, context) {
3860
3825
  };
3861
3826
  var deserializeAws_restJson1TargetResource = function (output, context) {
3862
3827
  return {
3863
- NLBResource: output.nLBResource !== undefined && output.nLBResource !== null
3864
- ? deserializeAws_restJson1NLBResource(output.nLBResource, context)
3865
- : undefined,
3866
- R53Resource: output.r53Resource !== undefined && output.r53Resource !== null
3867
- ? deserializeAws_restJson1R53ResourceRecord(output.r53Resource, context)
3868
- : undefined,
3828
+ NLBResource: output.nLBResource != null ? deserializeAws_restJson1NLBResource(output.nLBResource, context) : undefined,
3829
+ R53Resource: output.r53Resource != null ? deserializeAws_restJson1R53ResourceRecord(output.r53Resource, context) : undefined,
3869
3830
  };
3870
3831
  };
3871
3832
  var deserializeMetadata = function (output) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-route53-recovery-readiness",
3
3
  "description": "AWS SDK for JavaScript Route53 Recovery Readiness 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"