@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSLakeFormationAsyncClient extends AWSLakeFormationClient implements AWSLakeFormationAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
Defines the public endpoint for the AWS Lake Formation service.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
batchGrantPermissions, batchRevokePermissions, builder, deregisterResource, describeResource, getCachedResponseMetadata, getDataLakeSettings, getEffectivePermissionsForPath, grantPermissions, listPermissions, listResources, putDataLakeSettings, registerResource, revokePermissions, updateResource
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
batchGrantPermissions, batchRevokePermissions, deregisterResource, describeResource, getCachedResponseMetadata, getDataLakeSettings, getEffectivePermissionsForPath, grantPermissions, listPermissions, listResources, putDataLakeSettings, registerResource, revokePermissions, updateResource
public static AWSLakeFormationAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<BatchGrantPermissionsResult> batchGrantPermissionsAsync(BatchGrantPermissionsRequest request)
AWSLakeFormationAsync
Batch operation to grant permissions to the principal.
batchGrantPermissionsAsync
in interface AWSLakeFormationAsync
public Future<BatchGrantPermissionsResult> batchGrantPermissionsAsync(BatchGrantPermissionsRequest request, AsyncHandler<BatchGrantPermissionsRequest,BatchGrantPermissionsResult> asyncHandler)
AWSLakeFormationAsync
Batch operation to grant permissions to the principal.
batchGrantPermissionsAsync
in interface AWSLakeFormationAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<BatchRevokePermissionsResult> batchRevokePermissionsAsync(BatchRevokePermissionsRequest request)
AWSLakeFormationAsync
Batch operation to revoke permissions from the principal.
batchRevokePermissionsAsync
in interface AWSLakeFormationAsync
public Future<BatchRevokePermissionsResult> batchRevokePermissionsAsync(BatchRevokePermissionsRequest request, AsyncHandler<BatchRevokePermissionsRequest,BatchRevokePermissionsResult> asyncHandler)
AWSLakeFormationAsync
Batch operation to revoke permissions from the principal.
batchRevokePermissionsAsync
in interface AWSLakeFormationAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeregisterResourceResult> deregisterResourceAsync(DeregisterResourceRequest request)
AWSLakeFormationAsync
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.
deregisterResourceAsync
in interface AWSLakeFormationAsync
public Future<DeregisterResourceResult> deregisterResourceAsync(DeregisterResourceRequest request, AsyncHandler<DeregisterResourceRequest,DeregisterResourceResult> asyncHandler)
AWSLakeFormationAsync
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.
deregisterResourceAsync
in interface AWSLakeFormationAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeResourceResult> describeResourceAsync(DescribeResourceRequest request)
AWSLakeFormationAsync
Retrieves the current data access role for the given resource registered in AWS Lake Formation.
describeResourceAsync
in interface AWSLakeFormationAsync
public Future<DescribeResourceResult> describeResourceAsync(DescribeResourceRequest request, AsyncHandler<DescribeResourceRequest,DescribeResourceResult> asyncHandler)
AWSLakeFormationAsync
Retrieves the current data access role for the given resource registered in AWS Lake Formation.
describeResourceAsync
in interface AWSLakeFormationAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetDataLakeSettingsResult> getDataLakeSettingsAsync(GetDataLakeSettingsRequest request)
AWSLakeFormationAsync
The AWS Lake Formation principal.
getDataLakeSettingsAsync
in interface AWSLakeFormationAsync
public Future<GetDataLakeSettingsResult> getDataLakeSettingsAsync(GetDataLakeSettingsRequest request, AsyncHandler<GetDataLakeSettingsRequest,GetDataLakeSettingsResult> asyncHandler)
AWSLakeFormationAsync
The AWS Lake Formation principal.
getDataLakeSettingsAsync
in interface AWSLakeFormationAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetEffectivePermissionsForPathResult> getEffectivePermissionsForPathAsync(GetEffectivePermissionsForPathRequest request)
AWSLakeFormationAsync
Returns the permissions for a specified table or database resource located at a path in Amazon S3.
getEffectivePermissionsForPathAsync
in interface AWSLakeFormationAsync
public Future<GetEffectivePermissionsForPathResult> getEffectivePermissionsForPathAsync(GetEffectivePermissionsForPathRequest request, AsyncHandler<GetEffectivePermissionsForPathRequest,GetEffectivePermissionsForPathResult> asyncHandler)
AWSLakeFormationAsync
Returns the permissions for a specified table or database resource located at a path in Amazon S3.
getEffectivePermissionsForPathAsync
in interface AWSLakeFormationAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GrantPermissionsResult> grantPermissionsAsync(GrantPermissionsRequest request)
AWSLakeFormationAsync
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.
grantPermissionsAsync
in interface AWSLakeFormationAsync
public Future<GrantPermissionsResult> grantPermissionsAsync(GrantPermissionsRequest request, AsyncHandler<GrantPermissionsRequest,GrantPermissionsResult> asyncHandler)
AWSLakeFormationAsync
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.
grantPermissionsAsync
in interface AWSLakeFormationAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListPermissionsResult> listPermissionsAsync(ListPermissionsRequest request)
AWSLakeFormationAsync
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.
listPermissionsAsync
in interface AWSLakeFormationAsync
public Future<ListPermissionsResult> listPermissionsAsync(ListPermissionsRequest request, AsyncHandler<ListPermissionsRequest,ListPermissionsResult> asyncHandler)
AWSLakeFormationAsync
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.
listPermissionsAsync
in interface AWSLakeFormationAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListResourcesResult> listResourcesAsync(ListResourcesRequest request)
AWSLakeFormationAsync
Lists the resources registered to be managed by the Data Catalog.
listResourcesAsync
in interface AWSLakeFormationAsync
public Future<ListResourcesResult> listResourcesAsync(ListResourcesRequest request, AsyncHandler<ListResourcesRequest,ListResourcesResult> asyncHandler)
AWSLakeFormationAsync
Lists the resources registered to be managed by the Data Catalog.
listResourcesAsync
in interface AWSLakeFormationAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<PutDataLakeSettingsResult> putDataLakeSettingsAsync(PutDataLakeSettingsRequest request)
AWSLakeFormationAsync
The AWS Lake Formation principal.
putDataLakeSettingsAsync
in interface AWSLakeFormationAsync
public Future<PutDataLakeSettingsResult> putDataLakeSettingsAsync(PutDataLakeSettingsRequest request, AsyncHandler<PutDataLakeSettingsRequest,PutDataLakeSettingsResult> asyncHandler)
AWSLakeFormationAsync
The AWS Lake Formation principal.
putDataLakeSettingsAsync
in interface AWSLakeFormationAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<RegisterResourceResult> registerResourceAsync(RegisterResourceRequest request)
AWSLakeFormationAsync
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.
registerResourceAsync
in interface AWSLakeFormationAsync
public Future<RegisterResourceResult> registerResourceAsync(RegisterResourceRequest request, AsyncHandler<RegisterResourceRequest,RegisterResourceResult> asyncHandler)
AWSLakeFormationAsync
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.
registerResourceAsync
in interface AWSLakeFormationAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<RevokePermissionsResult> revokePermissionsAsync(RevokePermissionsRequest request)
AWSLakeFormationAsync
Revokes permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3.
revokePermissionsAsync
in interface AWSLakeFormationAsync
public Future<RevokePermissionsResult> revokePermissionsAsync(RevokePermissionsRequest request, AsyncHandler<RevokePermissionsRequest,RevokePermissionsResult> asyncHandler)
AWSLakeFormationAsync
Revokes permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3.
revokePermissionsAsync
in interface AWSLakeFormationAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateResourceResult> updateResourceAsync(UpdateResourceRequest request)
AWSLakeFormationAsync
Updates the data access role used for vending access to the given (registered) resource in AWS Lake Formation.
updateResourceAsync
in interface AWSLakeFormationAsync
public Future<UpdateResourceResult> updateResourceAsync(UpdateResourceRequest request, AsyncHandler<UpdateResourceRequest,UpdateResourceResult> asyncHandler)
AWSLakeFormationAsync
Updates the data access role used for vending access to the given (registered) resource in AWS Lake Formation.
updateResourceAsync
in interface AWSLakeFormationAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AWSLakeFormation
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.