@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAmazonKeyspacesAsync extends AbstractAmazonKeyspaces implements AmazonKeyspacesAsync
AmazonKeyspacesAsync
. Convenient method forms pass through to the corresponding
overload that takes a request object and an AsyncHandler
, which throws an
UnsupportedOperationException
.ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
Future<CreateKeyspaceResult> |
createKeyspaceAsync(CreateKeyspaceRequest request)
The
CreateKeyspace operation adds a new keyspace to your account. |
Future<CreateKeyspaceResult> |
createKeyspaceAsync(CreateKeyspaceRequest request,
AsyncHandler<CreateKeyspaceRequest,CreateKeyspaceResult> asyncHandler)
The
CreateKeyspace operation adds a new keyspace to your account. |
Future<CreateTableResult> |
createTableAsync(CreateTableRequest request)
The
CreateTable operation adds a new table to the specified keyspace. |
Future<CreateTableResult> |
createTableAsync(CreateTableRequest request,
AsyncHandler<CreateTableRequest,CreateTableResult> asyncHandler)
The
CreateTable operation adds a new table to the specified keyspace. |
Future<DeleteKeyspaceResult> |
deleteKeyspaceAsync(DeleteKeyspaceRequest request)
The
DeleteKeyspace operation deletes a keyspace and all of its tables. |
Future<DeleteKeyspaceResult> |
deleteKeyspaceAsync(DeleteKeyspaceRequest request,
AsyncHandler<DeleteKeyspaceRequest,DeleteKeyspaceResult> asyncHandler)
The
DeleteKeyspace operation deletes a keyspace and all of its tables. |
Future<DeleteTableResult> |
deleteTableAsync(DeleteTableRequest request)
The
DeleteTable operation deletes a table and all of its data. |
Future<DeleteTableResult> |
deleteTableAsync(DeleteTableRequest request,
AsyncHandler<DeleteTableRequest,DeleteTableResult> asyncHandler)
The
DeleteTable operation deletes a table and all of its data. |
Future<GetKeyspaceResult> |
getKeyspaceAsync(GetKeyspaceRequest request)
Returns the name and the Amazon Resource Name (ARN) of the specified table.
|
Future<GetKeyspaceResult> |
getKeyspaceAsync(GetKeyspaceRequest request,
AsyncHandler<GetKeyspaceRequest,GetKeyspaceResult> asyncHandler)
Returns the name and the Amazon Resource Name (ARN) of the specified table.
|
Future<GetTableResult> |
getTableAsync(GetTableRequest request)
Returns information about the table, including the table's name and current status, the keyspace name,
configuration settings, and metadata.
|
Future<GetTableResult> |
getTableAsync(GetTableRequest request,
AsyncHandler<GetTableRequest,GetTableResult> asyncHandler)
Returns information about the table, including the table's name and current status, the keyspace name,
configuration settings, and metadata.
|
Future<GetTableAutoScalingSettingsResult> |
getTableAutoScalingSettingsAsync(GetTableAutoScalingSettingsRequest request)
Returns auto scaling related settings of the specified table in JSON format.
|
Future<GetTableAutoScalingSettingsResult> |
getTableAutoScalingSettingsAsync(GetTableAutoScalingSettingsRequest request,
AsyncHandler<GetTableAutoScalingSettingsRequest,GetTableAutoScalingSettingsResult> asyncHandler)
Returns auto scaling related settings of the specified table in JSON format.
|
Future<ListKeyspacesResult> |
listKeyspacesAsync(ListKeyspacesRequest request)
Returns a list of keyspaces.
|
Future<ListKeyspacesResult> |
listKeyspacesAsync(ListKeyspacesRequest request,
AsyncHandler<ListKeyspacesRequest,ListKeyspacesResult> asyncHandler)
Returns a list of keyspaces.
|
Future<ListTablesResult> |
listTablesAsync(ListTablesRequest request)
Returns a list of tables for a specified keyspace.
|
Future<ListTablesResult> |
listTablesAsync(ListTablesRequest request,
AsyncHandler<ListTablesRequest,ListTablesResult> asyncHandler)
Returns a list of tables for a specified keyspace.
|
Future<ListTagsForResourceResult> |
listTagsForResourceAsync(ListTagsForResourceRequest request)
Returns a list of all tags associated with the specified Amazon Keyspaces resource.
|
Future<ListTagsForResourceResult> |
listTagsForResourceAsync(ListTagsForResourceRequest request,
AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
Returns a list of all tags associated with the specified Amazon Keyspaces resource.
|
Future<RestoreTableResult> |
restoreTableAsync(RestoreTableRequest request)
Restores the table to the specified point in time within the
earliest_restorable_timestamp and the
current time. |
Future<RestoreTableResult> |
restoreTableAsync(RestoreTableRequest request,
AsyncHandler<RestoreTableRequest,RestoreTableResult> asyncHandler)
Restores the table to the specified point in time within the
earliest_restorable_timestamp and the
current time. |
Future<TagResourceResult> |
tagResourceAsync(TagResourceRequest request)
Associates a set of tags with a Amazon Keyspaces resource.
|
Future<TagResourceResult> |
tagResourceAsync(TagResourceRequest request,
AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
Associates a set of tags with a Amazon Keyspaces resource.
|
Future<UntagResourceResult> |
untagResourceAsync(UntagResourceRequest request)
Removes the association of tags from a Amazon Keyspaces resource.
|
Future<UntagResourceResult> |
untagResourceAsync(UntagResourceRequest request,
AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
Removes the association of tags from a Amazon Keyspaces resource.
|
Future<UpdateTableResult> |
updateTableAsync(UpdateTableRequest request)
Adds new columns to the table or updates one of the table's settings, for example capacity mode, auto scaling,
encryption, point-in-time recovery, or ttl settings.
|
Future<UpdateTableResult> |
updateTableAsync(UpdateTableRequest request,
AsyncHandler<UpdateTableRequest,UpdateTableResult> asyncHandler)
Adds new columns to the table or updates one of the table's settings, for example capacity mode, auto scaling,
encryption, point-in-time recovery, or ttl settings.
|
createKeyspace, createTable, deleteKeyspace, deleteTable, getCachedResponseMetadata, getKeyspace, getTable, getTableAutoScalingSettings, listKeyspaces, listTables, listTagsForResource, restoreTable, shutdown, tagResource, untagResource, updateTable
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createKeyspace, createTable, deleteKeyspace, deleteTable, getCachedResponseMetadata, getKeyspace, getTable, getTableAutoScalingSettings, listKeyspaces, listTables, listTagsForResource, restoreTable, shutdown, tagResource, untagResource, updateTable
public Future<CreateKeyspaceResult> createKeyspaceAsync(CreateKeyspaceRequest request)
AmazonKeyspacesAsync
The CreateKeyspace
operation adds a new keyspace to your account. In an Amazon Web Services account,
keyspace names must be unique within each Region.
CreateKeyspace
is an asynchronous operation. You can monitor the creation status of the new keyspace
by using the GetKeyspace
operation.
For more information, see Creating keyspaces in the Amazon Keyspaces Developer Guide.
createKeyspaceAsync
in interface AmazonKeyspacesAsync
public Future<CreateKeyspaceResult> createKeyspaceAsync(CreateKeyspaceRequest request, AsyncHandler<CreateKeyspaceRequest,CreateKeyspaceResult> asyncHandler)
AmazonKeyspacesAsync
The CreateKeyspace
operation adds a new keyspace to your account. In an Amazon Web Services account,
keyspace names must be unique within each Region.
CreateKeyspace
is an asynchronous operation. You can monitor the creation status of the new keyspace
by using the GetKeyspace
operation.
For more information, see Creating keyspaces in the Amazon Keyspaces Developer Guide.
createKeyspaceAsync
in interface AmazonKeyspacesAsync
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<CreateTableResult> createTableAsync(CreateTableRequest request)
AmazonKeyspacesAsync
The CreateTable
operation adds a new table to the specified keyspace. Within a keyspace, table names
must be unique.
CreateTable
is an asynchronous operation. When the request is received, the status of the table is
set to CREATING
. You can monitor the creation status of the new table by using the
GetTable
operation, which returns the current status
of the table. You can start using
a table when the status is ACTIVE
.
For more information, see Creating tables in the Amazon Keyspaces Developer Guide.
createTableAsync
in interface AmazonKeyspacesAsync
public Future<CreateTableResult> createTableAsync(CreateTableRequest request, AsyncHandler<CreateTableRequest,CreateTableResult> asyncHandler)
AmazonKeyspacesAsync
The CreateTable
operation adds a new table to the specified keyspace. Within a keyspace, table names
must be unique.
CreateTable
is an asynchronous operation. When the request is received, the status of the table is
set to CREATING
. You can monitor the creation status of the new table by using the
GetTable
operation, which returns the current status
of the table. You can start using
a table when the status is ACTIVE
.
For more information, see Creating tables in the Amazon Keyspaces Developer Guide.
createTableAsync
in interface AmazonKeyspacesAsync
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<DeleteKeyspaceResult> deleteKeyspaceAsync(DeleteKeyspaceRequest request)
AmazonKeyspacesAsync
The DeleteKeyspace
operation deletes a keyspace and all of its tables.
deleteKeyspaceAsync
in interface AmazonKeyspacesAsync
public Future<DeleteKeyspaceResult> deleteKeyspaceAsync(DeleteKeyspaceRequest request, AsyncHandler<DeleteKeyspaceRequest,DeleteKeyspaceResult> asyncHandler)
AmazonKeyspacesAsync
The DeleteKeyspace
operation deletes a keyspace and all of its tables.
deleteKeyspaceAsync
in interface AmazonKeyspacesAsync
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<DeleteTableResult> deleteTableAsync(DeleteTableRequest request)
AmazonKeyspacesAsync
The DeleteTable
operation deletes a table and all of its data. After a DeleteTable
request is received, the specified table is in the DELETING
state until Amazon Keyspaces completes
the deletion. If the table is in the ACTIVE
state, you can delete it. If a table is either in the
CREATING
or UPDATING
states, then Amazon Keyspaces returns a
ResourceInUseException
. If the specified table does not exist, Amazon Keyspaces returns a
ResourceNotFoundException
. If the table is already in the DELETING
state, no error is
returned.
deleteTableAsync
in interface AmazonKeyspacesAsync
public Future<DeleteTableResult> deleteTableAsync(DeleteTableRequest request, AsyncHandler<DeleteTableRequest,DeleteTableResult> asyncHandler)
AmazonKeyspacesAsync
The DeleteTable
operation deletes a table and all of its data. After a DeleteTable
request is received, the specified table is in the DELETING
state until Amazon Keyspaces completes
the deletion. If the table is in the ACTIVE
state, you can delete it. If a table is either in the
CREATING
or UPDATING
states, then Amazon Keyspaces returns a
ResourceInUseException
. If the specified table does not exist, Amazon Keyspaces returns a
ResourceNotFoundException
. If the table is already in the DELETING
state, no error is
returned.
deleteTableAsync
in interface AmazonKeyspacesAsync
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<GetKeyspaceResult> getKeyspaceAsync(GetKeyspaceRequest request)
AmazonKeyspacesAsync
Returns the name and the Amazon Resource Name (ARN) of the specified table.
getKeyspaceAsync
in interface AmazonKeyspacesAsync
public Future<GetKeyspaceResult> getKeyspaceAsync(GetKeyspaceRequest request, AsyncHandler<GetKeyspaceRequest,GetKeyspaceResult> asyncHandler)
AmazonKeyspacesAsync
Returns the name and the Amazon Resource Name (ARN) of the specified table.
getKeyspaceAsync
in interface AmazonKeyspacesAsync
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<GetTableResult> getTableAsync(GetTableRequest request)
AmazonKeyspacesAsync
Returns information about the table, including the table's name and current status, the keyspace name, configuration settings, and metadata.
To read table metadata using GetTable
, Select
action permissions for the table and
system tables are required to complete the operation.
getTableAsync
in interface AmazonKeyspacesAsync
public Future<GetTableResult> getTableAsync(GetTableRequest request, AsyncHandler<GetTableRequest,GetTableResult> asyncHandler)
AmazonKeyspacesAsync
Returns information about the table, including the table's name and current status, the keyspace name, configuration settings, and metadata.
To read table metadata using GetTable
, Select
action permissions for the table and
system tables are required to complete the operation.
getTableAsync
in interface AmazonKeyspacesAsync
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<GetTableAutoScalingSettingsResult> getTableAutoScalingSettingsAsync(GetTableAutoScalingSettingsRequest request)
AmazonKeyspacesAsync
Returns auto scaling related settings of the specified table in JSON format. If the table is a multi-Region table, the Amazon Web Services Region specific auto scaling settings of the table are included.
Amazon Keyspaces auto scaling helps you provision throughput capacity for variable workloads efficiently by increasing and decreasing your table's read and write capacity automatically in response to application traffic. For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide.
GetTableAutoScalingSettings
can't be used as an action in an IAM policy.
To define permissions for GetTableAutoScalingSettings
, you must allow the following two actions in
the IAM policy statement's Action
element:
application-autoscaling:DescribeScalableTargets
application-autoscaling:DescribeScalingPolicies
getTableAutoScalingSettingsAsync
in interface AmazonKeyspacesAsync
public Future<GetTableAutoScalingSettingsResult> getTableAutoScalingSettingsAsync(GetTableAutoScalingSettingsRequest request, AsyncHandler<GetTableAutoScalingSettingsRequest,GetTableAutoScalingSettingsResult> asyncHandler)
AmazonKeyspacesAsync
Returns auto scaling related settings of the specified table in JSON format. If the table is a multi-Region table, the Amazon Web Services Region specific auto scaling settings of the table are included.
Amazon Keyspaces auto scaling helps you provision throughput capacity for variable workloads efficiently by increasing and decreasing your table's read and write capacity automatically in response to application traffic. For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide.
GetTableAutoScalingSettings
can't be used as an action in an IAM policy.
To define permissions for GetTableAutoScalingSettings
, you must allow the following two actions in
the IAM policy statement's Action
element:
application-autoscaling:DescribeScalableTargets
application-autoscaling:DescribeScalingPolicies
getTableAutoScalingSettingsAsync
in interface AmazonKeyspacesAsync
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<ListKeyspacesResult> listKeyspacesAsync(ListKeyspacesRequest request)
AmazonKeyspacesAsync
Returns a list of keyspaces.
listKeyspacesAsync
in interface AmazonKeyspacesAsync
public Future<ListKeyspacesResult> listKeyspacesAsync(ListKeyspacesRequest request, AsyncHandler<ListKeyspacesRequest,ListKeyspacesResult> asyncHandler)
AmazonKeyspacesAsync
Returns a list of keyspaces.
listKeyspacesAsync
in interface AmazonKeyspacesAsync
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<ListTablesResult> listTablesAsync(ListTablesRequest request)
AmazonKeyspacesAsync
Returns a list of tables for a specified keyspace.
listTablesAsync
in interface AmazonKeyspacesAsync
public Future<ListTablesResult> listTablesAsync(ListTablesRequest request, AsyncHandler<ListTablesRequest,ListTablesResult> asyncHandler)
AmazonKeyspacesAsync
Returns a list of tables for a specified keyspace.
listTablesAsync
in interface AmazonKeyspacesAsync
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<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AmazonKeyspacesAsync
Returns a list of all tags associated with the specified Amazon Keyspaces resource.
listTagsForResourceAsync
in interface AmazonKeyspacesAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonKeyspacesAsync
Returns a list of all tags associated with the specified Amazon Keyspaces resource.
listTagsForResourceAsync
in interface AmazonKeyspacesAsync
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<RestoreTableResult> restoreTableAsync(RestoreTableRequest request)
AmazonKeyspacesAsync
Restores the table to the specified point in time within the earliest_restorable_timestamp
and the
current time. For more information about restore points, see Time window for PITR continuous backups in the Amazon Keyspaces Developer Guide.
Any number of users can execute up to 4 concurrent restores (any type of restore) in a given account.
When you restore using point in time recovery, Amazon Keyspaces restores your source table's schema and data to
the state based on the selected timestamp (day:hour:minute:second)
to a new table. The Time to Live
(TTL) settings are also restored to the state based on the selected timestamp.
In addition to the table's schema, data, and TTL settings, RestoreTable
restores the capacity mode,
auto scaling settings, encryption settings, and point-in-time recovery settings from the source table. Unlike the
table's schema data and TTL settings, which are restored based on the selected timestamp, these settings are
always restored based on the table's settings as of the current time or when the table was deleted.
You can also overwrite these settings during restore:
Read/write capacity mode
Provisioned throughput capacity units
Auto scaling settings
Point-in-time (PITR) settings
Tags
For more information, see PITR restore settings in the Amazon Keyspaces Developer Guide.
Note that the following settings are not restored, and you must configure them manually for the new table:
Identity and Access Management (IAM) policies
Amazon CloudWatch metrics and alarms
restoreTableAsync
in interface AmazonKeyspacesAsync
public Future<RestoreTableResult> restoreTableAsync(RestoreTableRequest request, AsyncHandler<RestoreTableRequest,RestoreTableResult> asyncHandler)
AmazonKeyspacesAsync
Restores the table to the specified point in time within the earliest_restorable_timestamp
and the
current time. For more information about restore points, see Time window for PITR continuous backups in the Amazon Keyspaces Developer Guide.
Any number of users can execute up to 4 concurrent restores (any type of restore) in a given account.
When you restore using point in time recovery, Amazon Keyspaces restores your source table's schema and data to
the state based on the selected timestamp (day:hour:minute:second)
to a new table. The Time to Live
(TTL) settings are also restored to the state based on the selected timestamp.
In addition to the table's schema, data, and TTL settings, RestoreTable
restores the capacity mode,
auto scaling settings, encryption settings, and point-in-time recovery settings from the source table. Unlike the
table's schema data and TTL settings, which are restored based on the selected timestamp, these settings are
always restored based on the table's settings as of the current time or when the table was deleted.
You can also overwrite these settings during restore:
Read/write capacity mode
Provisioned throughput capacity units
Auto scaling settings
Point-in-time (PITR) settings
Tags
For more information, see PITR restore settings in the Amazon Keyspaces Developer Guide.
Note that the following settings are not restored, and you must configure them manually for the new table:
Identity and Access Management (IAM) policies
Amazon CloudWatch metrics and alarms
restoreTableAsync
in interface AmazonKeyspacesAsync
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<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AmazonKeyspacesAsync
Associates a set of tags with a Amazon Keyspaces resource. You can then activate these user-defined tags so that they appear on the Cost Management Console for cost allocation tracking. For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.
For IAM policy examples that show how to control access to Amazon Keyspaces resources based on tags, see Amazon Keyspaces resource access based on tags in the Amazon Keyspaces Developer Guide.
tagResourceAsync
in interface AmazonKeyspacesAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonKeyspacesAsync
Associates a set of tags with a Amazon Keyspaces resource. You can then activate these user-defined tags so that they appear on the Cost Management Console for cost allocation tracking. For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.
For IAM policy examples that show how to control access to Amazon Keyspaces resources based on tags, see Amazon Keyspaces resource access based on tags in the Amazon Keyspaces Developer Guide.
tagResourceAsync
in interface AmazonKeyspacesAsync
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<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AmazonKeyspacesAsync
Removes the association of tags from a Amazon Keyspaces resource.
untagResourceAsync
in interface AmazonKeyspacesAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonKeyspacesAsync
Removes the association of tags from a Amazon Keyspaces resource.
untagResourceAsync
in interface AmazonKeyspacesAsync
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<UpdateTableResult> updateTableAsync(UpdateTableRequest request)
AmazonKeyspacesAsync
Adds new columns to the table or updates one of the table's settings, for example capacity mode, auto scaling, encryption, point-in-time recovery, or ttl settings. Note that you can only update one specific table setting per update operation.
updateTableAsync
in interface AmazonKeyspacesAsync
public Future<UpdateTableResult> updateTableAsync(UpdateTableRequest request, AsyncHandler<UpdateTableRequest,UpdateTableResult> asyncHandler)
AmazonKeyspacesAsync
Adds new columns to the table or updates one of the table's settings, for example capacity mode, auto scaling, encryption, point-in-time recovery, or ttl settings. Note that you can only update one specific table setting per update operation.
updateTableAsync
in interface AmazonKeyspacesAsync
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.