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.Types.StoredQuery

Description

 
Synopsis

Documentation

data StoredQuery Source #

Provides the details of a stored query.

See: newStoredQuery smart constructor.

Constructors

StoredQuery' 

Fields

  • queryId :: Maybe Text

    The ID of the query.

  • queryArn :: Maybe Text

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

  • expression :: Maybe Text

    The expression of the query. For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.

  • description :: Maybe Text

    A unique description for the query.

  • queryName :: Text

    The name of the query.

Instances

Instances details
Eq StoredQuery Source # 
Instance details

Defined in Amazonka.Config.Types.StoredQuery

Read StoredQuery Source # 
Instance details

Defined in Amazonka.Config.Types.StoredQuery

Show StoredQuery Source # 
Instance details

Defined in Amazonka.Config.Types.StoredQuery

Generic StoredQuery Source # 
Instance details

Defined in Amazonka.Config.Types.StoredQuery

Associated Types

type Rep StoredQuery :: Type -> Type #

NFData StoredQuery Source # 
Instance details

Defined in Amazonka.Config.Types.StoredQuery

Methods

rnf :: StoredQuery -> () #

Hashable StoredQuery Source # 
Instance details

Defined in Amazonka.Config.Types.StoredQuery

ToJSON StoredQuery Source # 
Instance details

Defined in Amazonka.Config.Types.StoredQuery

FromJSON StoredQuery Source # 
Instance details

Defined in Amazonka.Config.Types.StoredQuery

type Rep StoredQuery Source # 
Instance details

Defined in Amazonka.Config.Types.StoredQuery

type Rep StoredQuery = D1 ('MetaData "StoredQuery" "Amazonka.Config.Types.StoredQuery" "libZSservicesZSamazonka-configZSamazonka-config" 'False) (C1 ('MetaCons "StoredQuery'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "queryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "queryArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "expression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "queryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newStoredQuery Source #

Create a value of StoredQuery 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:queryId:StoredQuery', storedQuery_queryId - The ID of the query.

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

$sel:expression:StoredQuery', storedQuery_expression - The expression of the query. For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.

$sel:description:StoredQuery', storedQuery_description - A unique description for the query.

$sel:queryName:StoredQuery', storedQuery_queryName - The name of the query.

storedQuery_queryArn :: Lens' StoredQuery (Maybe Text) Source #

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

storedQuery_expression :: Lens' StoredQuery (Maybe Text) Source #

The expression of the query. For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.

storedQuery_description :: Lens' StoredQuery (Maybe Text) Source #

A unique description for the query.