libZSservicesZSamazonka-configZSamazonka-config
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Config.PutStoredQuery

Description

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

Creating a Request

data PutStoredQuery Source #

See: newPutStoredQuery smart constructor.

Constructors

PutStoredQuery' 

Fields

  • tags :: Maybe [Tag]

    A list of Tags object.

  • storedQuery :: 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.

Instances

Instances details
Eq PutStoredQuery Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

Read PutStoredQuery Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

Show PutStoredQuery Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

Generic PutStoredQuery Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

Associated Types

type Rep PutStoredQuery :: Type -> Type #

NFData PutStoredQuery Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

Methods

rnf :: PutStoredQuery -> () #

Hashable PutStoredQuery Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

ToJSON PutStoredQuery Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

AWSRequest PutStoredQuery Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

Associated Types

type AWSResponse PutStoredQuery #

ToHeaders PutStoredQuery Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

ToPath PutStoredQuery Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

ToQuery PutStoredQuery Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

type Rep PutStoredQuery Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

type Rep PutStoredQuery = D1 ('MetaData "PutStoredQuery" "Amazonka.Config.PutStoredQuery" "libZSservicesZSamazonka-configZSamazonka-config" 'False) (C1 ('MetaCons "PutStoredQuery'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "storedQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 StoredQuery)))
type AWSResponse PutStoredQuery Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

newPutStoredQuery Source #

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_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.

Constructors

PutStoredQueryResponse' 

Fields

  • queryArn :: Maybe Text

    Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq PutStoredQueryResponse Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

Read PutStoredQueryResponse Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

Show PutStoredQueryResponse Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

Generic PutStoredQueryResponse Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

Associated Types

type Rep PutStoredQueryResponse :: Type -> Type #

NFData PutStoredQueryResponse Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

Methods

rnf :: PutStoredQueryResponse -> () #

type Rep PutStoredQueryResponse Source # 
Instance details

Defined in Amazonka.Config.PutStoredQuery

type Rep PutStoredQueryResponse = D1 ('MetaData "PutStoredQueryResponse" "Amazonka.Config.PutStoredQuery" "libZSservicesZSamazonka-configZSamazonka-config" 'False) (C1 ('MetaCons "PutStoredQueryResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "queryArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.