Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

LakeFormation

import { LakeFormation } from "https://aws-api.deno.dev/v0.3/services/lakeformation.ts?docs=full";
class LakeFormation {
constructor(apiFactory: client.ApiFactory);
async addLFTagsToResource(params: AddLFTagsToResourceRequest, opts?: client.RequestOptions): Promise<AddLFTagsToResourceResponse>;
async batchGrantPermissions(params: BatchGrantPermissionsRequest, opts?: client.RequestOptions): Promise<BatchGrantPermissionsResponse>;
async batchRevokePermissions(params: BatchRevokePermissionsRequest, opts?: client.RequestOptions): Promise<BatchRevokePermissionsResponse>;
async cancelTransaction(params: CancelTransactionRequest, opts?: client.RequestOptions): Promise<void>;
async commitTransaction(params: CommitTransactionRequest, opts?: client.RequestOptions): Promise<CommitTransactionResponse>;
async createDataCellsFilter(params: CreateDataCellsFilterRequest, opts?: client.RequestOptions): Promise<void>;
async createLFTag(params: CreateLFTagRequest, opts?: client.RequestOptions): Promise<void>;
async deleteDataCellsFilter(params?: DeleteDataCellsFilterRequest, opts?: client.RequestOptions): Promise<void>;
async deleteLFTag(params: DeleteLFTagRequest, opts?: client.RequestOptions): Promise<void>;
async deleteObjectsOnCancel(params: DeleteObjectsOnCancelRequest, opts?: client.RequestOptions): Promise<void>;
async deregisterResource(params: DeregisterResourceRequest, opts?: client.RequestOptions): Promise<void>;
async describeResource(params: DescribeResourceRequest, opts?: client.RequestOptions): Promise<DescribeResourceResponse>;
async describeTransaction(params: DescribeTransactionRequest, opts?: client.RequestOptions): Promise<DescribeTransactionResponse>;
async extendTransaction(params?: ExtendTransactionRequest, opts?: client.RequestOptions): Promise<void>;
async getDataLakeSettings(params?: GetDataLakeSettingsRequest, opts?: client.RequestOptions): Promise<GetDataLakeSettingsResponse>;
async getEffectivePermissionsForPath(params: GetEffectivePermissionsForPathRequest, opts?: client.RequestOptions): Promise<GetEffectivePermissionsForPathResponse>;
async getLFTag(params: GetLFTagRequest, opts?: client.RequestOptions): Promise<GetLFTagResponse>;
async getQueryState(params: GetQueryStateRequest, opts?: client.RequestOptions): Promise<GetQueryStateResponse>;
async getQueryStatistics(params: GetQueryStatisticsRequest, opts?: client.RequestOptions): Promise<GetQueryStatisticsResponse>;
async getResourceLFTags(params: GetResourceLFTagsRequest, opts?: client.RequestOptions): Promise<GetResourceLFTagsResponse>;
async getTableObjects(params: GetTableObjectsRequest, opts?: client.RequestOptions): Promise<GetTableObjectsResponse>;
async getTemporaryGluePartitionCredentials(params: GetTemporaryGluePartitionCredentialsRequest, opts?: client.RequestOptions): Promise<GetTemporaryGluePartitionCredentialsResponse>;
async getTemporaryGlueTableCredentials(params: GetTemporaryGlueTableCredentialsRequest, opts?: client.RequestOptions): Promise<GetTemporaryGlueTableCredentialsResponse>;
async getWorkUnitResults(params: GetWorkUnitResultsRequest, opts?: client.RequestOptions): Promise<GetWorkUnitResultsResponse>;
async getWorkUnits(params: GetWorkUnitsRequest, opts?: client.RequestOptions): Promise<GetWorkUnitsResponse>;
async grantPermissions(params: GrantPermissionsRequest, opts?: client.RequestOptions): Promise<void>;
async listDataCellsFilter(params?: ListDataCellsFilterRequest, opts?: client.RequestOptions): Promise<ListDataCellsFilterResponse>;
async listLFTags(params?: ListLFTagsRequest, opts?: client.RequestOptions): Promise<ListLFTagsResponse>;
async listPermissions(params?: ListPermissionsRequest, opts?: client.RequestOptions): Promise<ListPermissionsResponse>;
async listResources(params?: ListResourcesRequest, opts?: client.RequestOptions): Promise<ListResourcesResponse>;
async listTableStorageOptimizers(params: ListTableStorageOptimizersRequest, opts?: client.RequestOptions): Promise<ListTableStorageOptimizersResponse>;
async listTransactions(params?: ListTransactionsRequest, opts?: client.RequestOptions): Promise<ListTransactionsResponse>;
async putDataLakeSettings(params: PutDataLakeSettingsRequest, opts?: client.RequestOptions): Promise<void>;
async registerResource(params: RegisterResourceRequest, opts?: client.RequestOptions): Promise<void>;
async removeLFTagsFromResource(params: RemoveLFTagsFromResourceRequest, opts?: client.RequestOptions): Promise<RemoveLFTagsFromResourceResponse>;
async revokePermissions(params: RevokePermissionsRequest, opts?: client.RequestOptions): Promise<void>;
async searchDatabasesByLFTags(params: SearchDatabasesByLFTagsRequest, opts?: client.RequestOptions): Promise<SearchDatabasesByLFTagsResponse>;
async searchTablesByLFTags(params: SearchTablesByLFTagsRequest, opts?: client.RequestOptions): Promise<SearchTablesByLFTagsResponse>;
async startQueryPlanning(params: StartQueryPlanningRequest, opts?: client.RequestOptions): Promise<StartQueryPlanningResponse>;
async startTransaction(params?: StartTransactionRequest, opts?: client.RequestOptions): Promise<StartTransactionResponse>;
async updateLFTag(params: UpdateLFTagRequest, opts?: client.RequestOptions): Promise<void>;
async updateResource(params: UpdateResourceRequest, opts?: client.RequestOptions): Promise<void>;
async updateTableObjects(params: UpdateTableObjectsRequest, opts?: client.RequestOptions): Promise<void>;
async updateTableStorageOptimizer(params: UpdateTableStorageOptimizerRequest, opts?: client.RequestOptions): Promise<UpdateTableStorageOptimizerResponse>;
 
static ApiMetadata: client.ApiMetadata;
}

