# CfnScheduledQueryProps

Properties for defining a `CfnScheduledQuery`.

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

- Source: Generated at build time
- Type last changed: v2.239.0 · 19 Feb 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';
const cfnScheduledQueryProps: logs.CfnScheduledQueryProps = {
  executionRoleArn: 'executionRoleArn',
  name: 'name',
  queryLanguage: 'queryLanguage',
  queryString: 'queryString',
  scheduleExpression: 'scheduleExpression',

  // the properties below are optional
  description: 'description',
  destinationConfiguration: {
    s3Configuration: {
      destinationIdentifier: 'destinationIdentifier',
      roleArn: 'roleArn',
    },
  },
  logGroupIdentifiers: ['logGroupIdentifiers'],
  scheduleEndTime: 123,
  scheduleStartTime: 123,
  startTimeOffset: 123,
  state: 'state',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  timezone: 'timezone',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_logs as logs

cfn_scheduled_query_props = logs.CfnScheduledQueryProps(
    execution_role_arn="executionRoleArn",
    name="name",
    query_language="queryLanguage",
    query_string="queryString",
    schedule_expression="scheduleExpression",

    # the properties below are optional
    description="description",
    destination_configuration=logs.CfnScheduledQuery.DestinationConfigurationProperty(
        s3_configuration=logs.CfnScheduledQuery.S3ConfigurationProperty(
            destination_identifier="destinationIdentifier",
            role_arn="roleArn"
        )
    ),
    log_group_identifiers=["logGroupIdentifiers"],
    schedule_end_time=123,
    schedule_start_time=123,
    start_time_offset=123,
    state="state",
    tags=[logs.CfnScheduledQuery.TagsItemsProperty(
        key="key",
        value="value"
    )],
    timezone="timezone"
)
```

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.logs.*;

CfnScheduledQueryProps cfnScheduledQueryProps = CfnScheduledQueryProps.builder()
        .executionRoleArn("executionRoleArn")
        .name("name")
        .queryLanguage("queryLanguage")
        .queryString("queryString")
        .scheduleExpression("scheduleExpression")

        // the properties below are optional
        .description("description")
        .destinationConfiguration(DestinationConfigurationProperty.builder()
                .s3Configuration(S3ConfigurationProperty.builder()
                        .destinationIdentifier("destinationIdentifier")
                        .roleArn("roleArn")
                        .build())
                .build())
        .logGroupIdentifiers(List.of("logGroupIdentifiers"))
        .scheduleEndTime(123)
        .scheduleStartTime(123)
        .startTimeOffset(123)
        .state("state")
        .tags(List.of(TagsItemsProperty.builder()
                .key("key")
                .value("value")
                .build()))
        .timezone("timezone")
        .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.Logs;

var cfnScheduledQueryProps = new CfnScheduledQueryProps {
    ExecutionRoleArn = "executionRoleArn",
    Name = "name",
    QueryLanguage = "queryLanguage",
    QueryString = "queryString",
    ScheduleExpression = "scheduleExpression",

    // the properties below are optional
    Description = "description",
    DestinationConfiguration = new DestinationConfigurationProperty {
        S3Configuration = new S3ConfigurationProperty {
            DestinationIdentifier = "destinationIdentifier",
            RoleArn = "roleArn"
        }
    },
    LogGroupIdentifiers = new [] { "logGroupIdentifiers" },
    ScheduleEndTime = 123,
    ScheduleStartTime = 123,
    StartTimeOffset = 123,
    State = "state",
    Tags = new [] { new TagsItemsProperty {
        Key = "key",
        Value = "value"
    } },
    Timezone = "timezone"
};
```

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"

cfnScheduledQueryProps := &CfnScheduledQueryProps{
	ExecutionRoleArn: jsii.String("executionRoleArn"),
	Name: jsii.String("name"),
	QueryLanguage: jsii.String("queryLanguage"),
	QueryString: jsii.String("queryString"),
	ScheduleExpression: jsii.String("scheduleExpression"),

	// the properties below are optional
	Description: jsii.String("description"),
	DestinationConfiguration: &DestinationConfigurationProperty{
		S3Configuration: &S3ConfigurationProperty{
			DestinationIdentifier: jsii.String("destinationIdentifier"),
			RoleArn: jsii.String("roleArn"),
		},
	},
	LogGroupIdentifiers: []*string{
		jsii.String("logGroupIdentifiers"),
	},
	ScheduleEndTime: jsii.Number(123),
	ScheduleStartTime: jsii.Number(123),
	StartTimeOffset: jsii.Number(123),
	State: jsii.String("state"),
	Tags: []TagsItemsProperty{
		&TagsItemsProperty{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	Timezone: jsii.String("timezone"),
}
```

## Properties

- `description`: string

- `destinationConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnScheduledQuery.DestinationConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.CfnScheduledQuery.DestinationConfigurationProperty.html)

- `executionRoleArn`: string (required)

- `logGroupIdentifiers`: string[]

- `name`: string (required)

- `queryLanguage`: string (required)

- `queryString`: string (required)

- `scheduleEndTime`: number

- `scheduleExpression`: string (required)

- `scheduleStartTime`: number

- `startTimeOffset`: number

- `state`: string

- `tags`: [CfnScheduledQuery.TagsItemsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.CfnScheduledQuery.TagsItemsProperty.html)[]

- `timezone`: string
