Client
redshiftdataapiservice | R Documentation |
Redshift Data API Service¶
Description¶
You can use the Amazon Redshift Data API to run queries on Amazon Redshift tables. You can run SQL statements, which are committed if the statement succeeds.
For more information about the Amazon Redshift Data API and CLI usage examples, see Using the Amazon Redshift Data API in the Amazon Redshift Management Guide.
Usage¶
redshiftdataapiservice(
config = list(),
credentials = list(),
endpoint = NULL,
region = NULL
)
Arguments¶
config |
Optional configuration of credentials, endpoint, and/or region.
|
credentials |
Optional credentials shorthand for the config parameter
|
endpoint |
Optional shorthand for complete URL to use for the constructed client. |
region |
Optional shorthand for AWS Region used in instantiating the client. |
Value¶
A client for the service. You can call the service's operations using
syntax like svc$operation(...)
, where svc
is the name you've
assigned to the client. The available operations are listed in the
Operations section.
Service syntax¶
svc <- redshiftdataapiservice(
config = list(
credentials = list(
creds = list(
access_key_id = "string",
secret_access_key = "string",
session_token = "string"
),
profile = "string",
anonymous = "logical"
),
endpoint = "string",
region = "string",
close_connection = "logical",
timeout = "numeric",
s3_force_path_style = "logical",
sts_regional_endpoint = "string"
),
credentials = list(
creds = list(
access_key_id = "string",
secret_access_key = "string",
session_token = "string"
),
profile = "string",
anonymous = "logical"
),
endpoint = "string",
region = "string"
)
Operations¶
batch_execute_statement | Runs one or more SQL statements, which can be data manipulation language (DML) or data definition language (DDL) |
cancel_statement | Cancels a running query |
describe_statement | Describes the details about a specific instance when a query was run by the Amazon Redshift Data API |
describe_table | Describes the detailed information about a table from metadata in the cluster |
execute_statement | Runs an SQL statement, which can be data manipulation language (DML) or data definition language (DDL) |
get_statement_result | Fetches the temporarily cached result of an SQL statement in JSON format |
get_statement_result_v2 | Fetches the temporarily cached result of an SQL statement in CSV format |
list_databases | List the databases in a cluster |
list_schemas | Lists the schemas in a database |
list_statements | List of SQL statements |
list_tables | List the tables in a database |
Examples¶
## Not run:
svc <- redshiftdataapiservice()
svc$batch_execute_statement(
Foo = 123
)
## End(Not run)