Class: Aws::LakeFormation::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::LakeFormation::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb
Overview
An API client for LakeFormation. To construct a client, you need to configure a :region and :credentials.
client = Aws::LakeFormation::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#add_lf_tags_to_resource(params = {}) ⇒ Types::AddLFTagsToResourceResponse
Attaches one or more LF-tags to an existing resource.
-
#analyze_access(params = {}) ⇒ Types::AnalyzeAccessResponse
Returns the effective access of a principal on a resource, and the Lake Formation permissions and row-level security policies that contributed to it.
-
#assume_decorated_role_with_saml(params = {}) ⇒ Types::AssumeDecoratedRoleWithSAMLResponse
Allows a caller to assume an IAM role decorated as the SAML user specified in the SAML assertion included in the request.
-
#attach_rls_policy(params = {}) ⇒ Struct
Attaches a row-level security policy to a resource for a principal.
-
#batch_grant_permissions(params = {}) ⇒ Types::BatchGrantPermissionsResponse
Batch operation to grant permissions to the principal.
-
#batch_revoke_permissions(params = {}) ⇒ Types::BatchRevokePermissionsResponse
Batch operation to revoke permissions from the principal.
-
#cancel_transaction(params = {}) ⇒ Struct
Attempts to cancel the specified transaction.
-
#commit_transaction(params = {}) ⇒ Types::CommitTransactionResponse
Attempts to commit the specified transaction.
-
#create_data_cells_filter(params = {}) ⇒ Struct
Creates a data cell filter to allow one to grant access to certain columns on certain rows.
-
#create_lake_formation_identity_center_configuration(params = {}) ⇒ Types::CreateLakeFormationIdentityCenterConfigurationResponse
Creates an IAM Identity Center connection with Lake Formation to allow IAM Identity Center users and groups to access Data Catalog resources.
-
#create_lake_formation_opt_in(params = {}) ⇒ Struct
Enforce Lake Formation permissions for the given databases, tables, and principals.
-
#create_lf_tag(params = {}) ⇒ Struct
Creates an LF-tag with the specified name and values.
-
#create_lf_tag_expression(params = {}) ⇒ Struct
Creates a new LF-Tag expression with the provided name, description, catalog ID, and expression body.
-
#create_rls_policy(params = {}) ⇒ Struct
Creates a row-level security (RLS) policy.
-
#delete_data_cells_filter(params = {}) ⇒ Struct
Deletes a data cell filter.
-
#delete_lake_formation_identity_center_configuration(params = {}) ⇒ Struct
Deletes an IAM Identity Center connection with Lake Formation.
-
#delete_lake_formation_opt_in(params = {}) ⇒ Struct
Remove the Lake Formation permissions enforcement of the given databases, tables, and principals.
-
#delete_lf_tag(params = {}) ⇒ Struct
Deletes an LF-tag by its key name.
-
#delete_lf_tag_expression(params = {}) ⇒ Struct
Deletes the LF-Tag expression.
-
#delete_objects_on_cancel(params = {}) ⇒ Struct
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.
-
#delete_rls_policy(params = {}) ⇒ Struct
Deletes a row-level security policy.
-
#deregister_resource(params = {}) ⇒ Struct
Deregisters the resource as managed by the Data Catalog.
-
#describe_lake_formation_identity_center_configuration(params = {}) ⇒ Types::DescribeLakeFormationIdentityCenterConfigurationResponse
Retrieves the instance ARN and application ARN for the connection.
-
#describe_resource(params = {}) ⇒ Types::DescribeResourceResponse
Retrieves the current data access role for the given resource registered in Lake Formation.
-
#describe_transaction(params = {}) ⇒ Types::DescribeTransactionResponse
Returns the details of a single transaction.
-
#detach_rls_policy(params = {}) ⇒ Struct
Detaches a row-level security policy from a resource for a principal.
-
#extend_transaction(params = {}) ⇒ Struct
Indicates to the service that the specified transaction is still active and should not be treated as idle and aborted.
-
#get_data_cells_filter(params = {}) ⇒ Types::GetDataCellsFilterResponse
Returns a data cells filter.
-
#get_data_lake_principal(params = {}) ⇒ Types::GetDataLakePrincipalResponse
Returns the identity of the invoking principal.
-
#get_data_lake_settings(params = {}) ⇒ Types::GetDataLakeSettingsResponse
Retrieves the list of the data lake administrators of a Lake Formation-managed data lake.
-
#get_effective_permissions_for_path(params = {}) ⇒ Types::GetEffectivePermissionsForPathResponse
Returns the Lake Formation permissions for a specified table or database resource located at a path in Amazon S3.
-
#get_glue_function_session_context(params = {}) ⇒ Types::GetGlueFunctionSessionContextResponse
Returns a session context for one or more user-defined functions that an integrated analytics engine runs together in a job.
-
#get_lf_tag(params = {}) ⇒ Types::GetLFTagResponse
Returns an LF-tag definition.
-
#get_lf_tag_expression(params = {}) ⇒ Types::GetLFTagExpressionResponse
Returns the details about the LF-Tag expression.
-
#get_query_state(params = {}) ⇒ Types::GetQueryStateResponse
Returns the state of a query previously submitted.
-
#get_query_statistics(params = {}) ⇒ Types::GetQueryStatisticsResponse
Retrieves statistics on the planning and execution of a query.
-
#get_resource_lf_tags(params = {}) ⇒ Types::GetResourceLFTagsResponse
Returns the LF-tags applied to a resource.
-
#get_rls_policy(params = {}) ⇒ Types::GetRLSPolicyResponse
Returns the definition of a row-level security policy, including its attachment columns and filter expression.
-
#get_table_objects(params = {}) ⇒ Types::GetTableObjectsResponse
Returns the set of Amazon S3 objects that make up the specified governed table.
-
#get_temporary_data_location_credentials(params = {}) ⇒ Types::GetTemporaryDataLocationCredentialsResponse
Allows 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.
-
#get_temporary_glue_function_credentials(params = {}) ⇒ Types::GetTemporaryGlueFunctionCredentialsResponse
Returns temporary credentials that you can use to download the artifacts of a user-defined function whose
GovernanceModeisLAKE_FORMATION. -
#get_temporary_glue_partition_credentials(params = {}) ⇒ Types::GetTemporaryGluePartitionCredentialsResponse
This API is identical to
GetTemporaryTableCredentialsexcept that this is used when the target Data Catalog resource is of type Partition. -
#get_temporary_glue_table_credentials(params = {}) ⇒ Types::GetTemporaryGlueTableCredentialsResponse
Allows a caller in a secure environment to assume a role with permission to access Amazon S3.
-
#get_work_unit_results(params = {}) ⇒ Types::GetWorkUnitResultsResponse
Returns the work units resulting from the query.
-
#get_work_units(params = {}) ⇒ Types::GetWorkUnitsResponse
Retrieves the work units generated by the
StartQueryPlanningoperation. -
#grant_permissions(params = {}) ⇒ Struct
Grants permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3.
-
#list_data_cells_filter(params = {}) ⇒ Types::ListDataCellsFilterResponse
Lists all the data cell filters on a table.
-
#list_lake_formation_opt_ins(params = {}) ⇒ Types::ListLakeFormationOptInsResponse
Retrieve the current list of resources and principals that are opt in to enforce Lake Formation permissions.
-
#list_lf_tag_expressions(params = {}) ⇒ Types::ListLFTagExpressionsResponse
Returns the LF-Tag expressions in caller’s account filtered based on caller's permissions.
-
#list_lf_tags(params = {}) ⇒ Types::ListLFTagsResponse
Lists LF-tags that the requester has permission to view.
-
#list_permissions(params = {}) ⇒ Types::ListPermissionsResponse
Returns a list of the principal permissions on the resource, filtered by the permissions of the caller.
-
#list_resources(params = {}) ⇒ Types::ListResourcesResponse
Lists the resources registered to be managed by the Data Catalog.
-
#list_rls_policies(params = {}) ⇒ Types::ListRLSPoliciesResponse
Lists the row-level security policies in the Data Catalog.
-
#list_rls_policy_attachments(params = {}) ⇒ Types::ListRLSPolicyAttachmentsResponse
Lists the row-level security policy attachments in the Data Catalog.
-
#list_table_storage_optimizers(params = {}) ⇒ Types::ListTableStorageOptimizersResponse
Returns the configuration of all storage optimizers associated with a specified table.
-
#list_transactions(params = {}) ⇒ Types::ListTransactionsResponse
Returns metadata about transactions and their status.
-
#put_data_lake_settings(params = {}) ⇒ Struct
Sets the list of data lake administrators who have admin privileges on all resources managed by Lake Formation.
-
#register_resource(params = {}) ⇒ Struct
Registers the resource as managed by the Data Catalog.
-
#remove_lf_tags_from_resource(params = {}) ⇒ Types::RemoveLFTagsFromResourceResponse
Removes an LF-tag from the resource.
-
#revoke_permissions(params = {}) ⇒ Struct
Revokes permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3.
-
#search_databases_by_lf_tags(params = {}) ⇒ Types::SearchDatabasesByLFTagsResponse
This operation allows a search on
DATABASEresources byTagCondition. -
#search_tables_by_lf_tags(params = {}) ⇒ Types::SearchTablesByLFTagsResponse
This operation allows a search on
TABLEresources byLFTags. -
#start_query_planning(params = {}) ⇒ Types::StartQueryPlanningResponse
Submits a request to process a query statement.
-
#start_transaction(params = {}) ⇒ Types::StartTransactionResponse
Starts a new transaction and returns its transaction ID.
-
#update_data_cells_filter(params = {}) ⇒ Struct
Updates a data cell filter.
-
#update_lake_formation_identity_center_configuration(params = {}) ⇒ Struct
Updates the IAM Identity Center connection parameters.
-
#update_lf_tag(params = {}) ⇒ Struct
Updates the list of possible values for the specified LF-tag key.
-
#update_lf_tag_expression(params = {}) ⇒ Struct
Updates the name of the LF-Tag expression to the new description and expression body provided.
-
#update_resource(params = {}) ⇒ Struct
Updates the data access role used for vending access to the given (registered) resource in Lake Formation.
-
#update_rls_policy(params = {}) ⇒ Struct
Updates the filter expression of an existing row-level security policy.
-
#update_table_objects(params = {}) ⇒ Struct
Updates the manifest of Amazon S3 objects that make up the specified governed table.
-
#update_table_storage_optimizer(params = {}) ⇒ Types::UpdateTableStorageOptimizerResponse
Updates the configuration of the storage optimizers for a table.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
479 480 481 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 479 def initialize(*args) super end |
Instance Method Details
#add_lf_tags_to_resource(params = {}) ⇒ Types::AddLFTagsToResourceResponse
Attaches one or more LF-tags to an existing resource.
600 601 602 603 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 600 def (params = {}, = {}) req = build_request(:add_lf_tags_to_resource, params) req.send_request() end |
#analyze_access(params = {}) ⇒ Types::AnalyzeAccessResponse
Returns the effective access of a principal on a resource, and the Lake Formation permissions and row-level security policies that contributed to it.
820 821 822 823 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 820 def analyze_access(params = {}, = {}) req = build_request(:analyze_access, params) req.send_request() end |
#assume_decorated_role_with_saml(params = {}) ⇒ Types::AssumeDecoratedRoleWithSAMLResponse
Allows 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 it can only be called with valid SAML assertions. Lake Formation does not scope down the permission of the assumed role. All permissions attached to the role via the SAML federation setup will be included in the role session.
This decorated role is expected to access data in Amazon S3 by getting
temporary access from Lake Formation which is authorized via the
virtual API GetDataAccess. Therefore, all SAML roles that can be
assumed via AssumeDecoratedRoleWithSAML must at a minimum include
lakeformation:GetDataAccess in their role policies. A typical IAM
policy attached to such a role would include the following actions:
glue:Database
glue:Table
glue:Partition
glue:UserDefinedFunction
lakeformation:GetDataAccess
897 898 899 900 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 897 def assume_decorated_role_with_saml(params = {}, = {}) req = build_request(:assume_decorated_role_with_saml, params) req.send_request() end |
#attach_rls_policy(params = {}) ⇒ Struct
Attaches a row-level security policy to a resource for a principal. When the principal queries the resource, Lake Formation applies the policy's filter expression so that only the permitted rows are returned.
1014 1015 1016 1017 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 1014 def attach_rls_policy(params = {}, = {}) req = build_request(:attach_rls_policy, params) req.send_request() end |
#batch_grant_permissions(params = {}) ⇒ Types::BatchGrantPermissionsResponse
Batch operation to grant permissions to the principal.
1180 1181 1182 1183 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 1180 def (params = {}, = {}) req = build_request(:batch_grant_permissions, params) req.send_request() end |
#batch_revoke_permissions(params = {}) ⇒ Types::BatchRevokePermissionsResponse
Batch operation to revoke permissions from the principal.
1346 1347 1348 1349 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 1346 def (params = {}, = {}) req = build_request(:batch_revoke_permissions, params) req.send_request() end |
#cancel_transaction(params = {}) ⇒ Struct
Attempts to cancel the specified transaction. Returns an exception if the transaction was previously committed.
1369 1370 1371 1372 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 1369 def cancel_transaction(params = {}, = {}) req = build_request(:cancel_transaction, params) req.send_request() end |
#commit_transaction(params = {}) ⇒ Types::CommitTransactionResponse
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.
1399 1400 1401 1402 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 1399 def commit_transaction(params = {}, = {}) req = build_request(:commit_transaction, params) req.send_request() end |
#create_data_cells_filter(params = {}) ⇒ Struct
Creates a data cell filter to allow one to grant access to certain columns on certain rows.
1438 1439 1440 1441 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 1438 def create_data_cells_filter(params = {}, = {}) req = build_request(:create_data_cells_filter, params) req.send_request() end |
#create_lake_formation_identity_center_configuration(params = {}) ⇒ Types::CreateLakeFormationIdentityCenterConfigurationResponse
Creates an IAM Identity Center connection with Lake Formation to allow IAM Identity Center users and groups to access Data Catalog resources.
1602 1603 1604 1605 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 1602 def create_lake_formation_identity_center_configuration(params = {}, = {}) req = build_request(:create_lake_formation_identity_center_configuration, params) req.send_request() end |
#create_lake_formation_opt_in(params = {}) ⇒ Struct
Enforce Lake Formation permissions for the given databases, tables, and principals.
1708 1709 1710 1711 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 1708 def create_lake_formation_opt_in(params = {}, = {}) req = build_request(:create_lake_formation_opt_in, params) req.send_request() end |
#create_lf_tag(params = {}) ⇒ Struct
Creates an LF-tag with the specified name and values.
1471 1472 1473 1474 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 1471 def create_lf_tag(params = {}, = {}) req = build_request(:create_lf_tag, params) req.send_request() end |
#create_lf_tag_expression(params = {}) ⇒ Struct
Creates 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 Formation permissions:
CREATE_LF_TAG_EXPRESSION on the root catalog resource.
GRANT_WITH_LF_TAG_EXPRESSION on all underlying LF-Tag key:value
pairs included in the expression.
1522 1523 1524 1525 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 1522 def create_lf_tag_expression(params = {}, = {}) req = build_request(:create_lf_tag_expression, params) req.send_request() end |
#create_rls_policy(params = {}) ⇒ Struct
Creates a row-level security (RLS) policy. A row-level security policy
defines a filter expression that Lake Formation evaluates to determine
which rows of a table a principal is allowed to see. The policy is
created independently of any resource, and is later associated with a
resource and principal using AttachRLSPolicy.
1752 1753 1754 1755 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 1752 def create_rls_policy(params = {}, = {}) req = build_request(:create_rls_policy, params) req.send_request() end |
#delete_data_cells_filter(params = {}) ⇒ Struct
Deletes a data cell filter.
1786 1787 1788 1789 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 1786 def delete_data_cells_filter(params = {}, = {}) req = build_request(:delete_data_cells_filter, params) req.send_request() end |
#delete_lake_formation_identity_center_configuration(params = {}) ⇒ Struct
Deletes an IAM Identity Center connection with Lake Formation.
1876 1877 1878 1879 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 1876 def delete_lake_formation_identity_center_configuration(params = {}, = {}) req = build_request(:delete_lake_formation_identity_center_configuration, params) req.send_request() end |
#delete_lake_formation_opt_in(params = {}) ⇒ Struct
Remove the Lake Formation permissions enforcement of the given databases, tables, and principals.
1982 1983 1984 1985 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 1982 def delete_lake_formation_opt_in(params = {}, = {}) req = build_request(:delete_lake_formation_opt_in, params) req.send_request() end |
#delete_lf_tag(params = {}) ⇒ Struct
Deletes 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.
1821 1822 1823 1824 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 1821 def delete_lf_tag(params = {}, = {}) req = build_request(:delete_lf_tag, params) req.send_request() end |
#delete_lf_tag_expression(params = {}) ⇒ Struct
Deletes 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.
1851 1852 1853 1854 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 1851 def delete_lf_tag_expression(params = {}, = {}) req = build_request(:delete_lf_tag_expression, params) req.send_request() end |
#delete_objects_on_cancel(params = {}) ⇒ Struct
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.
2040 2041 2042 2043 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2040 def delete_objects_on_cancel(params = {}, = {}) req = build_request(:delete_objects_on_cancel, params) req.send_request() end |
#delete_rls_policy(params = {}) ⇒ Struct
Deletes a row-level security policy. Any active attachments of the policy are automatically removed as part of the deletion, so you do not need to detach the policy first.
2064 2065 2066 2067 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2064 def delete_rls_policy(params = {}, = {}) req = build_request(:delete_rls_policy, params) req.send_request() end |
#deregister_resource(params = {}) ⇒ Struct
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.
2090 2091 2092 2093 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2090 def deregister_resource(params = {}, = {}) req = build_request(:deregister_resource, params) req.send_request() end |
#describe_lake_formation_identity_center_configuration(params = {}) ⇒ Types::DescribeLakeFormationIdentityCenterConfigurationResponse
Retrieves the instance ARN and application ARN for the connection.
2138 2139 2140 2141 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2138 def describe_lake_formation_identity_center_configuration(params = {}, = {}) req = build_request(:describe_lake_formation_identity_center_configuration, params) req.send_request() end |
#describe_resource(params = {}) ⇒ Types::DescribeResourceResponse
Retrieves the current data access role for the given resource registered in Lake Formation.
2174 2175 2176 2177 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2174 def describe_resource(params = {}, = {}) req = build_request(:describe_resource, params) req.send_request() end |
#describe_transaction(params = {}) ⇒ Types::DescribeTransactionResponse
Returns the details of a single transaction.
2205 2206 2207 2208 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2205 def describe_transaction(params = {}, = {}) req = build_request(:describe_transaction, params) req.send_request() end |
#detach_rls_policy(params = {}) ⇒ Struct
Detaches a row-level security policy from a resource for a principal. After the policy is detached, its filter expression is no longer applied to the principal's queries on that resource.
2320 2321 2322 2323 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2320 def detach_rls_policy(params = {}, = {}) req = build_request(:detach_rls_policy, params) req.send_request() end |
#extend_transaction(params = {}) ⇒ Struct
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.
2346 2347 2348 2349 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2346 def extend_transaction(params = {}, = {}) req = build_request(:extend_transaction, params) req.send_request() end |
#get_data_cells_filter(params = {}) ⇒ Types::GetDataCellsFilterResponse
Returns a data cells filter.
2395 2396 2397 2398 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2395 def get_data_cells_filter(params = {}, = {}) req = build_request(:get_data_cells_filter, params) req.send_request() end |
#get_data_lake_principal(params = {}) ⇒ Types::GetDataLakePrincipalResponse
Returns the identity of the invoking principal.
2414 2415 2416 2417 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2414 def get_data_lake_principal(params = {}, = {}) req = build_request(:get_data_lake_principal, params) req.send_request() end |
#get_data_lake_settings(params = {}) ⇒ Types::GetDataLakeSettingsResponse
Retrieves the list of the data lake administrators of a Lake Formation-managed data lake.
2470 2471 2472 2473 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2470 def get_data_lake_settings(params = {}, = {}) req = build_request(:get_data_lake_settings, params) req.send_request() end |
#get_effective_permissions_for_path(params = {}) ⇒ Types::GetEffectivePermissionsForPathResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2571 2572 2573 2574 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2571 def (params = {}, = {}) req = build_request(:get_effective_permissions_for_path, params) req.send_request() end |
#get_glue_function_session_context(params = {}) ⇒ Types::GetGlueFunctionSessionContextResponse
Returns a session context for one or more user-defined functions that
an integrated analytics engine runs together in a job. You must have
the EXECUTE permission on every function in the list.
While the session context is in use, if you don't have full SELECT
permission on a table, the job can read the table only if every
function in the session has the SELECT permission on it. Lake
Formation enforces this check.
To use this operation, you must have the lakeformation:GetDataAccess
permission.
2619 2620 2621 2622 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2619 def get_glue_function_session_context(params = {}, = {}) req = build_request(:get_glue_function_session_context, params) req.send_request() end |
#get_lf_tag(params = {}) ⇒ Types::GetLFTagResponse
Returns an LF-tag definition.
2659 2660 2661 2662 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2659 def get_lf_tag(params = {}, = {}) req = build_request(:get_lf_tag, params) req.send_request() end |
#get_lf_tag_expression(params = {}) ⇒ Types::GetLFTagExpressionResponse
Returns 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.
2702 2703 2704 2705 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2702 def get_lf_tag_expression(params = {}, = {}) req = build_request(:get_lf_tag_expression, params) req.send_request() end |
#get_query_state(params = {}) ⇒ Types::GetQueryStateResponse
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.
2736 2737 2738 2739 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2736 def get_query_state(params = {}, = {}) req = build_request(:get_query_state, params) req.send_request() end |
#get_query_statistics(params = {}) ⇒ Types::GetQueryStatisticsResponse
Retrieves statistics on the planning and execution of a query.
2773 2774 2775 2776 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2773 def get_query_statistics(params = {}, = {}) req = build_request(:get_query_statistics, params) req.send_request() end |
#get_resource_lf_tags(params = {}) ⇒ Types::GetResourceLFTagsResponse
Returns the LF-tags applied to a resource.
2936 2937 2938 2939 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2936 def (params = {}, = {}) req = build_request(:get_resource_lf_tags, params) req.send_request() end |
#get_rls_policy(params = {}) ⇒ Types::GetRLSPolicyResponse
Returns the definition of a row-level security policy, including its attachment columns and filter expression.
2809 2810 2811 2812 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 2809 def get_rls_policy(params = {}, = {}) req = build_request(:get_rls_policy, params) req.send_request() end |
#get_table_objects(params = {}) ⇒ Types::GetTableObjectsResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3020 3021 3022 3023 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 3020 def get_table_objects(params = {}, = {}) req = build_request(:get_table_objects, params) req.send_request() end |
#get_temporary_data_location_credentials(params = {}) ⇒ Types::GetTemporaryDataLocationCredentialsResponse
Allows 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.
GetDataAccess is logged in CloudTrail whenever a principal requests
temporary data location credentials to access data in a data lake
location that is registered with Lake Formation.
The API operation returns an error in the following scenarios:
The data location is not registered with Lake Formation.
No Glue table is associated with the data location.
The caller doesn't have required permissions on the associated table. The caller must have
SELECTorSUPERpermissions on the associated table, and credential vending for full table access must be enabled in the data lake settings.For more information, see Application integration for full table access.
The data location is in a different Amazon Web Services Region. Lake Formation doesn't support cross-Region access when vending credentials for a data location. Lake Formation only supports Amazon S3 paths registered within the same Region as the API call.
3108 3109 3110 3111 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 3108 def get_temporary_data_location_credentials(params = {}, = {}) req = build_request(:get_temporary_data_location_credentials, params) req.send_request() end |
#get_temporary_glue_function_credentials(params = {}) ⇒ Types::GetTemporaryGlueFunctionCredentialsResponse
Returns temporary credentials that you can use to download the
artifacts of a user-defined function whose GovernanceMode is
LAKE_FORMATION. Lake Formation assumes the role that you registered
for the function's ArtifactLocation. The credentials have read-only
access to that location in Amazon S3.
To use this operation, you must have the EXECUTE permission on the
function.
3159 3160 3161 3162 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 3159 def get_temporary_glue_function_credentials(params = {}, = {}) req = build_request(:get_temporary_glue_function_credentials, params) req.send_request() end |
#get_temporary_glue_partition_credentials(params = {}) ⇒ Types::GetTemporaryGluePartitionCredentialsResponse
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.
3225 3226 3227 3228 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 3225 def get_temporary_glue_partition_credentials(params = {}, = {}) req = build_request(:get_temporary_glue_partition_credentials, params) req.send_request() end |
#get_temporary_glue_table_credentials(params = {}) ⇒ Types::GetTemporaryGlueTableCredentialsResponse
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.
To call this API, the role that the service assumes must have
lakeformation:GetDataAccess permission on the resource.
3311 3312 3313 3314 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 3311 def get_temporary_glue_table_credentials(params = {}, = {}) req = build_request(:get_temporary_glue_table_credentials, params) req.send_request() end |
#get_work_unit_results(params = {}) ⇒ Types::GetWorkUnitResultsResponse
Returns the work units resulting from the query. Work units can be executed in any order and in parallel.
3351 3352 3353 3354 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 3351 def get_work_unit_results(params = {}, = {}, &block) req = build_request(:get_work_unit_results, params) req.send_request(, &block) end |
#get_work_units(params = {}) ⇒ Types::GetWorkUnitsResponse
Retrieves the work units generated by the StartQueryPlanning
operation.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3402 3403 3404 3405 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 3402 def get_work_units(params = {}, = {}) req = build_request(:get_work_units, params) req.send_request() end |
#grant_permissions(params = {}) ⇒ Struct
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.
3543 3544 3545 3546 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 3543 def (params = {}, = {}) req = build_request(:grant_permissions, params) req.send_request() end |
#list_data_cells_filter(params = {}) ⇒ Types::ListDataCellsFilterResponse
Lists all the data cell filters on a table.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3599 3600 3601 3602 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 3599 def list_data_cells_filter(params = {}, = {}) req = build_request(:list_data_cells_filter, params) req.send_request() end |
#list_lake_formation_opt_ins(params = {}) ⇒ Types::ListLakeFormationOptInsResponse
Retrieve the current list of resources and principals that are opt in to enforce Lake Formation permissions.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3867 3868 3869 3870 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 3867 def list_lake_formation_opt_ins(params = {}, = {}) req = build_request(:list_lake_formation_opt_ins, params) req.send_request() end |
#list_lf_tag_expressions(params = {}) ⇒ Types::ListLFTagExpressionsResponse
Returns 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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3650 3651 3652 3653 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 3650 def list_lf_tag_expressions(params = {}, = {}) req = build_request(:list_lf_tag_expressions, params) req.send_request() end |
#list_lf_tags(params = {}) ⇒ Types::ListLFTagsResponse
Lists LF-tags that the requester has permission to view.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3706 3707 3708 3709 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 3706 def (params = {}, = {}) req = build_request(:list_lf_tags, params) req.send_request() end |
#list_permissions(params = {}) ⇒ Types::ListPermissionsResponse
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. If both Principal and Resource parameters are
provided, the response returns effective permissions rather than the
explicitly granted permissions.
For information about permissions, see Security and Access Control to Metadata and Data.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4071 4072 4073 4074 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 4071 def (params = {}, = {}) req = build_request(:list_permissions, params) req.send_request() end |
#list_resources(params = {}) ⇒ Types::ListResourcesResponse
Lists the resources registered to be managed by the Data Catalog.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4337 4338 4339 4340 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 4337 def list_resources(params = {}, = {}) req = build_request(:list_resources, params) req.send_request() end |
#list_rls_policies(params = {}) ⇒ Types::ListRLSPoliciesResponse
Lists the row-level security policies in the Data Catalog.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4116 4117 4118 4119 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 4116 def list_rls_policies(params = {}, = {}) req = build_request(:list_rls_policies, params) req.send_request() end |
#list_rls_policy_attachments(params = {}) ⇒ Types::ListRLSPolicyAttachmentsResponse
Lists the row-level security policy attachments in the Data Catalog. You can filter the results by resource, principal, or policy name.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4281 4282 4283 4284 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 4281 def (params = {}, = {}) req = build_request(:list_rls_policy_attachments, params) req.send_request() end |
#list_table_storage_optimizers(params = {}) ⇒ Types::ListTableStorageOptimizersResponse
Returns the configuration of all storage optimizers associated with a specified table.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4397 4398 4399 4400 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 4397 def list_table_storage_optimizers(params = {}, = {}) req = build_request(:list_table_storage_optimizers, params) req.send_request() end |
#list_transactions(params = {}) ⇒ Types::ListTransactionsResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4454 4455 4456 4457 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 4454 def list_transactions(params = {}, = {}) req = build_request(:list_transactions, params) req.send_request() end |
#put_data_lake_settings(params = {}) ⇒ Struct
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.
4541 4542 4543 4544 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 4541 def put_data_lake_settings(params = {}, = {}) req = build_request(:put_data_lake_settings, params) req.send_request() end |
#register_resource(params = {}) ⇒ Struct
Registers 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 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
4622 4623 4624 4625 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 4622 def register_resource(params = {}, = {}) req = build_request(:register_resource, params) req.send_request() end |
#remove_lf_tags_from_resource(params = {}) ⇒ Types::RemoveLFTagsFromResourceResponse
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.
4745 4746 4747 4748 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 4745 def (params = {}, = {}) req = build_request(:remove_lf_tags_from_resource, params) req.send_request() end |
#revoke_permissions(params = {}) ⇒ Struct
Revokes permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3.
4873 4874 4875 4876 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 4873 def (params = {}, = {}) req = build_request(:revoke_permissions, params) req.send_request() end |
#search_databases_by_lf_tags(params = {}) ⇒ Types::SearchDatabasesByLFTagsResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4939 4940 4941 4942 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 4939 def (params = {}, = {}) req = build_request(:search_databases_by_lf_tags, params) req.send_request() end |
#search_tables_by_lf_tags(params = {}) ⇒ Types::SearchTablesByLFTagsResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5017 5018 5019 5020 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 5017 def (params = {}, = {}) req = build_request(:search_tables_by_lf_tags, params) req.send_request() end |
#start_query_planning(params = {}) ⇒ Types::StartQueryPlanningResponse
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.
5061 5062 5063 5064 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 5061 def start_query_planning(params = {}, = {}) req = build_request(:start_query_planning, params) req.send_request() end |
#start_transaction(params = {}) ⇒ Types::StartTransactionResponse
Starts a new transaction and returns its transaction ID. Transaction IDs are opaque objects that you can use to identify a transaction.
5092 5093 5094 5095 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 5092 def start_transaction(params = {}, = {}) req = build_request(:start_transaction, params) req.send_request() end |
#update_data_cells_filter(params = {}) ⇒ Struct
Updates a data cell filter.
5130 5131 5132 5133 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 5130 def update_data_cells_filter(params = {}, = {}) req = build_request(:update_data_cells_filter, params) req.send_request() end |
#update_lake_formation_identity_center_configuration(params = {}) ⇒ Struct
Updates the IAM Identity Center connection parameters.
5290 5291 5292 5293 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 5290 def update_lake_formation_identity_center_configuration(params = {}, = {}) req = build_request(:update_lake_formation_identity_center_configuration, params) req.send_request() end |
#update_lf_tag(params = {}) ⇒ Struct
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.
5173 5174 5175 5176 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 5173 def update_lf_tag(params = {}, = {}) req = build_request(:update_lf_tag, params) req.send_request() end |
#update_lf_tag_expression(params = {}) ⇒ Struct
Updates 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.
5216 5217 5218 5219 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 5216 def update_lf_tag_expression(params = {}, = {}) req = build_request(:update_lf_tag_expression, params) req.send_request() end |
#update_resource(params = {}) ⇒ Struct
Updates the data access role used for vending access to the given (registered) resource in Lake Formation.
5361 5362 5363 5364 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 5361 def update_resource(params = {}, = {}) req = build_request(:update_resource, params) req.send_request() end |
#update_rls_policy(params = {}) ⇒ Struct
Updates the filter expression of an existing row-level security policy. The change applies to all attachments of the policy.
5318 5319 5320 5321 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 5318 def update_rls_policy(params = {}, = {}) req = build_request(:update_rls_policy, params) req.send_request() end |
#update_table_objects(params = {}) ⇒ Struct
Updates the manifest of Amazon S3 objects that make up the specified governed table.
5416 5417 5418 5419 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 5416 def update_table_objects(params = {}, = {}) req = build_request(:update_table_objects, params) req.send_request() end |
#update_table_storage_optimizer(params = {}) ⇒ Types::UpdateTableStorageOptimizerResponse
Updates the configuration of the storage optimizers for a table.
5460 5461 5462 5463 |
# File 'gems/aws-sdk-lakeformation/lib/aws-sdk-lakeformation/client.rb', line 5460 def update_table_storage_optimizer(params = {}, = {}) req = build_request(:update_table_storage_optimizer, params) req.send_request() end |