@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AWSRedshiftDataAPI
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSRedshiftDataAPI
instead.
You can use the Amazon Redshift Data API to run queries on Amazon Redshift tables. You can run individual SQL statements, which are committed if the statement succeeds.
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
CancelStatementResult |
cancelStatement(CancelStatementRequest cancelStatementRequest)
Cancels a running query.
|
DescribeStatementResult |
describeStatement(DescribeStatementRequest describeStatementRequest)
Describes the details about a specific instance when a query was run by the Amazon Redshift Data API.
|
DescribeTableResult |
describeTable(DescribeTableRequest describeTableRequest)
Describes the detailed information about a table from metadata in the cluster.
|
ExecuteStatementResult |
executeStatement(ExecuteStatementRequest executeStatementRequest)
Runs an SQL statement, which can be data manipulation language (DML) or data definition language (DDL).
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
GetStatementResultResult |
getStatementResult(GetStatementResultRequest getStatementResultRequest)
Fetches the temporarily cached result of an SQL statement.
|
ListDatabasesResult |
listDatabases(ListDatabasesRequest listDatabasesRequest)
List the databases in a cluster.
|
ListSchemasResult |
listSchemas(ListSchemasRequest listSchemasRequest)
Lists the schemas in a database.
|
ListStatementsResult |
listStatements(ListStatementsRequest listStatementsRequest)
List of SQL statements.
|
ListTablesResult |
listTables(ListTablesRequest listTablesRequest)
List the tables in a database.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
static final String ENDPOINT_PREFIX
CancelStatementResult cancelStatement(CancelStatementRequest cancelStatementRequest)
Cancels a running query. To be canceled, a query must be running.
cancelStatementRequest
- ResourceNotFoundException
- The Amazon Redshift Data API operation failed due to a missing resource.InternalServerException
- The Amazon Redshift Data API operation failed due to invalid input.DescribeStatementResult describeStatement(DescribeStatementRequest describeStatementRequest)
Describes the details about a specific instance when a query was run by the Amazon Redshift Data API. The information includes when the query started, when it finished, the query status, the number of rows returned, and the SQL statement.
describeStatementRequest
- ValidationException
- The Amazon Redshift Data API operation failed due to invalid input.ResourceNotFoundException
- The Amazon Redshift Data API operation failed due to a missing resource.InternalServerException
- The Amazon Redshift Data API operation failed due to invalid input.DescribeTableResult describeTable(DescribeTableRequest describeTableRequest)
Describes the detailed information about a table from metadata in the cluster. The information includes its columns. A token is returned to page through the column list. Depending on the authorization method, use one of the following combinations of request parameters:
AWS Secrets Manager - specify the Amazon Resource Name (ARN) of the secret and the cluster identifier that matches the cluster in the secret.
Temporary credentials - specify the cluster identifier, the database name, and the database user name. Permission
to call the redshift:GetClusterCredentials
operation is required to use this method.
describeTableRequest
- ValidationException
- The Amazon Redshift Data API operation failed due to invalid input.InternalServerException
- The Amazon Redshift Data API operation failed due to invalid input.ExecuteStatementResult executeStatement(ExecuteStatementRequest executeStatementRequest)
Runs an SQL statement, which can be data manipulation language (DML) or data definition language (DDL). This statement must be a single SQL statement. Depending on the authorization method, use one of the following combinations of request parameters:
AWS Secrets Manager - specify the Amazon Resource Name (ARN) of the secret and the cluster identifier that matches the cluster in the secret.
Temporary credentials - specify the cluster identifier, the database name, and the database user name. Permission
to call the redshift:GetClusterCredentials
operation is required to use this method.
executeStatementRequest
- ValidationException
- The Amazon Redshift Data API operation failed due to invalid input.ExecuteStatementException
- The SQL statement encountered an environmental error while running.GetStatementResultResult getStatementResult(GetStatementResultRequest getStatementResultRequest)
Fetches the temporarily cached result of an SQL statement. A token is returned to page through the statement results.
getStatementResultRequest
- ValidationException
- The Amazon Redshift Data API operation failed due to invalid input.ResourceNotFoundException
- The Amazon Redshift Data API operation failed due to a missing resource.InternalServerException
- The Amazon Redshift Data API operation failed due to invalid input.ListDatabasesResult listDatabases(ListDatabasesRequest listDatabasesRequest)
List the databases in a cluster. A token is returned to page through the database list. Depending on the authorization method, use one of the following combinations of request parameters:
AWS Secrets Manager - specify the Amazon Resource Name (ARN) of the secret and the cluster identifier that matches the cluster in the secret.
Temporary credentials - specify the cluster identifier, the database name, and the database user name. Permission
to call the redshift:GetClusterCredentials
operation is required to use this method.
listDatabasesRequest
- ValidationException
- The Amazon Redshift Data API operation failed due to invalid input.InternalServerException
- The Amazon Redshift Data API operation failed due to invalid input.ListSchemasResult listSchemas(ListSchemasRequest listSchemasRequest)
Lists the schemas in a database. A token is returned to page through the schema list. Depending on the authorization method, use one of the following combinations of request parameters:
AWS Secrets Manager - specify the Amazon Resource Name (ARN) of the secret and the cluster identifier that matches the cluster in the secret.
Temporary credentials - specify the cluster identifier, the database name, and the database user name. Permission
to call the redshift:GetClusterCredentials
operation is required to use this method.
listSchemasRequest
- ValidationException
- The Amazon Redshift Data API operation failed due to invalid input.InternalServerException
- The Amazon Redshift Data API operation failed due to invalid input.ListStatementsResult listStatements(ListStatementsRequest listStatementsRequest)
List of SQL statements. By default, only finished statements are shown. A token is returned to page through the statement list.
listStatementsRequest
- ValidationException
- The Amazon Redshift Data API operation failed due to invalid input.InternalServerException
- The Amazon Redshift Data API operation failed due to invalid input.ListTablesResult listTables(ListTablesRequest listTablesRequest)
List the tables in a database. If neither SchemaPattern
nor TablePattern
are specified,
then all tables in the database are returned. A token is returned to page through the table list. Depending on
the authorization method, use one of the following combinations of request parameters:
AWS Secrets Manager - specify the Amazon Resource Name (ARN) of the secret and the cluster identifier that matches the cluster in the secret.
Temporary credentials - specify the cluster identifier, the database name, and the database user name. Permission
to call the redshift:GetClusterCredentials
operation is required to use this method.
listTablesRequest
- ValidationException
- The Amazon Redshift Data API operation failed due to invalid input.InternalServerException
- The Amazon Redshift Data API operation failed due to invalid input.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.