1. Packages
  2. AWS Native
  3. API Docs
  4. logs
  5. getQueryDefinition

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

AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi

aws-native.logs.getQueryDefinition

Explore with Pulumi AI

aws-native logo

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

AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi

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

    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.

    AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi