| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Athena.GetNamedQuery
Description
Returns information about a single query. Requires that you have access to the workgroup in which the query was saved.
Synopsis
- data GetNamedQuery = GetNamedQuery' {
- namedQueryId :: Text
- newGetNamedQuery :: Text -> GetNamedQuery
- getNamedQuery_namedQueryId :: Lens' GetNamedQuery Text
- data GetNamedQueryResponse = GetNamedQueryResponse' {}
- newGetNamedQueryResponse :: Int -> GetNamedQueryResponse
- getNamedQueryResponse_namedQuery :: Lens' GetNamedQueryResponse (Maybe NamedQuery)
- getNamedQueryResponse_httpStatus :: Lens' GetNamedQueryResponse Int
Creating a Request
data GetNamedQuery Source #
See: newGetNamedQuery smart constructor.
Constructors
| GetNamedQuery' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetNamedQuery |
Create a value of GetNamedQuery with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetNamedQuery, getNamedQuery_namedQueryId - The unique ID of the query. Use ListNamedQueries to get query IDs.
Request Lenses
getNamedQuery_namedQueryId :: Lens' GetNamedQuery Text Source #
The unique ID of the query. Use ListNamedQueries to get query IDs.
Destructuring the Response
data GetNamedQueryResponse Source #
See: newGetNamedQueryResponse smart constructor.
Constructors
| GetNamedQueryResponse' | |
Fields
| |
Instances
newGetNamedQueryResponse Source #
Create a value of GetNamedQueryResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:namedQuery:GetNamedQueryResponse', getNamedQueryResponse_namedQuery - Information about the query.
$sel:httpStatus:GetNamedQueryResponse', getNamedQueryResponse_httpStatus - The response's http status code.
Response Lenses
getNamedQueryResponse_namedQuery :: Lens' GetNamedQueryResponse (Maybe NamedQuery) Source #
Information about the query.
getNamedQueryResponse_httpStatus :: Lens' GetNamedQueryResponse Int Source #
The response's http status code.