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 |
Saves a new query or updates an existing saved query. The QueryName
must be unique for a single Amazon Web Services account and a single
Amazon Web Services Region. You can create upto 300 queries in a single
Amazon Web Services account and a single Amazon Web Services Region.
Synopsis
- data PutStoredQuery = PutStoredQuery' {
- tags :: Maybe [Tag]
- storedQuery :: StoredQuery
- newPutStoredQuery :: StoredQuery -> PutStoredQuery
- putStoredQuery_tags :: Lens' PutStoredQuery (Maybe [Tag])
- putStoredQuery_storedQuery :: Lens' PutStoredQuery StoredQuery
- data PutStoredQueryResponse = PutStoredQueryResponse' {
- queryArn :: Maybe Text
- httpStatus :: Int
- newPutStoredQueryResponse :: Int -> PutStoredQueryResponse
- putStoredQueryResponse_queryArn :: Lens' PutStoredQueryResponse (Maybe Text)
- putStoredQueryResponse_httpStatus :: Lens' PutStoredQueryResponse Int
Creating a Request
data PutStoredQuery Source #
See: newPutStoredQuery
smart constructor.
PutStoredQuery' | |
|
Instances
Create a value of PutStoredQuery
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:tags:PutStoredQuery'
, putStoredQuery_tags
- A list of Tags
object.
$sel:storedQuery:PutStoredQuery'
, putStoredQuery_storedQuery
- A list of StoredQuery
objects. The mandatory fields are QueryName
and Expression
.
When you are creating a query, you must provide a query name and an expression. When you are updating a query, you must provide a query name but updating the description is optional.
Request Lenses
putStoredQuery_tags :: Lens' PutStoredQuery (Maybe [Tag]) Source #
A list of Tags
object.
putStoredQuery_storedQuery :: Lens' PutStoredQuery StoredQuery Source #
A list of StoredQuery
objects. The mandatory fields are QueryName
and Expression
.
When you are creating a query, you must provide a query name and an expression. When you are updating a query, you must provide a query name but updating the description is optional.
Destructuring the Response
data PutStoredQueryResponse Source #
See: newPutStoredQueryResponse
smart constructor.
PutStoredQueryResponse' | |
|
Instances
newPutStoredQueryResponse Source #
Create a value of PutStoredQueryResponse
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:queryArn:PutStoredQueryResponse'
, putStoredQueryResponse_queryArn
- Amazon Resource Name (ARN) of the query. For example,
arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
$sel:httpStatus:PutStoredQueryResponse'
, putStoredQueryResponse_httpStatus
- The response's http status code.
Response Lenses
putStoredQueryResponse_queryArn :: Lens' PutStoredQueryResponse (Maybe Text) Source #
Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
putStoredQueryResponse_httpStatus :: Lens' PutStoredQueryResponse Int Source #
The response's http status code.