aws-cdk-lib.aws_config.CfnStoredQueryProps

interface CfnStoredQueryProps

LanguageType name
.NETAmazon.CDK.AWS.Config.CfnStoredQueryProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsconfig#CfnStoredQueryProps
Javasoftware.amazon.awscdk.services.config.CfnStoredQueryProps
Pythonaws_cdk.aws_config.CfnStoredQueryProps
TypeScript aws-cdk-lib » aws_config » CfnStoredQueryProps

Properties for defining a CfnStoredQuery.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_config as config } from 'aws-cdk-lib';
const cfnStoredQueryProps: config.CfnStoredQueryProps = {
  queryExpression: 'queryExpression',
  queryName: 'queryName',

  // the properties below are optional
  queryDescription: 'queryDescription',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
queryExpressionstringThe expression of the query.
queryNamestringThe name of the query.
queryDescription?stringA unique description for the query.
tags?CfnTag[]An array of key-value pairs to apply to this resource.

queryExpression

Type: string

The expression of the query.

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


queryName

Type: string

The name of the query.


queryDescription?

Type: string (optional)

A unique description for the query.


tags?

Type: CfnTag[] (optional)

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