aws lakeformation61 CLI commands available for AWS Lake Formation.
| Command | API Operation | Sample |
|---|---|---|
add-lf-tags-to-resourceAttaches one or more LF-tags to an existing resource. | AddLFTagsToResource | |
assume-decorated-role-with-samlAllows a caller to assume an IAM role decorated as the SAML user specified in the SAML assertion included in the request. This decoration allows Lake Formation to enforce access policies against the SAML users and groups. This API operation requires SAML federation setup in the caller’s account as i | AssumeDecoratedRoleWithSAML | |
batch-grant-permissionsBatch operation to grant permissions to the principal. | BatchGrantPermissions | |
batch-revoke-permissionsBatch operation to revoke permissions from the principal. | BatchRevokePermissions | |
cancel-transactionAttempts to cancel the specified transaction. Returns an exception if the transaction was previously committed. | CancelTransaction | |
commit-transactionAttempts 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. | CommitTransaction | |
create-data-cells-filterCreates a data cell filter to allow one to grant access to certain columns on certain rows. | CreateDataCellsFilter | |
create-lake-formation-identity-center-configurationCreates an IAM Identity Center connection with Lake Formation to allow IAM Identity Center users and groups to access Data Catalog resources. | CreateLakeFormationIdentityCenterConfiguration | |
create-lake-formation-opt-inEnforce Lake Formation permissions for the given databases, tables, and principals. | CreateLakeFormationOptIn | |
create-lf-tagCreates an LF-tag with the specified name and values. | CreateLFTag | |
create-lf-tag-expressionCreates a new LF-Tag expression with the provided name, description, catalog ID, and expression body. This call fails if a LF-Tag expression with the same name already exists in the caller’s account or if the underlying LF-Tags don't exist. To call this API operation, caller needs the following Lake | CreateLFTagExpression | |
delete-data-cells-filterDeletes a data cell filter. | DeleteDataCellsFilter | |
delete-lake-formation-identity-center-configurationDeletes an IAM Identity Center connection with Lake Formation. | DeleteLakeFormationIdentityCenterConfiguration | |
delete-lake-formation-opt-inRemove the Lake Formation permissions enforcement of the given databases, tables, and principals. | DeleteLakeFormationOptIn | |
delete-lf-tagDeletes an LF-tag by its key name. The operation fails if the specified tag key doesn't exist. When you delete an LF-Tag: The associated LF-Tag policy becomes invalid. Resources that had this tag assigned will no longer have the tag policy applied to them. | DeleteLFTag | |
delete-lf-tag-expressionDeletes the LF-Tag expression. The caller must be a data lake admin or have DROP permissions on the LF-Tag expression. Deleting a LF-Tag expression will also delete all LFTagPolicy permissions referencing the LF-Tag expression. | DeleteLFTagExpression | |
delete-objects-on-cancelFor 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 l | DeleteObjectsOnCancel | |
deregister-resourceDeregisters 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. | DeregisterResource | |
describe-lake-formation-identity-center-configurationRetrieves the instance ARN and application ARN for the connection. | DescribeLakeFormationIdentityCenterConfiguration | |
describe-resourceRetrieves the current data access role for the given resource registered in Lake Formation. | DescribeResource | |
describe-transactionReturns the details of a single transaction. | DescribeTransaction | |
extend-transactionIndicates 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. | ExtendTransaction | |
get-data-cells-filterReturns a data cells filter. | GetDataCellsFilter | |
get-data-lake-principalReturns the identity of the invoking principal. | GetDataLakePrincipal | |
get-data-lake-settingsRetrieves the list of the data lake administrators of a Lake Formation-managed data lake. | GetDataLakeSettings | |
get-effective-permissions-for-pathReturns 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. | GetEffectivePermissionsForPath | |
get-lf-tagReturns an LF-tag definition. | GetLFTag | |
get-lf-tag-expressionReturns the details about the LF-Tag expression. The caller must be a data lake admin or must have DESCRIBE permission on the LF-Tag expression resource. | GetLFTagExpression | |
get-query-stateReturns 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. | GetQueryState | |
get-query-statisticsRetrieves statistics on the planning and execution of a query. | GetQueryStatistics | |
get-resource-lf-tagsReturns the LF-tags applied to a resource. | GetResourceLFTags | |
get-table-objectsReturns 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. | GetTableObjects | |
get-temporary-data-location-credentialsAllows a user or application in a secure environment to access data in a specific Amazon S3 location registered with Lake Formation by providing temporary scoped credentials that are limited to the requested data location and the caller's authorized access level. The API operation returns an error | GetTemporaryDataLocationCredentials | |
get-temporary-glue-partition-credentialsThis 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. | GetTemporaryGluePartitionCredentials | |
get-temporary-glue-table-credentialsAllows 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 pre | GetTemporaryGlueTableCredentials | |
get-work-unit-resultsReturns the work units resulting from the query. Work units can be executed in any order and in parallel. | GetWorkUnitResults | |
get-work-unitsRetrieves the work units generated by the StartQueryPlanning operation. | GetWorkUnits | |
grant-permissionsGrants 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. | GrantPermissions | |
list-data-cells-filterLists all the data cell filters on a table. | ListDataCellsFilter | |
list-lake-formation-opt-insRetrieve the current list of resources and principals that are opt in to enforce Lake Formation permissions. | ListLakeFormationOptIns | |
list-lf-tag-expressionsReturns the LF-Tag expressions in caller’s account filtered based on caller's permissions. Data Lake and read only admins implicitly can see all tag expressions in their account, else caller needs DESCRIBE permissions on tag expression. | ListLFTagExpressions | |
list-lf-tagsLists LF-tags that the requester has permission to view. | ListLFTags | |
list-permissionsReturns 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. | ListPermissions | |
list-resourcesLists the resources registered to be managed by the Data Catalog. | ListResources | |
list-table-storage-optimizersReturns the configuration of all storage optimizers associated with a specified table. | ListTableStorageOptimizers | |
list-transactionsReturns 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. | ListTransactions | |
put-data-lake-settingsSets 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, f | PutDataLakeSettings | |
register-resourceRegisters the resource as managed by the Data Catalog. To add or update data, Lake Formation needs read/write access to the chosen data location. Choose a role that you know has permission to do this, or choose the AWSServiceRoleForLakeFormationDataAccess service-linked role. When you register the f | RegisterResource | |
remove-lf-tags-from-resourceRemoves 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. | RemoveLFTagsFromResource | |
revoke-permissionsRevokes permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3. | RevokePermissions | |
search-databases-by-lf-tagsThis 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 w | SearchDatabasesByLFTags | |
search-tables-by-lf-tagsThis 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 resource | SearchTablesByLFTags | |
start-query-planningSubmits 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. | StartQueryPlanning | |
start-transactionStarts a new transaction and returns its transaction ID. Transaction IDs are opaque objects that you can use to identify a transaction. | StartTransaction | |
update-data-cells-filterUpdates a data cell filter. | UpdateDataCellsFilter | |
update-lake-formation-identity-center-configurationUpdates the IAM Identity Center connection parameters. | UpdateLakeFormationIdentityCenterConfiguration | |
update-lf-tagUpdates 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 | UpdateLFTag | |
update-lf-tag-expressionUpdates the name of the LF-Tag expression to the new description and expression body provided. Updating a LF-Tag expression immediately changes the permission boundaries of all existing LFTagPolicy permission grants that reference the given LF-Tag expression. | UpdateLFTagExpression | |
update-resourceUpdates the data access role used for vending access to the given (registered) resource in Lake Formation. | UpdateResource | |
update-table-objectsUpdates the manifest of Amazon S3 objects that make up the specified governed table. | UpdateTableObjects | |
update-table-storage-optimizerUpdates the configuration of the storage optimizers for a table. | UpdateTableStorageOptimizer |
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterLakeFormation