AWS Native

Pulumi Official
Package maintained by Pulumi
v0.17.0 published on Monday, May 23, 2022 by Pulumi

getQueryDefinition

The resource schema for AWSLogs QueryDefinition

Using getQueryDefinition

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 getQueryDefinition(args: GetQueryDefinitionArgs, opts?: InvokeOptions): Promise<GetQueryDefinitionResult>
function getQueryDefinitionOutput(args: GetQueryDefinitionOutputArgs, opts?: InvokeOptions): Output<GetQueryDefinitionResult>
def get_query_definition(query_definition_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetQueryDefinitionResult
def get_query_definition_output(query_definition_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetQueryDefinitionResult]
func LookupQueryDefinition(ctx *Context, args *LookupQueryDefinitionArgs, opts ...InvokeOption) (*LookupQueryDefinitionResult, error)
func LookupQueryDefinitionOutput(ctx *Context, args *LookupQueryDefinitionOutputArgs, opts ...InvokeOption) LookupQueryDefinitionResultOutput

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

public static class GetQueryDefinition 
{
    public static Task<GetQueryDefinitionResult> InvokeAsync(GetQueryDefinitionArgs args, InvokeOptions? opts = null)
    public static Output<GetQueryDefinitionResult> Invoke(GetQueryDefinitionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetQueryDefinitionResult> getQueryDefinition(GetQueryDefinitionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws-native:logs:getQueryDefinition
  Arguments:
    # Arguments dictionary

The following arguments are supported:

QueryDefinitionId string

Unique identifier of a query definition

QueryDefinitionId string

Unique identifier of a query definition

queryDefinitionId String

Unique identifier of a query definition

queryDefinitionId string

Unique identifier of a query definition

query_definition_id str

Unique identifier of a query definition

queryDefinitionId String

Unique identifier of a query definition

getQueryDefinition Result

The following output properties are available:

LogGroupNames List<string>

Optionally define specific log groups as part of your query definition

Name string

A name for the saved query definition

QueryDefinitionId string

Unique identifier of a query definition

QueryString string

The query string to use for this definition

LogGroupNames []string

Optionally define specific log groups as part of your query definition

Name string

A name for the saved query definition

QueryDefinitionId string

Unique identifier of a query definition

QueryString string

The query string to use for this definition

logGroupNames List

Optionally define specific log groups as part of your query definition

name String

A name for the saved query definition

queryDefinitionId String

Unique identifier of a query definition

queryString String

The query string to use for this definition

logGroupNames string[]

Optionally define specific log groups as part of your query definition

name string

A name for the saved query definition

queryDefinitionId string

Unique identifier of a query definition

queryString string

The query string to use for this definition

log_group_names Sequence[str]

Optionally define specific log groups as part of your query definition

name str

A name for the saved query definition

query_definition_id str

Unique identifier of a query definition

query_string str

The query string to use for this definition

logGroupNames List

Optionally define specific log groups as part of your query definition

name String

A name for the saved query definition

queryDefinitionId String

Unique identifier of a query definition

queryString String

The query string to use for this definition

Package Details

Repository
https://github.com/pulumi/pulumi-aws-native
License
Apache-2.0