We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
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.
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?: InvokeOptions): 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: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = 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 CompletableFuture<GetScheduledQueryResult> getScheduledQuery(GetScheduledQueryArgs args, InvokeOptions options)
public static Output<GetScheduledQueryResult> getScheduledQuery(GetScheduledQueryArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:logs:getScheduledQuery
arguments:
# arguments dictionaryThe following arguments are supported:
- Scheduled
Query stringArn
- Scheduled
Query stringArn
- scheduled
Query StringArn
- scheduled
Query stringArn
- scheduled
Query StringArn
getScheduledQuery Result
The following output properties are available:
- Creation
Time double - Description string
- Destination
Configuration Pulumi.Aws Native. Logs. Outputs. Scheduled Query Destination Configuration - Execution
Role stringArn - Last
Execution Pulumi.Status Aws Native. Logs. Scheduled Query Last Execution Status - Last
Triggered doubleTime - Last
Updated doubleTime - Log
Group List<string>Identifiers - Query
Language string - Query
String string - Schedule
End doubleTime - Schedule
Expression string - Schedule
Start doubleTime - Scheduled
Query stringArn - Start
Time intOffset - State
Pulumi.
Aws Native. Logs. Scheduled Query State -
List<Pulumi.
Aws Native. Outputs. Tag> - Timezone string
- Creation
Time float64 - Description string
- Destination
Configuration ScheduledQuery Destination Configuration - Execution
Role stringArn - Last
Execution ScheduledStatus Query Last Execution Status - Last
Triggered float64Time - Last
Updated float64Time - Log
Group []stringIdentifiers - Query
Language string - Query
String string - Schedule
End float64Time - Schedule
Expression string - Schedule
Start float64Time - Scheduled
Query stringArn - Start
Time intOffset - State
Scheduled
Query State Enum - Tag
- Timezone string
- creation
Time Double - description String
- destination
Configuration ScheduledQuery Destination Configuration - execution
Role StringArn - last
Execution ScheduledStatus Query Last Execution Status - last
Triggered DoubleTime - last
Updated DoubleTime - log
Group List<String>Identifiers - query
Language String - query
String String - schedule
End DoubleTime - schedule
Expression String - schedule
Start DoubleTime - scheduled
Query StringArn - start
Time IntegerOffset - state
Scheduled
Query State - List<Tag>
- timezone String
- creation
Time number - description string
- destination
Configuration ScheduledQuery Destination Configuration - execution
Role stringArn - last
Execution ScheduledStatus Query Last Execution Status - last
Triggered numberTime - last
Updated numberTime - log
Group string[]Identifiers - query
Language string - query
String string - schedule
End numberTime - schedule
Expression string - schedule
Start numberTime - scheduled
Query stringArn - start
Time numberOffset - state
Scheduled
Query State - Tag[]
- timezone string
- creation_
time float - description str
- destination_
configuration ScheduledQuery Destination Configuration - execution_
role_ strarn - last_
execution_ Scheduledstatus Query Last Execution Status - last_
triggered_ floattime - last_
updated_ floattime - log_
group_ Sequence[str]identifiers - query_
language str - query_
string str - schedule_
end_ floattime - schedule_
expression str - schedule_
start_ floattime - scheduled_
query_ strarn - start_
time_ intoffset - state
Scheduled
Query State - Sequence[root_Tag]
- timezone str
- creation
Time Number - description String
- destination
Configuration Property Map - execution
Role StringArn - last
Execution "InvalidStatus Query" | "Complete" | "Failed" | "Timeout" - last
Triggered NumberTime - last
Updated NumberTime - log
Group List<String>Identifiers - query
Language String - query
String String - schedule
End NumberTime - schedule
Expression String - schedule
Start NumberTime - scheduled
Query StringArn - start
Time NumberOffset - state "ENABLED" | "DISABLED"
- List<Property Map>
- timezone String
Supporting Types
ScheduledQueryDestinationConfiguration
ScheduledQueryLastExecutionStatus
ScheduledQueryS3Configuration
- Destination
Identifier string - Role
Arn string
- Destination
Identifier string - Role
Arn string
- destination
Identifier String - role
Arn String
- destination
Identifier string - role
Arn string
- destination_
identifier str - role_
arn str
- destination
Identifier String - role
Arn String
ScheduledQueryState
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
