Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a named query.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide .
Synopsis
- createNamedQuery :: Text -> Text -> Text -> CreateNamedQuery
- data CreateNamedQuery
- cnqClientRequestToken :: Lens' CreateNamedQuery (Maybe Text)
- cnqDescription :: Lens' CreateNamedQuery (Maybe Text)
- cnqName :: Lens' CreateNamedQuery Text
- cnqDatabase :: Lens' CreateNamedQuery Text
- cnqQueryString :: Lens' CreateNamedQuery Text
- createNamedQueryResponse :: Int -> CreateNamedQueryResponse
- data CreateNamedQueryResponse
- cnqrsNamedQueryId :: Lens' CreateNamedQueryResponse (Maybe Text)
- cnqrsResponseStatus :: Lens' CreateNamedQueryResponse Int
Creating a Request
Creates a value of CreateNamedQuery
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cnqClientRequestToken
- A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If anotherCreateNamedQuery
request is received, the same response is returned and another query is not created. If a parameter has changed, for example, theQueryString
, an error is returned. Important: This token is listed as not required because AWS SDKs (for example the AWS SDK for Java) auto-generate the token for users. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the action will fail.cnqDescription
- A brief explanation of the query.cnqName
- The plain language name for the query.cnqDatabase
- The database to which the query belongs.cnqQueryString
- The text of the query itself. In other words, all query statements.
data CreateNamedQuery Source #
See: createNamedQuery
smart constructor.
Instances
Request Lenses
cnqClientRequestToken :: Lens' CreateNamedQuery (Maybe Text) Source #
A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If another CreateNamedQuery
request is received, the same response is returned and another query is not created. If a parameter has changed, for example, the QueryString
, an error is returned. Important: This token is listed as not required because AWS SDKs (for example the AWS SDK for Java) auto-generate the token for users. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the action will fail.
cnqDescription :: Lens' CreateNamedQuery (Maybe Text) Source #
A brief explanation of the query.
cnqDatabase :: Lens' CreateNamedQuery Text Source #
The database to which the query belongs.
cnqQueryString :: Lens' CreateNamedQuery Text Source #
The text of the query itself. In other words, all query statements.
Destructuring the Response
createNamedQueryResponse Source #
Creates a value of CreateNamedQueryResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cnqrsNamedQueryId
- The unique ID of the query.cnqrsResponseStatus
- -- | The response status code.
data CreateNamedQueryResponse Source #
See: createNamedQueryResponse
smart constructor.
Instances
Response Lenses
cnqrsNamedQueryId :: Lens' CreateNamedQueryResponse (Maybe Text) Source #
The unique ID of the query.
cnqrsResponseStatus :: Lens' CreateNamedQueryResponse Int Source #
- - | The response status code.