Skip to content

CreateScheduledQueryRequest

Source code in docs_src/capo_cloudwatch_logs/types/create_scheduled_query_request.py
class CreateScheduledQueryRequest(TypedDict, closed=True):
    name: "capo_cloudwatch_logs.types.scheduled_query_name.ScheduledQueryName"
    """<p>The name of the scheduled query. The name must be unique within your account and region. Length must be between 1 and 300 characters.</p>"""
    description: NotRequired[
        "capo_cloudwatch_logs.types.scheduled_query_description.ScheduledQueryDescription"
    ]
    """<p>An optional description for the scheduled query to help identify its purpose and functionality.</p>"""
    query_language: "capo_cloudwatch_logs.types.query_language.QueryLanguage"
    """<p>The query language to use for the scheduled query. Valid values are <code>CWLI</code>, <code>PPL</code>, and <code>SQL</code>.</p>"""
    query_string: "capo_cloudwatch_logs.types.query_string.QueryString"
    """<p>The query string to execute. This is the same query syntax used in CloudWatch Logs Insights. Maximum length is 10,000 characters.</p>"""
    log_group_identifiers: NotRequired[
        "capo_cloudwatch_logs.types.scheduled_query_log_group_identifiers.ScheduledQueryLogGroupIdentifiers"
    ]
    """<p>An array of log group names or ARNs to query. You can specify between 1 and 50 log groups. Log groups can be identified by name or full ARN.</p>"""
    schedule_expression: (
        "capo_cloudwatch_logs.types.schedule_expression.ScheduleExpression"
    )
    """<p>A cron expression that defines when the scheduled query runs. The expression uses standard cron syntax and supports minute-level precision. Maximum length is 256 characters.</p>"""
    timezone: NotRequired[
        "capo_cloudwatch_logs.types.schedule_timezone.ScheduleTimezone"
    ]
    """<p>The timezone for evaluating the schedule expression. This determines when the scheduled query executes relative to the specified timezone.</p>"""
    start_time_offset: NotRequired[
        "capo_cloudwatch_logs.types.start_time_offset.StartTimeOffset"
    ]
    """<p>The time offset in seconds that defines the lookback period for the query. This determines how far back in time the query searches from the execution time.</p>"""
    end_time_offset: NotRequired[
        "capo_cloudwatch_logs.types.end_time_offset.EndTimeOffset"
    ]
    """<p>The time offset in seconds that defines the end of the lookback period for the query. Together with <code>startTimeOffset</code>, this determines the time window relative to the execution time over which the query runs.</p>"""
    destination_configuration: NotRequired[
        "capo_cloudwatch_logs.types.destination_configuration.DestinationConfiguration"
    ]
    """<p>Configuration for where to deliver query results. Supports Amazon S3 destinations for storing query output and lookup table destinations for automatically refreshing lookup tables with query results. You can configure one or both destination types.</p>"""
    schedule_start_time: NotRequired["capo_cloudwatch_logs.types.timestamp.Timestamp"]
    """<p>The start time for the scheduled query in Unix epoch format. The query will not execute before this time.</p>"""
    schedule_end_time: NotRequired["capo_cloudwatch_logs.types.timestamp.Timestamp"]
    """<p>The end time for the scheduled query in Unix epoch format. The query will stop executing after this time.</p>"""
    execution_role_arn: "capo_cloudwatch_logs.types.role_arn.RoleArn"
    """<p>The ARN of the IAM role that grants permissions to execute the query and deliver results to the specified destination. The role must have permissions to read from the specified log groups and write to the destination.</p>"""
    state: NotRequired[
        "capo_cloudwatch_logs.types.scheduled_query_state.ScheduledQueryState"
    ]
    """<p>The initial state of the scheduled query. Valid values are <code>ENABLED</code> and <code>DISABLED</code>. Default is <code>ENABLED</code>.</p>"""
    tags: NotRequired["capo_cloudwatch_logs.types.tags.Tags"]
    """<p>Key-value pairs to associate with the scheduled query for resource management and cost allocation.</p>"""

description instance-attribute

description: NotRequired[ScheduledQueryDescription]

An optional description for the scheduled query to help identify its purpose and functionality.

destination_configuration instance-attribute

destination_configuration: NotRequired[DestinationConfiguration]

Configuration for where to deliver query results. Supports Amazon S3 destinations for storing query output and lookup table destinations for automatically refreshing lookup tables with query results. You can configure one or both destination types.

end_time_offset instance-attribute

end_time_offset: NotRequired[EndTimeOffset]

The time offset in seconds that defines the end of the lookback period for the query. Together with startTimeOffset, this determines the time window relative to the execution time over which the query runs.

execution_role_arn instance-attribute

execution_role_arn: RoleArn

The ARN of the IAM role that grants permissions to execute the query and deliver results to the specified destination. The role must have permissions to read from the specified log groups and write to the destination.

log_group_identifiers instance-attribute

log_group_identifiers: NotRequired[ScheduledQueryLogGroupIdentifiers]

An array of log group names or ARNs to query. You can specify between 1 and 50 log groups. Log groups can be identified by name or full ARN.

name instance-attribute

The name of the scheduled query. The name must be unique within your account and region. Length must be between 1 and 300 characters.

query_language instance-attribute

query_language: QueryLanguage

The query language to use for the scheduled query. Valid values are CWLI, PPL, and SQL.

query_string instance-attribute

query_string: QueryString

The query string to execute. This is the same query syntax used in CloudWatch Logs Insights. Maximum length is 10,000 characters.

schedule_end_time instance-attribute

schedule_end_time: NotRequired[Timestamp]

The end time for the scheduled query in Unix epoch format. The query will stop executing after this time.

schedule_expression instance-attribute

schedule_expression: ScheduleExpression

A cron expression that defines when the scheduled query runs. The expression uses standard cron syntax and supports minute-level precision. Maximum length is 256 characters.

schedule_start_time instance-attribute

schedule_start_time: NotRequired[Timestamp]

The start time for the scheduled query in Unix epoch format. The query will not execute before this time.

start_time_offset instance-attribute

start_time_offset: NotRequired[StartTimeOffset]

The time offset in seconds that defines the lookback period for the query. This determines how far back in time the query searches from the execution time.

state instance-attribute

state: NotRequired[ScheduledQueryState]

The initial state of the scheduled query. Valid values are ENABLED and DISABLED. Default is ENABLED.

tags instance-attribute

tags: NotRequired[Tags]

Key-value pairs to associate with the scheduled query for resource management and cost allocation.

timezone instance-attribute

timezone: NotRequired[ScheduleTimezone]

The timezone for evaluating the schedule expression. This determines when the scheduled query executes relative to the specified timezone.