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

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.

    Using getScheduledQuery

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getScheduledQuery(args: GetScheduledQueryArgs, opts?: InvokeOptions): Promise<GetScheduledQueryResult>
    function getScheduledQueryOutput(args: GetScheduledQueryOutputArgs, opts?: InvokeOutputOptions): Output<GetScheduledQueryResult>
    def get_scheduled_query(scheduled_query_arn: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetScheduledQueryResult
    def get_scheduled_query_output(scheduled_query_arn: pulumi.Input[Optional[str]] = None,
                            opts: Optional[InvokeOutputOptions] = None) -> Output[GetScheduledQueryResult]
    func LookupScheduledQuery(ctx *Context, args *LookupScheduledQueryArgs, opts ...InvokeOption) (*LookupScheduledQueryResult, error)
    func LookupScheduledQueryOutput(ctx *Context, args *LookupScheduledQueryOutputArgs, opts ...InvokeOption) LookupScheduledQueryResultOutput

    > Note: This function is named LookupScheduledQuery in the Go SDK.

    public static class GetScheduledQuery 
    {
        public static Task<GetScheduledQueryResult> InvokeAsync(GetScheduledQueryArgs args, InvokeOptions? opts = null)
        public static Output<GetScheduledQueryResult> Invoke(GetScheduledQueryInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetScheduledQueryResult> Invoke(GetScheduledQueryInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetScheduledQueryResult> getScheduledQuery(GetScheduledQueryArgs args, InvokeOptions options)
    public static Output<GetScheduledQueryResult> getScheduledQuery(GetScheduledQueryArgs args, InvokeOptions options)
    public static Output<GetScheduledQueryResult> getScheduledQuery(GetScheduledQueryArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:logs:getScheduledQuery
      arguments:
        # arguments dictionary
    data "aws-native_logs_get_scheduled_query" "name" {
        # arguments
    }

    The following arguments are supported:

    getScheduledQuery Result

    The following output properties are available:

    Supporting Types

    ScheduledQueryDestinationConfiguration

    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

    ScheduledQueryState

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

    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 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