CfnStoredQueryProps

class aws_cdk.aws_config.CfnStoredQueryProps(*, query_expression, query_name, query_description=None, tags=None)

Bases: object

Properties for defining a CfnStoredQuery.

Parameters:
  • query_expression (str) – The expression of the query. For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.

  • query_name (str) – The name of the query.

  • query_description (Optional[str]) – A unique description for the query.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – An array of key-value pairs to apply to this resource.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-storedquery.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_config as config

cfn_stored_query_props = config.CfnStoredQueryProps(
    query_expression="queryExpression",
    query_name="queryName",

    # the properties below are optional
    query_description="queryDescription",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

query_description

A unique description for the query.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-storedquery.html#cfn-config-storedquery-querydescription

query_expression

The expression of the query.

For example, SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-storedquery.html#cfn-config-storedquery-queryexpression

query_name

The name of the query.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-storedquery.html#cfn-config-storedquery-queryname

tags

An array of key-value pairs to apply to this resource.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-storedquery.html#cfn-config-storedquery-tags