@aws-sdk/client-lakeformation 3.45.0 → 3.47.2
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 +45 -0
- package/dist-cjs/LakeFormation.js +30 -0
- package/dist-cjs/commands/GetTemporaryGluePartitionCredentialsCommand.js +36 -0
- package/dist-cjs/commands/GetTemporaryGlueTableCredentialsCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoints.js +0 -20
- package/dist-cjs/models/models_0.js +42 -104
- package/dist-cjs/protocols/Aws_restJson1.js +348 -2
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/LakeFormation.js +30 -0
- package/dist-es/commands/GetTemporaryGluePartitionCredentialsCommand.js +39 -0
- package/dist-es/commands/GetTemporaryGlueTableCredentialsCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoints.js +0 -20
- package/dist-es/models/models_0.js +29 -68
- package/dist-es/protocols/Aws_restJson1.js +369 -2
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/LakeFormation.d.ts +14 -0
- package/dist-types/LakeFormationClient.d.ts +9 -3
- package/dist-types/commands/GetTemporaryGluePartitionCredentialsCommand.d.ts +35 -0
- package/dist-types/commands/GetTemporaryGlueTableCredentialsCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +172 -99
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/LakeFormation.d.ts +10 -0
- package/dist-types/ts3.4/LakeFormationClient.d.ts +7 -3
- package/dist-types/ts3.4/commands/GetTemporaryGluePartitionCredentialsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetTemporaryGlueTableCredentialsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +95 -66
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -46
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpdateTableStorageOptimizerCommand = exports.deserializeAws_restJson1UpdateTableObjectsCommand = exports.deserializeAws_restJson1UpdateResourceCommand = exports.deserializeAws_restJson1UpdateLFTagCommand = exports.deserializeAws_restJson1StartTransactionCommand = exports.deserializeAws_restJson1StartQueryPlanningCommand = exports.deserializeAws_restJson1SearchTablesByLFTagsCommand = exports.deserializeAws_restJson1SearchDatabasesByLFTagsCommand = exports.deserializeAws_restJson1RevokePermissionsCommand = exports.deserializeAws_restJson1RemoveLFTagsFromResourceCommand = exports.deserializeAws_restJson1RegisterResourceCommand = exports.deserializeAws_restJson1PutDataLakeSettingsCommand = exports.deserializeAws_restJson1ListTransactionsCommand = exports.deserializeAws_restJson1ListTableStorageOptimizersCommand = exports.deserializeAws_restJson1ListResourcesCommand = exports.deserializeAws_restJson1ListPermissionsCommand = exports.deserializeAws_restJson1ListLFTagsCommand = exports.deserializeAws_restJson1ListDataCellsFilterCommand = exports.deserializeAws_restJson1GrantPermissionsCommand = exports.deserializeAws_restJson1GetWorkUnitsCommand = exports.deserializeAws_restJson1GetWorkUnitResultsCommand = exports.deserializeAws_restJson1GetTableObjectsCommand = exports.deserializeAws_restJson1GetResourceLFTagsCommand = exports.deserializeAws_restJson1GetQueryStatisticsCommand = exports.deserializeAws_restJson1GetQueryStateCommand = exports.deserializeAws_restJson1GetLFTagCommand = exports.deserializeAws_restJson1GetEffectivePermissionsForPathCommand = exports.deserializeAws_restJson1GetDataLakeSettingsCommand = exports.deserializeAws_restJson1ExtendTransactionCommand = exports.deserializeAws_restJson1DescribeTransactionCommand = exports.deserializeAws_restJson1DescribeResourceCommand = exports.deserializeAws_restJson1DeregisterResourceCommand = exports.deserializeAws_restJson1DeleteObjectsOnCancelCommand = exports.deserializeAws_restJson1DeleteLFTagCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1CreateDataCellsFilterCommand = exports.deserializeAws_restJson1CommitTransactionCommand = exports.deserializeAws_restJson1CancelTransactionCommand = exports.deserializeAws_restJson1BatchRevokePermissionsCommand = exports.deserializeAws_restJson1BatchGrantPermissionsCommand = exports.deserializeAws_restJson1AddLFTagsToResourceCommand = exports.serializeAws_restJson1UpdateTableStorageOptimizerCommand = exports.serializeAws_restJson1UpdateTableObjectsCommand = exports.serializeAws_restJson1UpdateResourceCommand = exports.serializeAws_restJson1UpdateLFTagCommand = exports.serializeAws_restJson1StartTransactionCommand = exports.serializeAws_restJson1StartQueryPlanningCommand = exports.serializeAws_restJson1SearchTablesByLFTagsCommand = exports.serializeAws_restJson1SearchDatabasesByLFTagsCommand = exports.serializeAws_restJson1RevokePermissionsCommand = exports.serializeAws_restJson1RemoveLFTagsFromResourceCommand = exports.serializeAws_restJson1RegisterResourceCommand = exports.serializeAws_restJson1PutDataLakeSettingsCommand = exports.serializeAws_restJson1ListTransactionsCommand = exports.serializeAws_restJson1ListTableStorageOptimizersCommand = exports.serializeAws_restJson1ListResourcesCommand = exports.serializeAws_restJson1ListPermissionsCommand = exports.serializeAws_restJson1ListLFTagsCommand = exports.serializeAws_restJson1ListDataCellsFilterCommand = exports.serializeAws_restJson1GrantPermissionsCommand = exports.serializeAws_restJson1GetWorkUnitsCommand = exports.serializeAws_restJson1GetWorkUnitResultsCommand = exports.serializeAws_restJson1GetTemporaryGlueTableCredentialsCommand = exports.serializeAws_restJson1GetTemporaryGluePartitionCredentialsCommand = exports.serializeAws_restJson1GetTableObjectsCommand = exports.serializeAws_restJson1GetResourceLFTagsCommand = exports.serializeAws_restJson1GetQueryStatisticsCommand = exports.serializeAws_restJson1GetQueryStateCommand = exports.serializeAws_restJson1GetLFTagCommand = exports.serializeAws_restJson1GetEffectivePermissionsForPathCommand = exports.serializeAws_restJson1GetDataLakeSettingsCommand = exports.serializeAws_restJson1ExtendTransactionCommand = exports.serializeAws_restJson1DescribeTransactionCommand = exports.serializeAws_restJson1DescribeResourceCommand = exports.serializeAws_restJson1DeregisterResourceCommand = exports.serializeAws_restJson1DeleteObjectsOnCancelCommand = exports.serializeAws_restJson1DeleteLFTagCommand = exports.serializeAws_restJson1DeleteDataCellsFilterCommand = exports.serializeAws_restJson1CreateLFTagCommand = exports.serializeAws_restJson1CreateDataCellsFilterCommand = exports.serializeAws_restJson1CommitTransactionCommand = exports.serializeAws_restJson1CancelTransactionCommand = exports.serializeAws_restJson1BatchRevokePermissionsCommand = exports.serializeAws_restJson1BatchGrantPermissionsCommand = exports.serializeAws_restJson1AddLFTagsToResourceCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateTableStorageOptimizerCommand = exports.deserializeAws_restJson1UpdateTableObjectsCommand = exports.deserializeAws_restJson1UpdateResourceCommand = exports.deserializeAws_restJson1UpdateLFTagCommand = exports.deserializeAws_restJson1StartTransactionCommand = exports.deserializeAws_restJson1StartQueryPlanningCommand = exports.deserializeAws_restJson1SearchTablesByLFTagsCommand = exports.deserializeAws_restJson1SearchDatabasesByLFTagsCommand = exports.deserializeAws_restJson1RevokePermissionsCommand = exports.deserializeAws_restJson1RemoveLFTagsFromResourceCommand = exports.deserializeAws_restJson1RegisterResourceCommand = exports.deserializeAws_restJson1PutDataLakeSettingsCommand = exports.deserializeAws_restJson1ListTransactionsCommand = exports.deserializeAws_restJson1ListTableStorageOptimizersCommand = exports.deserializeAws_restJson1ListResourcesCommand = exports.deserializeAws_restJson1ListPermissionsCommand = exports.deserializeAws_restJson1ListLFTagsCommand = exports.deserializeAws_restJson1ListDataCellsFilterCommand = exports.deserializeAws_restJson1GrantPermissionsCommand = exports.deserializeAws_restJson1GetWorkUnitsCommand = exports.deserializeAws_restJson1GetWorkUnitResultsCommand = exports.deserializeAws_restJson1GetTemporaryGlueTableCredentialsCommand = exports.deserializeAws_restJson1GetTemporaryGluePartitionCredentialsCommand = exports.deserializeAws_restJson1GetTableObjectsCommand = exports.deserializeAws_restJson1GetResourceLFTagsCommand = exports.deserializeAws_restJson1GetQueryStatisticsCommand = exports.deserializeAws_restJson1GetQueryStateCommand = exports.deserializeAws_restJson1GetLFTagCommand = exports.deserializeAws_restJson1GetEffectivePermissionsForPathCommand = exports.deserializeAws_restJson1GetDataLakeSettingsCommand = exports.deserializeAws_restJson1ExtendTransactionCommand = exports.deserializeAws_restJson1DescribeTransactionCommand = exports.deserializeAws_restJson1DescribeResourceCommand = exports.deserializeAws_restJson1DeregisterResourceCommand = exports.deserializeAws_restJson1DeleteObjectsOnCancelCommand = exports.deserializeAws_restJson1DeleteLFTagCommand = exports.deserializeAws_restJson1DeleteDataCellsFilterCommand = exports.deserializeAws_restJson1CreateLFTagCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const serializeAws_restJson1AddLFTagsToResourceCommand = async (input, context) => {
|
|
@@ -502,6 +502,70 @@ const serializeAws_restJson1GetTableObjectsCommand = async (input, context) => {
|
|
|
502
502
|
});
|
|
503
503
|
};
|
|
504
504
|
exports.serializeAws_restJson1GetTableObjectsCommand = serializeAws_restJson1GetTableObjectsCommand;
|
|
505
|
+
const serializeAws_restJson1GetTemporaryGluePartitionCredentialsCommand = async (input, context) => {
|
|
506
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
507
|
+
const headers = {
|
|
508
|
+
"content-type": "application/json",
|
|
509
|
+
};
|
|
510
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetTemporaryGluePartitionCredentials";
|
|
511
|
+
let body;
|
|
512
|
+
body = JSON.stringify({
|
|
513
|
+
...(input.AuditContext !== undefined &&
|
|
514
|
+
input.AuditContext !== null && { AuditContext: serializeAws_restJson1AuditContext(input.AuditContext, context) }),
|
|
515
|
+
...(input.DurationSeconds !== undefined &&
|
|
516
|
+
input.DurationSeconds !== null && { DurationSeconds: input.DurationSeconds }),
|
|
517
|
+
...(input.Partition !== undefined &&
|
|
518
|
+
input.Partition !== null && { Partition: serializeAws_restJson1PartitionValueList(input.Partition, context) }),
|
|
519
|
+
...(input.Permissions !== undefined &&
|
|
520
|
+
input.Permissions !== null && { Permissions: serializeAws_restJson1PermissionList(input.Permissions, context) }),
|
|
521
|
+
...(input.SupportedPermissionTypes !== undefined &&
|
|
522
|
+
input.SupportedPermissionTypes !== null && {
|
|
523
|
+
SupportedPermissionTypes: serializeAws_restJson1PermissionTypeList(input.SupportedPermissionTypes, context),
|
|
524
|
+
}),
|
|
525
|
+
...(input.TableArn !== undefined && input.TableArn !== null && { TableArn: input.TableArn }),
|
|
526
|
+
});
|
|
527
|
+
return new protocol_http_1.HttpRequest({
|
|
528
|
+
protocol,
|
|
529
|
+
hostname,
|
|
530
|
+
port,
|
|
531
|
+
method: "POST",
|
|
532
|
+
headers,
|
|
533
|
+
path: resolvedPath,
|
|
534
|
+
body,
|
|
535
|
+
});
|
|
536
|
+
};
|
|
537
|
+
exports.serializeAws_restJson1GetTemporaryGluePartitionCredentialsCommand = serializeAws_restJson1GetTemporaryGluePartitionCredentialsCommand;
|
|
538
|
+
const serializeAws_restJson1GetTemporaryGlueTableCredentialsCommand = async (input, context) => {
|
|
539
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
540
|
+
const headers = {
|
|
541
|
+
"content-type": "application/json",
|
|
542
|
+
};
|
|
543
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetTemporaryGlueTableCredentials";
|
|
544
|
+
let body;
|
|
545
|
+
body = JSON.stringify({
|
|
546
|
+
...(input.AuditContext !== undefined &&
|
|
547
|
+
input.AuditContext !== null && { AuditContext: serializeAws_restJson1AuditContext(input.AuditContext, context) }),
|
|
548
|
+
...(input.DurationSeconds !== undefined &&
|
|
549
|
+
input.DurationSeconds !== null && { DurationSeconds: input.DurationSeconds }),
|
|
550
|
+
...(input.Permissions !== undefined &&
|
|
551
|
+
input.Permissions !== null && { Permissions: serializeAws_restJson1PermissionList(input.Permissions, context) }),
|
|
552
|
+
...(input.SupportedPermissionTypes !== undefined &&
|
|
553
|
+
input.SupportedPermissionTypes !== null && {
|
|
554
|
+
SupportedPermissionTypes: serializeAws_restJson1PermissionTypeList(input.SupportedPermissionTypes, context),
|
|
555
|
+
}),
|
|
556
|
+
...(input.TableArn !== undefined && input.TableArn !== null && { TableArn: input.TableArn }),
|
|
557
|
+
});
|
|
558
|
+
return new protocol_http_1.HttpRequest({
|
|
559
|
+
protocol,
|
|
560
|
+
hostname,
|
|
561
|
+
port,
|
|
562
|
+
method: "POST",
|
|
563
|
+
headers,
|
|
564
|
+
path: resolvedPath,
|
|
565
|
+
body,
|
|
566
|
+
});
|
|
567
|
+
};
|
|
568
|
+
exports.serializeAws_restJson1GetTemporaryGlueTableCredentialsCommand = serializeAws_restJson1GetTemporaryGlueTableCredentialsCommand;
|
|
505
569
|
const serializeAws_restJson1GetWorkUnitResultsCommand = async (input, context) => {
|
|
506
570
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
507
571
|
const headers = {
|
|
@@ -2765,6 +2829,206 @@ const deserializeAws_restJson1GetTableObjectsCommandError = async (output, conte
|
|
|
2765
2829
|
delete response.Message;
|
|
2766
2830
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2767
2831
|
};
|
|
2832
|
+
const deserializeAws_restJson1GetTemporaryGluePartitionCredentialsCommand = async (output, context) => {
|
|
2833
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2834
|
+
return deserializeAws_restJson1GetTemporaryGluePartitionCredentialsCommandError(output, context);
|
|
2835
|
+
}
|
|
2836
|
+
const contents = {
|
|
2837
|
+
$metadata: deserializeMetadata(output),
|
|
2838
|
+
AccessKeyId: undefined,
|
|
2839
|
+
Expiration: undefined,
|
|
2840
|
+
SecretAccessKey: undefined,
|
|
2841
|
+
SessionToken: undefined,
|
|
2842
|
+
};
|
|
2843
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2844
|
+
if (data.AccessKeyId !== undefined && data.AccessKeyId !== null) {
|
|
2845
|
+
contents.AccessKeyId = smithy_client_1.expectString(data.AccessKeyId);
|
|
2846
|
+
}
|
|
2847
|
+
if (data.Expiration !== undefined && data.Expiration !== null) {
|
|
2848
|
+
contents.Expiration = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.Expiration)));
|
|
2849
|
+
}
|
|
2850
|
+
if (data.SecretAccessKey !== undefined && data.SecretAccessKey !== null) {
|
|
2851
|
+
contents.SecretAccessKey = smithy_client_1.expectString(data.SecretAccessKey);
|
|
2852
|
+
}
|
|
2853
|
+
if (data.SessionToken !== undefined && data.SessionToken !== null) {
|
|
2854
|
+
contents.SessionToken = smithy_client_1.expectString(data.SessionToken);
|
|
2855
|
+
}
|
|
2856
|
+
return Promise.resolve(contents);
|
|
2857
|
+
};
|
|
2858
|
+
exports.deserializeAws_restJson1GetTemporaryGluePartitionCredentialsCommand = deserializeAws_restJson1GetTemporaryGluePartitionCredentialsCommand;
|
|
2859
|
+
const deserializeAws_restJson1GetTemporaryGluePartitionCredentialsCommandError = async (output, context) => {
|
|
2860
|
+
const parsedOutput = {
|
|
2861
|
+
...output,
|
|
2862
|
+
body: await parseBody(output.body, context),
|
|
2863
|
+
};
|
|
2864
|
+
let response;
|
|
2865
|
+
let errorCode = "UnknownError";
|
|
2866
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2867
|
+
switch (errorCode) {
|
|
2868
|
+
case "AccessDeniedException":
|
|
2869
|
+
case "com.amazonaws.lakeformation#AccessDeniedException":
|
|
2870
|
+
response = {
|
|
2871
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2872
|
+
name: errorCode,
|
|
2873
|
+
$metadata: deserializeMetadata(output),
|
|
2874
|
+
};
|
|
2875
|
+
break;
|
|
2876
|
+
case "EntityNotFoundException":
|
|
2877
|
+
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
2878
|
+
response = {
|
|
2879
|
+
...(await deserializeAws_restJson1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
2880
|
+
name: errorCode,
|
|
2881
|
+
$metadata: deserializeMetadata(output),
|
|
2882
|
+
};
|
|
2883
|
+
break;
|
|
2884
|
+
case "InternalServiceException":
|
|
2885
|
+
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
2886
|
+
response = {
|
|
2887
|
+
...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
2888
|
+
name: errorCode,
|
|
2889
|
+
$metadata: deserializeMetadata(output),
|
|
2890
|
+
};
|
|
2891
|
+
break;
|
|
2892
|
+
case "InvalidInputException":
|
|
2893
|
+
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
2894
|
+
response = {
|
|
2895
|
+
...(await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2896
|
+
name: errorCode,
|
|
2897
|
+
$metadata: deserializeMetadata(output),
|
|
2898
|
+
};
|
|
2899
|
+
break;
|
|
2900
|
+
case "OperationTimeoutException":
|
|
2901
|
+
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
2902
|
+
response = {
|
|
2903
|
+
...(await deserializeAws_restJson1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
2904
|
+
name: errorCode,
|
|
2905
|
+
$metadata: deserializeMetadata(output),
|
|
2906
|
+
};
|
|
2907
|
+
break;
|
|
2908
|
+
case "PermissionTypeMismatchException":
|
|
2909
|
+
case "com.amazonaws.lakeformation#PermissionTypeMismatchException":
|
|
2910
|
+
response = {
|
|
2911
|
+
...(await deserializeAws_restJson1PermissionTypeMismatchExceptionResponse(parsedOutput, context)),
|
|
2912
|
+
name: errorCode,
|
|
2913
|
+
$metadata: deserializeMetadata(output),
|
|
2914
|
+
};
|
|
2915
|
+
break;
|
|
2916
|
+
default:
|
|
2917
|
+
const parsedBody = parsedOutput.body;
|
|
2918
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2919
|
+
response = {
|
|
2920
|
+
...parsedBody,
|
|
2921
|
+
name: `${errorCode}`,
|
|
2922
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2923
|
+
$fault: "client",
|
|
2924
|
+
$metadata: deserializeMetadata(output),
|
|
2925
|
+
};
|
|
2926
|
+
}
|
|
2927
|
+
const message = response.message || response.Message || errorCode;
|
|
2928
|
+
response.message = message;
|
|
2929
|
+
delete response.Message;
|
|
2930
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2931
|
+
};
|
|
2932
|
+
const deserializeAws_restJson1GetTemporaryGlueTableCredentialsCommand = async (output, context) => {
|
|
2933
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2934
|
+
return deserializeAws_restJson1GetTemporaryGlueTableCredentialsCommandError(output, context);
|
|
2935
|
+
}
|
|
2936
|
+
const contents = {
|
|
2937
|
+
$metadata: deserializeMetadata(output),
|
|
2938
|
+
AccessKeyId: undefined,
|
|
2939
|
+
Expiration: undefined,
|
|
2940
|
+
SecretAccessKey: undefined,
|
|
2941
|
+
SessionToken: undefined,
|
|
2942
|
+
};
|
|
2943
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2944
|
+
if (data.AccessKeyId !== undefined && data.AccessKeyId !== null) {
|
|
2945
|
+
contents.AccessKeyId = smithy_client_1.expectString(data.AccessKeyId);
|
|
2946
|
+
}
|
|
2947
|
+
if (data.Expiration !== undefined && data.Expiration !== null) {
|
|
2948
|
+
contents.Expiration = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.Expiration)));
|
|
2949
|
+
}
|
|
2950
|
+
if (data.SecretAccessKey !== undefined && data.SecretAccessKey !== null) {
|
|
2951
|
+
contents.SecretAccessKey = smithy_client_1.expectString(data.SecretAccessKey);
|
|
2952
|
+
}
|
|
2953
|
+
if (data.SessionToken !== undefined && data.SessionToken !== null) {
|
|
2954
|
+
contents.SessionToken = smithy_client_1.expectString(data.SessionToken);
|
|
2955
|
+
}
|
|
2956
|
+
return Promise.resolve(contents);
|
|
2957
|
+
};
|
|
2958
|
+
exports.deserializeAws_restJson1GetTemporaryGlueTableCredentialsCommand = deserializeAws_restJson1GetTemporaryGlueTableCredentialsCommand;
|
|
2959
|
+
const deserializeAws_restJson1GetTemporaryGlueTableCredentialsCommandError = async (output, context) => {
|
|
2960
|
+
const parsedOutput = {
|
|
2961
|
+
...output,
|
|
2962
|
+
body: await parseBody(output.body, context),
|
|
2963
|
+
};
|
|
2964
|
+
let response;
|
|
2965
|
+
let errorCode = "UnknownError";
|
|
2966
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2967
|
+
switch (errorCode) {
|
|
2968
|
+
case "AccessDeniedException":
|
|
2969
|
+
case "com.amazonaws.lakeformation#AccessDeniedException":
|
|
2970
|
+
response = {
|
|
2971
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2972
|
+
name: errorCode,
|
|
2973
|
+
$metadata: deserializeMetadata(output),
|
|
2974
|
+
};
|
|
2975
|
+
break;
|
|
2976
|
+
case "EntityNotFoundException":
|
|
2977
|
+
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
2978
|
+
response = {
|
|
2979
|
+
...(await deserializeAws_restJson1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
2980
|
+
name: errorCode,
|
|
2981
|
+
$metadata: deserializeMetadata(output),
|
|
2982
|
+
};
|
|
2983
|
+
break;
|
|
2984
|
+
case "InternalServiceException":
|
|
2985
|
+
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
2986
|
+
response = {
|
|
2987
|
+
...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
2988
|
+
name: errorCode,
|
|
2989
|
+
$metadata: deserializeMetadata(output),
|
|
2990
|
+
};
|
|
2991
|
+
break;
|
|
2992
|
+
case "InvalidInputException":
|
|
2993
|
+
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
2994
|
+
response = {
|
|
2995
|
+
...(await deserializeAws_restJson1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2996
|
+
name: errorCode,
|
|
2997
|
+
$metadata: deserializeMetadata(output),
|
|
2998
|
+
};
|
|
2999
|
+
break;
|
|
3000
|
+
case "OperationTimeoutException":
|
|
3001
|
+
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
3002
|
+
response = {
|
|
3003
|
+
...(await deserializeAws_restJson1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
3004
|
+
name: errorCode,
|
|
3005
|
+
$metadata: deserializeMetadata(output),
|
|
3006
|
+
};
|
|
3007
|
+
break;
|
|
3008
|
+
case "PermissionTypeMismatchException":
|
|
3009
|
+
case "com.amazonaws.lakeformation#PermissionTypeMismatchException":
|
|
3010
|
+
response = {
|
|
3011
|
+
...(await deserializeAws_restJson1PermissionTypeMismatchExceptionResponse(parsedOutput, context)),
|
|
3012
|
+
name: errorCode,
|
|
3013
|
+
$metadata: deserializeMetadata(output),
|
|
3014
|
+
};
|
|
3015
|
+
break;
|
|
3016
|
+
default:
|
|
3017
|
+
const parsedBody = parsedOutput.body;
|
|
3018
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3019
|
+
response = {
|
|
3020
|
+
...parsedBody,
|
|
3021
|
+
name: `${errorCode}`,
|
|
3022
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3023
|
+
$fault: "client",
|
|
3024
|
+
$metadata: deserializeMetadata(output),
|
|
3025
|
+
};
|
|
3026
|
+
}
|
|
3027
|
+
const message = response.message || response.Message || errorCode;
|
|
3028
|
+
response.message = message;
|
|
3029
|
+
delete response.Message;
|
|
3030
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3031
|
+
};
|
|
2768
3032
|
const deserializeAws_restJson1GetWorkUnitResultsCommand = async (output, context) => {
|
|
2769
3033
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2770
3034
|
return deserializeAws_restJson1GetWorkUnitResultsCommandError(output, context);
|
|
@@ -4492,6 +4756,19 @@ const deserializeAws_restJson1OperationTimeoutExceptionResponse = async (parsedO
|
|
|
4492
4756
|
}
|
|
4493
4757
|
return contents;
|
|
4494
4758
|
};
|
|
4759
|
+
const deserializeAws_restJson1PermissionTypeMismatchExceptionResponse = async (parsedOutput, context) => {
|
|
4760
|
+
const contents = {
|
|
4761
|
+
name: "PermissionTypeMismatchException",
|
|
4762
|
+
$fault: "client",
|
|
4763
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4764
|
+
Message: undefined,
|
|
4765
|
+
};
|
|
4766
|
+
const data = parsedOutput.body;
|
|
4767
|
+
if (data.Message !== undefined && data.Message !== null) {
|
|
4768
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
4769
|
+
}
|
|
4770
|
+
return contents;
|
|
4771
|
+
};
|
|
4495
4772
|
const deserializeAws_restJson1ResourceNotReadyExceptionResponse = async (parsedOutput, context) => {
|
|
4496
4773
|
const contents = {
|
|
4497
4774
|
name: "ResourceNotReadyException",
|
|
@@ -4613,6 +4890,22 @@ const serializeAws_restJson1AddObjectInput = (input, context) => {
|
|
|
4613
4890
|
const serializeAws_restJson1AllRowsWildcard = (input, context) => {
|
|
4614
4891
|
return {};
|
|
4615
4892
|
};
|
|
4893
|
+
const serializeAws_restJson1AuditContext = (input, context) => {
|
|
4894
|
+
return {
|
|
4895
|
+
...(input.AdditionalAuditContext !== undefined &&
|
|
4896
|
+
input.AdditionalAuditContext !== null && { AdditionalAuditContext: input.AdditionalAuditContext }),
|
|
4897
|
+
};
|
|
4898
|
+
};
|
|
4899
|
+
const serializeAws_restJson1AuthorizedSessionTagValueList = (input, context) => {
|
|
4900
|
+
return input
|
|
4901
|
+
.filter((e) => e != null)
|
|
4902
|
+
.map((entry) => {
|
|
4903
|
+
if (entry === null) {
|
|
4904
|
+
return null;
|
|
4905
|
+
}
|
|
4906
|
+
return entry;
|
|
4907
|
+
});
|
|
4908
|
+
};
|
|
4616
4909
|
const serializeAws_restJson1BatchPermissionsRequestEntry = (input, context) => {
|
|
4617
4910
|
return {
|
|
4618
4911
|
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
@@ -4709,6 +5002,12 @@ const serializeAws_restJson1DataLakePrincipalList = (input, context) => {
|
|
|
4709
5002
|
};
|
|
4710
5003
|
const serializeAws_restJson1DataLakeSettings = (input, context) => {
|
|
4711
5004
|
return {
|
|
5005
|
+
...(input.AllowExternalDataFiltering !== undefined &&
|
|
5006
|
+
input.AllowExternalDataFiltering !== null && { AllowExternalDataFiltering: input.AllowExternalDataFiltering }),
|
|
5007
|
+
...(input.AuthorizedSessionTagValueList !== undefined &&
|
|
5008
|
+
input.AuthorizedSessionTagValueList !== null && {
|
|
5009
|
+
AuthorizedSessionTagValueList: serializeAws_restJson1AuthorizedSessionTagValueList(input.AuthorizedSessionTagValueList, context),
|
|
5010
|
+
}),
|
|
4712
5011
|
...(input.CreateDatabaseDefaultPermissions !== undefined &&
|
|
4713
5012
|
input.CreateDatabaseDefaultPermissions !== null && {
|
|
4714
5013
|
CreateDatabaseDefaultPermissions: serializeAws_restJson1PrincipalPermissionsList(input.CreateDatabaseDefaultPermissions, context),
|
|
@@ -4721,6 +5020,10 @@ const serializeAws_restJson1DataLakeSettings = (input, context) => {
|
|
|
4721
5020
|
input.DataLakeAdmins !== null && {
|
|
4722
5021
|
DataLakeAdmins: serializeAws_restJson1DataLakePrincipalList(input.DataLakeAdmins, context),
|
|
4723
5022
|
}),
|
|
5023
|
+
...(input.ExternalDataFilteringAllowList !== undefined &&
|
|
5024
|
+
input.ExternalDataFilteringAllowList !== null && {
|
|
5025
|
+
ExternalDataFilteringAllowList: serializeAws_restJson1DataLakePrincipalList(input.ExternalDataFilteringAllowList, context),
|
|
5026
|
+
}),
|
|
4724
5027
|
...(input.TrustedResourceOwners !== undefined &&
|
|
4725
5028
|
input.TrustedResourceOwners !== null && {
|
|
4726
5029
|
TrustedResourceOwners: serializeAws_restJson1TrustedResourceOwners(input.TrustedResourceOwners, context),
|
|
@@ -4815,6 +5118,12 @@ const serializeAws_restJson1LFTagsList = (input, context) => {
|
|
|
4815
5118
|
return serializeAws_restJson1LFTagPair(entry, context);
|
|
4816
5119
|
});
|
|
4817
5120
|
};
|
|
5121
|
+
const serializeAws_restJson1PartitionValueList = (input, context) => {
|
|
5122
|
+
return {
|
|
5123
|
+
...(input.Values !== undefined &&
|
|
5124
|
+
input.Values !== null && { Values: serializeAws_restJson1ValueStringList(input.Values, context) }),
|
|
5125
|
+
};
|
|
5126
|
+
};
|
|
4818
5127
|
const serializeAws_restJson1PartitionValuesList = (input, context) => {
|
|
4819
5128
|
return input
|
|
4820
5129
|
.filter((e) => e != null)
|
|
@@ -4835,6 +5144,16 @@ const serializeAws_restJson1PermissionList = (input, context) => {
|
|
|
4835
5144
|
return entry;
|
|
4836
5145
|
});
|
|
4837
5146
|
};
|
|
5147
|
+
const serializeAws_restJson1PermissionTypeList = (input, context) => {
|
|
5148
|
+
return input
|
|
5149
|
+
.filter((e) => e != null)
|
|
5150
|
+
.map((entry) => {
|
|
5151
|
+
if (entry === null) {
|
|
5152
|
+
return null;
|
|
5153
|
+
}
|
|
5154
|
+
return entry;
|
|
5155
|
+
});
|
|
5156
|
+
};
|
|
4838
5157
|
const serializeAws_restJson1PrincipalPermissions = (input, context) => {
|
|
4839
5158
|
return {
|
|
4840
5159
|
...(input.Permissions !== undefined &&
|
|
@@ -4994,6 +5313,16 @@ const serializeAws_restJson1TrustedResourceOwners = (input, context) => {
|
|
|
4994
5313
|
return entry;
|
|
4995
5314
|
});
|
|
4996
5315
|
};
|
|
5316
|
+
const serializeAws_restJson1ValueStringList = (input, context) => {
|
|
5317
|
+
return input
|
|
5318
|
+
.filter((e) => e != null)
|
|
5319
|
+
.map((entry) => {
|
|
5320
|
+
if (entry === null) {
|
|
5321
|
+
return null;
|
|
5322
|
+
}
|
|
5323
|
+
return entry;
|
|
5324
|
+
});
|
|
5325
|
+
};
|
|
4997
5326
|
const serializeAws_restJson1VirtualObject = (input, context) => {
|
|
4998
5327
|
return {
|
|
4999
5328
|
...(input.ETag !== undefined && input.ETag !== null && { ETag: input.ETag }),
|
|
@@ -5033,6 +5362,16 @@ const serializeAws_restJson1WriteOperationList = (input, context) => {
|
|
|
5033
5362
|
const deserializeAws_restJson1AllRowsWildcard = (output, context) => {
|
|
5034
5363
|
return {};
|
|
5035
5364
|
};
|
|
5365
|
+
const deserializeAws_restJson1AuthorizedSessionTagValueList = (output, context) => {
|
|
5366
|
+
return (output || [])
|
|
5367
|
+
.filter((e) => e != null)
|
|
5368
|
+
.map((entry) => {
|
|
5369
|
+
if (entry === null) {
|
|
5370
|
+
return null;
|
|
5371
|
+
}
|
|
5372
|
+
return smithy_client_1.expectString(entry);
|
|
5373
|
+
});
|
|
5374
|
+
};
|
|
5036
5375
|
const deserializeAws_restJson1BatchPermissionsFailureEntry = (output, context) => {
|
|
5037
5376
|
return {
|
|
5038
5377
|
Error: output.Error !== undefined && output.Error !== null
|
|
@@ -5176,6 +5515,10 @@ const deserializeAws_restJson1DataLakePrincipalList = (output, context) => {
|
|
|
5176
5515
|
};
|
|
5177
5516
|
const deserializeAws_restJson1DataLakeSettings = (output, context) => {
|
|
5178
5517
|
return {
|
|
5518
|
+
AllowExternalDataFiltering: smithy_client_1.expectBoolean(output.AllowExternalDataFiltering),
|
|
5519
|
+
AuthorizedSessionTagValueList: output.AuthorizedSessionTagValueList !== undefined && output.AuthorizedSessionTagValueList !== null
|
|
5520
|
+
? deserializeAws_restJson1AuthorizedSessionTagValueList(output.AuthorizedSessionTagValueList, context)
|
|
5521
|
+
: undefined,
|
|
5179
5522
|
CreateDatabaseDefaultPermissions: output.CreateDatabaseDefaultPermissions !== undefined && output.CreateDatabaseDefaultPermissions !== null
|
|
5180
5523
|
? deserializeAws_restJson1PrincipalPermissionsList(output.CreateDatabaseDefaultPermissions, context)
|
|
5181
5524
|
: undefined,
|
|
@@ -5185,6 +5528,9 @@ const deserializeAws_restJson1DataLakeSettings = (output, context) => {
|
|
|
5185
5528
|
DataLakeAdmins: output.DataLakeAdmins !== undefined && output.DataLakeAdmins !== null
|
|
5186
5529
|
? deserializeAws_restJson1DataLakePrincipalList(output.DataLakeAdmins, context)
|
|
5187
5530
|
: undefined,
|
|
5531
|
+
ExternalDataFilteringAllowList: output.ExternalDataFilteringAllowList !== undefined && output.ExternalDataFilteringAllowList !== null
|
|
5532
|
+
? deserializeAws_restJson1DataLakePrincipalList(output.ExternalDataFilteringAllowList, context)
|
|
5533
|
+
: undefined,
|
|
5188
5534
|
TrustedResourceOwners: output.TrustedResourceOwners !== undefined && output.TrustedResourceOwners !== null
|
|
5189
5535
|
? deserializeAws_restJson1TrustedResourceOwners(output.TrustedResourceOwners, context)
|
|
5190
5536
|
: undefined,
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
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);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
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 }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
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
|
+
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),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
20
|
const getRuntimeConfig = (config) => {
|
|
20
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
25
|
return {
|
|
24
26
|
...clientSharedValues,
|
|
25
27
|
...config,
|
|
26
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
27
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
31
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 }),
|
|
32
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),
|
|
33
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),
|
|
34
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
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({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
36
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
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),
|
package/dist-es/LakeFormation.js
CHANGED
|
@@ -20,6 +20,8 @@ import { GetQueryStateCommand, } from "./commands/GetQueryStateCommand";
|
|
|
20
20
|
import { GetQueryStatisticsCommand, } from "./commands/GetQueryStatisticsCommand";
|
|
21
21
|
import { GetResourceLFTagsCommand, } from "./commands/GetResourceLFTagsCommand";
|
|
22
22
|
import { GetTableObjectsCommand, } from "./commands/GetTableObjectsCommand";
|
|
23
|
+
import { GetTemporaryGluePartitionCredentialsCommand, } from "./commands/GetTemporaryGluePartitionCredentialsCommand";
|
|
24
|
+
import { GetTemporaryGlueTableCredentialsCommand, } from "./commands/GetTemporaryGlueTableCredentialsCommand";
|
|
23
25
|
import { GetWorkUnitResultsCommand, } from "./commands/GetWorkUnitResultsCommand";
|
|
24
26
|
import { GetWorkUnitsCommand, } from "./commands/GetWorkUnitsCommand";
|
|
25
27
|
import { GrantPermissionsCommand, } from "./commands/GrantPermissionsCommand";
|
|
@@ -341,6 +343,34 @@ var LakeFormation = (function (_super) {
|
|
|
341
343
|
return this.send(command, optionsOrCb);
|
|
342
344
|
}
|
|
343
345
|
};
|
|
346
|
+
LakeFormation.prototype.getTemporaryGluePartitionCredentials = function (args, optionsOrCb, cb) {
|
|
347
|
+
var command = new GetTemporaryGluePartitionCredentialsCommand(args);
|
|
348
|
+
if (typeof optionsOrCb === "function") {
|
|
349
|
+
this.send(command, optionsOrCb);
|
|
350
|
+
}
|
|
351
|
+
else if (typeof cb === "function") {
|
|
352
|
+
if (typeof optionsOrCb !== "object")
|
|
353
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
354
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
355
|
+
}
|
|
356
|
+
else {
|
|
357
|
+
return this.send(command, optionsOrCb);
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
LakeFormation.prototype.getTemporaryGlueTableCredentials = function (args, optionsOrCb, cb) {
|
|
361
|
+
var command = new GetTemporaryGlueTableCredentialsCommand(args);
|
|
362
|
+
if (typeof optionsOrCb === "function") {
|
|
363
|
+
this.send(command, optionsOrCb);
|
|
364
|
+
}
|
|
365
|
+
else if (typeof cb === "function") {
|
|
366
|
+
if (typeof optionsOrCb !== "object")
|
|
367
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
368
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
369
|
+
}
|
|
370
|
+
else {
|
|
371
|
+
return this.send(command, optionsOrCb);
|
|
372
|
+
}
|
|
373
|
+
};
|
|
344
374
|
LakeFormation.prototype.getWorkUnitResults = function (args, optionsOrCb, cb) {
|
|
345
375
|
var command = new GetWorkUnitResultsCommand(args);
|
|
346
376
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetTemporaryGluePartitionCredentialsRequest, GetTemporaryGluePartitionCredentialsResponse, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetTemporaryGluePartitionCredentialsCommand, serializeAws_restJson1GetTemporaryGluePartitionCredentialsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetTemporaryGluePartitionCredentialsCommand = (function (_super) {
|
|
7
|
+
__extends(GetTemporaryGluePartitionCredentialsCommand, _super);
|
|
8
|
+
function GetTemporaryGluePartitionCredentialsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetTemporaryGluePartitionCredentialsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "LakeFormationClient";
|
|
18
|
+
var commandName = "GetTemporaryGluePartitionCredentialsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetTemporaryGluePartitionCredentialsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetTemporaryGluePartitionCredentialsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetTemporaryGluePartitionCredentialsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetTemporaryGluePartitionCredentialsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetTemporaryGluePartitionCredentialsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetTemporaryGluePartitionCredentialsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetTemporaryGluePartitionCredentialsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetTemporaryGluePartitionCredentialsCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetTemporaryGlueTableCredentialsRequest, GetTemporaryGlueTableCredentialsResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetTemporaryGlueTableCredentialsCommand, serializeAws_restJson1GetTemporaryGlueTableCredentialsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetTemporaryGlueTableCredentialsCommand = (function (_super) {
|
|
7
|
+
__extends(GetTemporaryGlueTableCredentialsCommand, _super);
|
|
8
|
+
function GetTemporaryGlueTableCredentialsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetTemporaryGlueTableCredentialsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "LakeFormationClient";
|
|
18
|
+
var commandName = "GetTemporaryGlueTableCredentialsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetTemporaryGlueTableCredentialsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetTemporaryGlueTableCredentialsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetTemporaryGlueTableCredentialsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetTemporaryGlueTableCredentialsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetTemporaryGlueTableCredentialsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetTemporaryGlueTableCredentialsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetTemporaryGlueTableCredentialsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetTemporaryGlueTableCredentialsCommand };
|
|
@@ -19,6 +19,8 @@ export * from "./GetQueryStateCommand";
|
|
|
19
19
|
export * from "./GetQueryStatisticsCommand";
|
|
20
20
|
export * from "./GetResourceLFTagsCommand";
|
|
21
21
|
export * from "./GetTableObjectsCommand";
|
|
22
|
+
export * from "./GetTemporaryGluePartitionCredentialsCommand";
|
|
23
|
+
export * from "./GetTemporaryGlueTableCredentialsCommand";
|
|
22
24
|
export * from "./GetWorkUnitResultsCommand";
|
|
23
25
|
export * from "./GetWorkUnitsCommand";
|
|
24
26
|
export * from "./GrantPermissionsCommand";
|