@aws-sdk/client-ram 3.54.1 → 3.55.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 +11 -0
- package/dist-cjs/RAMClient.js +13 -13
- package/dist-cjs/commands/AcceptResourceShareInvitationCommand.js +3 -3
- package/dist-cjs/commands/AssociateResourceShareCommand.js +3 -3
- package/dist-cjs/commands/AssociateResourceSharePermissionCommand.js +3 -3
- package/dist-cjs/commands/CreateResourceShareCommand.js +3 -3
- package/dist-cjs/commands/DeleteResourceShareCommand.js +3 -3
- package/dist-cjs/commands/DisassociateResourceShareCommand.js +3 -3
- package/dist-cjs/commands/DisassociateResourceSharePermissionCommand.js +3 -3
- package/dist-cjs/commands/EnableSharingWithAwsOrganizationCommand.js +3 -3
- package/dist-cjs/commands/GetPermissionCommand.js +3 -3
- package/dist-cjs/commands/GetResourcePoliciesCommand.js +3 -3
- package/dist-cjs/commands/GetResourceShareAssociationsCommand.js +3 -3
- package/dist-cjs/commands/GetResourceShareInvitationsCommand.js +3 -3
- package/dist-cjs/commands/GetResourceSharesCommand.js +3 -3
- package/dist-cjs/commands/ListPendingInvitationResourcesCommand.js +3 -3
- package/dist-cjs/commands/ListPermissionVersionsCommand.js +3 -3
- package/dist-cjs/commands/ListPermissionsCommand.js +3 -3
- package/dist-cjs/commands/ListPrincipalsCommand.js +3 -3
- package/dist-cjs/commands/ListResourceSharePermissionsCommand.js +3 -3
- package/dist-cjs/commands/ListResourceTypesCommand.js +3 -3
- package/dist-cjs/commands/ListResourcesCommand.js +3 -3
- package/dist-cjs/commands/PromoteResourceShareCreatedFromPolicyCommand.js +3 -3
- package/dist-cjs/commands/RejectResourceShareInvitationCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateResourceShareCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +181 -181
- 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/RAM.js +25 -25
- package/dist-es/pagination/GetResourcePoliciesPaginator.js +4 -4
- package/dist-es/pagination/GetResourceShareAssociationsPaginator.js +4 -4
- package/dist-es/pagination/GetResourceShareInvitationsPaginator.js +4 -4
- package/dist-es/pagination/GetResourceSharesPaginator.js +4 -4
- package/dist-es/pagination/ListPendingInvitationResourcesPaginator.js +4 -4
- package/dist-es/pagination/ListPermissionVersionsPaginator.js +4 -4
- package/dist-es/pagination/ListPermissionsPaginator.js +4 -4
- package/dist-es/pagination/ListPrincipalsPaginator.js +4 -4
- package/dist-es/pagination/ListResourceSharePermissionsPaginator.js +4 -4
- package/dist-es/pagination/ListResourceTypesPaginator.js +4 -4
- package/dist-es/pagination/ListResourcesPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +25 -25
- package/dist-types/RAM.d.ts +3 -3
- package/dist-types/commands/ListResourcesCommand.d.ts +1 -1
- package/dist-types/commands/PromoteResourceShareCreatedFromPolicyCommand.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +12 -11
- 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
|
@@ -678,9 +678,9 @@ const deserializeAws_restJson1AcceptResourceShareInvitationCommand = async (outp
|
|
|
678
678
|
clientToken: undefined,
|
|
679
679
|
resourceShareInvitation: undefined,
|
|
680
680
|
};
|
|
681
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
681
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
682
682
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
683
|
-
contents.clientToken = smithy_client_1.expectString(data.clientToken);
|
|
683
|
+
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
684
684
|
}
|
|
685
685
|
if (data.resourceShareInvitation !== undefined && data.resourceShareInvitation !== null) {
|
|
686
686
|
contents.resourceShareInvitation = deserializeAws_restJson1ResourceShareInvitation(data.resourceShareInvitation, context);
|
|
@@ -734,7 +734,7 @@ const deserializeAws_restJson1AcceptResourceShareInvitationCommandError = async
|
|
|
734
734
|
$fault: "client",
|
|
735
735
|
$metadata: deserializeMetadata(output),
|
|
736
736
|
});
|
|
737
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
737
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
738
738
|
}
|
|
739
739
|
};
|
|
740
740
|
const deserializeAws_restJson1AssociateResourceShareCommand = async (output, context) => {
|
|
@@ -746,9 +746,9 @@ const deserializeAws_restJson1AssociateResourceShareCommand = async (output, con
|
|
|
746
746
|
clientToken: undefined,
|
|
747
747
|
resourceShareAssociations: undefined,
|
|
748
748
|
};
|
|
749
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
749
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
750
750
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
751
|
-
contents.clientToken = smithy_client_1.expectString(data.clientToken);
|
|
751
|
+
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
752
752
|
}
|
|
753
753
|
if (data.resourceShareAssociations !== undefined && data.resourceShareAssociations !== null) {
|
|
754
754
|
contents.resourceShareAssociations = deserializeAws_restJson1ResourceShareAssociationList(data.resourceShareAssociations, context);
|
|
@@ -805,7 +805,7 @@ const deserializeAws_restJson1AssociateResourceShareCommandError = async (output
|
|
|
805
805
|
$fault: "client",
|
|
806
806
|
$metadata: deserializeMetadata(output),
|
|
807
807
|
});
|
|
808
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
808
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
809
809
|
}
|
|
810
810
|
};
|
|
811
811
|
const deserializeAws_restJson1AssociateResourceSharePermissionCommand = async (output, context) => {
|
|
@@ -817,12 +817,12 @@ const deserializeAws_restJson1AssociateResourceSharePermissionCommand = async (o
|
|
|
817
817
|
clientToken: undefined,
|
|
818
818
|
returnValue: undefined,
|
|
819
819
|
};
|
|
820
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
820
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
821
821
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
822
|
-
contents.clientToken = smithy_client_1.expectString(data.clientToken);
|
|
822
|
+
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
823
823
|
}
|
|
824
824
|
if (data.returnValue !== undefined && data.returnValue !== null) {
|
|
825
|
-
contents.returnValue = smithy_client_1.expectBoolean(data.returnValue);
|
|
825
|
+
contents.returnValue = (0, smithy_client_1.expectBoolean)(data.returnValue);
|
|
826
826
|
}
|
|
827
827
|
return Promise.resolve(contents);
|
|
828
828
|
};
|
|
@@ -864,7 +864,7 @@ const deserializeAws_restJson1AssociateResourceSharePermissionCommandError = asy
|
|
|
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_restJson1CreateResourceShareCommand = async (output, context) => {
|
|
@@ -876,9 +876,9 @@ const deserializeAws_restJson1CreateResourceShareCommand = async (output, contex
|
|
|
876
876
|
clientToken: undefined,
|
|
877
877
|
resourceShare: undefined,
|
|
878
878
|
};
|
|
879
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
879
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
880
880
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
881
|
-
contents.clientToken = smithy_client_1.expectString(data.clientToken);
|
|
881
|
+
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
882
882
|
}
|
|
883
883
|
if (data.resourceShare !== undefined && data.resourceShare !== null) {
|
|
884
884
|
contents.resourceShare = deserializeAws_restJson1ResourceShare(data.resourceShare, context);
|
|
@@ -935,7 +935,7 @@ const deserializeAws_restJson1CreateResourceShareCommandError = async (output, c
|
|
|
935
935
|
$fault: "client",
|
|
936
936
|
$metadata: deserializeMetadata(output),
|
|
937
937
|
});
|
|
938
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
938
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
939
939
|
}
|
|
940
940
|
};
|
|
941
941
|
const deserializeAws_restJson1DeleteResourceShareCommand = async (output, context) => {
|
|
@@ -947,12 +947,12 @@ const deserializeAws_restJson1DeleteResourceShareCommand = async (output, contex
|
|
|
947
947
|
clientToken: undefined,
|
|
948
948
|
returnValue: undefined,
|
|
949
949
|
};
|
|
950
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
950
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
951
951
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
952
|
-
contents.clientToken = smithy_client_1.expectString(data.clientToken);
|
|
952
|
+
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
953
953
|
}
|
|
954
954
|
if (data.returnValue !== undefined && data.returnValue !== null) {
|
|
955
|
-
contents.returnValue = smithy_client_1.expectBoolean(data.returnValue);
|
|
955
|
+
contents.returnValue = (0, smithy_client_1.expectBoolean)(data.returnValue);
|
|
956
956
|
}
|
|
957
957
|
return Promise.resolve(contents);
|
|
958
958
|
};
|
|
@@ -1000,7 +1000,7 @@ const deserializeAws_restJson1DeleteResourceShareCommandError = async (output, c
|
|
|
1000
1000
|
$fault: "client",
|
|
1001
1001
|
$metadata: deserializeMetadata(output),
|
|
1002
1002
|
});
|
|
1003
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1003
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1004
1004
|
}
|
|
1005
1005
|
};
|
|
1006
1006
|
const deserializeAws_restJson1DisassociateResourceShareCommand = async (output, context) => {
|
|
@@ -1012,9 +1012,9 @@ const deserializeAws_restJson1DisassociateResourceShareCommand = async (output,
|
|
|
1012
1012
|
clientToken: undefined,
|
|
1013
1013
|
resourceShareAssociations: undefined,
|
|
1014
1014
|
};
|
|
1015
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1015
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1016
1016
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
1017
|
-
contents.clientToken = smithy_client_1.expectString(data.clientToken);
|
|
1017
|
+
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
1018
1018
|
}
|
|
1019
1019
|
if (data.resourceShareAssociations !== undefined && data.resourceShareAssociations !== null) {
|
|
1020
1020
|
contents.resourceShareAssociations = deserializeAws_restJson1ResourceShareAssociationList(data.resourceShareAssociations, context);
|
|
@@ -1068,7 +1068,7 @@ const deserializeAws_restJson1DisassociateResourceShareCommandError = async (out
|
|
|
1068
1068
|
$fault: "client",
|
|
1069
1069
|
$metadata: deserializeMetadata(output),
|
|
1070
1070
|
});
|
|
1071
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1071
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1072
1072
|
}
|
|
1073
1073
|
};
|
|
1074
1074
|
const deserializeAws_restJson1DisassociateResourceSharePermissionCommand = async (output, context) => {
|
|
@@ -1080,12 +1080,12 @@ const deserializeAws_restJson1DisassociateResourceSharePermissionCommand = async
|
|
|
1080
1080
|
clientToken: undefined,
|
|
1081
1081
|
returnValue: undefined,
|
|
1082
1082
|
};
|
|
1083
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1083
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1084
1084
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
1085
|
-
contents.clientToken = smithy_client_1.expectString(data.clientToken);
|
|
1085
|
+
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
1086
1086
|
}
|
|
1087
1087
|
if (data.returnValue !== undefined && data.returnValue !== null) {
|
|
1088
|
-
contents.returnValue = smithy_client_1.expectBoolean(data.returnValue);
|
|
1088
|
+
contents.returnValue = (0, smithy_client_1.expectBoolean)(data.returnValue);
|
|
1089
1089
|
}
|
|
1090
1090
|
return Promise.resolve(contents);
|
|
1091
1091
|
};
|
|
@@ -1130,7 +1130,7 @@ const deserializeAws_restJson1DisassociateResourceSharePermissionCommandError =
|
|
|
1130
1130
|
$fault: "client",
|
|
1131
1131
|
$metadata: deserializeMetadata(output),
|
|
1132
1132
|
});
|
|
1133
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1133
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1134
1134
|
}
|
|
1135
1135
|
};
|
|
1136
1136
|
const deserializeAws_restJson1EnableSharingWithAwsOrganizationCommand = async (output, context) => {
|
|
@@ -1141,9 +1141,9 @@ const deserializeAws_restJson1EnableSharingWithAwsOrganizationCommand = async (o
|
|
|
1141
1141
|
$metadata: deserializeMetadata(output),
|
|
1142
1142
|
returnValue: undefined,
|
|
1143
1143
|
};
|
|
1144
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1144
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1145
1145
|
if (data.returnValue !== undefined && data.returnValue !== null) {
|
|
1146
|
-
contents.returnValue = smithy_client_1.expectBoolean(data.returnValue);
|
|
1146
|
+
contents.returnValue = (0, smithy_client_1.expectBoolean)(data.returnValue);
|
|
1147
1147
|
}
|
|
1148
1148
|
return Promise.resolve(contents);
|
|
1149
1149
|
};
|
|
@@ -1173,7 +1173,7 @@ const deserializeAws_restJson1EnableSharingWithAwsOrganizationCommandError = asy
|
|
|
1173
1173
|
$fault: "client",
|
|
1174
1174
|
$metadata: deserializeMetadata(output),
|
|
1175
1175
|
});
|
|
1176
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1176
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1177
1177
|
}
|
|
1178
1178
|
};
|
|
1179
1179
|
const deserializeAws_restJson1GetPermissionCommand = async (output, context) => {
|
|
@@ -1184,7 +1184,7 @@ const deserializeAws_restJson1GetPermissionCommand = async (output, context) =>
|
|
|
1184
1184
|
$metadata: deserializeMetadata(output),
|
|
1185
1185
|
permission: undefined,
|
|
1186
1186
|
};
|
|
1187
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1187
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1188
1188
|
if (data.permission !== undefined && data.permission !== null) {
|
|
1189
1189
|
contents.permission = deserializeAws_restJson1ResourceSharePermissionDetail(data.permission, context);
|
|
1190
1190
|
}
|
|
@@ -1225,7 +1225,7 @@ const deserializeAws_restJson1GetPermissionCommandError = async (output, context
|
|
|
1225
1225
|
$fault: "client",
|
|
1226
1226
|
$metadata: deserializeMetadata(output),
|
|
1227
1227
|
});
|
|
1228
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1228
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1229
1229
|
}
|
|
1230
1230
|
};
|
|
1231
1231
|
const deserializeAws_restJson1GetResourcePoliciesCommand = async (output, context) => {
|
|
@@ -1237,9 +1237,9 @@ const deserializeAws_restJson1GetResourcePoliciesCommand = async (output, contex
|
|
|
1237
1237
|
nextToken: undefined,
|
|
1238
1238
|
policies: undefined,
|
|
1239
1239
|
};
|
|
1240
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1240
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1241
1241
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1242
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1242
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1243
1243
|
}
|
|
1244
1244
|
if (data.policies !== undefined && data.policies !== null) {
|
|
1245
1245
|
contents.policies = deserializeAws_restJson1PolicyList(data.policies, context);
|
|
@@ -1281,7 +1281,7 @@ const deserializeAws_restJson1GetResourcePoliciesCommandError = async (output, c
|
|
|
1281
1281
|
$fault: "client",
|
|
1282
1282
|
$metadata: deserializeMetadata(output),
|
|
1283
1283
|
});
|
|
1284
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1284
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1285
1285
|
}
|
|
1286
1286
|
};
|
|
1287
1287
|
const deserializeAws_restJson1GetResourceShareAssociationsCommand = async (output, context) => {
|
|
@@ -1293,9 +1293,9 @@ const deserializeAws_restJson1GetResourceShareAssociationsCommand = async (outpu
|
|
|
1293
1293
|
nextToken: undefined,
|
|
1294
1294
|
resourceShareAssociations: undefined,
|
|
1295
1295
|
};
|
|
1296
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1296
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1297
1297
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1298
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1298
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1299
1299
|
}
|
|
1300
1300
|
if (data.resourceShareAssociations !== undefined && data.resourceShareAssociations !== null) {
|
|
1301
1301
|
contents.resourceShareAssociations = deserializeAws_restJson1ResourceShareAssociationList(data.resourceShareAssociations, context);
|
|
@@ -1340,7 +1340,7 @@ const deserializeAws_restJson1GetResourceShareAssociationsCommandError = async (
|
|
|
1340
1340
|
$fault: "client",
|
|
1341
1341
|
$metadata: deserializeMetadata(output),
|
|
1342
1342
|
});
|
|
1343
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1343
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1344
1344
|
}
|
|
1345
1345
|
};
|
|
1346
1346
|
const deserializeAws_restJson1GetResourceShareInvitationsCommand = async (output, context) => {
|
|
@@ -1352,9 +1352,9 @@ const deserializeAws_restJson1GetResourceShareInvitationsCommand = async (output
|
|
|
1352
1352
|
nextToken: undefined,
|
|
1353
1353
|
resourceShareInvitations: undefined,
|
|
1354
1354
|
};
|
|
1355
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1355
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1356
1356
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1357
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1357
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1358
1358
|
}
|
|
1359
1359
|
if (data.resourceShareInvitations !== undefined && data.resourceShareInvitations !== null) {
|
|
1360
1360
|
contents.resourceShareInvitations = deserializeAws_restJson1ResourceShareInvitationList(data.resourceShareInvitations, context);
|
|
@@ -1402,7 +1402,7 @@ const deserializeAws_restJson1GetResourceShareInvitationsCommandError = async (o
|
|
|
1402
1402
|
$fault: "client",
|
|
1403
1403
|
$metadata: deserializeMetadata(output),
|
|
1404
1404
|
});
|
|
1405
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1405
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1406
1406
|
}
|
|
1407
1407
|
};
|
|
1408
1408
|
const deserializeAws_restJson1GetResourceSharesCommand = async (output, context) => {
|
|
@@ -1414,9 +1414,9 @@ const deserializeAws_restJson1GetResourceSharesCommand = async (output, context)
|
|
|
1414
1414
|
nextToken: undefined,
|
|
1415
1415
|
resourceShares: undefined,
|
|
1416
1416
|
};
|
|
1417
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1417
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1418
1418
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1419
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1419
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1420
1420
|
}
|
|
1421
1421
|
if (data.resourceShares !== undefined && data.resourceShares !== null) {
|
|
1422
1422
|
contents.resourceShares = deserializeAws_restJson1ResourceShareList(data.resourceShares, context);
|
|
@@ -1458,7 +1458,7 @@ const deserializeAws_restJson1GetResourceSharesCommandError = async (output, con
|
|
|
1458
1458
|
$fault: "client",
|
|
1459
1459
|
$metadata: deserializeMetadata(output),
|
|
1460
1460
|
});
|
|
1461
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1461
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1462
1462
|
}
|
|
1463
1463
|
};
|
|
1464
1464
|
const deserializeAws_restJson1ListPendingInvitationResourcesCommand = async (output, context) => {
|
|
@@ -1470,9 +1470,9 @@ const deserializeAws_restJson1ListPendingInvitationResourcesCommand = async (out
|
|
|
1470
1470
|
nextToken: undefined,
|
|
1471
1471
|
resources: undefined,
|
|
1472
1472
|
};
|
|
1473
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1473
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1474
1474
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1475
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1475
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1476
1476
|
}
|
|
1477
1477
|
if (data.resources !== undefined && data.resources !== null) {
|
|
1478
1478
|
contents.resources = deserializeAws_restJson1ResourceList(data.resources, context);
|
|
@@ -1523,7 +1523,7 @@ const deserializeAws_restJson1ListPendingInvitationResourcesCommandError = async
|
|
|
1523
1523
|
$fault: "client",
|
|
1524
1524
|
$metadata: deserializeMetadata(output),
|
|
1525
1525
|
});
|
|
1526
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1526
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1527
1527
|
}
|
|
1528
1528
|
};
|
|
1529
1529
|
const deserializeAws_restJson1ListPermissionsCommand = async (output, context) => {
|
|
@@ -1535,9 +1535,9 @@ const deserializeAws_restJson1ListPermissionsCommand = async (output, context) =
|
|
|
1535
1535
|
nextToken: undefined,
|
|
1536
1536
|
permissions: undefined,
|
|
1537
1537
|
};
|
|
1538
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1538
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1539
1539
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1540
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1540
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1541
1541
|
}
|
|
1542
1542
|
if (data.permissions !== undefined && data.permissions !== null) {
|
|
1543
1543
|
contents.permissions = deserializeAws_restJson1ResourceSharePermissionList(data.permissions, context);
|
|
@@ -1576,7 +1576,7 @@ const deserializeAws_restJson1ListPermissionsCommandError = async (output, conte
|
|
|
1576
1576
|
$fault: "client",
|
|
1577
1577
|
$metadata: deserializeMetadata(output),
|
|
1578
1578
|
});
|
|
1579
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1579
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1580
1580
|
}
|
|
1581
1581
|
};
|
|
1582
1582
|
const deserializeAws_restJson1ListPermissionVersionsCommand = async (output, context) => {
|
|
@@ -1588,9 +1588,9 @@ const deserializeAws_restJson1ListPermissionVersionsCommand = async (output, con
|
|
|
1588
1588
|
nextToken: undefined,
|
|
1589
1589
|
permissions: undefined,
|
|
1590
1590
|
};
|
|
1591
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1591
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1592
1592
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1593
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1593
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1594
1594
|
}
|
|
1595
1595
|
if (data.permissions !== undefined && data.permissions !== null) {
|
|
1596
1596
|
contents.permissions = deserializeAws_restJson1ResourceSharePermissionList(data.permissions, context);
|
|
@@ -1635,7 +1635,7 @@ const deserializeAws_restJson1ListPermissionVersionsCommandError = async (output
|
|
|
1635
1635
|
$fault: "client",
|
|
1636
1636
|
$metadata: deserializeMetadata(output),
|
|
1637
1637
|
});
|
|
1638
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1638
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1639
1639
|
}
|
|
1640
1640
|
};
|
|
1641
1641
|
const deserializeAws_restJson1ListPrincipalsCommand = async (output, context) => {
|
|
@@ -1647,9 +1647,9 @@ const deserializeAws_restJson1ListPrincipalsCommand = async (output, context) =>
|
|
|
1647
1647
|
nextToken: undefined,
|
|
1648
1648
|
principals: undefined,
|
|
1649
1649
|
};
|
|
1650
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1650
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1651
1651
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1652
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1652
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1653
1653
|
}
|
|
1654
1654
|
if (data.principals !== undefined && data.principals !== null) {
|
|
1655
1655
|
contents.principals = deserializeAws_restJson1PrincipalList(data.principals, context);
|
|
@@ -1691,7 +1691,7 @@ const deserializeAws_restJson1ListPrincipalsCommandError = async (output, contex
|
|
|
1691
1691
|
$fault: "client",
|
|
1692
1692
|
$metadata: deserializeMetadata(output),
|
|
1693
1693
|
});
|
|
1694
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1694
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1695
1695
|
}
|
|
1696
1696
|
};
|
|
1697
1697
|
const deserializeAws_restJson1ListResourcesCommand = async (output, context) => {
|
|
@@ -1703,9 +1703,9 @@ const deserializeAws_restJson1ListResourcesCommand = async (output, context) =>
|
|
|
1703
1703
|
nextToken: undefined,
|
|
1704
1704
|
resources: undefined,
|
|
1705
1705
|
};
|
|
1706
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1706
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1707
1707
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1708
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1708
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1709
1709
|
}
|
|
1710
1710
|
if (data.resources !== undefined && data.resources !== null) {
|
|
1711
1711
|
contents.resources = deserializeAws_restJson1ResourceList(data.resources, context);
|
|
@@ -1750,7 +1750,7 @@ const deserializeAws_restJson1ListResourcesCommandError = async (output, context
|
|
|
1750
1750
|
$fault: "client",
|
|
1751
1751
|
$metadata: deserializeMetadata(output),
|
|
1752
1752
|
});
|
|
1753
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1753
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1754
1754
|
}
|
|
1755
1755
|
};
|
|
1756
1756
|
const deserializeAws_restJson1ListResourceSharePermissionsCommand = async (output, context) => {
|
|
@@ -1762,9 +1762,9 @@ const deserializeAws_restJson1ListResourceSharePermissionsCommand = async (outpu
|
|
|
1762
1762
|
nextToken: undefined,
|
|
1763
1763
|
permissions: undefined,
|
|
1764
1764
|
};
|
|
1765
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1765
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1766
1766
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1767
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1767
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1768
1768
|
}
|
|
1769
1769
|
if (data.permissions !== undefined && data.permissions !== null) {
|
|
1770
1770
|
contents.permissions = deserializeAws_restJson1ResourceSharePermissionList(data.permissions, context);
|
|
@@ -1809,7 +1809,7 @@ const deserializeAws_restJson1ListResourceSharePermissionsCommandError = async (
|
|
|
1809
1809
|
$fault: "client",
|
|
1810
1810
|
$metadata: deserializeMetadata(output),
|
|
1811
1811
|
});
|
|
1812
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1812
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1813
1813
|
}
|
|
1814
1814
|
};
|
|
1815
1815
|
const deserializeAws_restJson1ListResourceTypesCommand = async (output, context) => {
|
|
@@ -1821,9 +1821,9 @@ const deserializeAws_restJson1ListResourceTypesCommand = async (output, context)
|
|
|
1821
1821
|
nextToken: undefined,
|
|
1822
1822
|
resourceTypes: undefined,
|
|
1823
1823
|
};
|
|
1824
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1824
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1825
1825
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1826
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1826
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1827
1827
|
}
|
|
1828
1828
|
if (data.resourceTypes !== undefined && data.resourceTypes !== null) {
|
|
1829
1829
|
contents.resourceTypes = deserializeAws_restJson1ServiceNameAndResourceTypeList(data.resourceTypes, context);
|
|
@@ -1859,7 +1859,7 @@ const deserializeAws_restJson1ListResourceTypesCommandError = async (output, con
|
|
|
1859
1859
|
$fault: "client",
|
|
1860
1860
|
$metadata: deserializeMetadata(output),
|
|
1861
1861
|
});
|
|
1862
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1862
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1863
1863
|
}
|
|
1864
1864
|
};
|
|
1865
1865
|
const deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommand = async (output, context) => {
|
|
@@ -1870,9 +1870,9 @@ const deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommand = asy
|
|
|
1870
1870
|
$metadata: deserializeMetadata(output),
|
|
1871
1871
|
returnValue: undefined,
|
|
1872
1872
|
};
|
|
1873
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1873
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1874
1874
|
if (data.returnValue !== undefined && data.returnValue !== null) {
|
|
1875
|
-
contents.returnValue = smithy_client_1.expectBoolean(data.returnValue);
|
|
1875
|
+
contents.returnValue = (0, smithy_client_1.expectBoolean)(data.returnValue);
|
|
1876
1876
|
}
|
|
1877
1877
|
return Promise.resolve(contents);
|
|
1878
1878
|
};
|
|
@@ -1917,7 +1917,7 @@ const deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommandError
|
|
|
1917
1917
|
$fault: "client",
|
|
1918
1918
|
$metadata: deserializeMetadata(output),
|
|
1919
1919
|
});
|
|
1920
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1920
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1921
1921
|
}
|
|
1922
1922
|
};
|
|
1923
1923
|
const deserializeAws_restJson1RejectResourceShareInvitationCommand = async (output, context) => {
|
|
@@ -1929,9 +1929,9 @@ const deserializeAws_restJson1RejectResourceShareInvitationCommand = async (outp
|
|
|
1929
1929
|
clientToken: undefined,
|
|
1930
1930
|
resourceShareInvitation: undefined,
|
|
1931
1931
|
};
|
|
1932
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1932
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1933
1933
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
1934
|
-
contents.clientToken = smithy_client_1.expectString(data.clientToken);
|
|
1934
|
+
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
1935
1935
|
}
|
|
1936
1936
|
if (data.resourceShareInvitation !== undefined && data.resourceShareInvitation !== null) {
|
|
1937
1937
|
contents.resourceShareInvitation = deserializeAws_restJson1ResourceShareInvitation(data.resourceShareInvitation, context);
|
|
@@ -1985,7 +1985,7 @@ const deserializeAws_restJson1RejectResourceShareInvitationCommandError = async
|
|
|
1985
1985
|
$fault: "client",
|
|
1986
1986
|
$metadata: deserializeMetadata(output),
|
|
1987
1987
|
});
|
|
1988
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1988
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1989
1989
|
}
|
|
1990
1990
|
};
|
|
1991
1991
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
@@ -2039,7 +2039,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2039
2039
|
$fault: "client",
|
|
2040
2040
|
$metadata: deserializeMetadata(output),
|
|
2041
2041
|
});
|
|
2042
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2042
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2043
2043
|
}
|
|
2044
2044
|
};
|
|
2045
2045
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
@@ -2078,7 +2078,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2078
2078
|
$fault: "client",
|
|
2079
2079
|
$metadata: deserializeMetadata(output),
|
|
2080
2080
|
});
|
|
2081
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2081
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2082
2082
|
}
|
|
2083
2083
|
};
|
|
2084
2084
|
const deserializeAws_restJson1UpdateResourceShareCommand = async (output, context) => {
|
|
@@ -2090,9 +2090,9 @@ const deserializeAws_restJson1UpdateResourceShareCommand = async (output, contex
|
|
|
2090
2090
|
clientToken: undefined,
|
|
2091
2091
|
resourceShare: undefined,
|
|
2092
2092
|
};
|
|
2093
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2093
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2094
2094
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
2095
|
-
contents.clientToken = smithy_client_1.expectString(data.clientToken);
|
|
2095
|
+
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
2096
2096
|
}
|
|
2097
2097
|
if (data.resourceShare !== undefined && data.resourceShare !== null) {
|
|
2098
2098
|
contents.resourceShare = deserializeAws_restJson1ResourceShare(data.resourceShare, context);
|
|
@@ -2143,272 +2143,272 @@ const deserializeAws_restJson1UpdateResourceShareCommandError = async (output, c
|
|
|
2143
2143
|
$fault: "client",
|
|
2144
2144
|
$metadata: deserializeMetadata(output),
|
|
2145
2145
|
});
|
|
2146
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2146
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2147
2147
|
}
|
|
2148
2148
|
};
|
|
2149
2149
|
const deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse = async (parsedOutput, context) => {
|
|
2150
2150
|
const contents = {};
|
|
2151
2151
|
const data = parsedOutput.body;
|
|
2152
2152
|
if (data.message !== undefined && data.message !== null) {
|
|
2153
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2153
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2154
2154
|
}
|
|
2155
2155
|
const exception = new models_0_1.IdempotentParameterMismatchException({
|
|
2156
2156
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2157
2157
|
...contents,
|
|
2158
2158
|
});
|
|
2159
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2159
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2160
2160
|
};
|
|
2161
2161
|
const deserializeAws_restJson1InvalidClientTokenExceptionResponse = async (parsedOutput, context) => {
|
|
2162
2162
|
const contents = {};
|
|
2163
2163
|
const data = parsedOutput.body;
|
|
2164
2164
|
if (data.message !== undefined && data.message !== null) {
|
|
2165
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2165
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2166
2166
|
}
|
|
2167
2167
|
const exception = new models_0_1.InvalidClientTokenException({
|
|
2168
2168
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2169
2169
|
...contents,
|
|
2170
2170
|
});
|
|
2171
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2171
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2172
2172
|
};
|
|
2173
2173
|
const deserializeAws_restJson1InvalidMaxResultsExceptionResponse = async (parsedOutput, context) => {
|
|
2174
2174
|
const contents = {};
|
|
2175
2175
|
const data = parsedOutput.body;
|
|
2176
2176
|
if (data.message !== undefined && data.message !== null) {
|
|
2177
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2177
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2178
2178
|
}
|
|
2179
2179
|
const exception = new models_0_1.InvalidMaxResultsException({
|
|
2180
2180
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2181
2181
|
...contents,
|
|
2182
2182
|
});
|
|
2183
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2183
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2184
2184
|
};
|
|
2185
2185
|
const deserializeAws_restJson1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
2186
2186
|
const contents = {};
|
|
2187
2187
|
const data = parsedOutput.body;
|
|
2188
2188
|
if (data.message !== undefined && data.message !== null) {
|
|
2189
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2189
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2190
2190
|
}
|
|
2191
2191
|
const exception = new models_0_1.InvalidNextTokenException({
|
|
2192
2192
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2193
2193
|
...contents,
|
|
2194
2194
|
});
|
|
2195
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2195
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2196
2196
|
};
|
|
2197
2197
|
const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
2198
2198
|
const contents = {};
|
|
2199
2199
|
const data = parsedOutput.body;
|
|
2200
2200
|
if (data.message !== undefined && data.message !== null) {
|
|
2201
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2201
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2202
2202
|
}
|
|
2203
2203
|
const exception = new models_0_1.InvalidParameterException({
|
|
2204
2204
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2205
2205
|
...contents,
|
|
2206
2206
|
});
|
|
2207
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2207
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2208
2208
|
};
|
|
2209
2209
|
const deserializeAws_restJson1InvalidResourceTypeExceptionResponse = async (parsedOutput, context) => {
|
|
2210
2210
|
const contents = {};
|
|
2211
2211
|
const data = parsedOutput.body;
|
|
2212
2212
|
if (data.message !== undefined && data.message !== null) {
|
|
2213
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2213
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2214
2214
|
}
|
|
2215
2215
|
const exception = new models_0_1.InvalidResourceTypeException({
|
|
2216
2216
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2217
2217
|
...contents,
|
|
2218
2218
|
});
|
|
2219
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2219
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2220
2220
|
};
|
|
2221
2221
|
const deserializeAws_restJson1InvalidStateTransitionExceptionResponse = async (parsedOutput, context) => {
|
|
2222
2222
|
const contents = {};
|
|
2223
2223
|
const data = parsedOutput.body;
|
|
2224
2224
|
if (data.message !== undefined && data.message !== null) {
|
|
2225
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2225
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2226
2226
|
}
|
|
2227
2227
|
const exception = new models_0_1.InvalidStateTransitionException({
|
|
2228
2228
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2229
2229
|
...contents,
|
|
2230
2230
|
});
|
|
2231
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2231
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2232
2232
|
};
|
|
2233
2233
|
const deserializeAws_restJson1MalformedArnExceptionResponse = async (parsedOutput, context) => {
|
|
2234
2234
|
const contents = {};
|
|
2235
2235
|
const data = parsedOutput.body;
|
|
2236
2236
|
if (data.message !== undefined && data.message !== null) {
|
|
2237
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2237
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2238
2238
|
}
|
|
2239
2239
|
const exception = new models_0_1.MalformedArnException({
|
|
2240
2240
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2241
2241
|
...contents,
|
|
2242
2242
|
});
|
|
2243
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2243
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2244
2244
|
};
|
|
2245
2245
|
const deserializeAws_restJson1MissingRequiredParameterExceptionResponse = async (parsedOutput, context) => {
|
|
2246
2246
|
const contents = {};
|
|
2247
2247
|
const data = parsedOutput.body;
|
|
2248
2248
|
if (data.message !== undefined && data.message !== null) {
|
|
2249
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2249
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2250
2250
|
}
|
|
2251
2251
|
const exception = new models_0_1.MissingRequiredParameterException({
|
|
2252
2252
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2253
2253
|
...contents,
|
|
2254
2254
|
});
|
|
2255
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2255
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2256
2256
|
};
|
|
2257
2257
|
const deserializeAws_restJson1OperationNotPermittedExceptionResponse = async (parsedOutput, context) => {
|
|
2258
2258
|
const contents = {};
|
|
2259
2259
|
const data = parsedOutput.body;
|
|
2260
2260
|
if (data.message !== undefined && data.message !== null) {
|
|
2261
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2261
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2262
2262
|
}
|
|
2263
2263
|
const exception = new models_0_1.OperationNotPermittedException({
|
|
2264
2264
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2265
2265
|
...contents,
|
|
2266
2266
|
});
|
|
2267
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2267
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2268
2268
|
};
|
|
2269
2269
|
const deserializeAws_restJson1ResourceArnNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2270
2270
|
const contents = {};
|
|
2271
2271
|
const data = parsedOutput.body;
|
|
2272
2272
|
if (data.message !== undefined && data.message !== null) {
|
|
2273
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2273
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2274
2274
|
}
|
|
2275
2275
|
const exception = new models_0_1.ResourceArnNotFoundException({
|
|
2276
2276
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2277
2277
|
...contents,
|
|
2278
2278
|
});
|
|
2279
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2279
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2280
2280
|
};
|
|
2281
2281
|
const deserializeAws_restJson1ResourceShareInvitationAlreadyAcceptedExceptionResponse = async (parsedOutput, context) => {
|
|
2282
2282
|
const contents = {};
|
|
2283
2283
|
const data = parsedOutput.body;
|
|
2284
2284
|
if (data.message !== undefined && data.message !== null) {
|
|
2285
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2285
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2286
2286
|
}
|
|
2287
2287
|
const exception = new models_0_1.ResourceShareInvitationAlreadyAcceptedException({
|
|
2288
2288
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2289
2289
|
...contents,
|
|
2290
2290
|
});
|
|
2291
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2291
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2292
2292
|
};
|
|
2293
2293
|
const deserializeAws_restJson1ResourceShareInvitationAlreadyRejectedExceptionResponse = async (parsedOutput, context) => {
|
|
2294
2294
|
const contents = {};
|
|
2295
2295
|
const data = parsedOutput.body;
|
|
2296
2296
|
if (data.message !== undefined && data.message !== null) {
|
|
2297
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2297
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2298
2298
|
}
|
|
2299
2299
|
const exception = new models_0_1.ResourceShareInvitationAlreadyRejectedException({
|
|
2300
2300
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2301
2301
|
...contents,
|
|
2302
2302
|
});
|
|
2303
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2303
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2304
2304
|
};
|
|
2305
2305
|
const deserializeAws_restJson1ResourceShareInvitationArnNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2306
2306
|
const contents = {};
|
|
2307
2307
|
const data = parsedOutput.body;
|
|
2308
2308
|
if (data.message !== undefined && data.message !== null) {
|
|
2309
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2309
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2310
2310
|
}
|
|
2311
2311
|
const exception = new models_0_1.ResourceShareInvitationArnNotFoundException({
|
|
2312
2312
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2313
2313
|
...contents,
|
|
2314
2314
|
});
|
|
2315
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2315
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2316
2316
|
};
|
|
2317
2317
|
const deserializeAws_restJson1ResourceShareInvitationExpiredExceptionResponse = async (parsedOutput, context) => {
|
|
2318
2318
|
const contents = {};
|
|
2319
2319
|
const data = parsedOutput.body;
|
|
2320
2320
|
if (data.message !== undefined && data.message !== null) {
|
|
2321
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2321
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2322
2322
|
}
|
|
2323
2323
|
const exception = new models_0_1.ResourceShareInvitationExpiredException({
|
|
2324
2324
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2325
2325
|
...contents,
|
|
2326
2326
|
});
|
|
2327
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2327
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2328
2328
|
};
|
|
2329
2329
|
const deserializeAws_restJson1ResourceShareLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2330
2330
|
const contents = {};
|
|
2331
2331
|
const data = parsedOutput.body;
|
|
2332
2332
|
if (data.message !== undefined && data.message !== null) {
|
|
2333
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2333
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2334
2334
|
}
|
|
2335
2335
|
const exception = new models_0_1.ResourceShareLimitExceededException({
|
|
2336
2336
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2337
2337
|
...contents,
|
|
2338
2338
|
});
|
|
2339
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2339
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2340
2340
|
};
|
|
2341
2341
|
const deserializeAws_restJson1ServerInternalExceptionResponse = async (parsedOutput, context) => {
|
|
2342
2342
|
const contents = {};
|
|
2343
2343
|
const data = parsedOutput.body;
|
|
2344
2344
|
if (data.message !== undefined && data.message !== null) {
|
|
2345
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2345
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2346
2346
|
}
|
|
2347
2347
|
const exception = new models_0_1.ServerInternalException({
|
|
2348
2348
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2349
2349
|
...contents,
|
|
2350
2350
|
});
|
|
2351
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2351
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2352
2352
|
};
|
|
2353
2353
|
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
2354
2354
|
const contents = {};
|
|
2355
2355
|
const data = parsedOutput.body;
|
|
2356
2356
|
if (data.message !== undefined && data.message !== null) {
|
|
2357
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2357
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2358
2358
|
}
|
|
2359
2359
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
2360
2360
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2361
2361
|
...contents,
|
|
2362
2362
|
});
|
|
2363
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2363
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2364
2364
|
};
|
|
2365
2365
|
const deserializeAws_restJson1TagLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2366
2366
|
const contents = {};
|
|
2367
2367
|
const data = parsedOutput.body;
|
|
2368
2368
|
if (data.message !== undefined && data.message !== null) {
|
|
2369
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2369
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2370
2370
|
}
|
|
2371
2371
|
const exception = new models_0_1.TagLimitExceededException({
|
|
2372
2372
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2373
2373
|
...contents,
|
|
2374
2374
|
});
|
|
2375
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2375
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2376
2376
|
};
|
|
2377
2377
|
const deserializeAws_restJson1TagPolicyViolationExceptionResponse = async (parsedOutput, context) => {
|
|
2378
2378
|
const contents = {};
|
|
2379
2379
|
const data = parsedOutput.body;
|
|
2380
2380
|
if (data.message !== undefined && data.message !== null) {
|
|
2381
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2381
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2382
2382
|
}
|
|
2383
2383
|
const exception = new models_0_1.TagPolicyViolationException({
|
|
2384
2384
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2385
2385
|
...contents,
|
|
2386
2386
|
});
|
|
2387
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2387
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2388
2388
|
};
|
|
2389
2389
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2390
2390
|
const contents = {};
|
|
2391
2391
|
const data = parsedOutput.body;
|
|
2392
2392
|
if (data.message !== undefined && data.message !== null) {
|
|
2393
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2393
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2394
2394
|
}
|
|
2395
2395
|
const exception = new models_0_1.ThrottlingException({
|
|
2396
2396
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2397
2397
|
...contents,
|
|
2398
2398
|
});
|
|
2399
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2399
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2400
2400
|
};
|
|
2401
2401
|
const deserializeAws_restJson1UnknownResourceExceptionResponse = async (parsedOutput, context) => {
|
|
2402
2402
|
const contents = {};
|
|
2403
2403
|
const data = parsedOutput.body;
|
|
2404
2404
|
if (data.message !== undefined && data.message !== null) {
|
|
2405
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2405
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2406
2406
|
}
|
|
2407
2407
|
const exception = new models_0_1.UnknownResourceException({
|
|
2408
2408
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2409
2409
|
...contents,
|
|
2410
2410
|
});
|
|
2411
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2411
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2412
2412
|
};
|
|
2413
2413
|
const serializeAws_restJson1PermissionArnList = (input, context) => {
|
|
2414
2414
|
return input
|
|
@@ -2520,21 +2520,21 @@ const deserializeAws_restJson1PolicyList = (output, context) => {
|
|
|
2520
2520
|
if (entry === null) {
|
|
2521
2521
|
return null;
|
|
2522
2522
|
}
|
|
2523
|
-
return smithy_client_1.expectString(entry);
|
|
2523
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2524
2524
|
});
|
|
2525
2525
|
return retVal;
|
|
2526
2526
|
};
|
|
2527
2527
|
const deserializeAws_restJson1Principal = (output, context) => {
|
|
2528
2528
|
return {
|
|
2529
2529
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
2530
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
|
|
2530
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
2531
2531
|
: undefined,
|
|
2532
|
-
external: smithy_client_1.expectBoolean(output.external),
|
|
2533
|
-
id: smithy_client_1.expectString(output.id),
|
|
2532
|
+
external: (0, smithy_client_1.expectBoolean)(output.external),
|
|
2533
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2534
2534
|
lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
|
|
2535
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedTime)))
|
|
2535
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
|
|
2536
2536
|
: undefined,
|
|
2537
|
-
resourceShareArn: smithy_client_1.expectString(output.resourceShareArn),
|
|
2537
|
+
resourceShareArn: (0, smithy_client_1.expectString)(output.resourceShareArn),
|
|
2538
2538
|
};
|
|
2539
2539
|
};
|
|
2540
2540
|
const deserializeAws_restJson1PrincipalList = (output, context) => {
|
|
@@ -2550,19 +2550,19 @@ const deserializeAws_restJson1PrincipalList = (output, context) => {
|
|
|
2550
2550
|
};
|
|
2551
2551
|
const deserializeAws_restJson1Resource = (output, context) => {
|
|
2552
2552
|
return {
|
|
2553
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
2553
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2554
2554
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
2555
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
|
|
2555
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
2556
2556
|
: undefined,
|
|
2557
2557
|
lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
|
|
2558
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedTime)))
|
|
2558
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
|
|
2559
2559
|
: undefined,
|
|
2560
|
-
resourceGroupArn: smithy_client_1.expectString(output.resourceGroupArn),
|
|
2561
|
-
resourceRegionScope: smithy_client_1.expectString(output.resourceRegionScope),
|
|
2562
|
-
resourceShareArn: smithy_client_1.expectString(output.resourceShareArn),
|
|
2563
|
-
status: smithy_client_1.expectString(output.status),
|
|
2564
|
-
statusMessage: smithy_client_1.expectString(output.statusMessage),
|
|
2565
|
-
type: smithy_client_1.expectString(output.type),
|
|
2560
|
+
resourceGroupArn: (0, smithy_client_1.expectString)(output.resourceGroupArn),
|
|
2561
|
+
resourceRegionScope: (0, smithy_client_1.expectString)(output.resourceRegionScope),
|
|
2562
|
+
resourceShareArn: (0, smithy_client_1.expectString)(output.resourceShareArn),
|
|
2563
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2564
|
+
statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
|
|
2565
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
2566
2566
|
};
|
|
2567
2567
|
};
|
|
2568
2568
|
const deserializeAws_restJson1ResourceList = (output, context) => {
|
|
@@ -2578,19 +2578,19 @@ const deserializeAws_restJson1ResourceList = (output, context) => {
|
|
|
2578
2578
|
};
|
|
2579
2579
|
const deserializeAws_restJson1ResourceShare = (output, context) => {
|
|
2580
2580
|
return {
|
|
2581
|
-
allowExternalPrincipals: smithy_client_1.expectBoolean(output.allowExternalPrincipals),
|
|
2581
|
+
allowExternalPrincipals: (0, smithy_client_1.expectBoolean)(output.allowExternalPrincipals),
|
|
2582
2582
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
2583
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
|
|
2583
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
2584
2584
|
: undefined,
|
|
2585
|
-
featureSet: smithy_client_1.expectString(output.featureSet),
|
|
2585
|
+
featureSet: (0, smithy_client_1.expectString)(output.featureSet),
|
|
2586
2586
|
lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
|
|
2587
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedTime)))
|
|
2587
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
|
|
2588
2588
|
: undefined,
|
|
2589
|
-
name: smithy_client_1.expectString(output.name),
|
|
2590
|
-
owningAccountId: smithy_client_1.expectString(output.owningAccountId),
|
|
2591
|
-
resourceShareArn: smithy_client_1.expectString(output.resourceShareArn),
|
|
2592
|
-
status: smithy_client_1.expectString(output.status),
|
|
2593
|
-
statusMessage: smithy_client_1.expectString(output.statusMessage),
|
|
2589
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2590
|
+
owningAccountId: (0, smithy_client_1.expectString)(output.owningAccountId),
|
|
2591
|
+
resourceShareArn: (0, smithy_client_1.expectString)(output.resourceShareArn),
|
|
2592
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2593
|
+
statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
|
|
2594
2594
|
tags: output.tags !== undefined && output.tags !== null
|
|
2595
2595
|
? deserializeAws_restJson1TagList(output.tags, context)
|
|
2596
2596
|
: undefined,
|
|
@@ -2598,19 +2598,19 @@ const deserializeAws_restJson1ResourceShare = (output, context) => {
|
|
|
2598
2598
|
};
|
|
2599
2599
|
const deserializeAws_restJson1ResourceShareAssociation = (output, context) => {
|
|
2600
2600
|
return {
|
|
2601
|
-
associatedEntity: smithy_client_1.expectString(output.associatedEntity),
|
|
2602
|
-
associationType: smithy_client_1.expectString(output.associationType),
|
|
2601
|
+
associatedEntity: (0, smithy_client_1.expectString)(output.associatedEntity),
|
|
2602
|
+
associationType: (0, smithy_client_1.expectString)(output.associationType),
|
|
2603
2603
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
2604
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
|
|
2604
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
2605
2605
|
: undefined,
|
|
2606
|
-
external: smithy_client_1.expectBoolean(output.external),
|
|
2606
|
+
external: (0, smithy_client_1.expectBoolean)(output.external),
|
|
2607
2607
|
lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
|
|
2608
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedTime)))
|
|
2608
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
|
|
2609
2609
|
: undefined,
|
|
2610
|
-
resourceShareArn: smithy_client_1.expectString(output.resourceShareArn),
|
|
2611
|
-
resourceShareName: smithy_client_1.expectString(output.resourceShareName),
|
|
2612
|
-
status: smithy_client_1.expectString(output.status),
|
|
2613
|
-
statusMessage: smithy_client_1.expectString(output.statusMessage),
|
|
2610
|
+
resourceShareArn: (0, smithy_client_1.expectString)(output.resourceShareArn),
|
|
2611
|
+
resourceShareName: (0, smithy_client_1.expectString)(output.resourceShareName),
|
|
2612
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2613
|
+
statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
|
|
2614
2614
|
};
|
|
2615
2615
|
};
|
|
2616
2616
|
const deserializeAws_restJson1ResourceShareAssociationList = (output, context) => {
|
|
@@ -2627,18 +2627,18 @@ const deserializeAws_restJson1ResourceShareAssociationList = (output, context) =
|
|
|
2627
2627
|
const deserializeAws_restJson1ResourceShareInvitation = (output, context) => {
|
|
2628
2628
|
return {
|
|
2629
2629
|
invitationTimestamp: output.invitationTimestamp !== undefined && output.invitationTimestamp !== null
|
|
2630
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.invitationTimestamp)))
|
|
2630
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.invitationTimestamp)))
|
|
2631
2631
|
: undefined,
|
|
2632
|
-
receiverAccountId: smithy_client_1.expectString(output.receiverAccountId),
|
|
2633
|
-
receiverArn: smithy_client_1.expectString(output.receiverArn),
|
|
2634
|
-
resourceShareArn: smithy_client_1.expectString(output.resourceShareArn),
|
|
2632
|
+
receiverAccountId: (0, smithy_client_1.expectString)(output.receiverAccountId),
|
|
2633
|
+
receiverArn: (0, smithy_client_1.expectString)(output.receiverArn),
|
|
2634
|
+
resourceShareArn: (0, smithy_client_1.expectString)(output.resourceShareArn),
|
|
2635
2635
|
resourceShareAssociations: output.resourceShareAssociations !== undefined && output.resourceShareAssociations !== null
|
|
2636
2636
|
? deserializeAws_restJson1ResourceShareAssociationList(output.resourceShareAssociations, context)
|
|
2637
2637
|
: undefined,
|
|
2638
|
-
resourceShareInvitationArn: smithy_client_1.expectString(output.resourceShareInvitationArn),
|
|
2639
|
-
resourceShareName: smithy_client_1.expectString(output.resourceShareName),
|
|
2640
|
-
senderAccountId: smithy_client_1.expectString(output.senderAccountId),
|
|
2641
|
-
status: smithy_client_1.expectString(output.status),
|
|
2638
|
+
resourceShareInvitationArn: (0, smithy_client_1.expectString)(output.resourceShareInvitationArn),
|
|
2639
|
+
resourceShareName: (0, smithy_client_1.expectString)(output.resourceShareName),
|
|
2640
|
+
senderAccountId: (0, smithy_client_1.expectString)(output.senderAccountId),
|
|
2641
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2642
2642
|
};
|
|
2643
2643
|
};
|
|
2644
2644
|
const deserializeAws_restJson1ResourceShareInvitationList = (output, context) => {
|
|
@@ -2665,19 +2665,19 @@ const deserializeAws_restJson1ResourceShareList = (output, context) => {
|
|
|
2665
2665
|
};
|
|
2666
2666
|
const deserializeAws_restJson1ResourceSharePermissionDetail = (output, context) => {
|
|
2667
2667
|
return {
|
|
2668
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
2668
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2669
2669
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
2670
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
|
|
2670
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
2671
2671
|
: undefined,
|
|
2672
|
-
defaultVersion: smithy_client_1.expectBoolean(output.defaultVersion),
|
|
2673
|
-
isResourceTypeDefault: smithy_client_1.expectBoolean(output.isResourceTypeDefault),
|
|
2672
|
+
defaultVersion: (0, smithy_client_1.expectBoolean)(output.defaultVersion),
|
|
2673
|
+
isResourceTypeDefault: (0, smithy_client_1.expectBoolean)(output.isResourceTypeDefault),
|
|
2674
2674
|
lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
|
|
2675
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedTime)))
|
|
2675
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
|
|
2676
2676
|
: undefined,
|
|
2677
|
-
name: smithy_client_1.expectString(output.name),
|
|
2678
|
-
permission: smithy_client_1.expectString(output.permission),
|
|
2679
|
-
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
2680
|
-
version: smithy_client_1.expectString(output.version),
|
|
2677
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2678
|
+
permission: (0, smithy_client_1.expectString)(output.permission),
|
|
2679
|
+
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2680
|
+
version: (0, smithy_client_1.expectString)(output.version),
|
|
2681
2681
|
};
|
|
2682
2682
|
};
|
|
2683
2683
|
const deserializeAws_restJson1ResourceSharePermissionList = (output, context) => {
|
|
@@ -2693,26 +2693,26 @@ const deserializeAws_restJson1ResourceSharePermissionList = (output, context) =>
|
|
|
2693
2693
|
};
|
|
2694
2694
|
const deserializeAws_restJson1ResourceSharePermissionSummary = (output, context) => {
|
|
2695
2695
|
return {
|
|
2696
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
2696
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2697
2697
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
2698
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
|
|
2698
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
2699
2699
|
: undefined,
|
|
2700
|
-
defaultVersion: smithy_client_1.expectBoolean(output.defaultVersion),
|
|
2701
|
-
isResourceTypeDefault: smithy_client_1.expectBoolean(output.isResourceTypeDefault),
|
|
2700
|
+
defaultVersion: (0, smithy_client_1.expectBoolean)(output.defaultVersion),
|
|
2701
|
+
isResourceTypeDefault: (0, smithy_client_1.expectBoolean)(output.isResourceTypeDefault),
|
|
2702
2702
|
lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
|
|
2703
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedTime)))
|
|
2703
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
|
|
2704
2704
|
: undefined,
|
|
2705
|
-
name: smithy_client_1.expectString(output.name),
|
|
2706
|
-
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
2707
|
-
status: smithy_client_1.expectString(output.status),
|
|
2708
|
-
version: smithy_client_1.expectString(output.version),
|
|
2705
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2706
|
+
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2707
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2708
|
+
version: (0, smithy_client_1.expectString)(output.version),
|
|
2709
2709
|
};
|
|
2710
2710
|
};
|
|
2711
2711
|
const deserializeAws_restJson1ServiceNameAndResourceType = (output, context) => {
|
|
2712
2712
|
return {
|
|
2713
|
-
resourceRegionScope: smithy_client_1.expectString(output.resourceRegionScope),
|
|
2714
|
-
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
2715
|
-
serviceName: smithy_client_1.expectString(output.serviceName),
|
|
2713
|
+
resourceRegionScope: (0, smithy_client_1.expectString)(output.resourceRegionScope),
|
|
2714
|
+
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2715
|
+
serviceName: (0, smithy_client_1.expectString)(output.serviceName),
|
|
2716
2716
|
};
|
|
2717
2717
|
};
|
|
2718
2718
|
const deserializeAws_restJson1ServiceNameAndResourceTypeList = (output, context) => {
|
|
@@ -2728,8 +2728,8 @@ const deserializeAws_restJson1ServiceNameAndResourceTypeList = (output, context)
|
|
|
2728
2728
|
};
|
|
2729
2729
|
const deserializeAws_restJson1Tag = (output, context) => {
|
|
2730
2730
|
return {
|
|
2731
|
-
key: smithy_client_1.expectString(output.key),
|
|
2732
|
-
value: smithy_client_1.expectString(output.value),
|
|
2731
|
+
key: (0, smithy_client_1.expectString)(output.key),
|
|
2732
|
+
value: (0, smithy_client_1.expectString)(output.value),
|
|
2733
2733
|
};
|
|
2734
2734
|
};
|
|
2735
2735
|
const deserializeAws_restJson1TagList = (output, context) => {
|