1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. logs
  6. ScheduledQuery

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Creates a new Scheduled Query that allows you to define a Logs Insights query that will run on a schedule and configure actions to take with the query results.

    Create ScheduledQuery Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ScheduledQuery(name: string, args: ScheduledQueryArgs, opts?: CustomResourceOptions);
    @overload
    def ScheduledQuery(resource_name: str,
                       args: ScheduledQueryArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def ScheduledQuery(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       query_language: Optional[str] = None,
                       schedule_expression: Optional[str] = None,
                       execution_role_arn: Optional[str] = None,
                       query_string: Optional[str] = None,
                       log_group_identifiers: Optional[Sequence[str]] = None,
                       name: Optional[str] = None,
                       description: Optional[str] = None,
                       schedule_end_time: Optional[float] = None,
                       destination_configuration: Optional[ScheduledQueryDestinationConfigurationArgs] = None,
                       schedule_start_time: Optional[float] = None,
                       start_time_offset: Optional[int] = None,
                       state: Optional[ScheduledQueryState] = None,
                       tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
                       timezone: Optional[str] = None)
    func NewScheduledQuery(ctx *Context, name string, args ScheduledQueryArgs, opts ...ResourceOption) (*ScheduledQuery, error)
    public ScheduledQuery(string name, ScheduledQueryArgs args, CustomResourceOptions? opts = null)
    public ScheduledQuery(String name, ScheduledQueryArgs args)
    public ScheduledQuery(String name, ScheduledQueryArgs args, CustomResourceOptions options)
    
    type: aws-native:logs:ScheduledQuery
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_logs_scheduled_query" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ScheduledQueryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ScheduledQueryArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ScheduledQueryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ScheduledQueryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ScheduledQueryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ScheduledQuery Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ScheduledQuery resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ScheduledQuery resource produces the following output properties:

    CreationTime double
    Id string
    The provider-assigned unique ID for this managed resource.
    LastExecutionStatus Pulumi.AwsNative.Logs.ScheduledQueryLastExecutionStatus
    LastTriggeredTime double
    LastUpdatedTime double
    ScheduledQueryArn string
    CreationTime float64
    Id string
    The provider-assigned unique ID for this managed resource.
    LastExecutionStatus ScheduledQueryLastExecutionStatus
    LastTriggeredTime float64
    LastUpdatedTime float64
    ScheduledQueryArn string
    creationTime Double
    id String
    The provider-assigned unique ID for this managed resource.
    lastExecutionStatus ScheduledQueryLastExecutionStatus
    lastTriggeredTime Double
    lastUpdatedTime Double
    scheduledQueryArn String
    creationTime number
    id string
    The provider-assigned unique ID for this managed resource.
    lastExecutionStatus ScheduledQueryLastExecutionStatus
    lastTriggeredTime number
    lastUpdatedTime number
    scheduledQueryArn string
    creation_time float
    id str
    The provider-assigned unique ID for this managed resource.
    last_execution_status ScheduledQueryLastExecutionStatus
    last_triggered_time float
    last_updated_time float
    scheduled_query_arn str

    Look up Existing ScheduledQuery Resource

    Get an existing ScheduledQuery resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): ScheduledQuery
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> ScheduledQuery
    func GetScheduledQuery(ctx *Context, name string, id IDInput, state *ScheduledQueryState, opts ...ResourceOption) (*ScheduledQuery, error)
    public static ScheduledQuery Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static ScheduledQuery get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingScheduledQuery:    type: aws-native:logs:ScheduledQuery    get:      id: ${id}
    import {
      to = aws-native_logs_scheduled_query.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state ScheduledQueryState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    ScheduledQueryDestinationConfiguration, ScheduledQueryDestinationConfigurationArgs

    ScheduledQueryLastExecutionStatus

    NameValue
    PendingPending
    InvalidQueryInvalidQuery
    CompleteComplete
    FailedFailed
    TimeoutTimeout
    NameValue
    ScheduledQueryLastExecutionStatusPendingPending
    ScheduledQueryLastExecutionStatusInvalidQueryInvalidQuery
    ScheduledQueryLastExecutionStatusCompleteComplete
    ScheduledQueryLastExecutionStatusFailedFailed
    ScheduledQueryLastExecutionStatusTimeoutTimeout
    Value
    Pending
    InvalidQuery
    Complete
    Failed
    Timeout
    NameValue
    PendingPending
    InvalidQueryInvalidQuery
    CompleteComplete
    FailedFailed
    TimeoutTimeout
    NameValue
    PendingPending
    InvalidQueryInvalidQuery
    CompleteComplete
    FailedFailed
    TimeoutTimeout
    NameValue
    PENDINGPending
    INVALID_QUERYInvalidQuery
    COMPLETEComplete
    FAILEDFailed
    TIMEOUTTimeout
    Value
    Pending
    InvalidQuery
    Complete
    Failed
    Timeout

    ScheduledQueryS3Configuration, ScheduledQueryS3ConfigurationArgs

    ScheduledQueryState

    NameValue
    EnabledENABLED
    DisabledDISABLED
    NameValue
    ScheduledQueryStateEnabledENABLED
    ScheduledQueryStateDisabledDISABLED
    Value
    ENABLED
    DISABLED
    NameValue
    EnabledENABLED
    DisabledDISABLED
    NameValue
    EnabledENABLED
    DisabledDISABLED
    NameValue
    ENABLEDENABLED
    DISABLEDDISABLED
    Value
    ENABLED
    DISABLED

    Tag, TagArgs

    A set of tags to apply to the resource.

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial