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

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

Viewing docs for AWS Cloud Control v1.57.0
published on Monday, Mar 9, 2026 by Pulumi
aws-native logo

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

Viewing docs for AWS Cloud Control v1.57.0
published on Monday, Mar 9, 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.
    
    

    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
    creationTime Number
    id String
    The provider-assigned unique ID for this managed resource.
    lastExecutionStatus "InvalidQuery" | "Complete" | "Failed" | "Timeout"
    lastTriggeredTime Number
    lastUpdatedTime Number
    scheduledQueryArn String

    Supporting Types

    ScheduledQueryDestinationConfiguration, ScheduledQueryDestinationConfigurationArgs

    ScheduledQueryLastExecutionStatus, ScheduledQueryLastExecutionStatusArgs

    InvalidQuery
    InvalidQuery
    Complete
    Complete
    Failed
    Failed
    Timeout
    Timeout
    ScheduledQueryLastExecutionStatusInvalidQuery
    InvalidQuery
    ScheduledQueryLastExecutionStatusComplete
    Complete
    ScheduledQueryLastExecutionStatusFailed
    Failed
    ScheduledQueryLastExecutionStatusTimeout
    Timeout
    InvalidQuery
    InvalidQuery
    Complete
    Complete
    Failed
    Failed
    Timeout
    Timeout
    InvalidQuery
    InvalidQuery
    Complete
    Complete
    Failed
    Failed
    Timeout
    Timeout
    INVALID_QUERY
    InvalidQuery
    COMPLETE
    Complete
    FAILED
    Failed
    TIMEOUT
    Timeout
    "InvalidQuery"
    InvalidQuery
    "Complete"
    Complete
    "Failed"
    Failed
    "Timeout"
    Timeout

    ScheduledQueryS3Configuration, ScheduledQueryS3ConfigurationArgs

    ScheduledQueryState, ScheduledQueryStateArgs

    Enabled
    ENABLED
    Disabled
    DISABLED
    ScheduledQueryStateEnabled
    ENABLED
    ScheduledQueryStateDisabled
    DISABLED
    Enabled
    ENABLED
    Disabled
    DISABLED
    Enabled
    ENABLED
    Disabled
    DISABLED
    ENABLED
    ENABLED
    DISABLED
    DISABLED
    "ENABLED"
    ENABLED
    "DISABLED"
    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 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

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

    Viewing docs for AWS Cloud Control v1.57.0
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.