@aws-sdk/client-detective 3.54.0 → 3.56.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 +24 -0
- package/dist-cjs/DetectiveClient.js +13 -13
- package/dist-cjs/commands/AcceptInvitationCommand.js +3 -3
- package/dist-cjs/commands/CreateGraphCommand.js +3 -3
- package/dist-cjs/commands/CreateMembersCommand.js +3 -3
- package/dist-cjs/commands/DeleteGraphCommand.js +3 -3
- package/dist-cjs/commands/DeleteMembersCommand.js +3 -3
- package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +3 -3
- package/dist-cjs/commands/DisableOrganizationAdminAccountCommand.js +3 -3
- package/dist-cjs/commands/DisassociateMembershipCommand.js +3 -3
- package/dist-cjs/commands/EnableOrganizationAdminAccountCommand.js +3 -3
- package/dist-cjs/commands/GetMembersCommand.js +3 -3
- package/dist-cjs/commands/ListGraphsCommand.js +3 -3
- package/dist-cjs/commands/ListInvitationsCommand.js +3 -3
- package/dist-cjs/commands/ListMembersCommand.js +3 -3
- package/dist-cjs/commands/ListOrganizationAdminAccountsCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/RejectInvitationCommand.js +3 -3
- package/dist-cjs/commands/StartMonitoringMemberCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +74 -74
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/Detective.js +20 -20
- package/dist-es/pagination/ListGraphsPaginator.js +4 -4
- package/dist-es/pagination/ListInvitationsPaginator.js +4 -4
- package/dist-es/pagination/ListMembersPaginator.js +4 -4
- package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +20 -20
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -320,7 +320,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
320
320
|
if (labelValue.length <= 0) {
|
|
321
321
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
322
322
|
}
|
|
323
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
323
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
324
324
|
}
|
|
325
325
|
else {
|
|
326
326
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -391,7 +391,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
391
391
|
if (labelValue.length <= 0) {
|
|
392
392
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
393
393
|
}
|
|
394
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
394
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
395
395
|
}
|
|
396
396
|
else {
|
|
397
397
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -420,7 +420,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
420
420
|
if (labelValue.length <= 0) {
|
|
421
421
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
422
422
|
}
|
|
423
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
423
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
424
424
|
}
|
|
425
425
|
else {
|
|
426
426
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -502,7 +502,7 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
|
|
|
502
502
|
$fault: "client",
|
|
503
503
|
$metadata: deserializeMetadata(output),
|
|
504
504
|
});
|
|
505
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
505
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
506
506
|
}
|
|
507
507
|
};
|
|
508
508
|
const deserializeAws_restJson1CreateGraphCommand = async (output, context) => {
|
|
@@ -513,9 +513,9 @@ const deserializeAws_restJson1CreateGraphCommand = async (output, context) => {
|
|
|
513
513
|
$metadata: deserializeMetadata(output),
|
|
514
514
|
GraphArn: undefined,
|
|
515
515
|
};
|
|
516
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
516
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
517
517
|
if (data.GraphArn !== undefined && data.GraphArn !== null) {
|
|
518
|
-
contents.GraphArn = smithy_client_1.expectString(data.GraphArn);
|
|
518
|
+
contents.GraphArn = (0, smithy_client_1.expectString)(data.GraphArn);
|
|
519
519
|
}
|
|
520
520
|
return Promise.resolve(contents);
|
|
521
521
|
};
|
|
@@ -545,7 +545,7 @@ const deserializeAws_restJson1CreateGraphCommandError = async (output, context)
|
|
|
545
545
|
$fault: "client",
|
|
546
546
|
$metadata: deserializeMetadata(output),
|
|
547
547
|
});
|
|
548
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
548
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
549
549
|
}
|
|
550
550
|
};
|
|
551
551
|
const deserializeAws_restJson1CreateMembersCommand = async (output, context) => {
|
|
@@ -557,7 +557,7 @@ const deserializeAws_restJson1CreateMembersCommand = async (output, context) =>
|
|
|
557
557
|
Members: undefined,
|
|
558
558
|
UnprocessedAccounts: undefined,
|
|
559
559
|
};
|
|
560
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
560
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
561
561
|
if (data.Members !== undefined && data.Members !== null) {
|
|
562
562
|
contents.Members = deserializeAws_restJson1MemberDetailList(data.Members, context);
|
|
563
563
|
}
|
|
@@ -595,7 +595,7 @@ const deserializeAws_restJson1CreateMembersCommandError = async (output, context
|
|
|
595
595
|
$fault: "client",
|
|
596
596
|
$metadata: deserializeMetadata(output),
|
|
597
597
|
});
|
|
598
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
598
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
599
599
|
}
|
|
600
600
|
};
|
|
601
601
|
const deserializeAws_restJson1DeleteGraphCommand = async (output, context) => {
|
|
@@ -634,7 +634,7 @@ const deserializeAws_restJson1DeleteGraphCommandError = async (output, context)
|
|
|
634
634
|
$fault: "client",
|
|
635
635
|
$metadata: deserializeMetadata(output),
|
|
636
636
|
});
|
|
637
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
637
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
638
638
|
}
|
|
639
639
|
};
|
|
640
640
|
const deserializeAws_restJson1DeleteMembersCommand = async (output, context) => {
|
|
@@ -646,7 +646,7 @@ const deserializeAws_restJson1DeleteMembersCommand = async (output, context) =>
|
|
|
646
646
|
AccountIds: undefined,
|
|
647
647
|
UnprocessedAccounts: undefined,
|
|
648
648
|
};
|
|
649
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
649
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
650
650
|
if (data.AccountIds !== undefined && data.AccountIds !== null) {
|
|
651
651
|
contents.AccountIds = deserializeAws_restJson1AccountIdList(data.AccountIds, context);
|
|
652
652
|
}
|
|
@@ -684,7 +684,7 @@ const deserializeAws_restJson1DeleteMembersCommandError = async (output, context
|
|
|
684
684
|
$fault: "client",
|
|
685
685
|
$metadata: deserializeMetadata(output),
|
|
686
686
|
});
|
|
687
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
687
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
688
688
|
}
|
|
689
689
|
};
|
|
690
690
|
const deserializeAws_restJson1DescribeOrganizationConfigurationCommand = async (output, context) => {
|
|
@@ -695,9 +695,9 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommand = async (
|
|
|
695
695
|
$metadata: deserializeMetadata(output),
|
|
696
696
|
AutoEnable: undefined,
|
|
697
697
|
};
|
|
698
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
698
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
699
699
|
if (data.AutoEnable !== undefined && data.AutoEnable !== null) {
|
|
700
|
-
contents.AutoEnable = smithy_client_1.expectBoolean(data.AutoEnable);
|
|
700
|
+
contents.AutoEnable = (0, smithy_client_1.expectBoolean)(data.AutoEnable);
|
|
701
701
|
}
|
|
702
702
|
return Promise.resolve(contents);
|
|
703
703
|
};
|
|
@@ -727,7 +727,7 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
727
727
|
$fault: "client",
|
|
728
728
|
$metadata: deserializeMetadata(output),
|
|
729
729
|
});
|
|
730
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
730
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
731
731
|
}
|
|
732
732
|
};
|
|
733
733
|
const deserializeAws_restJson1DisableOrganizationAdminAccountCommand = async (output, context) => {
|
|
@@ -766,7 +766,7 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
|
|
|
766
766
|
$fault: "client",
|
|
767
767
|
$metadata: deserializeMetadata(output),
|
|
768
768
|
});
|
|
769
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
769
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
770
770
|
}
|
|
771
771
|
};
|
|
772
772
|
const deserializeAws_restJson1DisassociateMembershipCommand = async (output, context) => {
|
|
@@ -808,7 +808,7 @@ const deserializeAws_restJson1DisassociateMembershipCommandError = async (output
|
|
|
808
808
|
$fault: "client",
|
|
809
809
|
$metadata: deserializeMetadata(output),
|
|
810
810
|
});
|
|
811
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
811
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
812
812
|
}
|
|
813
813
|
};
|
|
814
814
|
const deserializeAws_restJson1EnableOrganizationAdminAccountCommand = async (output, context) => {
|
|
@@ -847,7 +847,7 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
|
|
|
847
847
|
$fault: "client",
|
|
848
848
|
$metadata: deserializeMetadata(output),
|
|
849
849
|
});
|
|
850
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
850
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
851
851
|
}
|
|
852
852
|
};
|
|
853
853
|
const deserializeAws_restJson1GetMembersCommand = async (output, context) => {
|
|
@@ -859,7 +859,7 @@ const deserializeAws_restJson1GetMembersCommand = async (output, context) => {
|
|
|
859
859
|
MemberDetails: undefined,
|
|
860
860
|
UnprocessedAccounts: undefined,
|
|
861
861
|
};
|
|
862
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
862
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
863
863
|
if (data.MemberDetails !== undefined && data.MemberDetails !== null) {
|
|
864
864
|
contents.MemberDetails = deserializeAws_restJson1MemberDetailList(data.MemberDetails, context);
|
|
865
865
|
}
|
|
@@ -894,7 +894,7 @@ const deserializeAws_restJson1GetMembersCommandError = async (output, context) =
|
|
|
894
894
|
$fault: "client",
|
|
895
895
|
$metadata: deserializeMetadata(output),
|
|
896
896
|
});
|
|
897
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
897
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
898
898
|
}
|
|
899
899
|
};
|
|
900
900
|
const deserializeAws_restJson1ListGraphsCommand = async (output, context) => {
|
|
@@ -906,12 +906,12 @@ const deserializeAws_restJson1ListGraphsCommand = async (output, context) => {
|
|
|
906
906
|
GraphList: undefined,
|
|
907
907
|
NextToken: undefined,
|
|
908
908
|
};
|
|
909
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
909
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
910
910
|
if (data.GraphList !== undefined && data.GraphList !== null) {
|
|
911
911
|
contents.GraphList = deserializeAws_restJson1GraphList(data.GraphList, context);
|
|
912
912
|
}
|
|
913
913
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
914
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
914
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
915
915
|
}
|
|
916
916
|
return Promise.resolve(contents);
|
|
917
917
|
};
|
|
@@ -938,7 +938,7 @@ const deserializeAws_restJson1ListGraphsCommandError = async (output, context) =
|
|
|
938
938
|
$fault: "client",
|
|
939
939
|
$metadata: deserializeMetadata(output),
|
|
940
940
|
});
|
|
941
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
941
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
942
942
|
}
|
|
943
943
|
};
|
|
944
944
|
const deserializeAws_restJson1ListInvitationsCommand = async (output, context) => {
|
|
@@ -950,12 +950,12 @@ const deserializeAws_restJson1ListInvitationsCommand = async (output, context) =
|
|
|
950
950
|
Invitations: undefined,
|
|
951
951
|
NextToken: undefined,
|
|
952
952
|
};
|
|
953
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
953
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
954
954
|
if (data.Invitations !== undefined && data.Invitations !== null) {
|
|
955
955
|
contents.Invitations = deserializeAws_restJson1MemberDetailList(data.Invitations, context);
|
|
956
956
|
}
|
|
957
957
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
958
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
958
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
959
959
|
}
|
|
960
960
|
return Promise.resolve(contents);
|
|
961
961
|
};
|
|
@@ -982,7 +982,7 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
982
982
|
$fault: "client",
|
|
983
983
|
$metadata: deserializeMetadata(output),
|
|
984
984
|
});
|
|
985
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
985
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
986
986
|
}
|
|
987
987
|
};
|
|
988
988
|
const deserializeAws_restJson1ListMembersCommand = async (output, context) => {
|
|
@@ -994,12 +994,12 @@ const deserializeAws_restJson1ListMembersCommand = async (output, context) => {
|
|
|
994
994
|
MemberDetails: undefined,
|
|
995
995
|
NextToken: undefined,
|
|
996
996
|
};
|
|
997
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
997
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
998
998
|
if (data.MemberDetails !== undefined && data.MemberDetails !== null) {
|
|
999
999
|
contents.MemberDetails = deserializeAws_restJson1MemberDetailList(data.MemberDetails, context);
|
|
1000
1000
|
}
|
|
1001
1001
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1002
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
1002
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1003
1003
|
}
|
|
1004
1004
|
return Promise.resolve(contents);
|
|
1005
1005
|
};
|
|
@@ -1029,7 +1029,7 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
1029
1029
|
$fault: "client",
|
|
1030
1030
|
$metadata: deserializeMetadata(output),
|
|
1031
1031
|
});
|
|
1032
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1032
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1033
1033
|
}
|
|
1034
1034
|
};
|
|
1035
1035
|
const deserializeAws_restJson1ListOrganizationAdminAccountsCommand = async (output, context) => {
|
|
@@ -1041,12 +1041,12 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommand = async (outp
|
|
|
1041
1041
|
Administrators: undefined,
|
|
1042
1042
|
NextToken: undefined,
|
|
1043
1043
|
};
|
|
1044
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1044
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1045
1045
|
if (data.Administrators !== undefined && data.Administrators !== null) {
|
|
1046
1046
|
contents.Administrators = deserializeAws_restJson1AdministratorList(data.Administrators, context);
|
|
1047
1047
|
}
|
|
1048
1048
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1049
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
1049
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1050
1050
|
}
|
|
1051
1051
|
return Promise.resolve(contents);
|
|
1052
1052
|
};
|
|
@@ -1076,7 +1076,7 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
1076
1076
|
$fault: "client",
|
|
1077
1077
|
$metadata: deserializeMetadata(output),
|
|
1078
1078
|
});
|
|
1079
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1079
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1080
1080
|
}
|
|
1081
1081
|
};
|
|
1082
1082
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1087,7 +1087,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
1087
1087
|
$metadata: deserializeMetadata(output),
|
|
1088
1088
|
Tags: undefined,
|
|
1089
1089
|
};
|
|
1090
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1090
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1091
1091
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
1092
1092
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
1093
1093
|
}
|
|
@@ -1119,7 +1119,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1119
1119
|
$fault: "client",
|
|
1120
1120
|
$metadata: deserializeMetadata(output),
|
|
1121
1121
|
});
|
|
1122
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1122
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1123
1123
|
}
|
|
1124
1124
|
};
|
|
1125
1125
|
const deserializeAws_restJson1RejectInvitationCommand = async (output, context) => {
|
|
@@ -1161,7 +1161,7 @@ const deserializeAws_restJson1RejectInvitationCommandError = async (output, cont
|
|
|
1161
1161
|
$fault: "client",
|
|
1162
1162
|
$metadata: deserializeMetadata(output),
|
|
1163
1163
|
});
|
|
1164
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1164
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1165
1165
|
}
|
|
1166
1166
|
};
|
|
1167
1167
|
const deserializeAws_restJson1StartMonitoringMemberCommand = async (output, context) => {
|
|
@@ -1206,7 +1206,7 @@ const deserializeAws_restJson1StartMonitoringMemberCommandError = async (output,
|
|
|
1206
1206
|
$fault: "client",
|
|
1207
1207
|
$metadata: deserializeMetadata(output),
|
|
1208
1208
|
});
|
|
1209
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1209
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1210
1210
|
}
|
|
1211
1211
|
};
|
|
1212
1212
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
@@ -1245,7 +1245,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1245
1245
|
$fault: "client",
|
|
1246
1246
|
$metadata: deserializeMetadata(output),
|
|
1247
1247
|
});
|
|
1248
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1248
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1249
1249
|
}
|
|
1250
1250
|
};
|
|
1251
1251
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
@@ -1284,7 +1284,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1284
1284
|
$fault: "client",
|
|
1285
1285
|
$metadata: deserializeMetadata(output),
|
|
1286
1286
|
});
|
|
1287
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1287
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1288
1288
|
}
|
|
1289
1289
|
};
|
|
1290
1290
|
const deserializeAws_restJson1UpdateOrganizationConfigurationCommand = async (output, context) => {
|
|
@@ -1323,80 +1323,80 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
1323
1323
|
$fault: "client",
|
|
1324
1324
|
$metadata: deserializeMetadata(output),
|
|
1325
1325
|
});
|
|
1326
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1326
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1327
1327
|
}
|
|
1328
1328
|
};
|
|
1329
1329
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1330
1330
|
const contents = {};
|
|
1331
1331
|
const data = parsedOutput.body;
|
|
1332
1332
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1333
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1333
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1334
1334
|
}
|
|
1335
1335
|
const exception = new models_0_1.ConflictException({
|
|
1336
1336
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1337
1337
|
...contents,
|
|
1338
1338
|
});
|
|
1339
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1339
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1340
1340
|
};
|
|
1341
1341
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
1342
1342
|
const contents = {};
|
|
1343
1343
|
const data = parsedOutput.body;
|
|
1344
1344
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1345
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1345
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1346
1346
|
}
|
|
1347
1347
|
const exception = new models_0_1.InternalServerException({
|
|
1348
1348
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1349
1349
|
...contents,
|
|
1350
1350
|
});
|
|
1351
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1351
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1352
1352
|
};
|
|
1353
1353
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1354
1354
|
const contents = {};
|
|
1355
1355
|
const data = parsedOutput.body;
|
|
1356
1356
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1357
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1357
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1358
1358
|
}
|
|
1359
1359
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1360
1360
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1361
1361
|
...contents,
|
|
1362
1362
|
});
|
|
1363
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1363
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1364
1364
|
};
|
|
1365
1365
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1366
1366
|
const contents = {};
|
|
1367
1367
|
const data = parsedOutput.body;
|
|
1368
1368
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1369
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1369
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1370
1370
|
}
|
|
1371
1371
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1372
1372
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1373
1373
|
...contents,
|
|
1374
1374
|
});
|
|
1375
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1375
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1376
1376
|
};
|
|
1377
1377
|
const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
1378
1378
|
const contents = {};
|
|
1379
1379
|
const data = parsedOutput.body;
|
|
1380
1380
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1381
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1381
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1382
1382
|
}
|
|
1383
1383
|
const exception = new models_0_1.TooManyRequestsException({
|
|
1384
1384
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1385
1385
|
...contents,
|
|
1386
1386
|
});
|
|
1387
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1387
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1388
1388
|
};
|
|
1389
1389
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1390
1390
|
const contents = {};
|
|
1391
1391
|
const data = parsedOutput.body;
|
|
1392
1392
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1393
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1393
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1394
1394
|
}
|
|
1395
1395
|
const exception = new models_0_1.ValidationException({
|
|
1396
1396
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1397
1397
|
...contents,
|
|
1398
1398
|
});
|
|
1399
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1399
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1400
1400
|
};
|
|
1401
1401
|
const serializeAws_restJson1Account = (input, context) => {
|
|
1402
1402
|
return {
|
|
@@ -1442,17 +1442,17 @@ const deserializeAws_restJson1AccountIdList = (output, context) => {
|
|
|
1442
1442
|
if (entry === null) {
|
|
1443
1443
|
return null;
|
|
1444
1444
|
}
|
|
1445
|
-
return smithy_client_1.expectString(entry);
|
|
1445
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1446
1446
|
});
|
|
1447
1447
|
return retVal;
|
|
1448
1448
|
};
|
|
1449
1449
|
const deserializeAws_restJson1Administrator = (output, context) => {
|
|
1450
1450
|
return {
|
|
1451
|
-
AccountId: smithy_client_1.expectString(output.AccountId),
|
|
1451
|
+
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
1452
1452
|
DelegationTime: output.DelegationTime !== undefined && output.DelegationTime !== null
|
|
1453
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.DelegationTime))
|
|
1453
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.DelegationTime))
|
|
1454
1454
|
: undefined,
|
|
1455
|
-
GraphArn: smithy_client_1.expectString(output.GraphArn),
|
|
1455
|
+
GraphArn: (0, smithy_client_1.expectString)(output.GraphArn),
|
|
1456
1456
|
};
|
|
1457
1457
|
};
|
|
1458
1458
|
const deserializeAws_restJson1AdministratorList = (output, context) => {
|
|
@@ -1468,9 +1468,9 @@ const deserializeAws_restJson1AdministratorList = (output, context) => {
|
|
|
1468
1468
|
};
|
|
1469
1469
|
const deserializeAws_restJson1Graph = (output, context) => {
|
|
1470
1470
|
return {
|
|
1471
|
-
Arn: smithy_client_1.expectString(output.Arn),
|
|
1471
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1472
1472
|
CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
|
|
1473
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedTime))
|
|
1473
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTime))
|
|
1474
1474
|
: undefined,
|
|
1475
1475
|
};
|
|
1476
1476
|
};
|
|
@@ -1487,27 +1487,27 @@ const deserializeAws_restJson1GraphList = (output, context) => {
|
|
|
1487
1487
|
};
|
|
1488
1488
|
const deserializeAws_restJson1MemberDetail = (output, context) => {
|
|
1489
1489
|
return {
|
|
1490
|
-
AccountId: smithy_client_1.expectString(output.AccountId),
|
|
1491
|
-
AdministratorId: smithy_client_1.expectString(output.AdministratorId),
|
|
1492
|
-
DisabledReason: smithy_client_1.expectString(output.DisabledReason),
|
|
1493
|
-
EmailAddress: smithy_client_1.expectString(output.EmailAddress),
|
|
1494
|
-
GraphArn: smithy_client_1.expectString(output.GraphArn),
|
|
1495
|
-
InvitationType: smithy_client_1.expectString(output.InvitationType),
|
|
1490
|
+
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
1491
|
+
AdministratorId: (0, smithy_client_1.expectString)(output.AdministratorId),
|
|
1492
|
+
DisabledReason: (0, smithy_client_1.expectString)(output.DisabledReason),
|
|
1493
|
+
EmailAddress: (0, smithy_client_1.expectString)(output.EmailAddress),
|
|
1494
|
+
GraphArn: (0, smithy_client_1.expectString)(output.GraphArn),
|
|
1495
|
+
InvitationType: (0, smithy_client_1.expectString)(output.InvitationType),
|
|
1496
1496
|
InvitedTime: output.InvitedTime !== undefined && output.InvitedTime !== null
|
|
1497
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.InvitedTime))
|
|
1497
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.InvitedTime))
|
|
1498
1498
|
: undefined,
|
|
1499
|
-
MasterId: smithy_client_1.expectString(output.MasterId),
|
|
1500
|
-
PercentOfGraphUtilization: smithy_client_1.limitedParseDouble(output.PercentOfGraphUtilization),
|
|
1499
|
+
MasterId: (0, smithy_client_1.expectString)(output.MasterId),
|
|
1500
|
+
PercentOfGraphUtilization: (0, smithy_client_1.limitedParseDouble)(output.PercentOfGraphUtilization),
|
|
1501
1501
|
PercentOfGraphUtilizationUpdatedTime: output.PercentOfGraphUtilizationUpdatedTime !== undefined && output.PercentOfGraphUtilizationUpdatedTime !== null
|
|
1502
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.PercentOfGraphUtilizationUpdatedTime))
|
|
1502
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.PercentOfGraphUtilizationUpdatedTime))
|
|
1503
1503
|
: undefined,
|
|
1504
|
-
Status: smithy_client_1.expectString(output.Status),
|
|
1504
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1505
1505
|
UpdatedTime: output.UpdatedTime !== undefined && output.UpdatedTime !== null
|
|
1506
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedTime))
|
|
1506
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTime))
|
|
1507
1507
|
: undefined,
|
|
1508
|
-
VolumeUsageInBytes: smithy_client_1.expectLong(output.VolumeUsageInBytes),
|
|
1508
|
+
VolumeUsageInBytes: (0, smithy_client_1.expectLong)(output.VolumeUsageInBytes),
|
|
1509
1509
|
VolumeUsageUpdatedTime: output.VolumeUsageUpdatedTime !== undefined && output.VolumeUsageUpdatedTime !== null
|
|
1510
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.VolumeUsageUpdatedTime))
|
|
1510
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.VolumeUsageUpdatedTime))
|
|
1511
1511
|
: undefined,
|
|
1512
1512
|
};
|
|
1513
1513
|
};
|
|
@@ -1529,14 +1529,14 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
return {
|
|
1531
1531
|
...acc,
|
|
1532
|
-
[key]: smithy_client_1.expectString(value),
|
|
1532
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1533
1533
|
};
|
|
1534
1534
|
}, {});
|
|
1535
1535
|
};
|
|
1536
1536
|
const deserializeAws_restJson1UnprocessedAccount = (output, context) => {
|
|
1537
1537
|
return {
|
|
1538
|
-
AccountId: smithy_client_1.expectString(output.AccountId),
|
|
1539
|
-
Reason: smithy_client_1.expectString(output.Reason),
|
|
1538
|
+
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
1539
|
+
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
1540
1540
|
};
|
|
1541
1541
|
};
|
|
1542
1542
|
const deserializeAws_restJson1UnprocessedAccountList = (output, context) => {
|
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
31
|
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
35
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
36
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const getRuntimeConfig = (config) => {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
-
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
return {
|
|
26
26
|
...clientSharedValues,
|
|
27
27
|
...config,
|
|
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
|
|
|
30
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
-
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
34
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
-
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
37
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
39
39
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
40
|
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
41
|
}),
|
|
42
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
43
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
44
|
-
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
-
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
46
|
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
47
47
|
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
48
48
|
};
|
|
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a;
|
|
8
|
-
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
9
|
return {
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|