

# StatementData
<a name="API_StatementData"></a>

The SQL statement to run.

## Contents
<a name="API_StatementData_Contents"></a>

**Note**  
In the following list, the required parameters are described first.

 ** Id **   <a name="redshiftdata-Type-StatementData-Id"></a>
The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.   
Type: String  
Pattern: `[a-z0-9]{8}(-[a-z0-9]{4}){3}-[a-z0-9]{12}(:\d+)?`   
Required: Yes

 ** CreatedAt **   <a name="redshiftdata-Type-StatementData-CreatedAt"></a>
The date and time (UTC) the statement was created.   
Type: Timestamp  
Required: No

 ** IsBatchStatement **   <a name="redshiftdata-Type-StatementData-IsBatchStatement"></a>
A value that indicates whether the statement is a batch query request.  
Type: Boolean  
Required: No

 ** QueryParameters **   <a name="redshiftdata-Type-StatementData-QueryParameters"></a>
The parameters used in a SQL statement.  
Type: Array of [SqlParameter](API_SqlParameter.md) objects  
Array Members: Minimum number of 1 item.  
Required: No

 ** QueryString **   <a name="redshiftdata-Type-StatementData-QueryString"></a>
The SQL statement.  
Type: String  
Required: No

 ** QueryStrings **   <a name="redshiftdata-Type-StatementData-QueryStrings"></a>
One or more SQL statements. Each query string in the array corresponds to one of the queries in a batch query request.  
Type: Array of strings  
Required: No

 ** ResultFormat **   <a name="redshiftdata-Type-StatementData-ResultFormat"></a>
The data format of the result of the SQL statement.  
Type: String  
Valid Values: `JSON | CSV`   
Required: No

 ** SecretArn **   <a name="redshiftdata-Type-StatementData-SecretArn"></a>
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.   
Type: String  
Required: No

 ** SessionId **   <a name="redshiftdata-Type-StatementData-SessionId"></a>
The session identifier of the query.  
Type: String  
Pattern: `[a-z0-9]{8}(-[a-z0-9]{4}){3}-[a-z0-9]{12}(:\d+)?`   
Required: No

 ** StatementName **   <a name="redshiftdata-Type-StatementData-StatementName"></a>
The name of the SQL statement.   
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 500.  
Required: No

 ** Status **   <a name="redshiftdata-Type-StatementData-Status"></a>
The status of the SQL statement. An example is the that the SQL statement finished.   
Type: String  
Valid Values: `SUBMITTED | PICKED | STARTED | FINISHED | ABORTED | FAILED | ALL`   
Required: No

 ** UpdatedAt **   <a name="redshiftdata-Type-StatementData-UpdatedAt"></a>
The date and time (UTC) that the statement metadata was last updated.  
Type: Timestamp  
Required: No

## See Also
<a name="API_StatementData_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/redshift-data-2019-12-20/StatementData) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/redshift-data-2019-12-20/StatementData) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/redshift-data-2019-12-20/StatementData) 