Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
GetNamedQuery' | |
|
Instances
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:
$sel:namedQueryId: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.
GetNamedQueryResponse' | |
|
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.