{ "smithy": "2.0", "shapes": { "com.amazonaws.redshiftdata#ActiveSessionsExceededException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.redshiftdata#String" } }, "traits": { "smithy.api#documentation": "

The Amazon Redshift Data API operation failed because the maximum number of active sessions exceeded.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.redshiftdata#ActiveStatementsExceededException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.redshiftdata#String" } }, "traits": { "smithy.api#documentation": "

The number of active statements exceeds the limit.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.redshiftdata#ActiveWaitingRequestsExceededException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.redshiftdata#String" } }, "traits": { "smithy.api#documentation": "

The number of active requests with WaitTimeSeconds for the same SQL statement exceeds the limit.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.redshiftdata#BatchExecuteStatement": { "type": "operation", "input": { "target": "com.amazonaws.redshiftdata#BatchExecuteStatementInput" }, "output": { "target": "com.amazonaws.redshiftdata#BatchExecuteStatementOutput" }, "errors": [ { "target": "com.amazonaws.redshiftdata#ActiveSessionsExceededException" }, { "target": "com.amazonaws.redshiftdata#ActiveStatementsExceededException" }, { "target": "com.amazonaws.redshiftdata#BatchExecuteStatementException" }, { "target": "com.amazonaws.redshiftdata#InternalServerException" }, { "target": "com.amazonaws.redshiftdata#ResourceNotFoundException" }, { "target": "com.amazonaws.redshiftdata#ValidationException" } ], "traits": { "smithy.api#documentation": "

Runs one or more SQL statements, which can be data manipulation language (DML) or data definition language (DDL). Depending on the authorization method, use one of the following combinations of request parameters:

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.

" } }, "com.amazonaws.redshiftdata#BatchExecuteStatementException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#required": {} } }, "StatementId": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

Statement identifier of the exception.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

An SQL statement encountered an environmental error while running.

", "smithy.api#error": "server", "smithy.api#httpError": 500 } }, "com.amazonaws.redshiftdata#BatchExecuteStatementInput": { "type": "structure", "members": { "Sqls": { "target": "com.amazonaws.redshiftdata#SqlList", "traits": { "smithy.api#documentation": "

One or more SQL statements to run. The SQL statements run serially in the order of the array. Subsequent SQL statements don't start until the previous statement in the array completes. By default, the SQL statements are run as a single transaction. If any SQL statement fails, all work is rolled back. To change this behavior, see the ExecutionMode parameter.

", "smithy.api#required": {} } }, "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#ClusterIdentifierString", "traits": { "smithy.api#documentation": "

The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.

" } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

" } }, "DbUser": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials.

" } }, "Database": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

" } }, "WithEvent": { "target": "smithy.api#Boolean", "traits": { "smithy.api#documentation": "

A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statements run.

" } }, "StatementName": { "target": "com.amazonaws.redshiftdata#StatementNameString", "traits": { "smithy.api#documentation": "

The name of the SQL statements. You can name the SQL statements when you create them to identify the query.

" } }, "Parameters": { "target": "com.amazonaws.redshiftdata#SqlParametersList", "traits": { "smithy.api#documentation": "

The parameters for the SQL statements. The parameters are available to all SQL statements in the batch. Each statement can reference any subset of the provided parameters. Each provided parameter must be referenced by at least one SQL statement in the batch.

" } }, "WorkgroupName": { "target": "com.amazonaws.redshiftdata#WorkgroupNameString", "traits": { "smithy.api#documentation": "

The serverless workgroup name or Amazon Resource Name (ARN). This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.

" } }, "ClientToken": { "target": "com.amazonaws.redshiftdata#ClientToken", "traits": { "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", "smithy.api#idempotencyToken": {} } }, "ResultFormat": { "target": "com.amazonaws.redshiftdata#ResultFormatString", "traits": { "smithy.api#documentation": "

The data format of the result of the SQL statement. If no format is specified, the default is JSON.

" } }, "SessionKeepAliveSeconds": { "target": "com.amazonaws.redshiftdata#SessionAliveSeconds", "traits": { "smithy.api#documentation": "

The number of seconds to keep the session alive after the query finishes. The maximum time a session can keep alive is 24 hours. After 24 hours, the session is forced closed and the query is terminated.

" } }, "SessionId": { "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

The session identifier of the query.

" } }, "ExecutionMode": { "target": "com.amazonaws.redshiftdata#ExecutionMode", "traits": { "smithy.api#documentation": "

Determines how the SQL statements in the batch are run. If set to TRANSACTION (the default), all SQL statements are run as a single transaction and they are committed or rolled back together. If set to AUTO_COMMIT, each SQL statement is committed individually, and a failure of one statement does not affect the others.

" } }, "WaitTimeSeconds": { "target": "com.amazonaws.redshiftdata#WaitTimeSeconds", "traits": { "smithy.api#documentation": "

The number of seconds to wait for all SQL statements in the batch to complete execution before returning the response. If the SQL statements do not complete within the specified time, the response returns the current status. The maximum value is 30 seconds.

" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.redshiftdata#BatchExecuteStatementOutput": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

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.

" } }, "CreatedAt": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The date and time (UTC) the statement was created.

" } }, "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#ClusterIdentifierString", "traits": { "smithy.api#documentation": "

The cluster identifier. This element is not returned when connecting to a serverless workgroup.

" } }, "DbUser": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The database user name.

" } }, "DbGroups": { "target": "com.amazonaws.redshiftdata#DbGroupList", "traits": { "smithy.api#documentation": "

A list of colon (:) separated names of database groups.

" } }, "Database": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The name of the database.

" } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database.

" } }, "WorkgroupName": { "target": "com.amazonaws.redshiftdata#WorkgroupNameString", "traits": { "smithy.api#documentation": "

The serverless workgroup name or Amazon Resource Name (ARN). This element is not returned when connecting to a provisioned cluster.

" } }, "SessionId": { "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

The session identifier of the query.

" } }, "Status": { "target": "com.amazonaws.redshiftdata#StatementStatusString", "traits": { "smithy.api#documentation": "

The status of the SQL statement. Status values are defined as follows:

" } }, "RedshiftPid": { "target": "com.amazonaws.redshiftdata#BoxedLong", "traits": { "smithy.api#documentation": "

The process identifier from Amazon Redshift.

" } }, "HasResultSet": { "target": "com.amazonaws.redshiftdata#BoxedBoolean", "traits": { "smithy.api#documentation": "

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.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.redshiftdata#Blob": { "type": "blob" }, "com.amazonaws.redshiftdata#BoxedBoolean": { "type": "boolean" }, "com.amazonaws.redshiftdata#BoxedDouble": { "type": "double" }, "com.amazonaws.redshiftdata#BoxedLong": { "type": "long" }, "com.amazonaws.redshiftdata#CancelStatement": { "type": "operation", "input": { "target": "com.amazonaws.redshiftdata#CancelStatementRequest" }, "output": { "target": "com.amazonaws.redshiftdata#CancelStatementResponse" }, "errors": [ { "target": "com.amazonaws.redshiftdata#DatabaseConnectionException" }, { "target": "com.amazonaws.redshiftdata#InternalServerException" }, { "target": "com.amazonaws.redshiftdata#QueryTimeoutException" }, { "target": "com.amazonaws.redshiftdata#ResourceNotFoundException" }, { "target": "com.amazonaws.redshiftdata#ValidationException" } ], "traits": { "smithy.api#documentation": "

Cancels a running query. To be canceled, a query must be running.

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.

" } }, "com.amazonaws.redshiftdata#CancelStatementRequest": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

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.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.redshiftdata#CancelStatementResponse": { "type": "structure", "members": { "Status": { "target": "smithy.api#Boolean", "traits": { "smithy.api#documentation": "

A value that indicates whether the cancel statement succeeded (true).

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.redshiftdata#ClientToken": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 64 } } }, "com.amazonaws.redshiftdata#ClusterIdentifierString": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 63 }, "smithy.api#pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$" } }, "com.amazonaws.redshiftdata#ColumnList": { "type": "list", "member": { "target": "com.amazonaws.redshiftdata#ColumnMetadata" } }, "com.amazonaws.redshiftdata#ColumnMetadata": { "type": "structure", "members": { "isCaseSensitive": { "target": "com.amazonaws.redshiftdata#bool", "traits": { "smithy.api#default": false, "smithy.api#documentation": "

A value that indicates whether the column is case-sensitive.

" } }, "isCurrency": { "target": "com.amazonaws.redshiftdata#bool", "traits": { "smithy.api#default": false, "smithy.api#documentation": "

A value that indicates whether the column contains currency values.

" } }, "isSigned": { "target": "com.amazonaws.redshiftdata#bool", "traits": { "smithy.api#default": false, "smithy.api#documentation": "

A value that indicates whether an integer column is signed.

" } }, "label": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The label for the column.

" } }, "name": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The name of the column.

" } }, "nullable": { "target": "com.amazonaws.redshiftdata#Integer", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

A value that indicates whether the column is nullable.

" } }, "precision": { "target": "com.amazonaws.redshiftdata#Integer", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The precision value of a decimal number column, or the column length for a non-numeric column.

" } }, "scale": { "target": "com.amazonaws.redshiftdata#Integer", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The scale value of a decimal number column.

" } }, "schemaName": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The name of the schema that contains the table that includes the column.

" } }, "tableName": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The name of the table that includes the column.

" } }, "typeName": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The database-specific data type of the column.

" } }, "length": { "target": "com.amazonaws.redshiftdata#Integer", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The length of the column.

" } }, "columnDefault": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The default value of the column.

" } } }, "traits": { "smithy.api#documentation": "

The properties (metadata) of a column.

" } }, "com.amazonaws.redshiftdata#ColumnMetadataList": { "type": "list", "member": { "target": "com.amazonaws.redshiftdata#ColumnMetadata" } }, "com.amazonaws.redshiftdata#DatabaseConnectionException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Connection to a database failed.

", "smithy.api#error": "server", "smithy.api#httpError": 500 } }, "com.amazonaws.redshiftdata#DatabaseList": { "type": "list", "member": { "target": "com.amazonaws.redshiftdata#String" } }, "com.amazonaws.redshiftdata#DbGroupList": { "type": "list", "member": { "target": "com.amazonaws.redshiftdata#String" } }, "com.amazonaws.redshiftdata#DescribeStatement": { "type": "operation", "input": { "target": "com.amazonaws.redshiftdata#DescribeStatementRequest" }, "output": { "target": "com.amazonaws.redshiftdata#DescribeStatementResponse" }, "errors": [ { "target": "com.amazonaws.redshiftdata#ActiveWaitingRequestsExceededException" }, { "target": "com.amazonaws.redshiftdata#InternalServerException" }, { "target": "com.amazonaws.redshiftdata#ResourceNotFoundException" }, { "target": "com.amazonaws.redshiftdata#ValidationException" } ], "traits": { "smithy.api#documentation": "

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.

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.

", "smithy.api#readonly": {} } }, "com.amazonaws.redshiftdata#DescribeStatementRequest": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

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.

", "smithy.api#required": {} } }, "WaitTimeSeconds": { "target": "com.amazonaws.redshiftdata#WaitTimeSeconds", "traits": { "smithy.api#documentation": "

The number of seconds to wait for the SQL statement to complete execution before returning the description. The maximum value is 30 seconds.

" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.redshiftdata#DescribeStatementResponse": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.

", "smithy.api#required": {} } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { "smithy.api#documentation": "

The name or Amazon Resource Name (ARN) of the secret that enables access to the database.

" } }, "DbUser": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The database user name.

" } }, "Database": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The name of the database.

" } }, "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The cluster identifier.

" } }, "Duration": { "target": "com.amazonaws.redshiftdata#Long", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The amount of time in nanoseconds that the statement ran.

" } }, "Error": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The error message from the cluster if the SQL statement encountered an error while running.

" } }, "Status": { "target": "com.amazonaws.redshiftdata#StatusString", "traits": { "smithy.api#documentation": "

The status of the SQL statement being described. Status values are defined as follows:

" } }, "CreatedAt": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The date and time (UTC) when the SQL statement was submitted to run.

" } }, "UpdatedAt": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The date and time (UTC) that the metadata for the SQL statement was last updated. An example is the time the status last changed.

" } }, "RedshiftPid": { "target": "com.amazonaws.redshiftdata#Long", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The process identifier from Amazon Redshift.

" } }, "HasResultSet": { "target": "smithy.api#Boolean", "traits": { "smithy.api#documentation": "

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.

" } }, "QueryString": { "target": "com.amazonaws.redshiftdata#StatementString", "traits": { "smithy.api#documentation": "

The SQL statement text.

" } }, "ResultRows": { "target": "com.amazonaws.redshiftdata#Long", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

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.

" } }, "ResultSize": { "target": "com.amazonaws.redshiftdata#Long", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The size in bytes of the returned results. A -1 indicates the value is null.

" } }, "RedshiftQueryId": { "target": "com.amazonaws.redshiftdata#Long", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The identifier of the query generated by Amazon Redshift. These identifiers are also available in the query_id column of the SYS_QUERY_HISTORY system view.

" } }, "RedshiftQueryUuid": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The global unique identifier of the query generated by Amazon Redshift. These identifiers are also available in the query_uuid column of the SYS_QUERY_HISTORY system view.

" } }, "QueryParameters": { "target": "com.amazonaws.redshiftdata#SqlParametersList", "traits": { "smithy.api#documentation": "

The parameters for the SQL statement.

" } }, "SubStatements": { "target": "com.amazonaws.redshiftdata#SubStatementList", "traits": { "smithy.api#documentation": "

The SQL statements from a multiple statement run.

" } }, "WorkgroupName": { "target": "com.amazonaws.redshiftdata#WorkgroupNameString", "traits": { "smithy.api#documentation": "

The serverless workgroup name or Amazon Resource Name (ARN).

" } }, "ResultFormat": { "target": "com.amazonaws.redshiftdata#ResultFormatString", "traits": { "smithy.api#documentation": "

The data format of the result of the SQL statement.

" } }, "SessionId": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The session identifier of the query.

" } }, "ExecutionMode": { "target": "com.amazonaws.redshiftdata#ExecutionMode", "traits": { "smithy.api#documentation": "

The execution mode of the batch request. TRANSACTION indicates all SQL statements are run as a single transaction. AUTO_COMMIT indicates each SQL statement is committed individually.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.redshiftdata#DescribeTable": { "type": "operation", "input": { "target": "com.amazonaws.redshiftdata#DescribeTableRequest" }, "output": { "target": "com.amazonaws.redshiftdata#DescribeTableResponse" }, "errors": [ { "target": "com.amazonaws.redshiftdata#DatabaseConnectionException" }, { "target": "com.amazonaws.redshiftdata#InternalServerException" }, { "target": "com.amazonaws.redshiftdata#QueryTimeoutException" }, { "target": "com.amazonaws.redshiftdata#ResourceNotFoundException" }, { "target": "com.amazonaws.redshiftdata#ValidationException" } ], "traits": { "smithy.api#documentation": "

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:

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.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults", "items": "ColumnList" }, "smithy.api#readonly": {} } }, "com.amazonaws.redshiftdata#DescribeTableRequest": { "type": "structure", "members": { "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#ClusterIdentifierString", "traits": { "smithy.api#documentation": "

The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.

" } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

" } }, "DbUser": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials.

" } }, "Database": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

", "smithy.api#required": {} } }, "ConnectedDatabase": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

A database name. The connected database is specified when you connect with your authentication credentials.

" } }, "Schema": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The schema that contains the table. If no schema is specified, then matching tables for all schemas are returned.

" } }, "Table": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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

" } }, "NextToken": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

" } }, "MaxResults": { "target": "com.amazonaws.redshiftdata#PageSize", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

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.

" } }, "WorkgroupName": { "target": "com.amazonaws.redshiftdata#WorkgroupNameString", "traits": { "smithy.api#documentation": "

The serverless workgroup name or Amazon Resource Name (ARN). This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.

" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.redshiftdata#DescribeTableResponse": { "type": "structure", "members": { "TableName": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The table name.

" } }, "ColumnList": { "target": "com.amazonaws.redshiftdata#ColumnList", "traits": { "smithy.api#documentation": "

A list of columns in the table.

" } }, "NextToken": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.redshiftdata#ExecuteStatement": { "type": "operation", "input": { "target": "com.amazonaws.redshiftdata#ExecuteStatementInput" }, "output": { "target": "com.amazonaws.redshiftdata#ExecuteStatementOutput" }, "errors": [ { "target": "com.amazonaws.redshiftdata#ActiveSessionsExceededException" }, { "target": "com.amazonaws.redshiftdata#ActiveStatementsExceededException" }, { "target": "com.amazonaws.redshiftdata#ExecuteStatementException" }, { "target": "com.amazonaws.redshiftdata#InternalServerException" }, { "target": "com.amazonaws.redshiftdata#ResourceNotFoundException" }, { "target": "com.amazonaws.redshiftdata#ValidationException" } ], "traits": { "smithy.api#documentation": "

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:

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.

" } }, "com.amazonaws.redshiftdata#ExecuteStatementException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The exception message.

", "smithy.api#required": {} } }, "StatementId": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

Statement identifier of the exception.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

The SQL statement encountered an environmental error while running.

", "smithy.api#error": "server", "smithy.api#httpError": 500 } }, "com.amazonaws.redshiftdata#ExecuteStatementInput": { "type": "structure", "members": { "Sql": { "target": "com.amazonaws.redshiftdata#StatementString", "traits": { "smithy.api#documentation": "

The SQL statement text to run.

", "smithy.api#required": {} } }, "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#ClusterIdentifierString", "traits": { "smithy.api#documentation": "

The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.

" } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

" } }, "DbUser": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials.

" } }, "Database": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

" } }, "WithEvent": { "target": "smithy.api#Boolean", "traits": { "smithy.api#documentation": "

A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.

" } }, "StatementName": { "target": "com.amazonaws.redshiftdata#StatementNameString", "traits": { "smithy.api#documentation": "

The name of the SQL statement. You can name the SQL statement when you create it to identify the query.

" } }, "Parameters": { "target": "com.amazonaws.redshiftdata#SqlParametersList", "traits": { "smithy.api#documentation": "

The parameters for the SQL statement.

" } }, "WorkgroupName": { "target": "com.amazonaws.redshiftdata#WorkgroupNameString", "traits": { "smithy.api#documentation": "

The serverless workgroup name or Amazon Resource Name (ARN). This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.

" } }, "ClientToken": { "target": "com.amazonaws.redshiftdata#ClientToken", "traits": { "smithy.api#documentation": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", "smithy.api#idempotencyToken": {} } }, "ResultFormat": { "target": "com.amazonaws.redshiftdata#ResultFormatString", "traits": { "smithy.api#documentation": "

The data format of the result of the SQL statement. If no format is specified, the default is JSON.

" } }, "SessionKeepAliveSeconds": { "target": "com.amazonaws.redshiftdata#SessionAliveSeconds", "traits": { "smithy.api#documentation": "

The number of seconds to keep the session alive after the query finishes. The maximum time a session can keep alive is 24 hours. After 24 hours, the session is forced closed and the query is terminated.

" } }, "SessionId": { "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

The session identifier of the query.

" } }, "WaitTimeSeconds": { "target": "com.amazonaws.redshiftdata#WaitTimeSeconds", "traits": { "smithy.api#documentation": "

The number of seconds to wait for the SQL statement to complete execution before returning the response. If the SQL statement does not complete within the specified time, the response returns the current status. The maximum value is 30 seconds.

" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.redshiftdata#ExecuteStatementOutput": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

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.

" } }, "CreatedAt": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The date and time (UTC) the statement was created.

" } }, "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#ClusterIdentifierString", "traits": { "smithy.api#documentation": "

The cluster identifier. This element is not returned when connecting to a serverless workgroup.

" } }, "DbUser": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The database user name.

" } }, "DbGroups": { "target": "com.amazonaws.redshiftdata#DbGroupList", "traits": { "smithy.api#documentation": "

A list of colon (:) separated names of database groups.

" } }, "Database": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The name of the database.

" } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database.

" } }, "WorkgroupName": { "target": "com.amazonaws.redshiftdata#WorkgroupNameString", "traits": { "smithy.api#documentation": "

The serverless workgroup name or Amazon Resource Name (ARN). This element is not returned when connecting to a provisioned cluster.

" } }, "SessionId": { "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

The session identifier of the query.

" } }, "Status": { "target": "com.amazonaws.redshiftdata#StatementStatusString", "traits": { "smithy.api#documentation": "

The status of the SQL statement. Status values are defined as follows:

" } }, "RedshiftPid": { "target": "com.amazonaws.redshiftdata#BoxedLong", "traits": { "smithy.api#documentation": "

The process identifier from Amazon Redshift.

" } }, "HasResultSet": { "target": "com.amazonaws.redshiftdata#BoxedBoolean", "traits": { "smithy.api#documentation": "

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.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.redshiftdata#ExecutionMode": { "type": "string", "traits": { "smithy.api#enum": [ { "name": "TRANSACTION", "value": "TRANSACTION" }, { "name": "AUTO_COMMIT", "value": "AUTO_COMMIT" } ] } }, "com.amazonaws.redshiftdata#Field": { "type": "union", "members": { "isNull": { "target": "com.amazonaws.redshiftdata#BoxedBoolean", "traits": { "smithy.api#documentation": "

A value that indicates whether the data is NULL.

" } }, "booleanValue": { "target": "com.amazonaws.redshiftdata#BoxedBoolean", "traits": { "smithy.api#documentation": "

A value of the Boolean data type.

" } }, "longValue": { "target": "com.amazonaws.redshiftdata#BoxedLong", "traits": { "smithy.api#documentation": "

A value of the long data type.

" } }, "doubleValue": { "target": "com.amazonaws.redshiftdata#BoxedDouble", "traits": { "smithy.api#documentation": "

A value of the double data type.

" } }, "stringValue": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

A value of the string data type.

" } }, "blobValue": { "target": "com.amazonaws.redshiftdata#Blob", "traits": { "smithy.api#documentation": "

A value of the BLOB data type.

" } } }, "traits": { "smithy.api#documentation": "

A data value in a column.

" } }, "com.amazonaws.redshiftdata#FieldList": { "type": "list", "member": { "target": "com.amazonaws.redshiftdata#Field" } }, "com.amazonaws.redshiftdata#FormattedSqlRecords": { "type": "list", "member": { "target": "com.amazonaws.redshiftdata#QueryRecords" } }, "com.amazonaws.redshiftdata#GetStatementResult": { "type": "operation", "input": { "target": "com.amazonaws.redshiftdata#GetStatementResultRequest" }, "output": { "target": "com.amazonaws.redshiftdata#GetStatementResultResponse" }, "errors": [ { "target": "com.amazonaws.redshiftdata#ActiveWaitingRequestsExceededException" }, { "target": "com.amazonaws.redshiftdata#InternalServerException" }, { "target": "com.amazonaws.redshiftdata#ResourceNotFoundException" }, { "target": "com.amazonaws.redshiftdata#ValidationException" } ], "traits": { "smithy.api#documentation": "

Fetches the temporarily cached result of an SQL statement in JSON format. The ExecuteStatement or BatchExecuteStatement operation that ran the SQL statement must have specified ResultFormat as JSON , or let the format default to JSON. A token is returned to page through the statement results.

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.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "items": "Records" }, "smithy.api#readonly": {} } }, "com.amazonaws.redshiftdata#GetStatementResultRequest": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

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.

", "smithy.api#required": {} } }, "NextToken": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

" } }, "WaitTimeSeconds": { "target": "com.amazonaws.redshiftdata#WaitTimeSeconds", "traits": { "smithy.api#documentation": "

The number of seconds to wait for the SQL statement to complete execution before returning the result. The maximum value is 30 seconds.

" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.redshiftdata#GetStatementResultResponse": { "type": "structure", "members": { "Records": { "target": "com.amazonaws.redshiftdata#SqlRecords", "traits": { "smithy.api#documentation": "

The results of the SQL statement in JSON format.

", "smithy.api#required": {} } }, "ColumnMetadata": { "target": "com.amazonaws.redshiftdata#ColumnMetadataList", "traits": { "smithy.api#documentation": "

The properties (metadata) of a column.

" } }, "TotalNumRows": { "target": "com.amazonaws.redshiftdata#Long", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

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.

" } }, "NextToken": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.redshiftdata#GetStatementResultV2": { "type": "operation", "input": { "target": "com.amazonaws.redshiftdata#GetStatementResultV2Request" }, "output": { "target": "com.amazonaws.redshiftdata#GetStatementResultV2Response" }, "errors": [ { "target": "com.amazonaws.redshiftdata#ActiveWaitingRequestsExceededException" }, { "target": "com.amazonaws.redshiftdata#InternalServerException" }, { "target": "com.amazonaws.redshiftdata#ResourceNotFoundException" }, { "target": "com.amazonaws.redshiftdata#ValidationException" } ], "traits": { "smithy.api#documentation": "

Fetches the temporarily cached result of an SQL statement in CSV format. The ExecuteStatement or BatchExecuteStatement operation that ran the SQL statement must have specified ResultFormat as CSV. A token is returned to page through the statement results.

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.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "items": "Records" }, "smithy.api#readonly": {} } }, "com.amazonaws.redshiftdata#GetStatementResultV2Request": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

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.

", "smithy.api#required": {} } }, "NextToken": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

" } }, "WaitTimeSeconds": { "target": "com.amazonaws.redshiftdata#WaitTimeSeconds", "traits": { "smithy.api#documentation": "

The number of seconds to wait for the SQL statement to complete execution before returning the result. The maximum value is 30 seconds.

" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.redshiftdata#GetStatementResultV2Response": { "type": "structure", "members": { "Records": { "target": "com.amazonaws.redshiftdata#FormattedSqlRecords", "traits": { "smithy.api#documentation": "

The results of the SQL statement in CSV format.

", "smithy.api#required": {} } }, "ColumnMetadata": { "target": "com.amazonaws.redshiftdata#ColumnMetadataList", "traits": { "smithy.api#documentation": "

The properties (metadata) of a column.

" } }, "TotalNumRows": { "target": "com.amazonaws.redshiftdata#Long", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

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 GetStatementResultV2 operation needed to page through the results.

" } }, "ResultFormat": { "target": "com.amazonaws.redshiftdata#ResultFormatString", "traits": { "smithy.api#documentation": "

The data format of the result of the SQL statement.

" } }, "NextToken": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.redshiftdata#Integer": { "type": "integer", "traits": { "smithy.api#default": 0 } }, "com.amazonaws.redshiftdata#InternalServerException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The exception message.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

The Amazon Redshift Data API operation failed due to invalid input.

", "smithy.api#error": "server", "smithy.api#httpError": 500 } }, "com.amazonaws.redshiftdata#ListDatabases": { "type": "operation", "input": { "target": "com.amazonaws.redshiftdata#ListDatabasesRequest" }, "output": { "target": "com.amazonaws.redshiftdata#ListDatabasesResponse" }, "errors": [ { "target": "com.amazonaws.redshiftdata#DatabaseConnectionException" }, { "target": "com.amazonaws.redshiftdata#InternalServerException" }, { "target": "com.amazonaws.redshiftdata#QueryTimeoutException" }, { "target": "com.amazonaws.redshiftdata#ResourceNotFoundException" }, { "target": "com.amazonaws.redshiftdata#ValidationException" } ], "traits": { "smithy.api#documentation": "

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:

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.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults", "items": "Databases" }, "smithy.api#readonly": {} } }, "com.amazonaws.redshiftdata#ListDatabasesRequest": { "type": "structure", "members": { "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#ClusterIdentifierString", "traits": { "smithy.api#documentation": "

The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.

" } }, "Database": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.

" } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

" } }, "DbUser": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials.

" } }, "NextToken": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

" } }, "MaxResults": { "target": "com.amazonaws.redshiftdata#PageSize", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

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.

" } }, "WorkgroupName": { "target": "com.amazonaws.redshiftdata#WorkgroupNameString", "traits": { "smithy.api#documentation": "

The serverless workgroup name or Amazon Resource Name (ARN). This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.

" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.redshiftdata#ListDatabasesResponse": { "type": "structure", "members": { "Databases": { "target": "com.amazonaws.redshiftdata#DatabaseList", "traits": { "smithy.api#documentation": "

The names of databases.

" } }, "NextToken": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.redshiftdata#ListSchemas": { "type": "operation", "input": { "target": "com.amazonaws.redshiftdata#ListSchemasRequest" }, "output": { "target": "com.amazonaws.redshiftdata#ListSchemasResponse" }, "errors": [ { "target": "com.amazonaws.redshiftdata#DatabaseConnectionException" }, { "target": "com.amazonaws.redshiftdata#InternalServerException" }, { "target": "com.amazonaws.redshiftdata#QueryTimeoutException" }, { "target": "com.amazonaws.redshiftdata#ResourceNotFoundException" }, { "target": "com.amazonaws.redshiftdata#ValidationException" } ], "traits": { "smithy.api#documentation": "

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:

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.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults", "items": "Schemas" }, "smithy.api#readonly": {} } }, "com.amazonaws.redshiftdata#ListSchemasRequest": { "type": "structure", "members": { "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#ClusterIdentifierString", "traits": { "smithy.api#documentation": "

The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.

" } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

" } }, "DbUser": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials.

" } }, "Database": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

", "smithy.api#required": {} } }, "ConnectedDatabase": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

A database name. The connected database is specified when you connect with your authentication credentials.

" } }, "SchemaPattern": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

" } }, "NextToken": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

" } }, "MaxResults": { "target": "com.amazonaws.redshiftdata#PageSize", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

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.

" } }, "WorkgroupName": { "target": "com.amazonaws.redshiftdata#WorkgroupNameString", "traits": { "smithy.api#documentation": "

The serverless workgroup name or Amazon Resource Name (ARN). This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.

" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.redshiftdata#ListSchemasResponse": { "type": "structure", "members": { "Schemas": { "target": "com.amazonaws.redshiftdata#SchemaList", "traits": { "smithy.api#documentation": "

The schemas that match the request pattern.

" } }, "NextToken": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.redshiftdata#ListSessions": { "type": "operation", "input": { "target": "com.amazonaws.redshiftdata#ListSessionsRequest" }, "output": { "target": "com.amazonaws.redshiftdata#ListSessionsResponse" }, "errors": [ { "target": "com.amazonaws.redshiftdata#InternalServerException" }, { "target": "com.amazonaws.redshiftdata#ResourceNotFoundException" }, { "target": "com.amazonaws.redshiftdata#ValidationException" } ], "traits": { "smithy.api#documentation": "

Lists the sessions that the caller created in the last 24 hours. By default, only sessions with a status of AVAILABLE or BUSY are returned. You can filter the results by session status, compute target (cluster or serverless workgroup), or database. To retrieve the metadata for a single session, provide the SessionId parameter. Use NextToken to page through the session list.

Returns only the sessions that the caller created. When identity-enhanced role sessions are used, you must provide either the ClusterIdentifier or WorkgroupName parameter to ensure that the IAM Identity Center user can only access the Amazon Redshift IAM Identity Center applications they are assigned. For more information, see Trusted identity propagation overview.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults", "items": "Sessions" }, "smithy.api#readonly": {} } }, "com.amazonaws.redshiftdata#ListSessionsRequest": { "type": "structure", "members": { "NextToken": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

" } }, "MaxResults": { "target": "com.amazonaws.redshiftdata#ListStatementsLimit", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The maximum number of sessions to return in the response. If more sessions exist than fit in one response, the operation returns NextToken to paginate the results.

" } }, "SessionId": { "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

The identifier of a specific session to return metadata for. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. When you provide SessionId, you can't specify Status, ClusterIdentifier, WorkgroupName, or Database.

" } }, "Status": { "target": "com.amazonaws.redshiftdata#SessionStatusString", "traits": { "smithy.api#documentation": "

The status of the sessions to list. If no status is specified, sessions with a status of AVAILABLE or BUSY are returned. Status values are defined as follows:

" } }, "RoleLevel": { "target": "smithy.api#Boolean", "traits": { "smithy.api#documentation": "

Specifies whether to return all sessions created by the caller's IAM role, including sessions from previous IAM sessions. If false, only sessions created in the current IAM session are returned. The default is true.

" } }, "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#ClusterIdentifierString", "traits": { "smithy.api#documentation": "

The cluster identifier. Only sessions on this cluster are returned. When providing ClusterIdentifier, then WorkgroupName can't be specified.

" } }, "WorkgroupName": { "target": "com.amazonaws.redshiftdata#WorkgroupNameString", "traits": { "smithy.api#documentation": "

The serverless workgroup name or Amazon Resource Name (ARN). Only sessions on this workgroup are returned. When providing WorkgroupName, then ClusterIdentifier can't be specified.

" } }, "Database": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The name of the database. Only sessions connected to this database are returned.

" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.redshiftdata#ListSessionsResponse": { "type": "structure", "members": { "Sessions": { "target": "com.amazonaws.redshiftdata#SessionList", "traits": { "smithy.api#documentation": "

The sessions that match the request.

", "smithy.api#required": {} } }, "NextToken": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.redshiftdata#ListStatements": { "type": "operation", "input": { "target": "com.amazonaws.redshiftdata#ListStatementsRequest" }, "output": { "target": "com.amazonaws.redshiftdata#ListStatementsResponse" }, "errors": [ { "target": "com.amazonaws.redshiftdata#InternalServerException" }, { "target": "com.amazonaws.redshiftdata#ResourceNotFoundException" }, { "target": "com.amazonaws.redshiftdata#ValidationException" } ], "traits": { "smithy.api#documentation": "

List of SQL statements. By default, only finished statements are shown. A token is returned to page through the statement list.

When you use identity-enhanced role sessions to list statements, you must provide either the cluster-identifier or workgroup-name parameter. This ensures that the IdC user can only access the Amazon Redshift IdC applications they are assigned. For more information, see Trusted identity propagation overview.

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.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults", "items": "Statements" }, "smithy.api#readonly": {} } }, "com.amazonaws.redshiftdata#ListStatementsLimit": { "type": "integer", "traits": { "smithy.api#default": 0, "smithy.api#range": { "min": 0, "max": 100 } } }, "com.amazonaws.redshiftdata#ListStatementsRequest": { "type": "structure", "members": { "NextToken": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

" } }, "MaxResults": { "target": "com.amazonaws.redshiftdata#ListStatementsLimit", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

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.

" } }, "StatementName": { "target": "com.amazonaws.redshiftdata#StatementNameString", "traits": { "smithy.api#documentation": "

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.

" } }, "Status": { "target": "com.amazonaws.redshiftdata#StatusString", "traits": { "smithy.api#documentation": "

The status of the SQL statement to list. Status values are defined as follows:

" } }, "RoleLevel": { "target": "smithy.api#Boolean", "traits": { "smithy.api#documentation": "

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.

" } }, "Database": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The name of the database when listing statements run against a ClusterIdentifier or WorkgroupName.

" } }, "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#ClusterIdentifierString", "traits": { "smithy.api#documentation": "

The cluster identifier. Only statements that ran on this cluster are returned. When providing ClusterIdentifier, then WorkgroupName can't be specified.

" } }, "WorkgroupName": { "target": "com.amazonaws.redshiftdata#WorkgroupNameString", "traits": { "smithy.api#documentation": "

The serverless workgroup name or Amazon Resource Name (ARN). Only statements that ran on this workgroup are returned. When providing WorkgroupName, then ClusterIdentifier can't be specified.

" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.redshiftdata#ListStatementsResponse": { "type": "structure", "members": { "Statements": { "target": "com.amazonaws.redshiftdata#StatementList", "traits": { "smithy.api#documentation": "

The SQL statements.

", "smithy.api#required": {} } }, "NextToken": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.redshiftdata#ListTables": { "type": "operation", "input": { "target": "com.amazonaws.redshiftdata#ListTablesRequest" }, "output": { "target": "com.amazonaws.redshiftdata#ListTablesResponse" }, "errors": [ { "target": "com.amazonaws.redshiftdata#DatabaseConnectionException" }, { "target": "com.amazonaws.redshiftdata#InternalServerException" }, { "target": "com.amazonaws.redshiftdata#QueryTimeoutException" }, { "target": "com.amazonaws.redshiftdata#ResourceNotFoundException" }, { "target": "com.amazonaws.redshiftdata#ValidationException" } ], "traits": { "smithy.api#documentation": "

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:

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.

", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults", "items": "Tables" }, "smithy.api#readonly": {} } }, "com.amazonaws.redshiftdata#ListTablesRequest": { "type": "structure", "members": { "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#ClusterIdentifierString", "traits": { "smithy.api#documentation": "

The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.

" } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { "smithy.api#documentation": "

The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.

" } }, "DbUser": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials.

" } }, "Database": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

", "smithy.api#required": {} } }, "ConnectedDatabase": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

A database name. The connected database is specified when you connect with your authentication credentials.

" } }, "SchemaPattern": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

" } }, "TablePattern": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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 SchemaPatternare returned. If neither SchemaPattern or TablePattern are specified, then all tables are returned.

" } }, "NextToken": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

" } }, "MaxResults": { "target": "com.amazonaws.redshiftdata#PageSize", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

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.

" } }, "WorkgroupName": { "target": "com.amazonaws.redshiftdata#WorkgroupNameString", "traits": { "smithy.api#documentation": "

The serverless workgroup name or Amazon Resource Name (ARN). This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.

" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.redshiftdata#ListTablesResponse": { "type": "structure", "members": { "Tables": { "target": "com.amazonaws.redshiftdata#TableList", "traits": { "smithy.api#documentation": "

The tables that match the request pattern.

" } }, "NextToken": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

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.

" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.redshiftdata#Long": { "type": "long", "traits": { "smithy.api#default": 0 } }, "com.amazonaws.redshiftdata#PageSize": { "type": "integer", "traits": { "smithy.api#default": 0, "smithy.api#range": { "min": 0, "max": 1000 } } }, "com.amazonaws.redshiftdata#ParameterName": { "type": "string", "traits": { "smithy.api#pattern": "^[0-9a-zA-Z_]+$" } }, "com.amazonaws.redshiftdata#ParameterValue": { "type": "string", "traits": { "smithy.api#length": { "min": 1 } } }, "com.amazonaws.redshiftdata#QueryRecords": { "type": "union", "members": { "CSVRecords": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The results of the SQL statement in CSV format.

" } } }, "traits": { "smithy.api#documentation": "

The results of the SQL statement.

" } }, "com.amazonaws.redshiftdata#QueryTimeoutException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.redshiftdata#String" } }, "traits": { "smithy.api#documentation": "

The Amazon Redshift Data API operation failed due to timeout.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.redshiftdata#RedshiftData": { "type": "service", "version": "2019-12-20", "operations": [ { "target": "com.amazonaws.redshiftdata#BatchExecuteStatement" }, { "target": "com.amazonaws.redshiftdata#CancelStatement" }, { "target": "com.amazonaws.redshiftdata#DescribeStatement" }, { "target": "com.amazonaws.redshiftdata#DescribeTable" }, { "target": "com.amazonaws.redshiftdata#ExecuteStatement" }, { "target": "com.amazonaws.redshiftdata#GetStatementResult" }, { "target": "com.amazonaws.redshiftdata#GetStatementResultV2" }, { "target": "com.amazonaws.redshiftdata#ListDatabases" }, { "target": "com.amazonaws.redshiftdata#ListSchemas" }, { "target": "com.amazonaws.redshiftdata#ListSessions" }, { "target": "com.amazonaws.redshiftdata#ListStatements" }, { "target": "com.amazonaws.redshiftdata#ListTables" } ], "traits": { "aws.api#service": { "sdkId": "Redshift Data", "arnNamespace": "redshift-data" }, "aws.auth#sigv4": { "name": "redshift-data" }, "aws.protocols#awsJson1_1": {}, "smithy.api#cors": {}, "smithy.api#documentation": "

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.

", "smithy.api#title": "Redshift Data API Service", "smithy.rules#endpointBdd": { "version": "1.1", "parameters": { "Region": { "builtIn": "AWS::Region", "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "string" }, "UseDualStack": { "builtIn": "AWS::UseDualStack", "required": true, "default": false, "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", "type": "boolean" }, "UseFIPS": { "builtIn": "AWS::UseFIPS", "required": true, "default": false, "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", "type": "boolean" }, "Endpoint": { "builtIn": "SDK::Endpoint", "required": false, "documentation": "Override the endpoint used to send this request", "type": "string" } }, "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Endpoint" } ] }, { "fn": "isSet", "argv": [ { "ref": "Region" } ] }, { "fn": "aws.partition", "argv": [ { "ref": "Region" } ], "assign": "PartitionResult" }, { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] }, { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] }, { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] }, true ] }, { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] }, true ] } ], "results": [ { "conditions": [], "error": "Invalid Configuration: FIPS and custom endpoint are not supported", "type": "error" }, { "conditions": [], "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], "endpoint": { "url": { "ref": "Endpoint" }, "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://redshift-data-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://redshift-data-fips.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://redshift-data.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://redshift-data.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } ], "root": 2, "nodeCount": 13, "nodes": "/////wAAAAH/////AAAAAAAAAAwAAAADAAAAAQAAAAQF9eELAAAAAgAAAAUF9eELAAAAAwAAAAgAAAAGAAAABAAAAAcF9eEKAAAABQX14QgF9eEJAAAABAAAAAoAAAAJAAAABgX14QYF9eEHAAAABQAAAAsF9eEFAAAABgX14QQF9eEFAAAAAwX14QEAAAANAAAABAX14QIF9eED" }, "smithy.rules#endpointRuleSet": { "version": "1.0", "parameters": { "Region": { "builtIn": "AWS::Region", "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "string" }, "UseDualStack": { "builtIn": "AWS::UseDualStack", "required": true, "default": false, "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", "type": "boolean" }, "UseFIPS": { "builtIn": "AWS::UseFIPS", "required": true, "default": false, "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", "type": "boolean" }, "Endpoint": { "builtIn": "SDK::Endpoint", "required": false, "documentation": "Override the endpoint used to send this request", "type": "string" } }, "rules": [ { "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Endpoint" } ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] } ], "error": "Invalid Configuration: FIPS and custom endpoint are not supported", "type": "error" }, { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], "endpoint": { "url": { "ref": "Endpoint" }, "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Region" } ] } ], "rules": [ { "conditions": [ { "fn": "aws.partition", "argv": [ { "ref": "Region" } ], "assign": "PartitionResult" } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] }, { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] } ] }, { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] } ] } ], "rules": [ { "conditions": [], "endpoint": { "url": "https://redshift-data-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } ], "type": "tree" }, { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] }, true ] } ], "rules": [ { "conditions": [], "endpoint": { "url": "https://redshift-data-fips.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } ], "type": "tree" }, { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] } ] } ], "rules": [ { "conditions": [], "endpoint": { "url": "https://redshift-data.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } ], "type": "tree" }, { "conditions": [], "endpoint": { "url": "https://redshift-data.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" } ], "type": "tree" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } ] }, "smithy.rules#endpointTests": { "testCases": [ { "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://redshift-data-fips.us-east-1.api.aws" } }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://redshift-data-fips.us-east-1.amazonaws.com" } }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://redshift-data.us-east-1.api.aws" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://redshift-data.us-east-1.amazonaws.com" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://redshift-data-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://redshift-data-fips.cn-north-1.amazonaws.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://redshift-data.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://redshift-data.cn-north-1.amazonaws.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://redshift-data-fips.us-gov-east-1.api.aws" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://redshift-data-fips.us-gov-east-1.amazonaws.com" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://redshift-data.us-gov-east-1.api.aws" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://redshift-data.us-gov-east-1.amazonaws.com" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://redshift-data-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { "Region": "us-iso-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://redshift-data.us-iso-east-1.c2s.ic.gov" } }, "params": { "Region": "us-iso-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://redshift-data-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "Region": "us-isob-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://redshift-data.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "Region": "us-isob-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { "UseFIPS": false, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with fips enabled and dualstack disabled", "expect": { "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with fips disabled and dualstack enabled", "expect": { "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true, "Endpoint": "https://example.com" } }, { "documentation": "Missing region", "expect": { "error": "Invalid Configuration: Missing Region" } } ], "version": "1.0" } } }, "com.amazonaws.redshiftdata#ResourceNotFoundException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The exception message.

", "smithy.api#required": {} } }, "ResourceId": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

Resource identifier associated with the exception.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

The Amazon Redshift Data API operation failed due to a missing resource.

", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.redshiftdata#ResultFormatString": { "type": "string", "traits": { "smithy.api#enum": [ { "name": "JSON", "value": "JSON" }, { "name": "CSV", "value": "CSV" } ] } }, "com.amazonaws.redshiftdata#SchemaList": { "type": "list", "member": { "target": "com.amazonaws.redshiftdata#String" } }, "com.amazonaws.redshiftdata#SecretArn": { "type": "string" }, "com.amazonaws.redshiftdata#SessionAliveSeconds": { "type": "integer", "traits": { "smithy.api#range": { "min": 0, "max": 86400 } } }, "com.amazonaws.redshiftdata#SessionData": { "type": "structure", "members": { "SessionId": { "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

The session identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.

", "smithy.api#required": {} } }, "Status": { "target": "com.amazonaws.redshiftdata#SessionStatusString", "traits": { "smithy.api#documentation": "

The status of the session. Status values are defined as follows:

", "smithy.api#required": {} } }, "CreatedAt": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The date and time (UTC) when the session was created.

", "smithy.api#required": {} } }, "UpdatedAt": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The date and time (UTC) that the session metadata was last updated. An example is the time the status last changed.

" } }, "Database": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The name of the database that the session is connected to.

" } }, "DbUser": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The database user name.

" } }, "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The cluster identifier. This element is not returned when connecting to a serverless workgroup.

" } }, "WorkgroupName": { "target": "com.amazonaws.redshiftdata#WorkgroupNameString", "traits": { "smithy.api#documentation": "

The serverless workgroup name or Amazon Resource Name (ARN). This element is not returned when connecting to a provisioned cluster.

" } }, "SessionAliveSeconds": { "target": "com.amazonaws.redshiftdata#SessionAliveSeconds", "traits": { "smithy.api#documentation": "

The number of seconds that the session is kept alive after a query finishes.

" } }, "SessionTtl": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The date and time (UTC) when the session is set to expire and be closed.

" } }, "CurrentStatementId": { "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

The identifier of the SQL statement currently running in the session. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. This element is returned only when the session status is BUSY.

" } } }, "traits": { "smithy.api#documentation": "

Contains the metadata for a session returned by ListSessions, including its status, compute target, database connection, and lifecycle timestamps.

" } }, "com.amazonaws.redshiftdata#SessionList": { "type": "list", "member": { "target": "com.amazonaws.redshiftdata#SessionData" } }, "com.amazonaws.redshiftdata#SessionStatusString": { "type": "string", "traits": { "smithy.api#enum": [ { "name": "AVAILABLE", "value": "AVAILABLE" }, { "name": "BUSY", "value": "BUSY" }, { "name": "CLOSED", "value": "CLOSED" } ] } }, "com.amazonaws.redshiftdata#SqlList": { "type": "list", "member": { "target": "com.amazonaws.redshiftdata#StatementString" }, "traits": { "smithy.api#length": { "min": 1, "max": 40 } } }, "com.amazonaws.redshiftdata#SqlParameter": { "type": "structure", "members": { "name": { "target": "com.amazonaws.redshiftdata#ParameterName", "traits": { "smithy.api#documentation": "

The name of the parameter.

", "smithy.api#required": {} } }, "value": { "target": "com.amazonaws.redshiftdata#ParameterValue", "traits": { "smithy.api#documentation": "

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.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

A parameter used in a SQL statement.

" } }, "com.amazonaws.redshiftdata#SqlParametersList": { "type": "list", "member": { "target": "com.amazonaws.redshiftdata#SqlParameter" }, "traits": { "smithy.api#length": { "min": 1 } } }, "com.amazonaws.redshiftdata#SqlRecords": { "type": "list", "member": { "target": "com.amazonaws.redshiftdata#FieldList" } }, "com.amazonaws.redshiftdata#StatementData": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.

", "smithy.api#required": {} } }, "QueryString": { "target": "com.amazonaws.redshiftdata#StatementString", "traits": { "smithy.api#documentation": "

The SQL statement.

" } }, "QueryStrings": { "target": "com.amazonaws.redshiftdata#StatementStringList", "traits": { "smithy.api#documentation": "

One or more SQL statements. Each query string in the array corresponds to one of the queries in a batch query request.

" } }, "SecretArn": { "target": "com.amazonaws.redshiftdata#SecretArn", "traits": { "smithy.api#documentation": "

The name or Amazon Resource Name (ARN) of the secret that enables access to the database.

" } }, "Status": { "target": "com.amazonaws.redshiftdata#StatusString", "traits": { "smithy.api#documentation": "

The status of the SQL statement. An example is the that the SQL statement finished.

" } }, "StatementName": { "target": "com.amazonaws.redshiftdata#StatementNameString", "traits": { "smithy.api#documentation": "

The name of the SQL statement.

" } }, "CreatedAt": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The date and time (UTC) the statement was created.

" } }, "UpdatedAt": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The date and time (UTC) that the statement metadata was last updated.

" } }, "QueryParameters": { "target": "com.amazonaws.redshiftdata#SqlParametersList", "traits": { "smithy.api#documentation": "

The parameters used in a SQL statement.

" } }, "IsBatchStatement": { "target": "smithy.api#Boolean", "traits": { "smithy.api#documentation": "

A value that indicates whether the statement is a batch query request.

" } }, "ResultFormat": { "target": "com.amazonaws.redshiftdata#ResultFormatString", "traits": { "smithy.api#documentation": "

The data format of the result of the SQL statement.

" } }, "SessionId": { "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

The session identifier of the query.

" } } }, "traits": { "smithy.api#documentation": "

The SQL statement to run.

" } }, "com.amazonaws.redshiftdata#StatementList": { "type": "list", "member": { "target": "com.amazonaws.redshiftdata#StatementData" } }, "com.amazonaws.redshiftdata#StatementNameString": { "type": "string", "traits": { "smithy.api#length": { "max": 2048 } } }, "com.amazonaws.redshiftdata#StatementStatusString": { "type": "string", "traits": { "smithy.api#enum": [ { "name": "SUBMITTED", "value": "SUBMITTED" }, { "name": "PICKED", "value": "PICKED" }, { "name": "STARTED", "value": "STARTED" }, { "name": "FINISHED", "value": "FINISHED" }, { "name": "ABORTED", "value": "ABORTED" }, { "name": "FAILED", "value": "FAILED" } ] } }, "com.amazonaws.redshiftdata#StatementString": { "type": "string" }, "com.amazonaws.redshiftdata#StatementStringList": { "type": "list", "member": { "target": "com.amazonaws.redshiftdata#StatementString" } }, "com.amazonaws.redshiftdata#StatusString": { "type": "string", "traits": { "smithy.api#enum": [ { "name": "SUBMITTED", "value": "SUBMITTED" }, { "name": "PICKED", "value": "PICKED" }, { "name": "STARTED", "value": "STARTED" }, { "name": "FINISHED", "value": "FINISHED" }, { "name": "ABORTED", "value": "ABORTED" }, { "name": "FAILED", "value": "FAILED" }, { "name": "ALL", "value": "ALL" } ] } }, "com.amazonaws.redshiftdata#String": { "type": "string" }, "com.amazonaws.redshiftdata#SubStatementData": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.redshiftdata#UUID", "traits": { "smithy.api#documentation": "

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.

", "smithy.api#required": {} } }, "Duration": { "target": "com.amazonaws.redshiftdata#Long", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The amount of time in nanoseconds that the statement ran.

" } }, "Error": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The error message from the cluster if the SQL statement encountered an error while running.

" } }, "Status": { "target": "com.amazonaws.redshiftdata#StatementStatusString", "traits": { "smithy.api#documentation": "

The status of the SQL statement. An example is the that the SQL statement finished.

" } }, "CreatedAt": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The date and time (UTC) the statement was created.

" } }, "UpdatedAt": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "

The date and time (UTC) that the statement metadata was last updated.

" } }, "QueryString": { "target": "com.amazonaws.redshiftdata#StatementString", "traits": { "smithy.api#documentation": "

The SQL statement text.

" } }, "ResultRows": { "target": "com.amazonaws.redshiftdata#Long", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

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.

" } }, "ResultSize": { "target": "com.amazonaws.redshiftdata#Long", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The size in bytes of the returned results. A -1 indicates the value is null.

" } }, "RedshiftQueryId": { "target": "com.amazonaws.redshiftdata#Long", "traits": { "smithy.api#default": 0, "smithy.api#documentation": "

The identifier of the query generated by Amazon Redshift. These identifiers are also available in the query_id column of the SYS_QUERY_HISTORY system view.

" } }, "RedshiftQueryUuid": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The global unique identifier of the query generated by Amazon Redshift. These identifiers are also available in the query_uuid column of the SYS_QUERY_HISTORY system view.

" } }, "HasResultSet": { "target": "smithy.api#Boolean", "traits": { "smithy.api#documentation": "

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.

" } } }, "traits": { "smithy.api#documentation": "

Information about an SQL statement.

" } }, "com.amazonaws.redshiftdata#SubStatementList": { "type": "list", "member": { "target": "com.amazonaws.redshiftdata#SubStatementData" } }, "com.amazonaws.redshiftdata#TableList": { "type": "list", "member": { "target": "com.amazonaws.redshiftdata#TableMember" } }, "com.amazonaws.redshiftdata#TableMember": { "type": "structure", "members": { "name": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The name of the table.

" } }, "type": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The type of the table. Possible values include TABLE, VIEW, SYSTEM TABLE, GLOBAL TEMPORARY, LOCAL TEMPORARY, ALIAS, and SYNONYM.

" } }, "schema": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The schema containing the table.

" } } }, "traits": { "smithy.api#documentation": "

The properties of a table.

" } }, "com.amazonaws.redshiftdata#UUID": { "type": "string", "traits": { "smithy.api#pattern": "^[a-z0-9]{8}(-[a-z0-9]{4}){3}-[a-z0-9]{12}(:\\d{0,2})?$" } }, "com.amazonaws.redshiftdata#ValidationException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.redshiftdata#String", "traits": { "smithy.api#documentation": "

The exception message.

" } } }, "traits": { "smithy.api#documentation": "

The Amazon Redshift Data API operation failed due to invalid input.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.redshiftdata#WaitTimeSeconds": { "type": "integer", "traits": { "smithy.api#range": { "min": 1, "max": 30 } } }, "com.amazonaws.redshiftdata#WorkgroupNameString": { "type": "string", "traits": { "smithy.api#length": { "min": 3, "max": 128 }, "smithy.api#pattern": "^([a-z0-9-]{3,63}|arn:(aws(-[a-z]+)*):redshift-serverless:([a-z]{2}(-gov|(-iso[a-z]?))?|eusc-[a-z]+)-[a-z]+-\\d{1}:\\d{12}:workgroup/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|[a-z0-9-]{1,63}/[a-z0-9-]{1,63}))$" } }, "com.amazonaws.redshiftdata#bool": { "type": "boolean", "traits": { "smithy.api#default": false } } } }