Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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:
- Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, 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.
This operation returns paginated results.
Synopsis
- data DescribeTable = DescribeTable' {}
- newDescribeTable :: Text -> Text -> DescribeTable
- describeTable_dbUser :: Lens' DescribeTable (Maybe Text)
- describeTable_connectedDatabase :: Lens' DescribeTable (Maybe Text)
- describeTable_schema :: Lens' DescribeTable (Maybe Text)
- describeTable_nextToken :: Lens' DescribeTable (Maybe Text)
- describeTable_secretArn :: Lens' DescribeTable (Maybe Text)
- describeTable_table :: Lens' DescribeTable (Maybe Text)
- describeTable_maxResults :: Lens' DescribeTable (Maybe Natural)
- describeTable_clusterIdentifier :: Lens' DescribeTable Text
- describeTable_database :: Lens' DescribeTable Text
- data DescribeTableResponse = DescribeTableResponse' {
- columnList :: Maybe [ColumnMetadata]
- nextToken :: Maybe Text
- tableName :: Maybe Text
- httpStatus :: Int
- newDescribeTableResponse :: Int -> DescribeTableResponse
- describeTableResponse_columnList :: Lens' DescribeTableResponse (Maybe [ColumnMetadata])
- describeTableResponse_nextToken :: Lens' DescribeTableResponse (Maybe Text)
- describeTableResponse_tableName :: Lens' DescribeTableResponse (Maybe Text)
- describeTableResponse_httpStatus :: Lens' DescribeTableResponse Int
Creating a Request
data DescribeTable Source #
See: newDescribeTable
smart constructor.
DescribeTable' | |
|
Instances
Create a value of DescribeTable
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dbUser:DescribeTable'
, describeTable_dbUser
- The database user name. This parameter is required when authenticating
using temporary credentials.
$sel:connectedDatabase:DescribeTable'
, describeTable_connectedDatabase
- A database name. The connected database is specified when you connect
with your authentication credentials.
$sel:schema:DescribeTable'
, describeTable_schema
- The schema that contains the table. If no schema is specified, then
matching tables for all schemas are returned.
$sel:nextToken:DescribeTable'
, describeTable_nextToken
- 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.
$sel:secretArn:DescribeTable'
, describeTable_secretArn
- The name or ARN of the secret that enables access to the database. This
parameter is required when authenticating using Secrets Manager.
$sel:table:DescribeTable'
, describeTable_table
- 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
$sel:maxResults:DescribeTable'
, describeTable_maxResults
- 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.
$sel:clusterIdentifier:DescribeTable'
, describeTable_clusterIdentifier
- The cluster identifier. This parameter is required when authenticating
using either Secrets Manager or temporary credentials.
$sel:database:DescribeTable'
, describeTable_database
- 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.
Request Lenses
describeTable_dbUser :: Lens' DescribeTable (Maybe Text) Source #
The database user name. This parameter is required when authenticating using 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_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_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_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_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_clusterIdentifier :: Lens' DescribeTable Text Source #
The cluster identifier. This parameter is required when 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.
Destructuring the Response
data DescribeTableResponse Source #
See: newDescribeTableResponse
smart constructor.
DescribeTableResponse' | |
|
Instances
newDescribeTableResponse Source #
Create a value of DescribeTableResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:columnList:DescribeTableResponse'
, describeTableResponse_columnList
- A list of columns in the table.
$sel:nextToken:DescribeTable'
, describeTableResponse_nextToken
- 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.
$sel:tableName:DescribeTableResponse'
, describeTableResponse_tableName
- The table name.
$sel:httpStatus:DescribeTableResponse'
, describeTableResponse_httpStatus
- The response's http status code.
Response Lenses
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.