Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- batchExecuteStatement_clientToken :: Lens' BatchExecuteStatement (Maybe Text)
- batchExecuteStatement_clusterIdentifier :: Lens' BatchExecuteStatement (Maybe Text)
- batchExecuteStatement_dbUser :: Lens' BatchExecuteStatement (Maybe Text)
- batchExecuteStatement_secretArn :: Lens' BatchExecuteStatement (Maybe Text)
- batchExecuteStatement_statementName :: Lens' BatchExecuteStatement (Maybe Text)
- batchExecuteStatement_withEvent :: Lens' BatchExecuteStatement (Maybe Bool)
- batchExecuteStatement_workgroupName :: Lens' BatchExecuteStatement (Maybe Text)
- batchExecuteStatement_database :: Lens' BatchExecuteStatement Text
- batchExecuteStatement_sqls :: Lens' BatchExecuteStatement (NonEmpty Text)
- batchExecuteStatementResponse_clusterIdentifier :: Lens' BatchExecuteStatementResponse (Maybe Text)
- batchExecuteStatementResponse_createdAt :: Lens' BatchExecuteStatementResponse (Maybe UTCTime)
- batchExecuteStatementResponse_database :: Lens' BatchExecuteStatementResponse (Maybe Text)
- batchExecuteStatementResponse_dbUser :: Lens' BatchExecuteStatementResponse (Maybe Text)
- batchExecuteStatementResponse_id :: Lens' BatchExecuteStatementResponse (Maybe Text)
- batchExecuteStatementResponse_secretArn :: Lens' BatchExecuteStatementResponse (Maybe Text)
- batchExecuteStatementResponse_workgroupName :: Lens' BatchExecuteStatementResponse (Maybe Text)
- batchExecuteStatementResponse_httpStatus :: Lens' BatchExecuteStatementResponse Int
- cancelStatement_id :: Lens' CancelStatement Text
- cancelStatementResponse_status :: Lens' CancelStatementResponse (Maybe Bool)
- cancelStatementResponse_httpStatus :: Lens' CancelStatementResponse Int
- describeStatement_id :: Lens' DescribeStatement Text
- describeStatementResponse_clusterIdentifier :: Lens' DescribeStatementResponse (Maybe Text)
- describeStatementResponse_createdAt :: Lens' DescribeStatementResponse (Maybe UTCTime)
- describeStatementResponse_database :: Lens' DescribeStatementResponse (Maybe Text)
- describeStatementResponse_dbUser :: Lens' DescribeStatementResponse (Maybe Text)
- describeStatementResponse_duration :: Lens' DescribeStatementResponse (Maybe Integer)
- describeStatementResponse_error :: Lens' DescribeStatementResponse (Maybe Text)
- describeStatementResponse_hasResultSet :: Lens' DescribeStatementResponse (Maybe Bool)
- describeStatementResponse_queryParameters :: Lens' DescribeStatementResponse (Maybe (NonEmpty SqlParameter))
- describeStatementResponse_queryString :: Lens' DescribeStatementResponse (Maybe Text)
- describeStatementResponse_redshiftPid :: Lens' DescribeStatementResponse (Maybe Integer)
- describeStatementResponse_redshiftQueryId :: Lens' DescribeStatementResponse (Maybe Integer)
- describeStatementResponse_resultRows :: Lens' DescribeStatementResponse (Maybe Integer)
- describeStatementResponse_resultSize :: Lens' DescribeStatementResponse (Maybe Integer)
- describeStatementResponse_secretArn :: Lens' DescribeStatementResponse (Maybe Text)
- describeStatementResponse_status :: Lens' DescribeStatementResponse (Maybe StatusString)
- describeStatementResponse_subStatements :: Lens' DescribeStatementResponse (Maybe [SubStatementData])
- describeStatementResponse_updatedAt :: Lens' DescribeStatementResponse (Maybe UTCTime)
- describeStatementResponse_workgroupName :: Lens' DescribeStatementResponse (Maybe Text)
- describeStatementResponse_httpStatus :: Lens' DescribeStatementResponse Int
- describeStatementResponse_id :: Lens' DescribeStatementResponse Text
- describeTable_clusterIdentifier :: Lens' DescribeTable (Maybe Text)
- describeTable_connectedDatabase :: Lens' DescribeTable (Maybe Text)
- describeTable_dbUser :: Lens' DescribeTable (Maybe Text)
- describeTable_maxResults :: Lens' DescribeTable (Maybe Natural)
- describeTable_nextToken :: Lens' DescribeTable (Maybe Text)
- describeTable_schema :: Lens' DescribeTable (Maybe Text)
- describeTable_secretArn :: Lens' DescribeTable (Maybe Text)
- describeTable_table :: Lens' DescribeTable (Maybe Text)
- describeTable_workgroupName :: Lens' DescribeTable (Maybe Text)
- describeTable_database :: Lens' DescribeTable Text
- describeTableResponse_columnList :: Lens' DescribeTableResponse (Maybe [ColumnMetadata])
- describeTableResponse_nextToken :: Lens' DescribeTableResponse (Maybe Text)
- describeTableResponse_tableName :: Lens' DescribeTableResponse (Maybe Text)
- describeTableResponse_httpStatus :: Lens' DescribeTableResponse Int
- executeStatement_clientToken :: Lens' ExecuteStatement (Maybe Text)
- executeStatement_clusterIdentifier :: Lens' ExecuteStatement (Maybe Text)
- executeStatement_dbUser :: Lens' ExecuteStatement (Maybe Text)
- executeStatement_parameters :: Lens' ExecuteStatement (Maybe (NonEmpty SqlParameter))
- executeStatement_secretArn :: Lens' ExecuteStatement (Maybe Text)
- executeStatement_statementName :: Lens' ExecuteStatement (Maybe Text)
- executeStatement_withEvent :: Lens' ExecuteStatement (Maybe Bool)
- executeStatement_workgroupName :: Lens' ExecuteStatement (Maybe Text)
- executeStatement_database :: Lens' ExecuteStatement Text
- executeStatement_sql :: Lens' ExecuteStatement Text
- executeStatementResponse_clusterIdentifier :: Lens' ExecuteStatementResponse (Maybe Text)
- executeStatementResponse_createdAt :: Lens' ExecuteStatementResponse (Maybe UTCTime)
- executeStatementResponse_database :: Lens' ExecuteStatementResponse (Maybe Text)
- executeStatementResponse_dbUser :: Lens' ExecuteStatementResponse (Maybe Text)
- executeStatementResponse_id :: Lens' ExecuteStatementResponse (Maybe Text)
- executeStatementResponse_secretArn :: Lens' ExecuteStatementResponse (Maybe Text)
- executeStatementResponse_workgroupName :: Lens' ExecuteStatementResponse (Maybe Text)
- executeStatementResponse_httpStatus :: Lens' ExecuteStatementResponse Int
- getStatementResult_nextToken :: Lens' GetStatementResult (Maybe Text)
- getStatementResult_id :: Lens' GetStatementResult Text
- getStatementResultResponse_columnMetadata :: Lens' GetStatementResultResponse (Maybe [ColumnMetadata])
- getStatementResultResponse_nextToken :: Lens' GetStatementResultResponse (Maybe Text)
- getStatementResultResponse_totalNumRows :: Lens' GetStatementResultResponse (Maybe Integer)
- getStatementResultResponse_httpStatus :: Lens' GetStatementResultResponse Int
- getStatementResultResponse_records :: Lens' GetStatementResultResponse [[Field]]
- listDatabases_clusterIdentifier :: Lens' ListDatabases (Maybe Text)
- listDatabases_dbUser :: Lens' ListDatabases (Maybe Text)
- listDatabases_maxResults :: Lens' ListDatabases (Maybe Natural)
- listDatabases_nextToken :: Lens' ListDatabases (Maybe Text)
- listDatabases_secretArn :: Lens' ListDatabases (Maybe Text)
- listDatabases_workgroupName :: Lens' ListDatabases (Maybe Text)
- listDatabases_database :: Lens' ListDatabases Text
- listDatabasesResponse_databases :: Lens' ListDatabasesResponse (Maybe [Text])
- listDatabasesResponse_nextToken :: Lens' ListDatabasesResponse (Maybe Text)
- listDatabasesResponse_httpStatus :: Lens' ListDatabasesResponse Int
- listSchemas_clusterIdentifier :: Lens' ListSchemas (Maybe Text)
- listSchemas_connectedDatabase :: Lens' ListSchemas (Maybe Text)
- listSchemas_dbUser :: Lens' ListSchemas (Maybe Text)
- listSchemas_maxResults :: Lens' ListSchemas (Maybe Natural)
- listSchemas_nextToken :: Lens' ListSchemas (Maybe Text)
- listSchemas_schemaPattern :: Lens' ListSchemas (Maybe Text)
- listSchemas_secretArn :: Lens' ListSchemas (Maybe Text)
- listSchemas_workgroupName :: Lens' ListSchemas (Maybe Text)
- listSchemas_database :: Lens' ListSchemas Text
- listSchemasResponse_nextToken :: Lens' ListSchemasResponse (Maybe Text)
- listSchemasResponse_schemas :: Lens' ListSchemasResponse (Maybe [Text])
- listSchemasResponse_httpStatus :: Lens' ListSchemasResponse Int
- listStatements_maxResults :: Lens' ListStatements (Maybe Natural)
- listStatements_nextToken :: Lens' ListStatements (Maybe Text)
- listStatements_roleLevel :: Lens' ListStatements (Maybe Bool)
- listStatements_statementName :: Lens' ListStatements (Maybe Text)
- listStatements_status :: Lens' ListStatements (Maybe StatusString)
- listStatementsResponse_nextToken :: Lens' ListStatementsResponse (Maybe Text)
- listStatementsResponse_httpStatus :: Lens' ListStatementsResponse Int
- listStatementsResponse_statements :: Lens' ListStatementsResponse [StatementData]
- listTables_clusterIdentifier :: Lens' ListTables (Maybe Text)
- listTables_connectedDatabase :: Lens' ListTables (Maybe Text)
- listTables_dbUser :: Lens' ListTables (Maybe Text)
- listTables_maxResults :: Lens' ListTables (Maybe Natural)
- listTables_nextToken :: Lens' ListTables (Maybe Text)
- listTables_schemaPattern :: Lens' ListTables (Maybe Text)
- listTables_secretArn :: Lens' ListTables (Maybe Text)
- listTables_tablePattern :: Lens' ListTables (Maybe Text)
- listTables_workgroupName :: Lens' ListTables (Maybe Text)
- listTables_database :: Lens' ListTables Text
- listTablesResponse_nextToken :: Lens' ListTablesResponse (Maybe Text)
- listTablesResponse_tables :: Lens' ListTablesResponse (Maybe [TableMember])
- listTablesResponse_httpStatus :: Lens' ListTablesResponse Int
- columnMetadata_columnDefault :: Lens' ColumnMetadata (Maybe Text)
- columnMetadata_isCaseSensitive :: Lens' ColumnMetadata (Maybe Bool)
- columnMetadata_isCurrency :: Lens' ColumnMetadata (Maybe Bool)
- columnMetadata_isSigned :: Lens' ColumnMetadata (Maybe Bool)
- columnMetadata_label :: Lens' ColumnMetadata (Maybe Text)
- columnMetadata_length :: Lens' ColumnMetadata (Maybe Int)
- columnMetadata_name :: Lens' ColumnMetadata (Maybe Text)
- columnMetadata_nullable :: Lens' ColumnMetadata (Maybe Int)
- columnMetadata_precision :: Lens' ColumnMetadata (Maybe Int)
- columnMetadata_scale :: Lens' ColumnMetadata (Maybe Int)
- columnMetadata_schemaName :: Lens' ColumnMetadata (Maybe Text)
- columnMetadata_tableName :: Lens' ColumnMetadata (Maybe Text)
- columnMetadata_typeName :: Lens' ColumnMetadata (Maybe Text)
- field_blobValue :: Lens' Field (Maybe ByteString)
- field_booleanValue :: Lens' Field (Maybe Bool)
- field_doubleValue :: Lens' Field (Maybe Double)
- field_isNull :: Lens' Field (Maybe Bool)
- field_longValue :: Lens' Field (Maybe Integer)
- field_stringValue :: Lens' Field (Maybe Text)
- sqlParameter_name :: Lens' SqlParameter Text
- sqlParameter_value :: Lens' SqlParameter Text
- statementData_createdAt :: Lens' StatementData (Maybe UTCTime)
- statementData_isBatchStatement :: Lens' StatementData (Maybe Bool)
- statementData_queryParameters :: Lens' StatementData (Maybe (NonEmpty SqlParameter))
- statementData_queryString :: Lens' StatementData (Maybe Text)
- statementData_queryStrings :: Lens' StatementData (Maybe [Text])
- statementData_secretArn :: Lens' StatementData (Maybe Text)
- statementData_statementName :: Lens' StatementData (Maybe Text)
- statementData_status :: Lens' StatementData (Maybe StatusString)
- statementData_updatedAt :: Lens' StatementData (Maybe UTCTime)
- statementData_id :: Lens' StatementData Text
- subStatementData_createdAt :: Lens' SubStatementData (Maybe UTCTime)
- subStatementData_duration :: Lens' SubStatementData (Maybe Integer)
- subStatementData_error :: Lens' SubStatementData (Maybe Text)
- subStatementData_hasResultSet :: Lens' SubStatementData (Maybe Bool)
- subStatementData_queryString :: Lens' SubStatementData (Maybe Text)
- subStatementData_redshiftQueryId :: Lens' SubStatementData (Maybe Integer)
- subStatementData_resultRows :: Lens' SubStatementData (Maybe Integer)
- subStatementData_resultSize :: Lens' SubStatementData (Maybe Integer)
- subStatementData_status :: Lens' SubStatementData (Maybe StatementStatusString)
- subStatementData_updatedAt :: Lens' SubStatementData (Maybe UTCTime)
- subStatementData_id :: Lens' SubStatementData Text
- tableMember_name :: Lens' TableMember (Maybe Text)
- tableMember_schema :: Lens' TableMember (Maybe Text)
- tableMember_type :: Lens' TableMember (Maybe Text)
Operations
BatchExecuteStatement
batchExecuteStatement_clientToken :: Lens' BatchExecuteStatement (Maybe Text) Source #
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
batchExecuteStatement_clusterIdentifier :: Lens' BatchExecuteStatement (Maybe Text) Source #
The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
batchExecuteStatement_dbUser :: Lens' BatchExecuteStatement (Maybe Text) Source #
The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials.
batchExecuteStatement_secretArn :: Lens' BatchExecuteStatement (Maybe Text) Source #
The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.
batchExecuteStatement_statementName :: Lens' BatchExecuteStatement (Maybe Text) Source #
The name of the SQL statements. You can name the SQL statements when you create them to identify the query.
batchExecuteStatement_withEvent :: Lens' BatchExecuteStatement (Maybe Bool) Source #
A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statements run.
batchExecuteStatement_workgroupName :: Lens' BatchExecuteStatement (Maybe Text) Source #
The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.
batchExecuteStatement_database :: Lens' BatchExecuteStatement Text Source #
The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.
batchExecuteStatement_sqls :: Lens' BatchExecuteStatement (NonEmpty Text) Source #
One or more SQL statements to run.
The SQL statements are run as a single transaction. They run serially in the order of the array. Subsequent SQL statements don't start until the previous statement in the array completes. If any SQL statement fails, then because they are run as one transaction, all work is rolled back.</p>
batchExecuteStatementResponse_clusterIdentifier :: Lens' BatchExecuteStatementResponse (Maybe Text) Source #
The cluster identifier. This element is not returned when connecting to a serverless workgroup.
batchExecuteStatementResponse_createdAt :: Lens' BatchExecuteStatementResponse (Maybe UTCTime) Source #
The date and time (UTC) the statement was created.
batchExecuteStatementResponse_database :: Lens' BatchExecuteStatementResponse (Maybe Text) Source #
The name of the database.
batchExecuteStatementResponse_dbUser :: Lens' BatchExecuteStatementResponse (Maybe Text) Source #
The database user name.
batchExecuteStatementResponse_id :: Lens' BatchExecuteStatementResponse (Maybe Text) Source #
The identifier of the SQL statement whose results are to be fetched.
This value is a universally unique identifier (UUID) generated by Amazon
Redshift Data API. This identifier is returned by
BatchExecuteStatment
.
batchExecuteStatementResponse_secretArn :: Lens' BatchExecuteStatementResponse (Maybe Text) Source #
The name or ARN of the secret that enables access to the database.
batchExecuteStatementResponse_workgroupName :: Lens' BatchExecuteStatementResponse (Maybe Text) Source #
The serverless workgroup name. This element is not returned when connecting to a provisioned cluster.
batchExecuteStatementResponse_httpStatus :: Lens' BatchExecuteStatementResponse Int Source #
The response's http status code.
CancelStatement
cancelStatement_id :: Lens' CancelStatement Text Source #
The identifier of the SQL statement to cancel. This value is a
universally unique identifier (UUID) generated by Amazon Redshift Data
API. This identifier is returned by BatchExecuteStatment
,
ExecuteStatment
, and ListStatements
.
cancelStatementResponse_status :: Lens' CancelStatementResponse (Maybe Bool) Source #
A value that indicates whether the cancel statement succeeded (true).
cancelStatementResponse_httpStatus :: Lens' CancelStatementResponse Int Source #
The response's http status code.
DescribeStatement
describeStatement_id :: Lens' DescribeStatement Text Source #
The identifier of the SQL statement to describe. This value is a
universally unique identifier (UUID) generated by Amazon Redshift Data
API. A suffix indicates the number of the SQL statement. For example,
d9b6c0c9-0747-4bf4-b142-e8883122f766:2
has a suffix of :2
that
indicates the second SQL statement of a batch query. This identifier is
returned by BatchExecuteStatment
, ExecuteStatement
, and
ListStatements
.
describeStatementResponse_clusterIdentifier :: Lens' DescribeStatementResponse (Maybe Text) Source #
The cluster identifier.
describeStatementResponse_createdAt :: Lens' DescribeStatementResponse (Maybe UTCTime) Source #
The date and time (UTC) when the SQL statement was submitted to run.
describeStatementResponse_database :: Lens' DescribeStatementResponse (Maybe Text) Source #
The name of the database.
describeStatementResponse_dbUser :: Lens' DescribeStatementResponse (Maybe Text) Source #
The database user name.
describeStatementResponse_duration :: Lens' DescribeStatementResponse (Maybe Integer) Source #
The amount of time in nanoseconds that the statement ran.
describeStatementResponse_error :: Lens' DescribeStatementResponse (Maybe Text) Source #
The error message from the cluster if the SQL statement encountered an error while running.
describeStatementResponse_hasResultSet :: Lens' DescribeStatementResponse (Maybe Bool) Source #
A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set. The value is true if any substatement returns a result set.
describeStatementResponse_queryParameters :: Lens' DescribeStatementResponse (Maybe (NonEmpty SqlParameter)) Source #
The parameters for the SQL statement.
describeStatementResponse_queryString :: Lens' DescribeStatementResponse (Maybe Text) Source #
The SQL statement text.
describeStatementResponse_redshiftPid :: Lens' DescribeStatementResponse (Maybe Integer) Source #
The process identifier from Amazon Redshift.
describeStatementResponse_redshiftQueryId :: Lens' DescribeStatementResponse (Maybe Integer) Source #
The identifier of the query generated by Amazon Redshift. These
identifiers are also available in the query
column of the STL_QUERY
system view.
describeStatementResponse_resultRows :: Lens' DescribeStatementResponse (Maybe Integer) Source #
Either the number of rows returned from the SQL statement or the number
of rows affected. If result size is greater than zero, the result rows
can be the number of rows affected by SQL statements such as INSERT,
UPDATE, DELETE, COPY, and others. A -1
indicates the value is null.
describeStatementResponse_resultSize :: Lens' DescribeStatementResponse (Maybe Integer) Source #
The size in bytes of the returned results. A -1
indicates the value is
null.
describeStatementResponse_secretArn :: Lens' DescribeStatementResponse (Maybe Text) Source #
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
describeStatementResponse_status :: Lens' DescribeStatementResponse (Maybe StatusString) Source #
The status of the SQL statement being described. Status values are defined as follows:
- ABORTED - The query run was stopped by the user.
- ALL - A status value that includes all query statuses. This value can be used to filter results.
- FAILED - The query run failed.
- FINISHED - The query has finished running.
- PICKED - The query has been chosen to be run.
- STARTED - The query run has started.
- SUBMITTED - The query was submitted, but not yet processed.
describeStatementResponse_subStatements :: Lens' DescribeStatementResponse (Maybe [SubStatementData]) Source #
The SQL statements from a multiple statement run.
describeStatementResponse_updatedAt :: Lens' DescribeStatementResponse (Maybe UTCTime) Source #
The date and time (UTC) that the metadata for the SQL statement was last updated. An example is the time the status last changed.
describeStatementResponse_workgroupName :: Lens' DescribeStatementResponse (Maybe Text) Source #
The serverless workgroup name.
describeStatementResponse_httpStatus :: Lens' DescribeStatementResponse Int Source #
The response's http status code.
describeStatementResponse_id :: Lens' DescribeStatementResponse Text Source #
The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
DescribeTable
describeTable_clusterIdentifier :: Lens' DescribeTable (Maybe Text) Source #
The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
describeTable_connectedDatabase :: Lens' DescribeTable (Maybe Text) Source #
A database name. The connected database is specified when you connect with your authentication credentials.
describeTable_dbUser :: Lens' DescribeTable (Maybe Text) Source #
The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials.
describeTable_maxResults :: Lens' DescribeTable (Maybe Natural) Source #
The maximum number of tables to return in the response. If more tables
exist than fit in one response, then NextToken
is returned to page
through the results.
describeTable_nextToken :: Lens' DescribeTable (Maybe Text) Source #
A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
describeTable_schema :: Lens' DescribeTable (Maybe Text) Source #
The schema that contains the table. If no schema is specified, then matching tables for all schemas are returned.
describeTable_secretArn :: Lens' DescribeTable (Maybe Text) Source #
The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.
describeTable_table :: Lens' DescribeTable (Maybe Text) Source #
The table name. If no table is specified, then all tables for all matching schemas are returned. If no table and no schema is specified, then all tables for all schemas in the database are returned
describeTable_workgroupName :: Lens' DescribeTable (Maybe Text) Source #
The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.
describeTable_database :: Lens' DescribeTable Text Source #
The name of the database that contains the tables to be described. If
ConnectedDatabase
is not specified, this is also the database to
connect to with your authentication credentials.
describeTableResponse_columnList :: Lens' DescribeTableResponse (Maybe [ColumnMetadata]) Source #
A list of columns in the table.
describeTableResponse_nextToken :: Lens' DescribeTableResponse (Maybe Text) Source #
A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
describeTableResponse_tableName :: Lens' DescribeTableResponse (Maybe Text) Source #
The table name.
describeTableResponse_httpStatus :: Lens' DescribeTableResponse Int Source #
The response's http status code.
ExecuteStatement
executeStatement_clientToken :: Lens' ExecuteStatement (Maybe Text) Source #
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
executeStatement_clusterIdentifier :: Lens' ExecuteStatement (Maybe Text) Source #
The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
executeStatement_dbUser :: Lens' ExecuteStatement (Maybe Text) Source #
The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials.
executeStatement_parameters :: Lens' ExecuteStatement (Maybe (NonEmpty SqlParameter)) Source #
The parameters for the SQL statement.
executeStatement_secretArn :: Lens' ExecuteStatement (Maybe Text) Source #
The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.
executeStatement_statementName :: Lens' ExecuteStatement (Maybe Text) Source #
The name of the SQL statement. You can name the SQL statement when you create it to identify the query.
executeStatement_withEvent :: Lens' ExecuteStatement (Maybe Bool) Source #
A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.
executeStatement_workgroupName :: Lens' ExecuteStatement (Maybe Text) Source #
The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.
executeStatement_database :: Lens' ExecuteStatement Text Source #
The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.
executeStatement_sql :: Lens' ExecuteStatement Text Source #
The SQL statement text to run.
executeStatementResponse_clusterIdentifier :: Lens' ExecuteStatementResponse (Maybe Text) Source #
The cluster identifier. This element is not returned when connecting to a serverless workgroup.
executeStatementResponse_createdAt :: Lens' ExecuteStatementResponse (Maybe UTCTime) Source #
The date and time (UTC) the statement was created.
executeStatementResponse_database :: Lens' ExecuteStatementResponse (Maybe Text) Source #
The name of the database.
executeStatementResponse_dbUser :: Lens' ExecuteStatementResponse (Maybe Text) Source #
The database user name.
executeStatementResponse_id :: Lens' ExecuteStatementResponse (Maybe Text) Source #
The identifier of the SQL statement whose results are to be fetched. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
executeStatementResponse_secretArn :: Lens' ExecuteStatementResponse (Maybe Text) Source #
The name or ARN of the secret that enables access to the database.
executeStatementResponse_workgroupName :: Lens' ExecuteStatementResponse (Maybe Text) Source #
The serverless workgroup name. This element is not returned when connecting to a provisioned cluster.
executeStatementResponse_httpStatus :: Lens' ExecuteStatementResponse Int Source #
The response's http status code.
GetStatementResult
getStatementResult_nextToken :: Lens' GetStatementResult (Maybe Text) Source #
A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
getStatementResult_id :: Lens' GetStatementResult Text Source #
The identifier of the SQL statement whose results are to be fetched.
This value is a universally unique identifier (UUID) generated by Amazon
Redshift Data API. A suffix indicates then number of the SQL statement.
For example, d9b6c0c9-0747-4bf4-b142-e8883122f766:2
has a suffix of
:2
that indicates the second SQL statement of a batch query. This
identifier is returned by BatchExecuteStatment
, ExecuteStatment
, and
ListStatements
.
getStatementResultResponse_columnMetadata :: Lens' GetStatementResultResponse (Maybe [ColumnMetadata]) Source #
The properties (metadata) of a column.
getStatementResultResponse_nextToken :: Lens' GetStatementResultResponse (Maybe Text) Source #
A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
getStatementResultResponse_totalNumRows :: Lens' GetStatementResultResponse (Maybe Integer) Source #
The total number of rows in the result set returned from a query. You
can use this number to estimate the number of calls to the
GetStatementResult
operation needed to page through the results.
getStatementResultResponse_httpStatus :: Lens' GetStatementResultResponse Int Source #
The response's http status code.
getStatementResultResponse_records :: Lens' GetStatementResultResponse [[Field]] Source #
The results of the SQL statement.
ListDatabases
listDatabases_clusterIdentifier :: Lens' ListDatabases (Maybe Text) Source #
The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
listDatabases_dbUser :: Lens' ListDatabases (Maybe Text) Source #
The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials.
listDatabases_maxResults :: Lens' ListDatabases (Maybe Natural) Source #
The maximum number of databases to return in the response. If more
databases exist than fit in one response, then NextToken
is returned
to page through the results.
listDatabases_nextToken :: Lens' ListDatabases (Maybe Text) Source #
A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
listDatabases_secretArn :: Lens' ListDatabases (Maybe Text) Source #
The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.
listDatabases_workgroupName :: Lens' ListDatabases (Maybe Text) Source #
The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.
listDatabases_database :: Lens' ListDatabases Text Source #
The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.
listDatabasesResponse_databases :: Lens' ListDatabasesResponse (Maybe [Text]) Source #
The names of databases.
listDatabasesResponse_nextToken :: Lens' ListDatabasesResponse (Maybe Text) Source #
A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
listDatabasesResponse_httpStatus :: Lens' ListDatabasesResponse Int Source #
The response's http status code.
ListSchemas
listSchemas_clusterIdentifier :: Lens' ListSchemas (Maybe Text) Source #
The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
listSchemas_connectedDatabase :: Lens' ListSchemas (Maybe Text) Source #
A database name. The connected database is specified when you connect with your authentication credentials.
listSchemas_dbUser :: Lens' ListSchemas (Maybe Text) Source #
The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials.
listSchemas_maxResults :: Lens' ListSchemas (Maybe Natural) Source #
The maximum number of schemas to return in the response. If more schemas
exist than fit in one response, then NextToken
is returned to page
through the results.
listSchemas_nextToken :: Lens' ListSchemas (Maybe Text) Source #
A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
listSchemas_schemaPattern :: Lens' ListSchemas (Maybe Text) Source #
A pattern to filter results by schema name. Within a schema pattern, "%" means match any substring of 0 or more characters and "_" means match any one character. Only schema name entries matching the search pattern are returned.
listSchemas_secretArn :: Lens' ListSchemas (Maybe Text) Source #
The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.
listSchemas_workgroupName :: Lens' ListSchemas (Maybe Text) Source #
The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.
listSchemas_database :: Lens' ListSchemas Text Source #
The name of the database that contains the schemas to list. If
ConnectedDatabase
is not specified, this is also the database to
connect to with your authentication credentials.
listSchemasResponse_nextToken :: Lens' ListSchemasResponse (Maybe Text) Source #
A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
listSchemasResponse_schemas :: Lens' ListSchemasResponse (Maybe [Text]) Source #
The schemas that match the request pattern.
listSchemasResponse_httpStatus :: Lens' ListSchemasResponse Int Source #
The response's http status code.
ListStatements
listStatements_maxResults :: Lens' ListStatements (Maybe Natural) Source #
The maximum number of SQL statements to return in the response. If more
SQL statements exist than fit in one response, then NextToken
is
returned to page through the results.
listStatements_nextToken :: Lens' ListStatements (Maybe Text) Source #
A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
listStatements_roleLevel :: Lens' ListStatements (Maybe Bool) Source #
A value that filters which statements to return in the response. If true, all statements run by the caller's IAM role are returned. If false, only statements run by the caller's IAM role in the current IAM session are returned. The default is true.
listStatements_statementName :: Lens' ListStatements (Maybe Text) Source #
The name of the SQL statement specified as input to
BatchExecuteStatement
or ExecuteStatement
to identify the query. You
can list multiple statements by providing a prefix that matches the
beginning of the statement name. For example, to list myStatement1,
myStatement2, myStatement3, and so on, then provide the a value of
myStatement
. Data API does a case-sensitive match of SQL statement
names to the prefix value you provide.
listStatements_status :: Lens' ListStatements (Maybe StatusString) Source #
The status of the SQL statement to list. Status values are defined as follows:
- ABORTED - The query run was stopped by the user.
- ALL - A status value that includes all query statuses. This value can be used to filter results.
- FAILED - The query run failed.
- FINISHED - The query has finished running.
- PICKED - The query has been chosen to be run.
- STARTED - The query run has started.
- SUBMITTED - The query was submitted, but not yet processed.
listStatementsResponse_nextToken :: Lens' ListStatementsResponse (Maybe Text) Source #
A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
listStatementsResponse_httpStatus :: Lens' ListStatementsResponse Int Source #
The response's http status code.
listStatementsResponse_statements :: Lens' ListStatementsResponse [StatementData] Source #
The SQL statements.
ListTables
listTables_clusterIdentifier :: Lens' ListTables (Maybe Text) Source #
The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
listTables_connectedDatabase :: Lens' ListTables (Maybe Text) Source #
A database name. The connected database is specified when you connect with your authentication credentials.
listTables_dbUser :: Lens' ListTables (Maybe Text) Source #
The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials.
listTables_maxResults :: Lens' ListTables (Maybe Natural) Source #
The maximum number of tables to return in the response. If more tables
exist than fit in one response, then NextToken
is returned to page
through the results.
listTables_nextToken :: Lens' ListTables (Maybe Text) Source #
A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
listTables_schemaPattern :: Lens' ListTables (Maybe Text) Source #
A pattern to filter results by schema name. Within a schema pattern,
"%" means match any substring of 0 or more characters and "_" means
match any one character. Only schema name entries matching the search
pattern are returned. If SchemaPattern
is not specified, then all
tables that match TablePattern
are returned. If neither
SchemaPattern
or TablePattern
are specified, then all tables are
returned.
listTables_secretArn :: Lens' ListTables (Maybe Text) Source #
The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.
listTables_tablePattern :: Lens' ListTables (Maybe Text) Source #
A pattern to filter results by table name. Within a table pattern, "%"
means match any substring of 0 or more characters and "_" means match
any one character. Only table name entries matching the search pattern
are returned. If TablePattern
is not specified, then all tables that
match SchemaPattern
are returned. If neither SchemaPattern
or
TablePattern
are specified, then all tables are returned.
listTables_workgroupName :: Lens' ListTables (Maybe Text) Source #
The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.
listTables_database :: Lens' ListTables Text Source #
The name of the database that contains the tables to list. If
ConnectedDatabase
is not specified, this is also the database to
connect to with your authentication credentials.
listTablesResponse_nextToken :: Lens' ListTablesResponse (Maybe Text) Source #
A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
listTablesResponse_tables :: Lens' ListTablesResponse (Maybe [TableMember]) Source #
The tables that match the request pattern.
listTablesResponse_httpStatus :: Lens' ListTablesResponse Int Source #
The response's http status code.
Types
ColumnMetadata
columnMetadata_columnDefault :: Lens' ColumnMetadata (Maybe Text) Source #
The default value of the column.
columnMetadata_isCaseSensitive :: Lens' ColumnMetadata (Maybe Bool) Source #
A value that indicates whether the column is case-sensitive.
columnMetadata_isCurrency :: Lens' ColumnMetadata (Maybe Bool) Source #
A value that indicates whether the column contains currency values.
columnMetadata_isSigned :: Lens' ColumnMetadata (Maybe Bool) Source #
A value that indicates whether an integer column is signed.
columnMetadata_label :: Lens' ColumnMetadata (Maybe Text) Source #
The label for the column.
columnMetadata_length :: Lens' ColumnMetadata (Maybe Int) Source #
The length of the column.
columnMetadata_name :: Lens' ColumnMetadata (Maybe Text) Source #
The name of the column.
columnMetadata_nullable :: Lens' ColumnMetadata (Maybe Int) Source #
A value that indicates whether the column is nullable.
columnMetadata_precision :: Lens' ColumnMetadata (Maybe Int) Source #
The precision value of a decimal number column.
columnMetadata_scale :: Lens' ColumnMetadata (Maybe Int) Source #
The scale value of a decimal number column.
columnMetadata_schemaName :: Lens' ColumnMetadata (Maybe Text) Source #
The name of the schema that contains the table that includes the column.
columnMetadata_tableName :: Lens' ColumnMetadata (Maybe Text) Source #
The name of the table that includes the column.
columnMetadata_typeName :: Lens' ColumnMetadata (Maybe Text) Source #
The database-specific data type of the column.
Field
field_blobValue :: Lens' Field (Maybe ByteString) Source #
A value of the BLOB data type.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
SqlParameter
sqlParameter_name :: Lens' SqlParameter Text Source #
The name of the parameter.
sqlParameter_value :: Lens' SqlParameter Text Source #
The value of the parameter. Amazon Redshift implicitly converts to the proper data type. For more information, see Data types in the Amazon Redshift Database Developer Guide.
StatementData
statementData_createdAt :: Lens' StatementData (Maybe UTCTime) Source #
The date and time (UTC) the statement was created.
statementData_isBatchStatement :: Lens' StatementData (Maybe Bool) Source #
A value that indicates whether the statement is a batch query request.
statementData_queryParameters :: Lens' StatementData (Maybe (NonEmpty SqlParameter)) Source #
The parameters used in a SQL statement.
statementData_queryString :: Lens' StatementData (Maybe Text) Source #
The SQL statement.
statementData_queryStrings :: Lens' StatementData (Maybe [Text]) Source #
One or more SQL statements. Each query string in the array corresponds to one of the queries in a batch query request.
statementData_secretArn :: Lens' StatementData (Maybe Text) Source #
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
statementData_statementName :: Lens' StatementData (Maybe Text) Source #
The name of the SQL statement.
statementData_status :: Lens' StatementData (Maybe StatusString) Source #
The status of the SQL statement. An example is the that the SQL statement finished.
statementData_updatedAt :: Lens' StatementData (Maybe UTCTime) Source #
The date and time (UTC) that the statement metadata was last updated.
statementData_id :: Lens' StatementData Text Source #
The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
SubStatementData
subStatementData_createdAt :: Lens' SubStatementData (Maybe UTCTime) Source #
The date and time (UTC) the statement was created.
subStatementData_duration :: Lens' SubStatementData (Maybe Integer) Source #
The amount of time in nanoseconds that the statement ran.
subStatementData_error :: Lens' SubStatementData (Maybe Text) Source #
The error message from the cluster if the SQL statement encountered an error while running.
subStatementData_hasResultSet :: Lens' SubStatementData (Maybe Bool) Source #
A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set.
subStatementData_queryString :: Lens' SubStatementData (Maybe Text) Source #
The SQL statement text.
subStatementData_redshiftQueryId :: Lens' SubStatementData (Maybe Integer) Source #
The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
subStatementData_resultRows :: Lens' SubStatementData (Maybe Integer) Source #
Either the number of rows returned from the SQL statement or the number
of rows affected. If result size is greater than zero, the result rows
can be the number of rows affected by SQL statements such as INSERT,
UPDATE, DELETE, COPY, and others. A -1
indicates the value is null.
subStatementData_resultSize :: Lens' SubStatementData (Maybe Integer) Source #
The size in bytes of the returned results. A -1
indicates the value is
null.
subStatementData_status :: Lens' SubStatementData (Maybe StatementStatusString) Source #
The status of the SQL statement. An example is the that the SQL statement finished.
subStatementData_updatedAt :: Lens' SubStatementData (Maybe UTCTime) Source #
The date and time (UTC) that the statement metadata was last updated.
subStatementData_id :: Lens' SubStatementData Text Source #
The identifier of the SQL statement. This value is a universally unique
identifier (UUID) generated by Amazon Redshift Data API. A suffix
indicates the number of the SQL statement. For example,
d9b6c0c9-0747-4bf4-b142-e8883122f766:2
has a suffix of :2
that
indicates the second SQL statement of a batch query.
TableMember
tableMember_name :: Lens' TableMember (Maybe Text) Source #
The name of the table.
tableMember_schema :: Lens' TableMember (Maybe Text) Source #
The schema containing the table.
tableMember_type :: Lens' TableMember (Maybe Text) Source #
The type of the table. Possible values include TABLE, VIEW, SYSTEM TABLE, GLOBAL TEMPORARY, LOCAL TEMPORARY, ALIAS, and SYNONYM.