@aws-sdk/client-codestar-connections 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_json1_0.js +46 -67
- package/dist-es/protocols/Aws_json1_0.js +28 -49
- 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-codestar-connections
|
|
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-codestar-connections
|
|
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
|
|
|
@@ -637,64 +637,60 @@ const deserializeAws_json1_0UnsupportedOperationExceptionResponse = async (parse
|
|
|
637
637
|
};
|
|
638
638
|
const serializeAws_json1_0CreateConnectionInput = (input, context) => {
|
|
639
639
|
return {
|
|
640
|
-
...(input.ConnectionName
|
|
641
|
-
|
|
642
|
-
...(input.
|
|
643
|
-
...(input.
|
|
644
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
640
|
+
...(input.ConnectionName != null && { ConnectionName: input.ConnectionName }),
|
|
641
|
+
...(input.HostArn != null && { HostArn: input.HostArn }),
|
|
642
|
+
...(input.ProviderType != null && { ProviderType: input.ProviderType }),
|
|
643
|
+
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
645
644
|
};
|
|
646
645
|
};
|
|
647
646
|
const serializeAws_json1_0CreateHostInput = (input, context) => {
|
|
648
647
|
return {
|
|
649
|
-
...(input.Name
|
|
650
|
-
...(input.ProviderEndpoint
|
|
651
|
-
|
|
652
|
-
...(input.
|
|
653
|
-
...(input.
|
|
654
|
-
...(input.VpcConfiguration !== undefined &&
|
|
655
|
-
input.VpcConfiguration !== null && {
|
|
648
|
+
...(input.Name != null && { Name: input.Name }),
|
|
649
|
+
...(input.ProviderEndpoint != null && { ProviderEndpoint: input.ProviderEndpoint }),
|
|
650
|
+
...(input.ProviderType != null && { ProviderType: input.ProviderType }),
|
|
651
|
+
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
652
|
+
...(input.VpcConfiguration != null && {
|
|
656
653
|
VpcConfiguration: serializeAws_json1_0VpcConfiguration(input.VpcConfiguration, context),
|
|
657
654
|
}),
|
|
658
655
|
};
|
|
659
656
|
};
|
|
660
657
|
const serializeAws_json1_0DeleteConnectionInput = (input, context) => {
|
|
661
658
|
return {
|
|
662
|
-
...(input.ConnectionArn
|
|
659
|
+
...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
|
|
663
660
|
};
|
|
664
661
|
};
|
|
665
662
|
const serializeAws_json1_0DeleteHostInput = (input, context) => {
|
|
666
663
|
return {
|
|
667
|
-
...(input.HostArn
|
|
664
|
+
...(input.HostArn != null && { HostArn: input.HostArn }),
|
|
668
665
|
};
|
|
669
666
|
};
|
|
670
667
|
const serializeAws_json1_0GetConnectionInput = (input, context) => {
|
|
671
668
|
return {
|
|
672
|
-
...(input.ConnectionArn
|
|
669
|
+
...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
|
|
673
670
|
};
|
|
674
671
|
};
|
|
675
672
|
const serializeAws_json1_0GetHostInput = (input, context) => {
|
|
676
673
|
return {
|
|
677
|
-
...(input.HostArn
|
|
674
|
+
...(input.HostArn != null && { HostArn: input.HostArn }),
|
|
678
675
|
};
|
|
679
676
|
};
|
|
680
677
|
const serializeAws_json1_0ListConnectionsInput = (input, context) => {
|
|
681
678
|
return {
|
|
682
|
-
...(input.HostArnFilter
|
|
683
|
-
...(input.MaxResults
|
|
684
|
-
...(input.NextToken
|
|
685
|
-
...(input.ProviderTypeFilter
|
|
686
|
-
input.ProviderTypeFilter !== null && { ProviderTypeFilter: input.ProviderTypeFilter }),
|
|
679
|
+
...(input.HostArnFilter != null && { HostArnFilter: input.HostArnFilter }),
|
|
680
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
681
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
682
|
+
...(input.ProviderTypeFilter != null && { ProviderTypeFilter: input.ProviderTypeFilter }),
|
|
687
683
|
};
|
|
688
684
|
};
|
|
689
685
|
const serializeAws_json1_0ListHostsInput = (input, context) => {
|
|
690
686
|
return {
|
|
691
|
-
...(input.MaxResults
|
|
692
|
-
...(input.NextToken
|
|
687
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
688
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
693
689
|
};
|
|
694
690
|
};
|
|
695
691
|
const serializeAws_json1_0ListTagsForResourceInput = (input, context) => {
|
|
696
692
|
return {
|
|
697
|
-
...(input.ResourceArn
|
|
693
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
698
694
|
};
|
|
699
695
|
};
|
|
700
696
|
const serializeAws_json1_0SecurityGroupIds = (input, context) => {
|
|
@@ -719,8 +715,8 @@ const serializeAws_json1_0SubnetIds = (input, context) => {
|
|
|
719
715
|
};
|
|
720
716
|
const serializeAws_json1_0Tag = (input, context) => {
|
|
721
717
|
return {
|
|
722
|
-
...(input.Key
|
|
723
|
-
...(input.Value
|
|
718
|
+
...(input.Key != null && { Key: input.Key }),
|
|
719
|
+
...(input.Value != null && { Value: input.Value }),
|
|
724
720
|
};
|
|
725
721
|
};
|
|
726
722
|
const serializeAws_json1_0TagKeyList = (input, context) => {
|
|
@@ -745,39 +741,33 @@ const serializeAws_json1_0TagList = (input, context) => {
|
|
|
745
741
|
};
|
|
746
742
|
const serializeAws_json1_0TagResourceInput = (input, context) => {
|
|
747
743
|
return {
|
|
748
|
-
...(input.ResourceArn
|
|
749
|
-
...(input.Tags
|
|
744
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
745
|
+
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
750
746
|
};
|
|
751
747
|
};
|
|
752
748
|
const serializeAws_json1_0UntagResourceInput = (input, context) => {
|
|
753
749
|
return {
|
|
754
|
-
...(input.ResourceArn
|
|
755
|
-
...(input.TagKeys
|
|
756
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
|
|
750
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
751
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
|
|
757
752
|
};
|
|
758
753
|
};
|
|
759
754
|
const serializeAws_json1_0UpdateHostInput = (input, context) => {
|
|
760
755
|
return {
|
|
761
|
-
...(input.HostArn
|
|
762
|
-
...(input.ProviderEndpoint
|
|
763
|
-
|
|
764
|
-
...(input.VpcConfiguration !== undefined &&
|
|
765
|
-
input.VpcConfiguration !== null && {
|
|
756
|
+
...(input.HostArn != null && { HostArn: input.HostArn }),
|
|
757
|
+
...(input.ProviderEndpoint != null && { ProviderEndpoint: input.ProviderEndpoint }),
|
|
758
|
+
...(input.VpcConfiguration != null && {
|
|
766
759
|
VpcConfiguration: serializeAws_json1_0VpcConfiguration(input.VpcConfiguration, context),
|
|
767
760
|
}),
|
|
768
761
|
};
|
|
769
762
|
};
|
|
770
763
|
const serializeAws_json1_0VpcConfiguration = (input, context) => {
|
|
771
764
|
return {
|
|
772
|
-
...(input.SecurityGroupIds
|
|
773
|
-
input.SecurityGroupIds !== null && {
|
|
765
|
+
...(input.SecurityGroupIds != null && {
|
|
774
766
|
SecurityGroupIds: serializeAws_json1_0SecurityGroupIds(input.SecurityGroupIds, context),
|
|
775
767
|
}),
|
|
776
|
-
...(input.SubnetIds
|
|
777
|
-
|
|
778
|
-
...(input.
|
|
779
|
-
input.TlsCertificate !== null && { TlsCertificate: input.TlsCertificate }),
|
|
780
|
-
...(input.VpcId !== undefined && input.VpcId !== null && { VpcId: input.VpcId }),
|
|
768
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_0SubnetIds(input.SubnetIds, context) }),
|
|
769
|
+
...(input.TlsCertificate != null && { TlsCertificate: input.TlsCertificate }),
|
|
770
|
+
...(input.VpcId != null && { VpcId: input.VpcId }),
|
|
781
771
|
};
|
|
782
772
|
};
|
|
783
773
|
const deserializeAws_json1_0ConflictException = (output, context) => {
|
|
@@ -809,17 +799,13 @@ const deserializeAws_json1_0ConnectionList = (output, context) => {
|
|
|
809
799
|
const deserializeAws_json1_0CreateConnectionOutput = (output, context) => {
|
|
810
800
|
return {
|
|
811
801
|
ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
|
|
812
|
-
Tags: output.Tags
|
|
813
|
-
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
814
|
-
: undefined,
|
|
802
|
+
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
815
803
|
};
|
|
816
804
|
};
|
|
817
805
|
const deserializeAws_json1_0CreateHostOutput = (output, context) => {
|
|
818
806
|
return {
|
|
819
807
|
HostArn: (0, smithy_client_1.expectString)(output.HostArn),
|
|
820
|
-
Tags: output.Tags
|
|
821
|
-
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
822
|
-
: undefined,
|
|
808
|
+
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
823
809
|
};
|
|
824
810
|
};
|
|
825
811
|
const deserializeAws_json1_0DeleteConnectionOutput = (output, context) => {
|
|
@@ -830,9 +816,7 @@ const deserializeAws_json1_0DeleteHostOutput = (output, context) => {
|
|
|
830
816
|
};
|
|
831
817
|
const deserializeAws_json1_0GetConnectionOutput = (output, context) => {
|
|
832
818
|
return {
|
|
833
|
-
Connection: output.Connection
|
|
834
|
-
? deserializeAws_json1_0Connection(output.Connection, context)
|
|
835
|
-
: undefined,
|
|
819
|
+
Connection: output.Connection != null ? deserializeAws_json1_0Connection(output.Connection, context) : undefined,
|
|
836
820
|
};
|
|
837
821
|
};
|
|
838
822
|
const deserializeAws_json1_0GetHostOutput = (output, context) => {
|
|
@@ -841,7 +825,7 @@ const deserializeAws_json1_0GetHostOutput = (output, context) => {
|
|
|
841
825
|
ProviderEndpoint: (0, smithy_client_1.expectString)(output.ProviderEndpoint),
|
|
842
826
|
ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
|
|
843
827
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
844
|
-
VpcConfiguration: output.VpcConfiguration
|
|
828
|
+
VpcConfiguration: output.VpcConfiguration != null
|
|
845
829
|
? deserializeAws_json1_0VpcConfiguration(output.VpcConfiguration, context)
|
|
846
830
|
: undefined,
|
|
847
831
|
};
|
|
@@ -854,7 +838,7 @@ const deserializeAws_json1_0Host = (output, context) => {
|
|
|
854
838
|
ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
|
|
855
839
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
856
840
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
857
|
-
VpcConfiguration: output.VpcConfiguration
|
|
841
|
+
VpcConfiguration: output.VpcConfiguration != null
|
|
858
842
|
? deserializeAws_json1_0VpcConfiguration(output.VpcConfiguration, context)
|
|
859
843
|
: undefined,
|
|
860
844
|
};
|
|
@@ -877,25 +861,19 @@ const deserializeAws_json1_0LimitExceededException = (output, context) => {
|
|
|
877
861
|
};
|
|
878
862
|
const deserializeAws_json1_0ListConnectionsOutput = (output, context) => {
|
|
879
863
|
return {
|
|
880
|
-
Connections: output.Connections
|
|
881
|
-
? deserializeAws_json1_0ConnectionList(output.Connections, context)
|
|
882
|
-
: undefined,
|
|
864
|
+
Connections: output.Connections != null ? deserializeAws_json1_0ConnectionList(output.Connections, context) : undefined,
|
|
883
865
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
884
866
|
};
|
|
885
867
|
};
|
|
886
868
|
const deserializeAws_json1_0ListHostsOutput = (output, context) => {
|
|
887
869
|
return {
|
|
888
|
-
Hosts: output.Hosts
|
|
889
|
-
? deserializeAws_json1_0HostList(output.Hosts, context)
|
|
890
|
-
: undefined,
|
|
870
|
+
Hosts: output.Hosts != null ? deserializeAws_json1_0HostList(output.Hosts, context) : undefined,
|
|
891
871
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
892
872
|
};
|
|
893
873
|
};
|
|
894
874
|
const deserializeAws_json1_0ListTagsForResourceOutput = (output, context) => {
|
|
895
875
|
return {
|
|
896
|
-
Tags: output.Tags
|
|
897
|
-
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
898
|
-
: undefined,
|
|
876
|
+
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
899
877
|
};
|
|
900
878
|
};
|
|
901
879
|
const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
|
|
@@ -963,12 +941,10 @@ const deserializeAws_json1_0UpdateHostOutput = (output, context) => {
|
|
|
963
941
|
};
|
|
964
942
|
const deserializeAws_json1_0VpcConfiguration = (output, context) => {
|
|
965
943
|
return {
|
|
966
|
-
SecurityGroupIds: output.SecurityGroupIds
|
|
944
|
+
SecurityGroupIds: output.SecurityGroupIds != null
|
|
967
945
|
? deserializeAws_json1_0SecurityGroupIds(output.SecurityGroupIds, context)
|
|
968
946
|
: undefined,
|
|
969
|
-
SubnetIds: output.SubnetIds
|
|
970
|
-
? deserializeAws_json1_0SubnetIds(output.SubnetIds, context)
|
|
971
|
-
: undefined,
|
|
947
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_json1_0SubnetIds(output.SubnetIds, context) : undefined,
|
|
972
948
|
TlsCertificate: (0, smithy_client_1.expectString)(output.TlsCertificate),
|
|
973
949
|
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
974
950
|
};
|
|
@@ -1017,6 +993,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1017
993
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1018
994
|
const sanitizeErrorCode = (rawValue) => {
|
|
1019
995
|
let cleanValue = rawValue;
|
|
996
|
+
if (typeof cleanValue === "number") {
|
|
997
|
+
cleanValue = cleanValue.toString();
|
|
998
|
+
}
|
|
1020
999
|
if (cleanValue.indexOf(":") >= 0) {
|
|
1021
1000
|
cleanValue = cleanValue.split(":")[0];
|
|
1022
1001
|
}
|
|
@@ -819,37 +819,33 @@ var deserializeAws_json1_0UnsupportedOperationExceptionResponse = function (pars
|
|
|
819
819
|
});
|
|
820
820
|
}); };
|
|
821
821
|
var serializeAws_json1_0CreateConnectionInput = function (input, context) {
|
|
822
|
-
return __assign(__assign(__assign(__assign({}, (input.ConnectionName
|
|
823
|
-
input.ConnectionName !== null && { ConnectionName: input.ConnectionName })), (input.HostArn !== undefined && input.HostArn !== null && { HostArn: input.HostArn })), (input.ProviderType !== undefined && input.ProviderType !== null && { ProviderType: input.ProviderType })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
822
|
+
return __assign(__assign(__assign(__assign({}, (input.ConnectionName != null && { ConnectionName: input.ConnectionName })), (input.HostArn != null && { HostArn: input.HostArn })), (input.ProviderType != null && { ProviderType: input.ProviderType })), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
824
823
|
};
|
|
825
824
|
var serializeAws_json1_0CreateHostInput = function (input, context) {
|
|
826
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Name
|
|
827
|
-
input.ProviderEndpoint !== null && { ProviderEndpoint: input.ProviderEndpoint })), (input.ProviderType !== undefined && input.ProviderType !== null && { ProviderType: input.ProviderType })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) })), (input.VpcConfiguration !== undefined &&
|
|
828
|
-
input.VpcConfiguration !== null && {
|
|
825
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.ProviderEndpoint != null && { ProviderEndpoint: input.ProviderEndpoint })), (input.ProviderType != null && { ProviderType: input.ProviderType })), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) })), (input.VpcConfiguration != null && {
|
|
829
826
|
VpcConfiguration: serializeAws_json1_0VpcConfiguration(input.VpcConfiguration, context),
|
|
830
827
|
}));
|
|
831
828
|
};
|
|
832
829
|
var serializeAws_json1_0DeleteConnectionInput = function (input, context) {
|
|
833
|
-
return __assign({}, (input.ConnectionArn
|
|
830
|
+
return __assign({}, (input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }));
|
|
834
831
|
};
|
|
835
832
|
var serializeAws_json1_0DeleteHostInput = function (input, context) {
|
|
836
|
-
return __assign({}, (input.HostArn
|
|
833
|
+
return __assign({}, (input.HostArn != null && { HostArn: input.HostArn }));
|
|
837
834
|
};
|
|
838
835
|
var serializeAws_json1_0GetConnectionInput = function (input, context) {
|
|
839
|
-
return __assign({}, (input.ConnectionArn
|
|
836
|
+
return __assign({}, (input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }));
|
|
840
837
|
};
|
|
841
838
|
var serializeAws_json1_0GetHostInput = function (input, context) {
|
|
842
|
-
return __assign({}, (input.HostArn
|
|
839
|
+
return __assign({}, (input.HostArn != null && { HostArn: input.HostArn }));
|
|
843
840
|
};
|
|
844
841
|
var serializeAws_json1_0ListConnectionsInput = function (input, context) {
|
|
845
|
-
return __assign(__assign(__assign(__assign({}, (input.HostArnFilter
|
|
846
|
-
input.ProviderTypeFilter !== null && { ProviderTypeFilter: input.ProviderTypeFilter }));
|
|
842
|
+
return __assign(__assign(__assign(__assign({}, (input.HostArnFilter != null && { HostArnFilter: input.HostArnFilter })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ProviderTypeFilter != null && { ProviderTypeFilter: input.ProviderTypeFilter }));
|
|
847
843
|
};
|
|
848
844
|
var serializeAws_json1_0ListHostsInput = function (input, context) {
|
|
849
|
-
return __assign(__assign({}, (input.MaxResults
|
|
845
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
850
846
|
};
|
|
851
847
|
var serializeAws_json1_0ListTagsForResourceInput = function (input, context) {
|
|
852
|
-
return __assign({}, (input.ResourceArn
|
|
848
|
+
return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
853
849
|
};
|
|
854
850
|
var serializeAws_json1_0SecurityGroupIds = function (input, context) {
|
|
855
851
|
return input
|
|
@@ -872,7 +868,7 @@ var serializeAws_json1_0SubnetIds = function (input, context) {
|
|
|
872
868
|
});
|
|
873
869
|
};
|
|
874
870
|
var serializeAws_json1_0Tag = function (input, context) {
|
|
875
|
-
return __assign(__assign({}, (input.Key
|
|
871
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
876
872
|
};
|
|
877
873
|
var serializeAws_json1_0TagKeyList = function (input, context) {
|
|
878
874
|
return input
|
|
@@ -895,26 +891,20 @@ var serializeAws_json1_0TagList = function (input, context) {
|
|
|
895
891
|
});
|
|
896
892
|
};
|
|
897
893
|
var serializeAws_json1_0TagResourceInput = function (input, context) {
|
|
898
|
-
return __assign(__assign({}, (input.ResourceArn
|
|
894
|
+
return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
899
895
|
};
|
|
900
896
|
var serializeAws_json1_0UntagResourceInput = function (input, context) {
|
|
901
|
-
return __assign(__assign({}, (input.ResourceArn
|
|
902
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }));
|
|
897
|
+
return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }));
|
|
903
898
|
};
|
|
904
899
|
var serializeAws_json1_0UpdateHostInput = function (input, context) {
|
|
905
|
-
return __assign(__assign(__assign({}, (input.HostArn
|
|
906
|
-
input.ProviderEndpoint !== null && { ProviderEndpoint: input.ProviderEndpoint })), (input.VpcConfiguration !== undefined &&
|
|
907
|
-
input.VpcConfiguration !== null && {
|
|
900
|
+
return __assign(__assign(__assign({}, (input.HostArn != null && { HostArn: input.HostArn })), (input.ProviderEndpoint != null && { ProviderEndpoint: input.ProviderEndpoint })), (input.VpcConfiguration != null && {
|
|
908
901
|
VpcConfiguration: serializeAws_json1_0VpcConfiguration(input.VpcConfiguration, context),
|
|
909
902
|
}));
|
|
910
903
|
};
|
|
911
904
|
var serializeAws_json1_0VpcConfiguration = function (input, context) {
|
|
912
|
-
return __assign(__assign(__assign(__assign({}, (input.SecurityGroupIds
|
|
913
|
-
input.SecurityGroupIds !== null && {
|
|
905
|
+
return __assign(__assign(__assign(__assign({}, (input.SecurityGroupIds != null && {
|
|
914
906
|
SecurityGroupIds: serializeAws_json1_0SecurityGroupIds(input.SecurityGroupIds, context),
|
|
915
|
-
})), (input.SubnetIds
|
|
916
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_json1_0SubnetIds(input.SubnetIds, context) })), (input.TlsCertificate !== undefined &&
|
|
917
|
-
input.TlsCertificate !== null && { TlsCertificate: input.TlsCertificate })), (input.VpcId !== undefined && input.VpcId !== null && { VpcId: input.VpcId }));
|
|
907
|
+
})), (input.SubnetIds != null && { SubnetIds: serializeAws_json1_0SubnetIds(input.SubnetIds, context) })), (input.TlsCertificate != null && { TlsCertificate: input.TlsCertificate })), (input.VpcId != null && { VpcId: input.VpcId }));
|
|
918
908
|
};
|
|
919
909
|
var deserializeAws_json1_0ConflictException = function (output, context) {
|
|
920
910
|
return {
|
|
@@ -945,17 +935,13 @@ var deserializeAws_json1_0ConnectionList = function (output, context) {
|
|
|
945
935
|
var deserializeAws_json1_0CreateConnectionOutput = function (output, context) {
|
|
946
936
|
return {
|
|
947
937
|
ConnectionArn: __expectString(output.ConnectionArn),
|
|
948
|
-
Tags: output.Tags
|
|
949
|
-
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
950
|
-
: undefined,
|
|
938
|
+
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
951
939
|
};
|
|
952
940
|
};
|
|
953
941
|
var deserializeAws_json1_0CreateHostOutput = function (output, context) {
|
|
954
942
|
return {
|
|
955
943
|
HostArn: __expectString(output.HostArn),
|
|
956
|
-
Tags: output.Tags
|
|
957
|
-
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
958
|
-
: undefined,
|
|
944
|
+
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
959
945
|
};
|
|
960
946
|
};
|
|
961
947
|
var deserializeAws_json1_0DeleteConnectionOutput = function (output, context) {
|
|
@@ -966,9 +952,7 @@ var deserializeAws_json1_0DeleteHostOutput = function (output, context) {
|
|
|
966
952
|
};
|
|
967
953
|
var deserializeAws_json1_0GetConnectionOutput = function (output, context) {
|
|
968
954
|
return {
|
|
969
|
-
Connection: output.Connection
|
|
970
|
-
? deserializeAws_json1_0Connection(output.Connection, context)
|
|
971
|
-
: undefined,
|
|
955
|
+
Connection: output.Connection != null ? deserializeAws_json1_0Connection(output.Connection, context) : undefined,
|
|
972
956
|
};
|
|
973
957
|
};
|
|
974
958
|
var deserializeAws_json1_0GetHostOutput = function (output, context) {
|
|
@@ -977,7 +961,7 @@ var deserializeAws_json1_0GetHostOutput = function (output, context) {
|
|
|
977
961
|
ProviderEndpoint: __expectString(output.ProviderEndpoint),
|
|
978
962
|
ProviderType: __expectString(output.ProviderType),
|
|
979
963
|
Status: __expectString(output.Status),
|
|
980
|
-
VpcConfiguration: output.VpcConfiguration
|
|
964
|
+
VpcConfiguration: output.VpcConfiguration != null
|
|
981
965
|
? deserializeAws_json1_0VpcConfiguration(output.VpcConfiguration, context)
|
|
982
966
|
: undefined,
|
|
983
967
|
};
|
|
@@ -990,7 +974,7 @@ var deserializeAws_json1_0Host = function (output, context) {
|
|
|
990
974
|
ProviderType: __expectString(output.ProviderType),
|
|
991
975
|
Status: __expectString(output.Status),
|
|
992
976
|
StatusMessage: __expectString(output.StatusMessage),
|
|
993
|
-
VpcConfiguration: output.VpcConfiguration
|
|
977
|
+
VpcConfiguration: output.VpcConfiguration != null
|
|
994
978
|
? deserializeAws_json1_0VpcConfiguration(output.VpcConfiguration, context)
|
|
995
979
|
: undefined,
|
|
996
980
|
};
|
|
@@ -1013,25 +997,19 @@ var deserializeAws_json1_0LimitExceededException = function (output, context) {
|
|
|
1013
997
|
};
|
|
1014
998
|
var deserializeAws_json1_0ListConnectionsOutput = function (output, context) {
|
|
1015
999
|
return {
|
|
1016
|
-
Connections: output.Connections
|
|
1017
|
-
? deserializeAws_json1_0ConnectionList(output.Connections, context)
|
|
1018
|
-
: undefined,
|
|
1000
|
+
Connections: output.Connections != null ? deserializeAws_json1_0ConnectionList(output.Connections, context) : undefined,
|
|
1019
1001
|
NextToken: __expectString(output.NextToken),
|
|
1020
1002
|
};
|
|
1021
1003
|
};
|
|
1022
1004
|
var deserializeAws_json1_0ListHostsOutput = function (output, context) {
|
|
1023
1005
|
return {
|
|
1024
|
-
Hosts: output.Hosts
|
|
1025
|
-
? deserializeAws_json1_0HostList(output.Hosts, context)
|
|
1026
|
-
: undefined,
|
|
1006
|
+
Hosts: output.Hosts != null ? deserializeAws_json1_0HostList(output.Hosts, context) : undefined,
|
|
1027
1007
|
NextToken: __expectString(output.NextToken),
|
|
1028
1008
|
};
|
|
1029
1009
|
};
|
|
1030
1010
|
var deserializeAws_json1_0ListTagsForResourceOutput = function (output, context) {
|
|
1031
1011
|
return {
|
|
1032
|
-
Tags: output.Tags
|
|
1033
|
-
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
1034
|
-
: undefined,
|
|
1012
|
+
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
1035
1013
|
};
|
|
1036
1014
|
};
|
|
1037
1015
|
var deserializeAws_json1_0ResourceNotFoundException = function (output, context) {
|
|
@@ -1099,12 +1077,10 @@ var deserializeAws_json1_0UpdateHostOutput = function (output, context) {
|
|
|
1099
1077
|
};
|
|
1100
1078
|
var deserializeAws_json1_0VpcConfiguration = function (output, context) {
|
|
1101
1079
|
return {
|
|
1102
|
-
SecurityGroupIds: output.SecurityGroupIds
|
|
1080
|
+
SecurityGroupIds: output.SecurityGroupIds != null
|
|
1103
1081
|
? deserializeAws_json1_0SecurityGroupIds(output.SecurityGroupIds, context)
|
|
1104
1082
|
: undefined,
|
|
1105
|
-
SubnetIds: output.SubnetIds
|
|
1106
|
-
? deserializeAws_json1_0SubnetIds(output.SubnetIds, context)
|
|
1107
|
-
: undefined,
|
|
1083
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_json1_0SubnetIds(output.SubnetIds, context) : undefined,
|
|
1108
1084
|
TlsCertificate: __expectString(output.TlsCertificate),
|
|
1109
1085
|
VpcId: __expectString(output.VpcId),
|
|
1110
1086
|
};
|
|
@@ -1165,6 +1141,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1165
1141
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1166
1142
|
var sanitizeErrorCode = function (rawValue) {
|
|
1167
1143
|
var cleanValue = rawValue;
|
|
1144
|
+
if (typeof cleanValue === "number") {
|
|
1145
|
+
cleanValue = cleanValue.toString();
|
|
1146
|
+
}
|
|
1168
1147
|
if (cleanValue.indexOf(":") >= 0) {
|
|
1169
1148
|
cleanValue = cleanValue.split(":")[0];
|
|
1170
1149
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codestar-connections",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codestar Connections 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"
|