# CfnStoredQueryProps

Properties for defining a `CfnStoredQuery`.

Used as props by: [CfnStoredQuery](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_config.CfnStoredQuery.html)

- Source: Generated at build time

## Example

TypeScript:

```ts
// 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',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import 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"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.config.*;

CfnStoredQueryProps cfnStoredQueryProps = CfnStoredQueryProps.builder()
        .queryExpression("queryExpression")
        .queryName("queryName")

        // the properties below are optional
        .queryDescription("queryDescription")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Config;

var cfnStoredQueryProps = new CfnStoredQueryProps {
    QueryExpression = "queryExpression",
    QueryName = "queryName",

    // the properties below are optional
    QueryDescription = "queryDescription",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnStoredQueryProps := &CfnStoredQueryProps{
	QueryExpression: jsii.String("queryExpression"),
	QueryName: jsii.String("queryName"),

	// the properties below are optional
	QueryDescription: jsii.String("queryDescription"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `queryDescription`: string — A unique description for the query.

- `queryExpression`: string (required) — The expression of the query.

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

- `queryName`: string (required) — The name of the query.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.
