@aws-sdk/client-dlm 3.121.0 → 3.130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +106 -169
- package/dist-es/protocols/Aws_restJson1.js +67 -130
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-dlm
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-dlm
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -13,15 +13,13 @@ const serializeAws_restJson1CreateLifecyclePolicyCommand = async (input, context
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/policies";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.Description
|
|
17
|
-
...(input.ExecutionRoleArn
|
|
18
|
-
|
|
19
|
-
...(input.PolicyDetails !== undefined &&
|
|
20
|
-
input.PolicyDetails !== null && {
|
|
16
|
+
...(input.Description != null && { Description: input.Description }),
|
|
17
|
+
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
18
|
+
...(input.PolicyDetails != null && {
|
|
21
19
|
PolicyDetails: serializeAws_restJson1PolicyDetails(input.PolicyDetails, context),
|
|
22
20
|
}),
|
|
23
|
-
...(input.State
|
|
24
|
-
...(input.Tags
|
|
21
|
+
...(input.State != null && { State: input.State }),
|
|
22
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
25
23
|
});
|
|
26
24
|
return new protocol_http_1.HttpRequest({
|
|
27
25
|
protocol,
|
|
@@ -156,7 +154,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
156
154
|
}
|
|
157
155
|
let body;
|
|
158
156
|
body = JSON.stringify({
|
|
159
|
-
...(input.Tags
|
|
157
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
160
158
|
});
|
|
161
159
|
return new protocol_http_1.HttpRequest({
|
|
162
160
|
protocol,
|
|
@@ -217,14 +215,12 @@ const serializeAws_restJson1UpdateLifecyclePolicyCommand = async (input, context
|
|
|
217
215
|
}
|
|
218
216
|
let body;
|
|
219
217
|
body = JSON.stringify({
|
|
220
|
-
...(input.Description
|
|
221
|
-
...(input.ExecutionRoleArn
|
|
222
|
-
|
|
223
|
-
...(input.PolicyDetails !== undefined &&
|
|
224
|
-
input.PolicyDetails !== null && {
|
|
218
|
+
...(input.Description != null && { Description: input.Description }),
|
|
219
|
+
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
220
|
+
...(input.PolicyDetails != null && {
|
|
225
221
|
PolicyDetails: serializeAws_restJson1PolicyDetails(input.PolicyDetails, context),
|
|
226
222
|
}),
|
|
227
|
-
...(input.State
|
|
223
|
+
...(input.State != null && { State: input.State }),
|
|
228
224
|
});
|
|
229
225
|
return new protocol_http_1.HttpRequest({
|
|
230
226
|
protocol,
|
|
@@ -656,11 +652,10 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
656
652
|
};
|
|
657
653
|
const serializeAws_restJson1Action = (input, context) => {
|
|
658
654
|
return {
|
|
659
|
-
...(input.CrossRegionCopy
|
|
660
|
-
input.CrossRegionCopy !== null && {
|
|
655
|
+
...(input.CrossRegionCopy != null && {
|
|
661
656
|
CrossRegionCopy: serializeAws_restJson1CrossRegionCopyActionList(input.CrossRegionCopy, context),
|
|
662
657
|
}),
|
|
663
|
-
...(input.Name
|
|
658
|
+
...(input.Name != null && { Name: input.Name }),
|
|
664
659
|
};
|
|
665
660
|
};
|
|
666
661
|
const serializeAws_restJson1ActionList = (input, context) => {
|
|
@@ -685,26 +680,22 @@ const serializeAws_restJson1AvailabilityZoneList = (input, context) => {
|
|
|
685
680
|
};
|
|
686
681
|
const serializeAws_restJson1CreateRule = (input, context) => {
|
|
687
682
|
return {
|
|
688
|
-
...(input.CronExpression
|
|
689
|
-
|
|
690
|
-
...(input.
|
|
691
|
-
...(input.
|
|
692
|
-
...(input.
|
|
693
|
-
...(input.Times !== undefined &&
|
|
694
|
-
input.Times !== null && { Times: serializeAws_restJson1TimesList(input.Times, context) }),
|
|
683
|
+
...(input.CronExpression != null && { CronExpression: input.CronExpression }),
|
|
684
|
+
...(input.Interval != null && { Interval: input.Interval }),
|
|
685
|
+
...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
|
|
686
|
+
...(input.Location != null && { Location: input.Location }),
|
|
687
|
+
...(input.Times != null && { Times: serializeAws_restJson1TimesList(input.Times, context) }),
|
|
695
688
|
};
|
|
696
689
|
};
|
|
697
690
|
const serializeAws_restJson1CrossRegionCopyAction = (input, context) => {
|
|
698
691
|
return {
|
|
699
|
-
...(input.EncryptionConfiguration
|
|
700
|
-
input.EncryptionConfiguration !== null && {
|
|
692
|
+
...(input.EncryptionConfiguration != null && {
|
|
701
693
|
EncryptionConfiguration: serializeAws_restJson1EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
702
694
|
}),
|
|
703
|
-
...(input.RetainRule
|
|
704
|
-
input.RetainRule !== null && {
|
|
695
|
+
...(input.RetainRule != null && {
|
|
705
696
|
RetainRule: serializeAws_restJson1CrossRegionCopyRetainRule(input.RetainRule, context),
|
|
706
697
|
}),
|
|
707
|
-
...(input.Target
|
|
698
|
+
...(input.Target != null && { Target: input.Target }),
|
|
708
699
|
};
|
|
709
700
|
};
|
|
710
701
|
const serializeAws_restJson1CrossRegionCopyActionList = (input, context) => {
|
|
@@ -719,31 +710,29 @@ const serializeAws_restJson1CrossRegionCopyActionList = (input, context) => {
|
|
|
719
710
|
};
|
|
720
711
|
const serializeAws_restJson1CrossRegionCopyDeprecateRule = (input, context) => {
|
|
721
712
|
return {
|
|
722
|
-
...(input.Interval
|
|
723
|
-
...(input.IntervalUnit
|
|
713
|
+
...(input.Interval != null && { Interval: input.Interval }),
|
|
714
|
+
...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
|
|
724
715
|
};
|
|
725
716
|
};
|
|
726
717
|
const serializeAws_restJson1CrossRegionCopyRetainRule = (input, context) => {
|
|
727
718
|
return {
|
|
728
|
-
...(input.Interval
|
|
729
|
-
...(input.IntervalUnit
|
|
719
|
+
...(input.Interval != null && { Interval: input.Interval }),
|
|
720
|
+
...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
|
|
730
721
|
};
|
|
731
722
|
};
|
|
732
723
|
const serializeAws_restJson1CrossRegionCopyRule = (input, context) => {
|
|
733
724
|
return {
|
|
734
|
-
...(input.CmkArn
|
|
735
|
-
...(input.CopyTags
|
|
736
|
-
...(input.DeprecateRule
|
|
737
|
-
input.DeprecateRule !== null && {
|
|
725
|
+
...(input.CmkArn != null && { CmkArn: input.CmkArn }),
|
|
726
|
+
...(input.CopyTags != null && { CopyTags: input.CopyTags }),
|
|
727
|
+
...(input.DeprecateRule != null && {
|
|
738
728
|
DeprecateRule: serializeAws_restJson1CrossRegionCopyDeprecateRule(input.DeprecateRule, context),
|
|
739
729
|
}),
|
|
740
|
-
...(input.Encrypted
|
|
741
|
-
...(input.RetainRule
|
|
742
|
-
input.RetainRule !== null && {
|
|
730
|
+
...(input.Encrypted != null && { Encrypted: input.Encrypted }),
|
|
731
|
+
...(input.RetainRule != null && {
|
|
743
732
|
RetainRule: serializeAws_restJson1CrossRegionCopyRetainRule(input.RetainRule, context),
|
|
744
733
|
}),
|
|
745
|
-
...(input.Target
|
|
746
|
-
...(input.TargetRegion
|
|
734
|
+
...(input.Target != null && { Target: input.Target }),
|
|
735
|
+
...(input.TargetRegion != null && { TargetRegion: input.TargetRegion }),
|
|
747
736
|
};
|
|
748
737
|
};
|
|
749
738
|
const serializeAws_restJson1CrossRegionCopyRules = (input, context) => {
|
|
@@ -758,74 +747,62 @@ const serializeAws_restJson1CrossRegionCopyRules = (input, context) => {
|
|
|
758
747
|
};
|
|
759
748
|
const serializeAws_restJson1DeprecateRule = (input, context) => {
|
|
760
749
|
return {
|
|
761
|
-
...(input.Count
|
|
762
|
-
...(input.Interval
|
|
763
|
-
...(input.IntervalUnit
|
|
750
|
+
...(input.Count != null && { Count: input.Count }),
|
|
751
|
+
...(input.Interval != null && { Interval: input.Interval }),
|
|
752
|
+
...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
|
|
764
753
|
};
|
|
765
754
|
};
|
|
766
755
|
const serializeAws_restJson1EncryptionConfiguration = (input, context) => {
|
|
767
756
|
return {
|
|
768
|
-
...(input.CmkArn
|
|
769
|
-
...(input.Encrypted
|
|
757
|
+
...(input.CmkArn != null && { CmkArn: input.CmkArn }),
|
|
758
|
+
...(input.Encrypted != null && { Encrypted: input.Encrypted }),
|
|
770
759
|
};
|
|
771
760
|
};
|
|
772
761
|
const serializeAws_restJson1EventParameters = (input, context) => {
|
|
773
762
|
return {
|
|
774
|
-
...(input.DescriptionRegex
|
|
775
|
-
|
|
776
|
-
...(input.
|
|
777
|
-
...(input.SnapshotOwner !== undefined &&
|
|
778
|
-
input.SnapshotOwner !== null && {
|
|
763
|
+
...(input.DescriptionRegex != null && { DescriptionRegex: input.DescriptionRegex }),
|
|
764
|
+
...(input.EventType != null && { EventType: input.EventType }),
|
|
765
|
+
...(input.SnapshotOwner != null && {
|
|
779
766
|
SnapshotOwner: serializeAws_restJson1SnapshotOwnerList(input.SnapshotOwner, context),
|
|
780
767
|
}),
|
|
781
768
|
};
|
|
782
769
|
};
|
|
783
770
|
const serializeAws_restJson1EventSource = (input, context) => {
|
|
784
771
|
return {
|
|
785
|
-
...(input.Parameters
|
|
786
|
-
|
|
787
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
772
|
+
...(input.Parameters != null && { Parameters: serializeAws_restJson1EventParameters(input.Parameters, context) }),
|
|
773
|
+
...(input.Type != null && { Type: input.Type }),
|
|
788
774
|
};
|
|
789
775
|
};
|
|
790
776
|
const serializeAws_restJson1FastRestoreRule = (input, context) => {
|
|
791
777
|
return {
|
|
792
|
-
...(input.AvailabilityZones
|
|
793
|
-
input.AvailabilityZones !== null && {
|
|
778
|
+
...(input.AvailabilityZones != null && {
|
|
794
779
|
AvailabilityZones: serializeAws_restJson1AvailabilityZoneList(input.AvailabilityZones, context),
|
|
795
780
|
}),
|
|
796
|
-
...(input.Count
|
|
797
|
-
...(input.Interval
|
|
798
|
-
...(input.IntervalUnit
|
|
781
|
+
...(input.Count != null && { Count: input.Count }),
|
|
782
|
+
...(input.Interval != null && { Interval: input.Interval }),
|
|
783
|
+
...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
|
|
799
784
|
};
|
|
800
785
|
};
|
|
801
786
|
const serializeAws_restJson1_Parameters = (input, context) => {
|
|
802
787
|
return {
|
|
803
|
-
...(input.ExcludeBootVolume
|
|
804
|
-
|
|
805
|
-
...(input.NoReboot !== undefined && input.NoReboot !== null && { NoReboot: input.NoReboot }),
|
|
788
|
+
...(input.ExcludeBootVolume != null && { ExcludeBootVolume: input.ExcludeBootVolume }),
|
|
789
|
+
...(input.NoReboot != null && { NoReboot: input.NoReboot }),
|
|
806
790
|
};
|
|
807
791
|
};
|
|
808
792
|
const serializeAws_restJson1PolicyDetails = (input, context) => {
|
|
809
793
|
return {
|
|
810
|
-
...(input.Actions
|
|
811
|
-
|
|
812
|
-
...(input.
|
|
813
|
-
|
|
814
|
-
...(input.
|
|
815
|
-
input.Parameters !== null && { Parameters: serializeAws_restJson1_Parameters(input.Parameters, context) }),
|
|
816
|
-
...(input.PolicyType !== undefined && input.PolicyType !== null && { PolicyType: input.PolicyType }),
|
|
817
|
-
...(input.ResourceLocations !== undefined &&
|
|
818
|
-
input.ResourceLocations !== null && {
|
|
794
|
+
...(input.Actions != null && { Actions: serializeAws_restJson1ActionList(input.Actions, context) }),
|
|
795
|
+
...(input.EventSource != null && { EventSource: serializeAws_restJson1EventSource(input.EventSource, context) }),
|
|
796
|
+
...(input.Parameters != null && { Parameters: serializeAws_restJson1_Parameters(input.Parameters, context) }),
|
|
797
|
+
...(input.PolicyType != null && { PolicyType: input.PolicyType }),
|
|
798
|
+
...(input.ResourceLocations != null && {
|
|
819
799
|
ResourceLocations: serializeAws_restJson1ResourceLocationList(input.ResourceLocations, context),
|
|
820
800
|
}),
|
|
821
|
-
...(input.ResourceTypes
|
|
822
|
-
input.ResourceTypes !== null && {
|
|
801
|
+
...(input.ResourceTypes != null && {
|
|
823
802
|
ResourceTypes: serializeAws_restJson1ResourceTypeValuesList(input.ResourceTypes, context),
|
|
824
803
|
}),
|
|
825
|
-
...(input.Schedules
|
|
826
|
-
|
|
827
|
-
...(input.TargetTags !== undefined &&
|
|
828
|
-
input.TargetTags !== null && { TargetTags: serializeAws_restJson1TargetTagList(input.TargetTags, context) }),
|
|
804
|
+
...(input.Schedules != null && { Schedules: serializeAws_restJson1ScheduleList(input.Schedules, context) }),
|
|
805
|
+
...(input.TargetTags != null && { TargetTags: serializeAws_restJson1TargetTagList(input.TargetTags, context) }),
|
|
829
806
|
};
|
|
830
807
|
};
|
|
831
808
|
const serializeAws_restJson1ResourceLocationList = (input, context) => {
|
|
@@ -850,37 +827,29 @@ const serializeAws_restJson1ResourceTypeValuesList = (input, context) => {
|
|
|
850
827
|
};
|
|
851
828
|
const serializeAws_restJson1RetainRule = (input, context) => {
|
|
852
829
|
return {
|
|
853
|
-
...(input.Count
|
|
854
|
-
...(input.Interval
|
|
855
|
-
...(input.IntervalUnit
|
|
830
|
+
...(input.Count != null && { Count: input.Count }),
|
|
831
|
+
...(input.Interval != null && { Interval: input.Interval }),
|
|
832
|
+
...(input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }),
|
|
856
833
|
};
|
|
857
834
|
};
|
|
858
835
|
const serializeAws_restJson1Schedule = (input, context) => {
|
|
859
836
|
return {
|
|
860
|
-
...(input.CopyTags
|
|
861
|
-
...(input.CreateRule
|
|
862
|
-
|
|
863
|
-
...(input.CrossRegionCopyRules !== undefined &&
|
|
864
|
-
input.CrossRegionCopyRules !== null && {
|
|
837
|
+
...(input.CopyTags != null && { CopyTags: input.CopyTags }),
|
|
838
|
+
...(input.CreateRule != null && { CreateRule: serializeAws_restJson1CreateRule(input.CreateRule, context) }),
|
|
839
|
+
...(input.CrossRegionCopyRules != null && {
|
|
865
840
|
CrossRegionCopyRules: serializeAws_restJson1CrossRegionCopyRules(input.CrossRegionCopyRules, context),
|
|
866
841
|
}),
|
|
867
|
-
...(input.DeprecateRule
|
|
868
|
-
input.DeprecateRule !== null && {
|
|
842
|
+
...(input.DeprecateRule != null && {
|
|
869
843
|
DeprecateRule: serializeAws_restJson1DeprecateRule(input.DeprecateRule, context),
|
|
870
844
|
}),
|
|
871
|
-
...(input.FastRestoreRule
|
|
872
|
-
input.FastRestoreRule !== null && {
|
|
845
|
+
...(input.FastRestoreRule != null && {
|
|
873
846
|
FastRestoreRule: serializeAws_restJson1FastRestoreRule(input.FastRestoreRule, context),
|
|
874
847
|
}),
|
|
875
|
-
...(input.Name
|
|
876
|
-
...(input.RetainRule
|
|
877
|
-
|
|
878
|
-
...(input.
|
|
879
|
-
|
|
880
|
-
...(input.TagsToAdd !== undefined &&
|
|
881
|
-
input.TagsToAdd !== null && { TagsToAdd: serializeAws_restJson1TagsToAddList(input.TagsToAdd, context) }),
|
|
882
|
-
...(input.VariableTags !== undefined &&
|
|
883
|
-
input.VariableTags !== null && {
|
|
848
|
+
...(input.Name != null && { Name: input.Name }),
|
|
849
|
+
...(input.RetainRule != null && { RetainRule: serializeAws_restJson1RetainRule(input.RetainRule, context) }),
|
|
850
|
+
...(input.ShareRules != null && { ShareRules: serializeAws_restJson1ShareRules(input.ShareRules, context) }),
|
|
851
|
+
...(input.TagsToAdd != null && { TagsToAdd: serializeAws_restJson1TagsToAddList(input.TagsToAdd, context) }),
|
|
852
|
+
...(input.VariableTags != null && {
|
|
884
853
|
VariableTags: serializeAws_restJson1VariableTagsList(input.VariableTags, context),
|
|
885
854
|
}),
|
|
886
855
|
};
|
|
@@ -897,14 +866,11 @@ const serializeAws_restJson1ScheduleList = (input, context) => {
|
|
|
897
866
|
};
|
|
898
867
|
const serializeAws_restJson1ShareRule = (input, context) => {
|
|
899
868
|
return {
|
|
900
|
-
...(input.TargetAccounts
|
|
901
|
-
input.TargetAccounts !== null && {
|
|
869
|
+
...(input.TargetAccounts != null && {
|
|
902
870
|
TargetAccounts: serializeAws_restJson1ShareTargetAccountList(input.TargetAccounts, context),
|
|
903
871
|
}),
|
|
904
|
-
...(input.UnshareInterval
|
|
905
|
-
|
|
906
|
-
...(input.UnshareIntervalUnit !== undefined &&
|
|
907
|
-
input.UnshareIntervalUnit !== null && { UnshareIntervalUnit: input.UnshareIntervalUnit }),
|
|
872
|
+
...(input.UnshareInterval != null && { UnshareInterval: input.UnshareInterval }),
|
|
873
|
+
...(input.UnshareIntervalUnit != null && { UnshareIntervalUnit: input.UnshareIntervalUnit }),
|
|
908
874
|
};
|
|
909
875
|
};
|
|
910
876
|
const serializeAws_restJson1ShareRules = (input, context) => {
|
|
@@ -939,8 +905,8 @@ const serializeAws_restJson1SnapshotOwnerList = (input, context) => {
|
|
|
939
905
|
};
|
|
940
906
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
941
907
|
return {
|
|
942
|
-
...(input.Key
|
|
943
|
-
...(input.Value
|
|
908
|
+
...(input.Key != null && { Key: input.Key }),
|
|
909
|
+
...(input.Value != null && { Value: input.Value }),
|
|
944
910
|
};
|
|
945
911
|
};
|
|
946
912
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
@@ -996,7 +962,7 @@ const serializeAws_restJson1VariableTagsList = (input, context) => {
|
|
|
996
962
|
};
|
|
997
963
|
const deserializeAws_restJson1Action = (output, context) => {
|
|
998
964
|
return {
|
|
999
|
-
CrossRegionCopy: output.CrossRegionCopy
|
|
965
|
+
CrossRegionCopy: output.CrossRegionCopy != null
|
|
1000
966
|
? deserializeAws_restJson1CrossRegionCopyActionList(output.CrossRegionCopy, context)
|
|
1001
967
|
: undefined,
|
|
1002
968
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -1030,17 +996,15 @@ const deserializeAws_restJson1CreateRule = (output, context) => {
|
|
|
1030
996
|
Interval: (0, smithy_client_1.expectInt32)(output.Interval),
|
|
1031
997
|
IntervalUnit: (0, smithy_client_1.expectString)(output.IntervalUnit),
|
|
1032
998
|
Location: (0, smithy_client_1.expectString)(output.Location),
|
|
1033
|
-
Times: output.Times
|
|
1034
|
-
? deserializeAws_restJson1TimesList(output.Times, context)
|
|
1035
|
-
: undefined,
|
|
999
|
+
Times: output.Times != null ? deserializeAws_restJson1TimesList(output.Times, context) : undefined,
|
|
1036
1000
|
};
|
|
1037
1001
|
};
|
|
1038
1002
|
const deserializeAws_restJson1CrossRegionCopyAction = (output, context) => {
|
|
1039
1003
|
return {
|
|
1040
|
-
EncryptionConfiguration: output.EncryptionConfiguration
|
|
1004
|
+
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
1041
1005
|
? deserializeAws_restJson1EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
1042
1006
|
: undefined,
|
|
1043
|
-
RetainRule: output.RetainRule
|
|
1007
|
+
RetainRule: output.RetainRule != null
|
|
1044
1008
|
? deserializeAws_restJson1CrossRegionCopyRetainRule(output.RetainRule, context)
|
|
1045
1009
|
: undefined,
|
|
1046
1010
|
Target: (0, smithy_client_1.expectString)(output.Target),
|
|
@@ -1073,11 +1037,11 @@ const deserializeAws_restJson1CrossRegionCopyRule = (output, context) => {
|
|
|
1073
1037
|
return {
|
|
1074
1038
|
CmkArn: (0, smithy_client_1.expectString)(output.CmkArn),
|
|
1075
1039
|
CopyTags: (0, smithy_client_1.expectBoolean)(output.CopyTags),
|
|
1076
|
-
DeprecateRule: output.DeprecateRule
|
|
1040
|
+
DeprecateRule: output.DeprecateRule != null
|
|
1077
1041
|
? deserializeAws_restJson1CrossRegionCopyDeprecateRule(output.DeprecateRule, context)
|
|
1078
1042
|
: undefined,
|
|
1079
1043
|
Encrypted: (0, smithy_client_1.expectBoolean)(output.Encrypted),
|
|
1080
|
-
RetainRule: output.RetainRule
|
|
1044
|
+
RetainRule: output.RetainRule != null
|
|
1081
1045
|
? deserializeAws_restJson1CrossRegionCopyRetainRule(output.RetainRule, context)
|
|
1082
1046
|
: undefined,
|
|
1083
1047
|
Target: (0, smithy_client_1.expectString)(output.Target),
|
|
@@ -1112,22 +1076,20 @@ const deserializeAws_restJson1EventParameters = (output, context) => {
|
|
|
1112
1076
|
return {
|
|
1113
1077
|
DescriptionRegex: (0, smithy_client_1.expectString)(output.DescriptionRegex),
|
|
1114
1078
|
EventType: (0, smithy_client_1.expectString)(output.EventType),
|
|
1115
|
-
SnapshotOwner: output.SnapshotOwner
|
|
1079
|
+
SnapshotOwner: output.SnapshotOwner != null
|
|
1116
1080
|
? deserializeAws_restJson1SnapshotOwnerList(output.SnapshotOwner, context)
|
|
1117
1081
|
: undefined,
|
|
1118
1082
|
};
|
|
1119
1083
|
};
|
|
1120
1084
|
const deserializeAws_restJson1EventSource = (output, context) => {
|
|
1121
1085
|
return {
|
|
1122
|
-
Parameters: output.Parameters
|
|
1123
|
-
? deserializeAws_restJson1EventParameters(output.Parameters, context)
|
|
1124
|
-
: undefined,
|
|
1086
|
+
Parameters: output.Parameters != null ? deserializeAws_restJson1EventParameters(output.Parameters, context) : undefined,
|
|
1125
1087
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1126
1088
|
};
|
|
1127
1089
|
};
|
|
1128
1090
|
const deserializeAws_restJson1FastRestoreRule = (output, context) => {
|
|
1129
1091
|
return {
|
|
1130
|
-
AvailabilityZones: output.AvailabilityZones
|
|
1092
|
+
AvailabilityZones: output.AvailabilityZones != null
|
|
1131
1093
|
? deserializeAws_restJson1AvailabilityZoneList(output.AvailabilityZones, context)
|
|
1132
1094
|
: undefined,
|
|
1133
1095
|
Count: (0, smithy_client_1.expectInt32)(output.Count),
|
|
@@ -1137,24 +1099,20 @@ const deserializeAws_restJson1FastRestoreRule = (output, context) => {
|
|
|
1137
1099
|
};
|
|
1138
1100
|
const deserializeAws_restJson1LifecyclePolicy = (output, context) => {
|
|
1139
1101
|
return {
|
|
1140
|
-
DateCreated: output.DateCreated
|
|
1102
|
+
DateCreated: output.DateCreated != null
|
|
1141
1103
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateCreated)))
|
|
1142
1104
|
: undefined,
|
|
1143
|
-
DateModified: output.DateModified
|
|
1105
|
+
DateModified: output.DateModified != null
|
|
1144
1106
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateModified)))
|
|
1145
1107
|
: undefined,
|
|
1146
1108
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1147
1109
|
ExecutionRoleArn: (0, smithy_client_1.expectString)(output.ExecutionRoleArn),
|
|
1148
1110
|
PolicyArn: (0, smithy_client_1.expectString)(output.PolicyArn),
|
|
1149
|
-
PolicyDetails: output.PolicyDetails
|
|
1150
|
-
? deserializeAws_restJson1PolicyDetails(output.PolicyDetails, context)
|
|
1151
|
-
: undefined,
|
|
1111
|
+
PolicyDetails: output.PolicyDetails != null ? deserializeAws_restJson1PolicyDetails(output.PolicyDetails, context) : undefined,
|
|
1152
1112
|
PolicyId: (0, smithy_client_1.expectString)(output.PolicyId),
|
|
1153
1113
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
1154
1114
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1155
|
-
Tags: output.Tags
|
|
1156
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
1157
|
-
: undefined,
|
|
1115
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
1158
1116
|
};
|
|
1159
1117
|
};
|
|
1160
1118
|
const deserializeAws_restJson1LifecyclePolicySummary = (output, context) => {
|
|
@@ -1163,9 +1121,7 @@ const deserializeAws_restJson1LifecyclePolicySummary = (output, context) => {
|
|
|
1163
1121
|
PolicyId: (0, smithy_client_1.expectString)(output.PolicyId),
|
|
1164
1122
|
PolicyType: (0, smithy_client_1.expectString)(output.PolicyType),
|
|
1165
1123
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
1166
|
-
Tags: output.Tags
|
|
1167
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
1168
|
-
: undefined,
|
|
1124
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
1169
1125
|
};
|
|
1170
1126
|
};
|
|
1171
1127
|
const deserializeAws_restJson1LifecyclePolicySummaryList = (output, context) => {
|
|
@@ -1198,28 +1154,18 @@ const deserializeAws_restJson1_Parameters = (output, context) => {
|
|
|
1198
1154
|
};
|
|
1199
1155
|
const deserializeAws_restJson1PolicyDetails = (output, context) => {
|
|
1200
1156
|
return {
|
|
1201
|
-
Actions: output.Actions
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
EventSource: output.EventSource !== undefined && output.EventSource !== null
|
|
1205
|
-
? deserializeAws_restJson1EventSource(output.EventSource, context)
|
|
1206
|
-
: undefined,
|
|
1207
|
-
Parameters: output.Parameters !== undefined && output.Parameters !== null
|
|
1208
|
-
? deserializeAws_restJson1_Parameters(output.Parameters, context)
|
|
1209
|
-
: undefined,
|
|
1157
|
+
Actions: output.Actions != null ? deserializeAws_restJson1ActionList(output.Actions, context) : undefined,
|
|
1158
|
+
EventSource: output.EventSource != null ? deserializeAws_restJson1EventSource(output.EventSource, context) : undefined,
|
|
1159
|
+
Parameters: output.Parameters != null ? deserializeAws_restJson1_Parameters(output.Parameters, context) : undefined,
|
|
1210
1160
|
PolicyType: (0, smithy_client_1.expectString)(output.PolicyType),
|
|
1211
|
-
ResourceLocations: output.ResourceLocations
|
|
1161
|
+
ResourceLocations: output.ResourceLocations != null
|
|
1212
1162
|
? deserializeAws_restJson1ResourceLocationList(output.ResourceLocations, context)
|
|
1213
1163
|
: undefined,
|
|
1214
|
-
ResourceTypes: output.ResourceTypes
|
|
1164
|
+
ResourceTypes: output.ResourceTypes != null
|
|
1215
1165
|
? deserializeAws_restJson1ResourceTypeValuesList(output.ResourceTypes, context)
|
|
1216
1166
|
: undefined,
|
|
1217
|
-
Schedules: output.Schedules
|
|
1218
|
-
|
|
1219
|
-
: undefined,
|
|
1220
|
-
TargetTags: output.TargetTags !== undefined && output.TargetTags !== null
|
|
1221
|
-
? deserializeAws_restJson1TargetTagList(output.TargetTags, context)
|
|
1222
|
-
: undefined,
|
|
1167
|
+
Schedules: output.Schedules != null ? deserializeAws_restJson1ScheduleList(output.Schedules, context) : undefined,
|
|
1168
|
+
TargetTags: output.TargetTags != null ? deserializeAws_restJson1TargetTagList(output.TargetTags, context) : undefined,
|
|
1223
1169
|
};
|
|
1224
1170
|
};
|
|
1225
1171
|
const deserializeAws_restJson1PolicyIdList = (output, context) => {
|
|
@@ -1265,31 +1211,19 @@ const deserializeAws_restJson1RetainRule = (output, context) => {
|
|
|
1265
1211
|
const deserializeAws_restJson1Schedule = (output, context) => {
|
|
1266
1212
|
return {
|
|
1267
1213
|
CopyTags: (0, smithy_client_1.expectBoolean)(output.CopyTags),
|
|
1268
|
-
CreateRule: output.CreateRule
|
|
1269
|
-
|
|
1270
|
-
: undefined,
|
|
1271
|
-
CrossRegionCopyRules: output.CrossRegionCopyRules !== undefined && output.CrossRegionCopyRules !== null
|
|
1214
|
+
CreateRule: output.CreateRule != null ? deserializeAws_restJson1CreateRule(output.CreateRule, context) : undefined,
|
|
1215
|
+
CrossRegionCopyRules: output.CrossRegionCopyRules != null
|
|
1272
1216
|
? deserializeAws_restJson1CrossRegionCopyRules(output.CrossRegionCopyRules, context)
|
|
1273
1217
|
: undefined,
|
|
1274
|
-
DeprecateRule: output.DeprecateRule
|
|
1275
|
-
|
|
1276
|
-
: undefined,
|
|
1277
|
-
FastRestoreRule: output.FastRestoreRule !== undefined && output.FastRestoreRule !== null
|
|
1218
|
+
DeprecateRule: output.DeprecateRule != null ? deserializeAws_restJson1DeprecateRule(output.DeprecateRule, context) : undefined,
|
|
1219
|
+
FastRestoreRule: output.FastRestoreRule != null
|
|
1278
1220
|
? deserializeAws_restJson1FastRestoreRule(output.FastRestoreRule, context)
|
|
1279
1221
|
: undefined,
|
|
1280
1222
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1281
|
-
RetainRule: output.RetainRule
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
? deserializeAws_restJson1ShareRules(output.ShareRules, context)
|
|
1286
|
-
: undefined,
|
|
1287
|
-
TagsToAdd: output.TagsToAdd !== undefined && output.TagsToAdd !== null
|
|
1288
|
-
? deserializeAws_restJson1TagsToAddList(output.TagsToAdd, context)
|
|
1289
|
-
: undefined,
|
|
1290
|
-
VariableTags: output.VariableTags !== undefined && output.VariableTags !== null
|
|
1291
|
-
? deserializeAws_restJson1VariableTagsList(output.VariableTags, context)
|
|
1292
|
-
: undefined,
|
|
1223
|
+
RetainRule: output.RetainRule != null ? deserializeAws_restJson1RetainRule(output.RetainRule, context) : undefined,
|
|
1224
|
+
ShareRules: output.ShareRules != null ? deserializeAws_restJson1ShareRules(output.ShareRules, context) : undefined,
|
|
1225
|
+
TagsToAdd: output.TagsToAdd != null ? deserializeAws_restJson1TagsToAddList(output.TagsToAdd, context) : undefined,
|
|
1226
|
+
VariableTags: output.VariableTags != null ? deserializeAws_restJson1VariableTagsList(output.VariableTags, context) : undefined,
|
|
1293
1227
|
};
|
|
1294
1228
|
};
|
|
1295
1229
|
const deserializeAws_restJson1ScheduleList = (output, context) => {
|
|
@@ -1305,7 +1239,7 @@ const deserializeAws_restJson1ScheduleList = (output, context) => {
|
|
|
1305
1239
|
};
|
|
1306
1240
|
const deserializeAws_restJson1ShareRule = (output, context) => {
|
|
1307
1241
|
return {
|
|
1308
|
-
TargetAccounts: output.TargetAccounts
|
|
1242
|
+
TargetAccounts: output.TargetAccounts != null
|
|
1309
1243
|
? deserializeAws_restJson1ShareTargetAccountList(output.TargetAccounts, context)
|
|
1310
1244
|
: undefined,
|
|
1311
1245
|
UnshareInterval: (0, smithy_client_1.expectInt32)(output.UnshareInterval),
|
|
@@ -1437,6 +1371,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1437
1371
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1438
1372
|
const sanitizeErrorCode = (rawValue) => {
|
|
1439
1373
|
let cleanValue = rawValue;
|
|
1374
|
+
if (typeof cleanValue === "number") {
|
|
1375
|
+
cleanValue = cleanValue.toString();
|
|
1376
|
+
}
|
|
1440
1377
|
if (cleanValue.indexOf(":") >= 0) {
|
|
1441
1378
|
cleanValue = cleanValue.split(":")[0];
|
|
1442
1379
|
}
|
|
@@ -14,11 +14,9 @@ export var serializeAws_restJson1CreateLifecyclePolicyCommand = function (input,
|
|
|
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 || "") + "/policies";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
18
|
-
input.ExecutionRoleArn !== null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.PolicyDetails !== undefined &&
|
|
19
|
-
input.PolicyDetails !== null && {
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.PolicyDetails != null && {
|
|
20
18
|
PolicyDetails: serializeAws_restJson1PolicyDetails(input.PolicyDetails, context),
|
|
21
|
-
})), (input.State
|
|
19
|
+
})), (input.State != null && { State: input.State })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
22
20
|
return [2, new __HttpRequest({
|
|
23
21
|
protocol: protocol,
|
|
24
22
|
hostname: hostname,
|
|
@@ -170,7 +168,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
170
168
|
else {
|
|
171
169
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
172
170
|
}
|
|
173
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
171
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
174
172
|
return [2, new __HttpRequest({
|
|
175
173
|
protocol: protocol,
|
|
176
174
|
hostname: hostname,
|
|
@@ -237,11 +235,9 @@ export var serializeAws_restJson1UpdateLifecyclePolicyCommand = function (input,
|
|
|
237
235
|
else {
|
|
238
236
|
throw new Error("No value provided for input HTTP label: PolicyId.");
|
|
239
237
|
}
|
|
240
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description
|
|
241
|
-
input.ExecutionRoleArn !== null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.PolicyDetails !== undefined &&
|
|
242
|
-
input.PolicyDetails !== null && {
|
|
238
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.PolicyDetails != null && {
|
|
243
239
|
PolicyDetails: serializeAws_restJson1PolicyDetails(input.PolicyDetails, context),
|
|
244
|
-
})), (input.State
|
|
240
|
+
})), (input.State != null && { State: input.State })));
|
|
245
241
|
return [2, new __HttpRequest({
|
|
246
242
|
protocol: protocol,
|
|
247
243
|
hostname: hostname,
|
|
@@ -834,10 +830,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
834
830
|
});
|
|
835
831
|
}); };
|
|
836
832
|
var serializeAws_restJson1Action = function (input, context) {
|
|
837
|
-
return __assign(__assign({}, (input.CrossRegionCopy
|
|
838
|
-
input.CrossRegionCopy !== null && {
|
|
833
|
+
return __assign(__assign({}, (input.CrossRegionCopy != null && {
|
|
839
834
|
CrossRegionCopy: serializeAws_restJson1CrossRegionCopyActionList(input.CrossRegionCopy, context),
|
|
840
|
-
})), (input.Name
|
|
835
|
+
})), (input.Name != null && { Name: input.Name }));
|
|
841
836
|
};
|
|
842
837
|
var serializeAws_restJson1ActionList = function (input, context) {
|
|
843
838
|
return input
|
|
@@ -860,18 +855,14 @@ var serializeAws_restJson1AvailabilityZoneList = function (input, context) {
|
|
|
860
855
|
});
|
|
861
856
|
};
|
|
862
857
|
var serializeAws_restJson1CreateRule = function (input, context) {
|
|
863
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.CronExpression
|
|
864
|
-
input.CronExpression !== null && { CronExpression: input.CronExpression })), (input.Interval !== undefined && input.Interval !== null && { Interval: input.Interval })), (input.IntervalUnit !== undefined && input.IntervalUnit !== null && { IntervalUnit: input.IntervalUnit })), (input.Location !== undefined && input.Location !== null && { Location: input.Location })), (input.Times !== undefined &&
|
|
865
|
-
input.Times !== null && { Times: serializeAws_restJson1TimesList(input.Times, context) }));
|
|
858
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.CronExpression != null && { CronExpression: input.CronExpression })), (input.Interval != null && { Interval: input.Interval })), (input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit })), (input.Location != null && { Location: input.Location })), (input.Times != null && { Times: serializeAws_restJson1TimesList(input.Times, context) }));
|
|
866
859
|
};
|
|
867
860
|
var serializeAws_restJson1CrossRegionCopyAction = function (input, context) {
|
|
868
|
-
return __assign(__assign(__assign({}, (input.EncryptionConfiguration
|
|
869
|
-
input.EncryptionConfiguration !== null && {
|
|
861
|
+
return __assign(__assign(__assign({}, (input.EncryptionConfiguration != null && {
|
|
870
862
|
EncryptionConfiguration: serializeAws_restJson1EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
871
|
-
})), (input.RetainRule
|
|
872
|
-
input.RetainRule !== null && {
|
|
863
|
+
})), (input.RetainRule != null && {
|
|
873
864
|
RetainRule: serializeAws_restJson1CrossRegionCopyRetainRule(input.RetainRule, context),
|
|
874
|
-
})), (input.Target
|
|
865
|
+
})), (input.Target != null && { Target: input.Target }));
|
|
875
866
|
};
|
|
876
867
|
var serializeAws_restJson1CrossRegionCopyActionList = function (input, context) {
|
|
877
868
|
return input
|
|
@@ -884,19 +875,17 @@ var serializeAws_restJson1CrossRegionCopyActionList = function (input, context)
|
|
|
884
875
|
});
|
|
885
876
|
};
|
|
886
877
|
var serializeAws_restJson1CrossRegionCopyDeprecateRule = function (input, context) {
|
|
887
|
-
return __assign(__assign({}, (input.Interval
|
|
878
|
+
return __assign(__assign({}, (input.Interval != null && { Interval: input.Interval })), (input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }));
|
|
888
879
|
};
|
|
889
880
|
var serializeAws_restJson1CrossRegionCopyRetainRule = function (input, context) {
|
|
890
|
-
return __assign(__assign({}, (input.Interval
|
|
881
|
+
return __assign(__assign({}, (input.Interval != null && { Interval: input.Interval })), (input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }));
|
|
891
882
|
};
|
|
892
883
|
var serializeAws_restJson1CrossRegionCopyRule = function (input, context) {
|
|
893
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CmkArn
|
|
894
|
-
input.DeprecateRule !== null && {
|
|
884
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CmkArn != null && { CmkArn: input.CmkArn })), (input.CopyTags != null && { CopyTags: input.CopyTags })), (input.DeprecateRule != null && {
|
|
895
885
|
DeprecateRule: serializeAws_restJson1CrossRegionCopyDeprecateRule(input.DeprecateRule, context),
|
|
896
|
-
})), (input.Encrypted
|
|
897
|
-
input.RetainRule !== null && {
|
|
886
|
+
})), (input.Encrypted != null && { Encrypted: input.Encrypted })), (input.RetainRule != null && {
|
|
898
887
|
RetainRule: serializeAws_restJson1CrossRegionCopyRetainRule(input.RetainRule, context),
|
|
899
|
-
})), (input.Target
|
|
888
|
+
})), (input.Target != null && { Target: input.Target })), (input.TargetRegion != null && { TargetRegion: input.TargetRegion }));
|
|
900
889
|
};
|
|
901
890
|
var serializeAws_restJson1CrossRegionCopyRules = function (input, context) {
|
|
902
891
|
return input
|
|
@@ -909,45 +898,33 @@ var serializeAws_restJson1CrossRegionCopyRules = function (input, context) {
|
|
|
909
898
|
});
|
|
910
899
|
};
|
|
911
900
|
var serializeAws_restJson1DeprecateRule = function (input, context) {
|
|
912
|
-
return __assign(__assign(__assign({}, (input.Count
|
|
901
|
+
return __assign(__assign(__assign({}, (input.Count != null && { Count: input.Count })), (input.Interval != null && { Interval: input.Interval })), (input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }));
|
|
913
902
|
};
|
|
914
903
|
var serializeAws_restJson1EncryptionConfiguration = function (input, context) {
|
|
915
|
-
return __assign(__assign({}, (input.CmkArn
|
|
904
|
+
return __assign(__assign({}, (input.CmkArn != null && { CmkArn: input.CmkArn })), (input.Encrypted != null && { Encrypted: input.Encrypted }));
|
|
916
905
|
};
|
|
917
906
|
var serializeAws_restJson1EventParameters = function (input, context) {
|
|
918
|
-
return __assign(__assign(__assign({}, (input.DescriptionRegex
|
|
919
|
-
input.DescriptionRegex !== null && { DescriptionRegex: input.DescriptionRegex })), (input.EventType !== undefined && input.EventType !== null && { EventType: input.EventType })), (input.SnapshotOwner !== undefined &&
|
|
920
|
-
input.SnapshotOwner !== null && {
|
|
907
|
+
return __assign(__assign(__assign({}, (input.DescriptionRegex != null && { DescriptionRegex: input.DescriptionRegex })), (input.EventType != null && { EventType: input.EventType })), (input.SnapshotOwner != null && {
|
|
921
908
|
SnapshotOwner: serializeAws_restJson1SnapshotOwnerList(input.SnapshotOwner, context),
|
|
922
909
|
}));
|
|
923
910
|
};
|
|
924
911
|
var serializeAws_restJson1EventSource = function (input, context) {
|
|
925
|
-
return __assign(__assign({}, (input.Parameters
|
|
926
|
-
input.Parameters !== null && { Parameters: serializeAws_restJson1EventParameters(input.Parameters, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
|
|
912
|
+
return __assign(__assign({}, (input.Parameters != null && { Parameters: serializeAws_restJson1EventParameters(input.Parameters, context) })), (input.Type != null && { Type: input.Type }));
|
|
927
913
|
};
|
|
928
914
|
var serializeAws_restJson1FastRestoreRule = function (input, context) {
|
|
929
|
-
return __assign(__assign(__assign(__assign({}, (input.AvailabilityZones
|
|
930
|
-
input.AvailabilityZones !== null && {
|
|
915
|
+
return __assign(__assign(__assign(__assign({}, (input.AvailabilityZones != null && {
|
|
931
916
|
AvailabilityZones: serializeAws_restJson1AvailabilityZoneList(input.AvailabilityZones, context),
|
|
932
|
-
})), (input.Count
|
|
917
|
+
})), (input.Count != null && { Count: input.Count })), (input.Interval != null && { Interval: input.Interval })), (input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }));
|
|
933
918
|
};
|
|
934
919
|
var serializeAws_restJson1_Parameters = function (input, context) {
|
|
935
|
-
return __assign(__assign({}, (input.ExcludeBootVolume
|
|
936
|
-
input.ExcludeBootVolume !== null && { ExcludeBootVolume: input.ExcludeBootVolume })), (input.NoReboot !== undefined && input.NoReboot !== null && { NoReboot: input.NoReboot }));
|
|
920
|
+
return __assign(__assign({}, (input.ExcludeBootVolume != null && { ExcludeBootVolume: input.ExcludeBootVolume })), (input.NoReboot != null && { NoReboot: input.NoReboot }));
|
|
937
921
|
};
|
|
938
922
|
var serializeAws_restJson1PolicyDetails = function (input, context) {
|
|
939
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Actions
|
|
940
|
-
input.Actions !== null && { Actions: serializeAws_restJson1ActionList(input.Actions, context) })), (input.EventSource !== undefined &&
|
|
941
|
-
input.EventSource !== null && { EventSource: serializeAws_restJson1EventSource(input.EventSource, context) })), (input.Parameters !== undefined &&
|
|
942
|
-
input.Parameters !== null && { Parameters: serializeAws_restJson1_Parameters(input.Parameters, context) })), (input.PolicyType !== undefined && input.PolicyType !== null && { PolicyType: input.PolicyType })), (input.ResourceLocations !== undefined &&
|
|
943
|
-
input.ResourceLocations !== null && {
|
|
923
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Actions != null && { Actions: serializeAws_restJson1ActionList(input.Actions, context) })), (input.EventSource != null && { EventSource: serializeAws_restJson1EventSource(input.EventSource, context) })), (input.Parameters != null && { Parameters: serializeAws_restJson1_Parameters(input.Parameters, context) })), (input.PolicyType != null && { PolicyType: input.PolicyType })), (input.ResourceLocations != null && {
|
|
944
924
|
ResourceLocations: serializeAws_restJson1ResourceLocationList(input.ResourceLocations, context),
|
|
945
|
-
})), (input.ResourceTypes
|
|
946
|
-
input.ResourceTypes !== null && {
|
|
925
|
+
})), (input.ResourceTypes != null && {
|
|
947
926
|
ResourceTypes: serializeAws_restJson1ResourceTypeValuesList(input.ResourceTypes, context),
|
|
948
|
-
})), (input.Schedules
|
|
949
|
-
input.Schedules !== null && { Schedules: serializeAws_restJson1ScheduleList(input.Schedules, context) })), (input.TargetTags !== undefined &&
|
|
950
|
-
input.TargetTags !== null && { TargetTags: serializeAws_restJson1TargetTagList(input.TargetTags, context) }));
|
|
927
|
+
})), (input.Schedules != null && { Schedules: serializeAws_restJson1ScheduleList(input.Schedules, context) })), (input.TargetTags != null && { TargetTags: serializeAws_restJson1TargetTagList(input.TargetTags, context) }));
|
|
951
928
|
};
|
|
952
929
|
var serializeAws_restJson1ResourceLocationList = function (input, context) {
|
|
953
930
|
return input
|
|
@@ -970,24 +947,16 @@ var serializeAws_restJson1ResourceTypeValuesList = function (input, context) {
|
|
|
970
947
|
});
|
|
971
948
|
};
|
|
972
949
|
var serializeAws_restJson1RetainRule = function (input, context) {
|
|
973
|
-
return __assign(__assign(__assign({}, (input.Count
|
|
950
|
+
return __assign(__assign(__assign({}, (input.Count != null && { Count: input.Count })), (input.Interval != null && { Interval: input.Interval })), (input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }));
|
|
974
951
|
};
|
|
975
952
|
var serializeAws_restJson1Schedule = function (input, context) {
|
|
976
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CopyTags
|
|
977
|
-
input.CreateRule !== null && { CreateRule: serializeAws_restJson1CreateRule(input.CreateRule, context) })), (input.CrossRegionCopyRules !== undefined &&
|
|
978
|
-
input.CrossRegionCopyRules !== null && {
|
|
953
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CopyTags != null && { CopyTags: input.CopyTags })), (input.CreateRule != null && { CreateRule: serializeAws_restJson1CreateRule(input.CreateRule, context) })), (input.CrossRegionCopyRules != null && {
|
|
979
954
|
CrossRegionCopyRules: serializeAws_restJson1CrossRegionCopyRules(input.CrossRegionCopyRules, context),
|
|
980
|
-
})), (input.DeprecateRule
|
|
981
|
-
input.DeprecateRule !== null && {
|
|
955
|
+
})), (input.DeprecateRule != null && {
|
|
982
956
|
DeprecateRule: serializeAws_restJson1DeprecateRule(input.DeprecateRule, context),
|
|
983
|
-
})), (input.FastRestoreRule
|
|
984
|
-
input.FastRestoreRule !== null && {
|
|
957
|
+
})), (input.FastRestoreRule != null && {
|
|
985
958
|
FastRestoreRule: serializeAws_restJson1FastRestoreRule(input.FastRestoreRule, context),
|
|
986
|
-
})), (input.Name
|
|
987
|
-
input.RetainRule !== null && { RetainRule: serializeAws_restJson1RetainRule(input.RetainRule, context) })), (input.ShareRules !== undefined &&
|
|
988
|
-
input.ShareRules !== null && { ShareRules: serializeAws_restJson1ShareRules(input.ShareRules, context) })), (input.TagsToAdd !== undefined &&
|
|
989
|
-
input.TagsToAdd !== null && { TagsToAdd: serializeAws_restJson1TagsToAddList(input.TagsToAdd, context) })), (input.VariableTags !== undefined &&
|
|
990
|
-
input.VariableTags !== null && {
|
|
959
|
+
})), (input.Name != null && { Name: input.Name })), (input.RetainRule != null && { RetainRule: serializeAws_restJson1RetainRule(input.RetainRule, context) })), (input.ShareRules != null && { ShareRules: serializeAws_restJson1ShareRules(input.ShareRules, context) })), (input.TagsToAdd != null && { TagsToAdd: serializeAws_restJson1TagsToAddList(input.TagsToAdd, context) })), (input.VariableTags != null && {
|
|
991
960
|
VariableTags: serializeAws_restJson1VariableTagsList(input.VariableTags, context),
|
|
992
961
|
}));
|
|
993
962
|
};
|
|
@@ -1002,12 +971,9 @@ var serializeAws_restJson1ScheduleList = function (input, context) {
|
|
|
1002
971
|
});
|
|
1003
972
|
};
|
|
1004
973
|
var serializeAws_restJson1ShareRule = function (input, context) {
|
|
1005
|
-
return __assign(__assign(__assign({}, (input.TargetAccounts
|
|
1006
|
-
input.TargetAccounts !== null && {
|
|
974
|
+
return __assign(__assign(__assign({}, (input.TargetAccounts != null && {
|
|
1007
975
|
TargetAccounts: serializeAws_restJson1ShareTargetAccountList(input.TargetAccounts, context),
|
|
1008
|
-
})), (input.UnshareInterval
|
|
1009
|
-
input.UnshareInterval !== null && { UnshareInterval: input.UnshareInterval })), (input.UnshareIntervalUnit !== undefined &&
|
|
1010
|
-
input.UnshareIntervalUnit !== null && { UnshareIntervalUnit: input.UnshareIntervalUnit }));
|
|
976
|
+
})), (input.UnshareInterval != null && { UnshareInterval: input.UnshareInterval })), (input.UnshareIntervalUnit != null && { UnshareIntervalUnit: input.UnshareIntervalUnit }));
|
|
1011
977
|
};
|
|
1012
978
|
var serializeAws_restJson1ShareRules = function (input, context) {
|
|
1013
979
|
return input
|
|
@@ -1040,7 +1006,7 @@ var serializeAws_restJson1SnapshotOwnerList = function (input, context) {
|
|
|
1040
1006
|
});
|
|
1041
1007
|
};
|
|
1042
1008
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
1043
|
-
return __assign(__assign({}, (input.Key
|
|
1009
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
1044
1010
|
};
|
|
1045
1011
|
var serializeAws_restJson1TagMap = function (input, context) {
|
|
1046
1012
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -1094,7 +1060,7 @@ var serializeAws_restJson1VariableTagsList = function (input, context) {
|
|
|
1094
1060
|
};
|
|
1095
1061
|
var deserializeAws_restJson1Action = function (output, context) {
|
|
1096
1062
|
return {
|
|
1097
|
-
CrossRegionCopy: output.CrossRegionCopy
|
|
1063
|
+
CrossRegionCopy: output.CrossRegionCopy != null
|
|
1098
1064
|
? deserializeAws_restJson1CrossRegionCopyActionList(output.CrossRegionCopy, context)
|
|
1099
1065
|
: undefined,
|
|
1100
1066
|
Name: __expectString(output.Name),
|
|
@@ -1128,17 +1094,15 @@ var deserializeAws_restJson1CreateRule = function (output, context) {
|
|
|
1128
1094
|
Interval: __expectInt32(output.Interval),
|
|
1129
1095
|
IntervalUnit: __expectString(output.IntervalUnit),
|
|
1130
1096
|
Location: __expectString(output.Location),
|
|
1131
|
-
Times: output.Times
|
|
1132
|
-
? deserializeAws_restJson1TimesList(output.Times, context)
|
|
1133
|
-
: undefined,
|
|
1097
|
+
Times: output.Times != null ? deserializeAws_restJson1TimesList(output.Times, context) : undefined,
|
|
1134
1098
|
};
|
|
1135
1099
|
};
|
|
1136
1100
|
var deserializeAws_restJson1CrossRegionCopyAction = function (output, context) {
|
|
1137
1101
|
return {
|
|
1138
|
-
EncryptionConfiguration: output.EncryptionConfiguration
|
|
1102
|
+
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
1139
1103
|
? deserializeAws_restJson1EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
1140
1104
|
: undefined,
|
|
1141
|
-
RetainRule: output.RetainRule
|
|
1105
|
+
RetainRule: output.RetainRule != null
|
|
1142
1106
|
? deserializeAws_restJson1CrossRegionCopyRetainRule(output.RetainRule, context)
|
|
1143
1107
|
: undefined,
|
|
1144
1108
|
Target: __expectString(output.Target),
|
|
@@ -1171,11 +1135,11 @@ var deserializeAws_restJson1CrossRegionCopyRule = function (output, context) {
|
|
|
1171
1135
|
return {
|
|
1172
1136
|
CmkArn: __expectString(output.CmkArn),
|
|
1173
1137
|
CopyTags: __expectBoolean(output.CopyTags),
|
|
1174
|
-
DeprecateRule: output.DeprecateRule
|
|
1138
|
+
DeprecateRule: output.DeprecateRule != null
|
|
1175
1139
|
? deserializeAws_restJson1CrossRegionCopyDeprecateRule(output.DeprecateRule, context)
|
|
1176
1140
|
: undefined,
|
|
1177
1141
|
Encrypted: __expectBoolean(output.Encrypted),
|
|
1178
|
-
RetainRule: output.RetainRule
|
|
1142
|
+
RetainRule: output.RetainRule != null
|
|
1179
1143
|
? deserializeAws_restJson1CrossRegionCopyRetainRule(output.RetainRule, context)
|
|
1180
1144
|
: undefined,
|
|
1181
1145
|
Target: __expectString(output.Target),
|
|
@@ -1210,22 +1174,20 @@ var deserializeAws_restJson1EventParameters = function (output, context) {
|
|
|
1210
1174
|
return {
|
|
1211
1175
|
DescriptionRegex: __expectString(output.DescriptionRegex),
|
|
1212
1176
|
EventType: __expectString(output.EventType),
|
|
1213
|
-
SnapshotOwner: output.SnapshotOwner
|
|
1177
|
+
SnapshotOwner: output.SnapshotOwner != null
|
|
1214
1178
|
? deserializeAws_restJson1SnapshotOwnerList(output.SnapshotOwner, context)
|
|
1215
1179
|
: undefined,
|
|
1216
1180
|
};
|
|
1217
1181
|
};
|
|
1218
1182
|
var deserializeAws_restJson1EventSource = function (output, context) {
|
|
1219
1183
|
return {
|
|
1220
|
-
Parameters: output.Parameters
|
|
1221
|
-
? deserializeAws_restJson1EventParameters(output.Parameters, context)
|
|
1222
|
-
: undefined,
|
|
1184
|
+
Parameters: output.Parameters != null ? deserializeAws_restJson1EventParameters(output.Parameters, context) : undefined,
|
|
1223
1185
|
Type: __expectString(output.Type),
|
|
1224
1186
|
};
|
|
1225
1187
|
};
|
|
1226
1188
|
var deserializeAws_restJson1FastRestoreRule = function (output, context) {
|
|
1227
1189
|
return {
|
|
1228
|
-
AvailabilityZones: output.AvailabilityZones
|
|
1190
|
+
AvailabilityZones: output.AvailabilityZones != null
|
|
1229
1191
|
? deserializeAws_restJson1AvailabilityZoneList(output.AvailabilityZones, context)
|
|
1230
1192
|
: undefined,
|
|
1231
1193
|
Count: __expectInt32(output.Count),
|
|
@@ -1235,24 +1197,20 @@ var deserializeAws_restJson1FastRestoreRule = function (output, context) {
|
|
|
1235
1197
|
};
|
|
1236
1198
|
var deserializeAws_restJson1LifecyclePolicy = function (output, context) {
|
|
1237
1199
|
return {
|
|
1238
|
-
DateCreated: output.DateCreated
|
|
1200
|
+
DateCreated: output.DateCreated != null
|
|
1239
1201
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateCreated)))
|
|
1240
1202
|
: undefined,
|
|
1241
|
-
DateModified: output.DateModified
|
|
1203
|
+
DateModified: output.DateModified != null
|
|
1242
1204
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateModified)))
|
|
1243
1205
|
: undefined,
|
|
1244
1206
|
Description: __expectString(output.Description),
|
|
1245
1207
|
ExecutionRoleArn: __expectString(output.ExecutionRoleArn),
|
|
1246
1208
|
PolicyArn: __expectString(output.PolicyArn),
|
|
1247
|
-
PolicyDetails: output.PolicyDetails
|
|
1248
|
-
? deserializeAws_restJson1PolicyDetails(output.PolicyDetails, context)
|
|
1249
|
-
: undefined,
|
|
1209
|
+
PolicyDetails: output.PolicyDetails != null ? deserializeAws_restJson1PolicyDetails(output.PolicyDetails, context) : undefined,
|
|
1250
1210
|
PolicyId: __expectString(output.PolicyId),
|
|
1251
1211
|
State: __expectString(output.State),
|
|
1252
1212
|
StatusMessage: __expectString(output.StatusMessage),
|
|
1253
|
-
Tags: output.Tags
|
|
1254
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
1255
|
-
: undefined,
|
|
1213
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
1256
1214
|
};
|
|
1257
1215
|
};
|
|
1258
1216
|
var deserializeAws_restJson1LifecyclePolicySummary = function (output, context) {
|
|
@@ -1261,9 +1219,7 @@ var deserializeAws_restJson1LifecyclePolicySummary = function (output, context)
|
|
|
1261
1219
|
PolicyId: __expectString(output.PolicyId),
|
|
1262
1220
|
PolicyType: __expectString(output.PolicyType),
|
|
1263
1221
|
State: __expectString(output.State),
|
|
1264
|
-
Tags: output.Tags
|
|
1265
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
1266
|
-
: undefined,
|
|
1222
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
1267
1223
|
};
|
|
1268
1224
|
};
|
|
1269
1225
|
var deserializeAws_restJson1LifecyclePolicySummaryList = function (output, context) {
|
|
@@ -1296,28 +1252,18 @@ var deserializeAws_restJson1_Parameters = function (output, context) {
|
|
|
1296
1252
|
};
|
|
1297
1253
|
var deserializeAws_restJson1PolicyDetails = function (output, context) {
|
|
1298
1254
|
return {
|
|
1299
|
-
Actions: output.Actions
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
EventSource: output.EventSource !== undefined && output.EventSource !== null
|
|
1303
|
-
? deserializeAws_restJson1EventSource(output.EventSource, context)
|
|
1304
|
-
: undefined,
|
|
1305
|
-
Parameters: output.Parameters !== undefined && output.Parameters !== null
|
|
1306
|
-
? deserializeAws_restJson1_Parameters(output.Parameters, context)
|
|
1307
|
-
: undefined,
|
|
1255
|
+
Actions: output.Actions != null ? deserializeAws_restJson1ActionList(output.Actions, context) : undefined,
|
|
1256
|
+
EventSource: output.EventSource != null ? deserializeAws_restJson1EventSource(output.EventSource, context) : undefined,
|
|
1257
|
+
Parameters: output.Parameters != null ? deserializeAws_restJson1_Parameters(output.Parameters, context) : undefined,
|
|
1308
1258
|
PolicyType: __expectString(output.PolicyType),
|
|
1309
|
-
ResourceLocations: output.ResourceLocations
|
|
1259
|
+
ResourceLocations: output.ResourceLocations != null
|
|
1310
1260
|
? deserializeAws_restJson1ResourceLocationList(output.ResourceLocations, context)
|
|
1311
1261
|
: undefined,
|
|
1312
|
-
ResourceTypes: output.ResourceTypes
|
|
1262
|
+
ResourceTypes: output.ResourceTypes != null
|
|
1313
1263
|
? deserializeAws_restJson1ResourceTypeValuesList(output.ResourceTypes, context)
|
|
1314
1264
|
: undefined,
|
|
1315
|
-
Schedules: output.Schedules
|
|
1316
|
-
|
|
1317
|
-
: undefined,
|
|
1318
|
-
TargetTags: output.TargetTags !== undefined && output.TargetTags !== null
|
|
1319
|
-
? deserializeAws_restJson1TargetTagList(output.TargetTags, context)
|
|
1320
|
-
: undefined,
|
|
1265
|
+
Schedules: output.Schedules != null ? deserializeAws_restJson1ScheduleList(output.Schedules, context) : undefined,
|
|
1266
|
+
TargetTags: output.TargetTags != null ? deserializeAws_restJson1TargetTagList(output.TargetTags, context) : undefined,
|
|
1321
1267
|
};
|
|
1322
1268
|
};
|
|
1323
1269
|
var deserializeAws_restJson1PolicyIdList = function (output, context) {
|
|
@@ -1363,31 +1309,19 @@ var deserializeAws_restJson1RetainRule = function (output, context) {
|
|
|
1363
1309
|
var deserializeAws_restJson1Schedule = function (output, context) {
|
|
1364
1310
|
return {
|
|
1365
1311
|
CopyTags: __expectBoolean(output.CopyTags),
|
|
1366
|
-
CreateRule: output.CreateRule
|
|
1367
|
-
|
|
1368
|
-
: undefined,
|
|
1369
|
-
CrossRegionCopyRules: output.CrossRegionCopyRules !== undefined && output.CrossRegionCopyRules !== null
|
|
1312
|
+
CreateRule: output.CreateRule != null ? deserializeAws_restJson1CreateRule(output.CreateRule, context) : undefined,
|
|
1313
|
+
CrossRegionCopyRules: output.CrossRegionCopyRules != null
|
|
1370
1314
|
? deserializeAws_restJson1CrossRegionCopyRules(output.CrossRegionCopyRules, context)
|
|
1371
1315
|
: undefined,
|
|
1372
|
-
DeprecateRule: output.DeprecateRule
|
|
1373
|
-
|
|
1374
|
-
: undefined,
|
|
1375
|
-
FastRestoreRule: output.FastRestoreRule !== undefined && output.FastRestoreRule !== null
|
|
1316
|
+
DeprecateRule: output.DeprecateRule != null ? deserializeAws_restJson1DeprecateRule(output.DeprecateRule, context) : undefined,
|
|
1317
|
+
FastRestoreRule: output.FastRestoreRule != null
|
|
1376
1318
|
? deserializeAws_restJson1FastRestoreRule(output.FastRestoreRule, context)
|
|
1377
1319
|
: undefined,
|
|
1378
1320
|
Name: __expectString(output.Name),
|
|
1379
|
-
RetainRule: output.RetainRule
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
? deserializeAws_restJson1ShareRules(output.ShareRules, context)
|
|
1384
|
-
: undefined,
|
|
1385
|
-
TagsToAdd: output.TagsToAdd !== undefined && output.TagsToAdd !== null
|
|
1386
|
-
? deserializeAws_restJson1TagsToAddList(output.TagsToAdd, context)
|
|
1387
|
-
: undefined,
|
|
1388
|
-
VariableTags: output.VariableTags !== undefined && output.VariableTags !== null
|
|
1389
|
-
? deserializeAws_restJson1VariableTagsList(output.VariableTags, context)
|
|
1390
|
-
: undefined,
|
|
1321
|
+
RetainRule: output.RetainRule != null ? deserializeAws_restJson1RetainRule(output.RetainRule, context) : undefined,
|
|
1322
|
+
ShareRules: output.ShareRules != null ? deserializeAws_restJson1ShareRules(output.ShareRules, context) : undefined,
|
|
1323
|
+
TagsToAdd: output.TagsToAdd != null ? deserializeAws_restJson1TagsToAddList(output.TagsToAdd, context) : undefined,
|
|
1324
|
+
VariableTags: output.VariableTags != null ? deserializeAws_restJson1VariableTagsList(output.VariableTags, context) : undefined,
|
|
1391
1325
|
};
|
|
1392
1326
|
};
|
|
1393
1327
|
var deserializeAws_restJson1ScheduleList = function (output, context) {
|
|
@@ -1403,7 +1337,7 @@ var deserializeAws_restJson1ScheduleList = function (output, context) {
|
|
|
1403
1337
|
};
|
|
1404
1338
|
var deserializeAws_restJson1ShareRule = function (output, context) {
|
|
1405
1339
|
return {
|
|
1406
|
-
TargetAccounts: output.TargetAccounts
|
|
1340
|
+
TargetAccounts: output.TargetAccounts != null
|
|
1407
1341
|
? deserializeAws_restJson1ShareTargetAccountList(output.TargetAccounts, context)
|
|
1408
1342
|
: undefined,
|
|
1409
1343
|
UnshareInterval: __expectInt32(output.UnshareInterval),
|
|
@@ -1541,6 +1475,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1541
1475
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1542
1476
|
var sanitizeErrorCode = function (rawValue) {
|
|
1543
1477
|
var cleanValue = rawValue;
|
|
1478
|
+
if (typeof cleanValue === "number") {
|
|
1479
|
+
cleanValue = cleanValue.toString();
|
|
1480
|
+
}
|
|
1544
1481
|
if (cleanValue.indexOf(":") >= 0) {
|
|
1545
1482
|
cleanValue = cleanValue.split(":")[0];
|
|
1546
1483
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-dlm",
|
|
3
3
|
"description": "AWS SDK for JavaScript Dlm Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.130.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|