amazonka-config-2.0: Amazon Config SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Config.Types.StoredQuery

Description

 
Synopsis

Documentation

data StoredQuery Source #

Provides the details of a stored query.

See: newStoredQuery smart constructor.

Constructors

StoredQuery' 

Fields

  • description :: Maybe Text

    A unique description for the query.

  • 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'.

  • queryArn :: Maybe Text

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

  • queryId :: Maybe Text

    The ID of the query.

  • queryName :: Text

    The name of the query.

Instances

Instances details
FromJSON StoredQuery Source # 
Instance details

Defined in Amazonka.Config.Types.StoredQuery

ToJSON 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 #

Read StoredQuery Source # 
Instance details

Defined in Amazonka.Config.Types.StoredQuery

Show StoredQuery Source # 
Instance details

Defined in Amazonka.Config.Types.StoredQuery

NFData StoredQuery Source # 
Instance details

Defined in Amazonka.Config.Types.StoredQuery

Methods

rnf :: StoredQuery -> () #

Eq StoredQuery Source # 
Instance details

Defined in Amazonka.Config.Types.StoredQuery

Hashable 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" "amazonka-config-2.0-7GF0fBbVw65uROwJwpcE3" 'False) (C1 ('MetaCons "StoredQuery'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "expression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "queryArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "queryId") '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:description:StoredQuery', storedQuery_description - A unique description for the query.

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

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

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

A unique description for the query.

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