§Constructors

§
new LakeFormation(apiFactory: client.ApiFactory)
[src]

§Methods

§

Attaches one or more LF-tags to an existing resource.

§

Batch operation to grant permissions to the principal.

§

Batch operation to revoke permissions from the principal.

§
cancelTransaction(params: CancelTransactionRequest, opts?: client.RequestOptions): Promise<void>
[src]

Attempts to cancel the specified transaction. Returns an exception if the transaction was previously committed.

§

Attempts to commit the specified transaction. Returns an exception if the transaction was previously aborted. This API action is idempotent if called multiple times for the same transaction.

§
createDataCellsFilter(params: CreateDataCellsFilterRequest, opts?: client.RequestOptions): Promise<void>
[src]

Creates a data cell filter to allow one to grant access to certain columns on certain rows.

§
createLFTag(params: CreateLFTagRequest, opts?: client.RequestOptions): Promise<void>
[src]

Creates an LF-tag with the specified name and values.

§
deleteDataCellsFilter(params?: DeleteDataCellsFilterRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes a data cell filter.

§
deleteLFTag(params: DeleteLFTagRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the specified LF-tag key name. If the attribute key does not exist or the LF-tag does not exist, then the operation will not do anything. If the attribute key exists, then the operation checks if any resources are tagged with this attribute key, if yes, the API throws a 400 Exception with the message "Delete not allowed" as the LF-tag key is still attached with resources. You can consider untagging resources with this LF-tag key.

§
deleteObjectsOnCancel(params: DeleteObjectsOnCancelRequest, opts?: client.RequestOptions): Promise<void>
[src]

For a specific governed table, provides a list of Amazon S3 objects that will be written during the current transaction and that can be automatically deleted if the transaction is canceled. Without this call, no Amazon S3 objects are automatically deleted when a transaction cancels.

The Glue ETL library function write_dynamic_frame.from_catalog() includes an option to automatically call DeleteObjectsOnCancel before writes. For more information, see Rolling Back Amazon S3 Writes.

§
deregisterResource(params: DeregisterResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deregisters the resource as managed by the Data Catalog.

When you deregister a path, Lake Formation removes the path from the inline policy attached to your service-linked role.

§

Retrieves the current data access role for the given resource registered in Lake Formation.

§

Returns the details of a single transaction.

§
extendTransaction(params?: ExtendTransactionRequest, opts?: client.RequestOptions): Promise<void>
[src]

Indicates to the service that the specified transaction is still active and should not be treated as idle and aborted.

Write transactions that remain idle for a long period are automatically aborted unless explicitly extended.

§

Retrieves the list of the data lake administrators of a Lake Formation-managed data lake.

§

Returns the Lake Formation permissions for a specified table or database resource located at a path in Amazon S3. GetEffectivePermissionsForPath will not return databases and tables if the catalog is encrypted.

§
getLFTag(params: GetLFTagRequest, opts?: client.RequestOptions): Promise<GetLFTagResponse>
[src]

Returns an LF-tag definition.

§

Returns the state of a query previously submitted. Clients are expected to poll GetQueryState to monitor the current state of the planning before retrieving the work units. A query state is only visible to the principal that made the initial call to StartQueryPlanning.

§

Retrieves statistics on the planning and execution of a query.

§

Returns the LF-tags applied to a resource.

§

Returns the set of Amazon S3 objects that make up the specified governed table. A transaction ID or timestamp can be specified for time-travel queries.

§

This API is identical to GetTemporaryTableCredentials except that this is used when the target Data Catalog resource is of type Partition. Lake Formation restricts the permission of the vended credentials with the same scope down policy which restricts access to a single Amazon S3 prefix.

§

Allows a caller in a secure environment to assume a role with permission to access Amazon S3. In order to vend such credentials, Lake Formation assumes the role associated with a registered location, for example an Amazon S3 bucket, with a scope down policy which restricts the access to a single prefix.

§

Returns the work units resulting from the query. Work units can be executed in any order and in parallel.

§

Retrieves the work units generated by the StartQueryPlanning operation.

§
grantPermissions(params: GrantPermissionsRequest, opts?: client.RequestOptions): Promise<void>
[src]

Grants permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3.

For information about permissions, see Security and Access Control to Metadata and Data.

§

Lists all the data cell filters on a table.

§
listLFTags(params?: ListLFTagsRequest, opts?: client.RequestOptions): Promise<ListLFTagsResponse>
[src]

Lists LF-tags that the requester has permission to view.

§

Returns a list of the principal permissions on the resource, filtered by the permissions of the caller. For example, if you are granted an ALTER permission, you are able to see only the principal permissions for ALTER.

This operation returns only those permissions that have been explicitly granted.

For information about permissions, see Security and Access Control to Metadata and Data.

§

Lists the resources registered to be managed by the Data Catalog.

§

Returns the configuration of all storage optimizers associated with a specified table.

§

Returns metadata about transactions and their status. To prevent the response from growing indefinitely, only uncommitted transactions and those available for time-travel queries are returned.

This operation can help you identify uncommitted transactions or to get information about transactions.

§
putDataLakeSettings(params: PutDataLakeSettingsRequest, opts?: client.RequestOptions): Promise<void>
[src]

Sets the list of data lake administrators who have admin privileges on all resources managed by Lake Formation. For more information on admin privileges, see Granting Lake Formation Permissions.

This API replaces the current list of data lake admins with the new list being passed. To add an admin, fetch the current list and add the new admin to that list and pass that list in this API.

§
registerResource(params: RegisterResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

Registers the resource as managed by the Data Catalog.

To add or update data, Lake Formation needs read/write access to the chosen Amazon S3 path. Choose a role that you know has permission to do this, or choose the AWSServiceRoleForLakeFormationDataAccess service-linked role. When you register the first Amazon S3 path, the service-linked role and a new inline policy are created on your behalf. Lake Formation adds the first path to the inline policy and attaches it to the service-linked role. When you register subsequent paths, Lake Formation adds the path to the existing policy.

The following request registers a new location and gives Lake Formation permission to use the service-linked role to access that location.

ResourceArn = arn:aws:s3:::my-bucket UseServiceLinkedRole = true

If UseServiceLinkedRole is not set to true, you must provide or set the RoleArn:

arn:aws:iam::12345:role/my-data-access-role
§

Removes an LF-tag from the resource. Only database, table, or tableWithColumns resource are allowed. To tag columns, use the column inclusion list in tableWithColumns to specify column input.

§
revokePermissions(params: RevokePermissionsRequest, opts?: client.RequestOptions): Promise<void>
[src]

Revokes permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3.

§

This operation allows a search on DATABASE resources by TagCondition. This operation is used by admins who want to grant user permissions on certain TagConditions. Before making a grant, the admin can use SearchDatabasesByTags to find all resources where the given TagConditions are valid to verify whether the returned resources can be shared.

§

This operation allows a search on TABLE resources by LFTags. This will be used by admins who want to grant user permissions on certain LF-tags. Before making a grant, the admin can use SearchTablesByLFTags to find all resources where the given LFTags are valid to verify whether the returned resources can be shared.

§

Submits a request to process a query statement.

This operation generates work units that can be retrieved with the GetWorkUnits operation as soon as the query state is WORKUNITS_AVAILABLE or FINISHED.

§

Starts a new transaction and returns its transaction ID. Transaction IDs are opaque objects that you can use to identify a transaction.

§
updateLFTag(params: UpdateLFTagRequest, opts?: client.RequestOptions): Promise<void>
[src]

Updates the list of possible values for the specified LF-tag key. If the LF-tag does not exist, the operation throws an EntityNotFoundException. The values in the delete key values will be deleted from list of possible values. If any value in the delete key values is attached to a resource, then API errors out with a 400 Exception - "Update not allowed". Untag the attribute before deleting the LF-tag key's value.

§
updateResource(params: UpdateResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

Updates the data access role used for vending access to the given (registered) resource in Lake Formation.

§
updateTableObjects(params: UpdateTableObjectsRequest, opts?: client.RequestOptions): Promise<void>
[src]

Updates the manifest of Amazon S3 objects that make up the specified governed table.

§

Updates the configuration of the storage optimizers for a table.

§Static Properties