@aws-sdk/client-resource-groups 3.54.1 → 3.58.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/ResourceGroupsClient.js +13 -13
- package/dist-cjs/commands/CreateGroupCommand.js +3 -3
- package/dist-cjs/commands/DeleteGroupCommand.js +3 -3
- package/dist-cjs/commands/GetGroupCommand.js +3 -3
- package/dist-cjs/commands/GetGroupConfigurationCommand.js +3 -3
- package/dist-cjs/commands/GetGroupQueryCommand.js +3 -3
- package/dist-cjs/commands/GetTagsCommand.js +3 -3
- package/dist-cjs/commands/GroupResourcesCommand.js +3 -3
- package/dist-cjs/commands/ListGroupResourcesCommand.js +3 -3
- package/dist-cjs/commands/ListGroupsCommand.js +3 -3
- package/dist-cjs/commands/PutGroupConfigurationCommand.js +3 -3
- package/dist-cjs/commands/SearchResourcesCommand.js +3 -3
- package/dist-cjs/commands/TagCommand.js +3 -3
- package/dist-cjs/commands/UngroupResourcesCommand.js +3 -3
- package/dist-cjs/commands/UntagCommand.js +3 -3
- package/dist-cjs/commands/UpdateGroupCommand.js +3 -3
- package/dist-cjs/commands/UpdateGroupQueryCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +79 -79
- 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/ResourceGroups.js +16 -16
- package/dist-es/pagination/ListGroupResourcesPaginator.js +4 -4
- package/dist-es/pagination/ListGroupsPaginator.js +4 -4
- package/dist-es/pagination/SearchResourcesPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +16 -16
- 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
|
@@ -132,7 +132,7 @@ const serializeAws_restJson1GetTagsCommand = async (input, context) => {
|
|
|
132
132
|
if (labelValue.length <= 0) {
|
|
133
133
|
throw new Error("Empty value provided for input HTTP label: Arn.");
|
|
134
134
|
}
|
|
135
|
-
resolvedPath = resolvedPath.replace("{Arn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
135
|
+
resolvedPath = resolvedPath.replace("{Arn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
136
136
|
}
|
|
137
137
|
else {
|
|
138
138
|
throw new Error("No value provided for input HTTP label: Arn.");
|
|
@@ -289,7 +289,7 @@ const serializeAws_restJson1TagCommand = async (input, context) => {
|
|
|
289
289
|
if (labelValue.length <= 0) {
|
|
290
290
|
throw new Error("Empty value provided for input HTTP label: Arn.");
|
|
291
291
|
}
|
|
292
|
-
resolvedPath = resolvedPath.replace("{Arn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
292
|
+
resolvedPath = resolvedPath.replace("{Arn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
293
293
|
}
|
|
294
294
|
else {
|
|
295
295
|
throw new Error("No value provided for input HTTP label: Arn.");
|
|
@@ -345,7 +345,7 @@ const serializeAws_restJson1UntagCommand = async (input, context) => {
|
|
|
345
345
|
if (labelValue.length <= 0) {
|
|
346
346
|
throw new Error("Empty value provided for input HTTP label: Arn.");
|
|
347
347
|
}
|
|
348
|
-
resolvedPath = resolvedPath.replace("{Arn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
348
|
+
resolvedPath = resolvedPath.replace("{Arn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
349
349
|
}
|
|
350
350
|
else {
|
|
351
351
|
throw new Error("No value provided for input HTTP label: Arn.");
|
|
@@ -426,7 +426,7 @@ const deserializeAws_restJson1CreateGroupCommand = async (output, context) => {
|
|
|
426
426
|
ResourceQuery: undefined,
|
|
427
427
|
Tags: undefined,
|
|
428
428
|
};
|
|
429
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
429
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
430
430
|
if (data.Group !== undefined && data.Group !== null) {
|
|
431
431
|
contents.Group = deserializeAws_restJson1Group(data.Group, context);
|
|
432
432
|
}
|
|
@@ -473,7 +473,7 @@ const deserializeAws_restJson1CreateGroupCommandError = async (output, context)
|
|
|
473
473
|
$fault: "client",
|
|
474
474
|
$metadata: deserializeMetadata(output),
|
|
475
475
|
});
|
|
476
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
476
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
477
477
|
}
|
|
478
478
|
};
|
|
479
479
|
const deserializeAws_restJson1DeleteGroupCommand = async (output, context) => {
|
|
@@ -484,7 +484,7 @@ const deserializeAws_restJson1DeleteGroupCommand = async (output, context) => {
|
|
|
484
484
|
$metadata: deserializeMetadata(output),
|
|
485
485
|
Group: undefined,
|
|
486
486
|
};
|
|
487
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
487
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
488
488
|
if (data.Group !== undefined && data.Group !== null) {
|
|
489
489
|
contents.Group = deserializeAws_restJson1Group(data.Group, context);
|
|
490
490
|
}
|
|
@@ -525,7 +525,7 @@ const deserializeAws_restJson1DeleteGroupCommandError = async (output, context)
|
|
|
525
525
|
$fault: "client",
|
|
526
526
|
$metadata: deserializeMetadata(output),
|
|
527
527
|
});
|
|
528
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
528
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
529
529
|
}
|
|
530
530
|
};
|
|
531
531
|
const deserializeAws_restJson1GetGroupCommand = async (output, context) => {
|
|
@@ -536,7 +536,7 @@ const deserializeAws_restJson1GetGroupCommand = async (output, context) => {
|
|
|
536
536
|
$metadata: deserializeMetadata(output),
|
|
537
537
|
Group: undefined,
|
|
538
538
|
};
|
|
539
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
539
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
540
540
|
if (data.Group !== undefined && data.Group !== null) {
|
|
541
541
|
contents.Group = deserializeAws_restJson1Group(data.Group, context);
|
|
542
542
|
}
|
|
@@ -577,7 +577,7 @@ const deserializeAws_restJson1GetGroupCommandError = async (output, context) =>
|
|
|
577
577
|
$fault: "client",
|
|
578
578
|
$metadata: deserializeMetadata(output),
|
|
579
579
|
});
|
|
580
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
580
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
581
581
|
}
|
|
582
582
|
};
|
|
583
583
|
const deserializeAws_restJson1GetGroupConfigurationCommand = async (output, context) => {
|
|
@@ -588,7 +588,7 @@ const deserializeAws_restJson1GetGroupConfigurationCommand = async (output, cont
|
|
|
588
588
|
$metadata: deserializeMetadata(output),
|
|
589
589
|
GroupConfiguration: undefined,
|
|
590
590
|
};
|
|
591
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
591
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
592
592
|
if (data.GroupConfiguration !== undefined && data.GroupConfiguration !== null) {
|
|
593
593
|
contents.GroupConfiguration = deserializeAws_restJson1GroupConfiguration(data.GroupConfiguration, context);
|
|
594
594
|
}
|
|
@@ -629,7 +629,7 @@ const deserializeAws_restJson1GetGroupConfigurationCommandError = async (output,
|
|
|
629
629
|
$fault: "client",
|
|
630
630
|
$metadata: deserializeMetadata(output),
|
|
631
631
|
});
|
|
632
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
632
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
633
633
|
}
|
|
634
634
|
};
|
|
635
635
|
const deserializeAws_restJson1GetGroupQueryCommand = async (output, context) => {
|
|
@@ -640,7 +640,7 @@ const deserializeAws_restJson1GetGroupQueryCommand = async (output, context) =>
|
|
|
640
640
|
$metadata: deserializeMetadata(output),
|
|
641
641
|
GroupQuery: undefined,
|
|
642
642
|
};
|
|
643
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
643
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
644
644
|
if (data.GroupQuery !== undefined && data.GroupQuery !== null) {
|
|
645
645
|
contents.GroupQuery = deserializeAws_restJson1GroupQuery(data.GroupQuery, context);
|
|
646
646
|
}
|
|
@@ -681,7 +681,7 @@ const deserializeAws_restJson1GetGroupQueryCommandError = async (output, context
|
|
|
681
681
|
$fault: "client",
|
|
682
682
|
$metadata: deserializeMetadata(output),
|
|
683
683
|
});
|
|
684
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
684
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
685
685
|
}
|
|
686
686
|
};
|
|
687
687
|
const deserializeAws_restJson1GetTagsCommand = async (output, context) => {
|
|
@@ -693,9 +693,9 @@ const deserializeAws_restJson1GetTagsCommand = async (output, context) => {
|
|
|
693
693
|
Arn: undefined,
|
|
694
694
|
Tags: undefined,
|
|
695
695
|
};
|
|
696
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
696
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
697
697
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
698
|
-
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
698
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
699
699
|
}
|
|
700
700
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
701
701
|
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
@@ -737,7 +737,7 @@ const deserializeAws_restJson1GetTagsCommandError = async (output, context) => {
|
|
|
737
737
|
$fault: "client",
|
|
738
738
|
$metadata: deserializeMetadata(output),
|
|
739
739
|
});
|
|
740
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
740
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
741
741
|
}
|
|
742
742
|
};
|
|
743
743
|
const deserializeAws_restJson1GroupResourcesCommand = async (output, context) => {
|
|
@@ -750,7 +750,7 @@ const deserializeAws_restJson1GroupResourcesCommand = async (output, context) =>
|
|
|
750
750
|
Pending: undefined,
|
|
751
751
|
Succeeded: undefined,
|
|
752
752
|
};
|
|
753
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
753
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
754
754
|
if (data.Failed !== undefined && data.Failed !== null) {
|
|
755
755
|
contents.Failed = deserializeAws_restJson1FailedResourceList(data.Failed, context);
|
|
756
756
|
}
|
|
@@ -797,7 +797,7 @@ const deserializeAws_restJson1GroupResourcesCommandError = async (output, contex
|
|
|
797
797
|
$fault: "client",
|
|
798
798
|
$metadata: deserializeMetadata(output),
|
|
799
799
|
});
|
|
800
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
800
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
801
801
|
}
|
|
802
802
|
};
|
|
803
803
|
const deserializeAws_restJson1ListGroupResourcesCommand = async (output, context) => {
|
|
@@ -811,9 +811,9 @@ const deserializeAws_restJson1ListGroupResourcesCommand = async (output, context
|
|
|
811
811
|
ResourceIdentifiers: undefined,
|
|
812
812
|
Resources: undefined,
|
|
813
813
|
};
|
|
814
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
814
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
815
815
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
816
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
816
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
817
817
|
}
|
|
818
818
|
if (data.QueryErrors !== undefined && data.QueryErrors !== null) {
|
|
819
819
|
contents.QueryErrors = deserializeAws_restJson1QueryErrorList(data.QueryErrors, context);
|
|
@@ -864,7 +864,7 @@ const deserializeAws_restJson1ListGroupResourcesCommandError = async (output, co
|
|
|
864
864
|
$fault: "client",
|
|
865
865
|
$metadata: deserializeMetadata(output),
|
|
866
866
|
});
|
|
867
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
867
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
868
868
|
}
|
|
869
869
|
};
|
|
870
870
|
const deserializeAws_restJson1ListGroupsCommand = async (output, context) => {
|
|
@@ -877,7 +877,7 @@ const deserializeAws_restJson1ListGroupsCommand = async (output, context) => {
|
|
|
877
877
|
Groups: undefined,
|
|
878
878
|
NextToken: undefined,
|
|
879
879
|
};
|
|
880
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
880
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
881
881
|
if (data.GroupIdentifiers !== undefined && data.GroupIdentifiers !== null) {
|
|
882
882
|
contents.GroupIdentifiers = deserializeAws_restJson1GroupIdentifierList(data.GroupIdentifiers, context);
|
|
883
883
|
}
|
|
@@ -885,7 +885,7 @@ const deserializeAws_restJson1ListGroupsCommand = async (output, context) => {
|
|
|
885
885
|
contents.Groups = deserializeAws_restJson1GroupList(data.Groups, context);
|
|
886
886
|
}
|
|
887
887
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
888
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
888
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
889
889
|
}
|
|
890
890
|
return Promise.resolve(contents);
|
|
891
891
|
};
|
|
@@ -921,7 +921,7 @@ const deserializeAws_restJson1ListGroupsCommandError = async (output, context) =
|
|
|
921
921
|
$fault: "client",
|
|
922
922
|
$metadata: deserializeMetadata(output),
|
|
923
923
|
});
|
|
924
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
924
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
925
925
|
}
|
|
926
926
|
};
|
|
927
927
|
const deserializeAws_restJson1PutGroupConfigurationCommand = async (output, context) => {
|
|
@@ -969,7 +969,7 @@ const deserializeAws_restJson1PutGroupConfigurationCommandError = async (output,
|
|
|
969
969
|
$fault: "client",
|
|
970
970
|
$metadata: deserializeMetadata(output),
|
|
971
971
|
});
|
|
972
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
972
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
973
973
|
}
|
|
974
974
|
};
|
|
975
975
|
const deserializeAws_restJson1SearchResourcesCommand = async (output, context) => {
|
|
@@ -982,9 +982,9 @@ const deserializeAws_restJson1SearchResourcesCommand = async (output, context) =
|
|
|
982
982
|
QueryErrors: undefined,
|
|
983
983
|
ResourceIdentifiers: undefined,
|
|
984
984
|
};
|
|
985
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
985
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
986
986
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
987
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
987
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
988
988
|
}
|
|
989
989
|
if (data.QueryErrors !== undefined && data.QueryErrors !== null) {
|
|
990
990
|
contents.QueryErrors = deserializeAws_restJson1QueryErrorList(data.QueryErrors, context);
|
|
@@ -1029,7 +1029,7 @@ const deserializeAws_restJson1SearchResourcesCommandError = async (output, conte
|
|
|
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_restJson1TagCommand = async (output, context) => {
|
|
@@ -1041,9 +1041,9 @@ const deserializeAws_restJson1TagCommand = async (output, context) => {
|
|
|
1041
1041
|
Arn: undefined,
|
|
1042
1042
|
Tags: 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.Arn !== undefined && data.Arn !== null) {
|
|
1046
|
-
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
1046
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
1047
1047
|
}
|
|
1048
1048
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
1049
1049
|
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
@@ -1085,7 +1085,7 @@ const deserializeAws_restJson1TagCommandError = async (output, context) => {
|
|
|
1085
1085
|
$fault: "client",
|
|
1086
1086
|
$metadata: deserializeMetadata(output),
|
|
1087
1087
|
});
|
|
1088
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1088
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1089
1089
|
}
|
|
1090
1090
|
};
|
|
1091
1091
|
const deserializeAws_restJson1UngroupResourcesCommand = async (output, context) => {
|
|
@@ -1098,7 +1098,7 @@ const deserializeAws_restJson1UngroupResourcesCommand = async (output, context)
|
|
|
1098
1098
|
Pending: undefined,
|
|
1099
1099
|
Succeeded: undefined,
|
|
1100
1100
|
};
|
|
1101
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1101
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1102
1102
|
if (data.Failed !== undefined && data.Failed !== null) {
|
|
1103
1103
|
contents.Failed = deserializeAws_restJson1FailedResourceList(data.Failed, context);
|
|
1104
1104
|
}
|
|
@@ -1145,7 +1145,7 @@ const deserializeAws_restJson1UngroupResourcesCommandError = async (output, cont
|
|
|
1145
1145
|
$fault: "client",
|
|
1146
1146
|
$metadata: deserializeMetadata(output),
|
|
1147
1147
|
});
|
|
1148
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1148
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1149
1149
|
}
|
|
1150
1150
|
};
|
|
1151
1151
|
const deserializeAws_restJson1UntagCommand = async (output, context) => {
|
|
@@ -1157,9 +1157,9 @@ const deserializeAws_restJson1UntagCommand = async (output, context) => {
|
|
|
1157
1157
|
Arn: undefined,
|
|
1158
1158
|
Keys: undefined,
|
|
1159
1159
|
};
|
|
1160
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1160
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1161
1161
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1162
|
-
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
1162
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
1163
1163
|
}
|
|
1164
1164
|
if (data.Keys !== undefined && data.Keys !== null) {
|
|
1165
1165
|
contents.Keys = deserializeAws_restJson1TagKeyList(data.Keys, context);
|
|
@@ -1201,7 +1201,7 @@ const deserializeAws_restJson1UntagCommandError = async (output, context) => {
|
|
|
1201
1201
|
$fault: "client",
|
|
1202
1202
|
$metadata: deserializeMetadata(output),
|
|
1203
1203
|
});
|
|
1204
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1204
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1205
1205
|
}
|
|
1206
1206
|
};
|
|
1207
1207
|
const deserializeAws_restJson1UpdateGroupCommand = async (output, context) => {
|
|
@@ -1212,7 +1212,7 @@ const deserializeAws_restJson1UpdateGroupCommand = async (output, context) => {
|
|
|
1212
1212
|
$metadata: deserializeMetadata(output),
|
|
1213
1213
|
Group: undefined,
|
|
1214
1214
|
};
|
|
1215
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1215
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1216
1216
|
if (data.Group !== undefined && data.Group !== null) {
|
|
1217
1217
|
contents.Group = deserializeAws_restJson1Group(data.Group, context);
|
|
1218
1218
|
}
|
|
@@ -1253,7 +1253,7 @@ const deserializeAws_restJson1UpdateGroupCommandError = async (output, context)
|
|
|
1253
1253
|
$fault: "client",
|
|
1254
1254
|
$metadata: deserializeMetadata(output),
|
|
1255
1255
|
});
|
|
1256
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1256
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1257
1257
|
}
|
|
1258
1258
|
};
|
|
1259
1259
|
const deserializeAws_restJson1UpdateGroupQueryCommand = async (output, context) => {
|
|
@@ -1264,7 +1264,7 @@ const deserializeAws_restJson1UpdateGroupQueryCommand = async (output, context)
|
|
|
1264
1264
|
$metadata: deserializeMetadata(output),
|
|
1265
1265
|
GroupQuery: undefined,
|
|
1266
1266
|
};
|
|
1267
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1267
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1268
1268
|
if (data.GroupQuery !== undefined && data.GroupQuery !== null) {
|
|
1269
1269
|
contents.GroupQuery = deserializeAws_restJson1GroupQuery(data.GroupQuery, context);
|
|
1270
1270
|
}
|
|
@@ -1305,92 +1305,92 @@ const deserializeAws_restJson1UpdateGroupQueryCommandError = async (output, cont
|
|
|
1305
1305
|
$fault: "client",
|
|
1306
1306
|
$metadata: deserializeMetadata(output),
|
|
1307
1307
|
});
|
|
1308
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1308
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1309
1309
|
}
|
|
1310
1310
|
};
|
|
1311
1311
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1312
1312
|
const contents = {};
|
|
1313
1313
|
const data = parsedOutput.body;
|
|
1314
1314
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1315
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1315
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1316
1316
|
}
|
|
1317
1317
|
const exception = new models_0_1.BadRequestException({
|
|
1318
1318
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1319
1319
|
...contents,
|
|
1320
1320
|
});
|
|
1321
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1321
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1322
1322
|
};
|
|
1323
1323
|
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
1324
1324
|
const contents = {};
|
|
1325
1325
|
const data = parsedOutput.body;
|
|
1326
1326
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1327
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1327
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1328
1328
|
}
|
|
1329
1329
|
const exception = new models_0_1.ForbiddenException({
|
|
1330
1330
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1331
1331
|
...contents,
|
|
1332
1332
|
});
|
|
1333
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1333
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1334
1334
|
};
|
|
1335
1335
|
const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (parsedOutput, context) => {
|
|
1336
1336
|
const contents = {};
|
|
1337
1337
|
const data = parsedOutput.body;
|
|
1338
1338
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1339
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1339
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1340
1340
|
}
|
|
1341
1341
|
const exception = new models_0_1.InternalServerErrorException({
|
|
1342
1342
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1343
1343
|
...contents,
|
|
1344
1344
|
});
|
|
1345
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1345
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1346
1346
|
};
|
|
1347
1347
|
const deserializeAws_restJson1MethodNotAllowedExceptionResponse = async (parsedOutput, context) => {
|
|
1348
1348
|
const contents = {};
|
|
1349
1349
|
const data = parsedOutput.body;
|
|
1350
1350
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1351
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1351
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1352
1352
|
}
|
|
1353
1353
|
const exception = new models_0_1.MethodNotAllowedException({
|
|
1354
1354
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1355
1355
|
...contents,
|
|
1356
1356
|
});
|
|
1357
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1357
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1358
1358
|
};
|
|
1359
1359
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1360
1360
|
const contents = {};
|
|
1361
1361
|
const data = parsedOutput.body;
|
|
1362
1362
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1363
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1363
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1364
1364
|
}
|
|
1365
1365
|
const exception = new models_0_1.NotFoundException({
|
|
1366
1366
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1367
1367
|
...contents,
|
|
1368
1368
|
});
|
|
1369
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1369
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1370
1370
|
};
|
|
1371
1371
|
const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
1372
1372
|
const contents = {};
|
|
1373
1373
|
const data = parsedOutput.body;
|
|
1374
1374
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1375
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1375
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1376
1376
|
}
|
|
1377
1377
|
const exception = new models_0_1.TooManyRequestsException({
|
|
1378
1378
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1379
1379
|
...contents,
|
|
1380
1380
|
});
|
|
1381
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1381
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1382
1382
|
};
|
|
1383
1383
|
const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => {
|
|
1384
1384
|
const contents = {};
|
|
1385
1385
|
const data = parsedOutput.body;
|
|
1386
1386
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1387
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1387
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1388
1388
|
}
|
|
1389
1389
|
const exception = new models_0_1.UnauthorizedException({
|
|
1390
1390
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1391
1391
|
...contents,
|
|
1392
1392
|
});
|
|
1393
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1393
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1394
1394
|
};
|
|
1395
1395
|
const serializeAws_restJson1GroupConfigurationItem = (input, context) => {
|
|
1396
1396
|
return {
|
|
@@ -1531,9 +1531,9 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
1531
1531
|
};
|
|
1532
1532
|
const deserializeAws_restJson1FailedResource = (output, context) => {
|
|
1533
1533
|
return {
|
|
1534
|
-
ErrorCode: smithy_client_1.expectString(output.ErrorCode),
|
|
1535
|
-
ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
|
|
1536
|
-
ResourceArn: smithy_client_1.expectString(output.ResourceArn),
|
|
1534
|
+
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1535
|
+
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
1536
|
+
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
1537
1537
|
};
|
|
1538
1538
|
};
|
|
1539
1539
|
const deserializeAws_restJson1FailedResourceList = (output, context) => {
|
|
@@ -1549,9 +1549,9 @@ const deserializeAws_restJson1FailedResourceList = (output, context) => {
|
|
|
1549
1549
|
};
|
|
1550
1550
|
const deserializeAws_restJson1Group = (output, context) => {
|
|
1551
1551
|
return {
|
|
1552
|
-
Description: smithy_client_1.expectString(output.Description),
|
|
1553
|
-
GroupArn: smithy_client_1.expectString(output.GroupArn),
|
|
1554
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1552
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1553
|
+
GroupArn: (0, smithy_client_1.expectString)(output.GroupArn),
|
|
1554
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1555
1555
|
};
|
|
1556
1556
|
};
|
|
1557
1557
|
const deserializeAws_restJson1GroupConfiguration = (output, context) => {
|
|
@@ -1559,11 +1559,11 @@ const deserializeAws_restJson1GroupConfiguration = (output, context) => {
|
|
|
1559
1559
|
Configuration: output.Configuration !== undefined && output.Configuration !== null
|
|
1560
1560
|
? deserializeAws_restJson1GroupConfigurationList(output.Configuration, context)
|
|
1561
1561
|
: undefined,
|
|
1562
|
-
FailureReason: smithy_client_1.expectString(output.FailureReason),
|
|
1562
|
+
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
1563
1563
|
ProposedConfiguration: output.ProposedConfiguration !== undefined && output.ProposedConfiguration !== null
|
|
1564
1564
|
? deserializeAws_restJson1GroupConfigurationList(output.ProposedConfiguration, context)
|
|
1565
1565
|
: undefined,
|
|
1566
|
-
Status: smithy_client_1.expectString(output.Status),
|
|
1566
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1567
1567
|
};
|
|
1568
1568
|
};
|
|
1569
1569
|
const deserializeAws_restJson1GroupConfigurationItem = (output, context) => {
|
|
@@ -1571,7 +1571,7 @@ const deserializeAws_restJson1GroupConfigurationItem = (output, context) => {
|
|
|
1571
1571
|
Parameters: output.Parameters !== undefined && output.Parameters !== null
|
|
1572
1572
|
? deserializeAws_restJson1GroupParameterList(output.Parameters, context)
|
|
1573
1573
|
: undefined,
|
|
1574
|
-
Type: smithy_client_1.expectString(output.Type),
|
|
1574
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1575
1575
|
};
|
|
1576
1576
|
};
|
|
1577
1577
|
const deserializeAws_restJson1GroupConfigurationList = (output, context) => {
|
|
@@ -1587,7 +1587,7 @@ const deserializeAws_restJson1GroupConfigurationList = (output, context) => {
|
|
|
1587
1587
|
};
|
|
1588
1588
|
const deserializeAws_restJson1GroupConfigurationParameter = (output, context) => {
|
|
1589
1589
|
return {
|
|
1590
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1590
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1591
1591
|
Values: output.Values !== undefined && output.Values !== null
|
|
1592
1592
|
? deserializeAws_restJson1GroupConfigurationParameterValueList(output.Values, context)
|
|
1593
1593
|
: undefined,
|
|
@@ -1600,14 +1600,14 @@ const deserializeAws_restJson1GroupConfigurationParameterValueList = (output, co
|
|
|
1600
1600
|
if (entry === null) {
|
|
1601
1601
|
return null;
|
|
1602
1602
|
}
|
|
1603
|
-
return smithy_client_1.expectString(entry);
|
|
1603
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1604
1604
|
});
|
|
1605
1605
|
return retVal;
|
|
1606
1606
|
};
|
|
1607
1607
|
const deserializeAws_restJson1GroupIdentifier = (output, context) => {
|
|
1608
1608
|
return {
|
|
1609
|
-
GroupArn: smithy_client_1.expectString(output.GroupArn),
|
|
1610
|
-
GroupName: smithy_client_1.expectString(output.GroupName),
|
|
1609
|
+
GroupArn: (0, smithy_client_1.expectString)(output.GroupArn),
|
|
1610
|
+
GroupName: (0, smithy_client_1.expectString)(output.GroupName),
|
|
1611
1611
|
};
|
|
1612
1612
|
};
|
|
1613
1613
|
const deserializeAws_restJson1GroupIdentifierList = (output, context) => {
|
|
@@ -1645,7 +1645,7 @@ const deserializeAws_restJson1GroupParameterList = (output, context) => {
|
|
|
1645
1645
|
};
|
|
1646
1646
|
const deserializeAws_restJson1GroupQuery = (output, context) => {
|
|
1647
1647
|
return {
|
|
1648
|
-
GroupName: smithy_client_1.expectString(output.GroupName),
|
|
1648
|
+
GroupName: (0, smithy_client_1.expectString)(output.GroupName),
|
|
1649
1649
|
ResourceQuery: output.ResourceQuery !== undefined && output.ResourceQuery !== null
|
|
1650
1650
|
? deserializeAws_restJson1ResourceQuery(output.ResourceQuery, context)
|
|
1651
1651
|
: undefined,
|
|
@@ -1674,7 +1674,7 @@ const deserializeAws_restJson1ListGroupResourcesItemList = (output, context) =>
|
|
|
1674
1674
|
};
|
|
1675
1675
|
const deserializeAws_restJson1PendingResource = (output, context) => {
|
|
1676
1676
|
return {
|
|
1677
|
-
ResourceArn: smithy_client_1.expectString(output.ResourceArn),
|
|
1677
|
+
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
1678
1678
|
};
|
|
1679
1679
|
};
|
|
1680
1680
|
const deserializeAws_restJson1PendingResourceList = (output, context) => {
|
|
@@ -1690,8 +1690,8 @@ const deserializeAws_restJson1PendingResourceList = (output, context) => {
|
|
|
1690
1690
|
};
|
|
1691
1691
|
const deserializeAws_restJson1QueryError = (output, context) => {
|
|
1692
1692
|
return {
|
|
1693
|
-
ErrorCode: smithy_client_1.expectString(output.ErrorCode),
|
|
1694
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1693
|
+
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1694
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1695
1695
|
};
|
|
1696
1696
|
};
|
|
1697
1697
|
const deserializeAws_restJson1QueryErrorList = (output, context) => {
|
|
@@ -1712,14 +1712,14 @@ const deserializeAws_restJson1ResourceArnList = (output, context) => {
|
|
|
1712
1712
|
if (entry === null) {
|
|
1713
1713
|
return null;
|
|
1714
1714
|
}
|
|
1715
|
-
return smithy_client_1.expectString(entry);
|
|
1715
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1716
1716
|
});
|
|
1717
1717
|
return retVal;
|
|
1718
1718
|
};
|
|
1719
1719
|
const deserializeAws_restJson1ResourceIdentifier = (output, context) => {
|
|
1720
1720
|
return {
|
|
1721
|
-
ResourceArn: smithy_client_1.expectString(output.ResourceArn),
|
|
1722
|
-
ResourceType: smithy_client_1.expectString(output.ResourceType),
|
|
1721
|
+
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
1722
|
+
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
1723
1723
|
};
|
|
1724
1724
|
};
|
|
1725
1725
|
const deserializeAws_restJson1ResourceIdentifierList = (output, context) => {
|
|
@@ -1735,13 +1735,13 @@ const deserializeAws_restJson1ResourceIdentifierList = (output, context) => {
|
|
|
1735
1735
|
};
|
|
1736
1736
|
const deserializeAws_restJson1ResourceQuery = (output, context) => {
|
|
1737
1737
|
return {
|
|
1738
|
-
Query: smithy_client_1.expectString(output.Query),
|
|
1739
|
-
Type: smithy_client_1.expectString(output.Type),
|
|
1738
|
+
Query: (0, smithy_client_1.expectString)(output.Query),
|
|
1739
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1740
1740
|
};
|
|
1741
1741
|
};
|
|
1742
1742
|
const deserializeAws_restJson1ResourceStatus = (output, context) => {
|
|
1743
1743
|
return {
|
|
1744
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1744
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1745
1745
|
};
|
|
1746
1746
|
};
|
|
1747
1747
|
const deserializeAws_restJson1TagKeyList = (output, context) => {
|
|
@@ -1751,7 +1751,7 @@ const deserializeAws_restJson1TagKeyList = (output, context) => {
|
|
|
1751
1751
|
if (entry === null) {
|
|
1752
1752
|
return null;
|
|
1753
1753
|
}
|
|
1754
|
-
return smithy_client_1.expectString(entry);
|
|
1754
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1755
1755
|
});
|
|
1756
1756
|
return retVal;
|
|
1757
1757
|
};
|
|
@@ -1762,7 +1762,7 @@ const deserializeAws_restJson1Tags = (output, context) => {
|
|
|
1762
1762
|
}
|
|
1763
1763
|
return {
|
|
1764
1764
|
...acc,
|
|
1765
|
-
[key]: smithy_client_1.expectString(value),
|
|
1765
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1766
1766
|
};
|
|
1767
1767
|
}, {});
|
|
1768
1768
|
};
|
|
@@ -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
|
};
|