Skip to content
v2.278.0

CfnScheduledQueryProps Struct ​

Properties for defining a CfnScheduledQuery.

Example ​

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
# 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
// 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();
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"
};
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 ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
destinationConfigurationoptionalIResolvable | CfnScheduledQuery.DestinationConfigurationPropertydestination_configurationoptionaltyping.Union[IResolvable, DestinationConfigurationProperty]destinationConfigurationoptionalIResolvableDestinationConfigurationoptionalIResolvableDestinationConfigurationoptionalinterface{} #
executionRoleArnstringexecution_role_arnstrexecutionRoleArnStringExecutionRoleArnstringExecutionRoleArn*string required #
logGroupIdentifiersoptionalstring[]log_group_identifiersoptionaltyping.List[str]logGroupIdentifiersoptionalList<String>LogGroupIdentifiersoptionalstring[]LogGroupIdentifiersoptional*[]*string #
namestringnamestrnameStringNamestringName*string required #
queryLanguagestringquery_languagestrqueryLanguageStringQueryLanguagestringQueryLanguage*string required #
queryStringstringquery_stringstrqueryStringStringQueryStringstringQueryString*string required #
scheduleEndTimeoptionalnumberschedule_end_timeoptionalint | floatscheduleEndTimeoptionalNumberScheduleEndTimeoptionaldoubleScheduleEndTimeoptional*float64 #
scheduleExpressionstringschedule_expressionstrscheduleExpressionStringScheduleExpressionstringScheduleExpression*string required #
scheduleStartTimeoptionalnumberschedule_start_timeoptionalint | floatscheduleStartTimeoptionalNumberScheduleStartTimeoptionaldoubleScheduleStartTimeoptional*float64 #
startTimeOffsetoptionalnumberstart_time_offsetoptionalint | floatstartTimeOffsetoptionalNumberStartTimeOffsetoptionaldoubleStartTimeOffsetoptional*float64 #
stateoptionalstringstateoptionalstrstateoptionalStringStateoptionalstringStateoptional*string #
tagsoptionalCfnScheduledQuery.TagsItemsProperty[]tagsoptionaltyping.List[TagsItemsProperty]tagsoptionalList<TagsItemsProperty>TagsoptionalTagsItemsProperty[]Tagsoptional*[]TagsItemsProperty #
timezoneoptionalstringtimezoneoptionalstrtimezoneoptionalStringTimezoneoptionalstringTimezoneoptional*string #