We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi
aws-native.logs.getQueryDefinition
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 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)
public static Output<GetQueryDefinitionResult> getQueryDefinition(GetQueryDefinitionArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:logs:getQueryDefinition
  arguments:
    # arguments dictionaryThe following arguments are supported:
- QueryDefinition stringId 
- Unique identifier of a query definition
- QueryDefinition stringId 
- Unique identifier of a query definition
- queryDefinition StringId 
- Unique identifier of a query definition
- queryDefinition stringId 
- Unique identifier of a query definition
- query_definition_ strid 
- Unique identifier of a query definition
- queryDefinition StringId 
- Unique identifier of a query definition
getQueryDefinition Result
The following output properties are available:
- LogGroup List<string>Names 
- Optionally define specific log groups as part of your query definition
- Name string
- A name for the saved query definition
- QueryDefinition stringId 
- Unique identifier of a query definition
- QueryLanguage Pulumi.Aws Native. Logs. Query Definition Query Language 
- Query language of the query string. Possible values are CWLI, SQL, PPL, with CWLI being the default.
- QueryString string
- The query string to use for this definition
- LogGroup []stringNames 
- Optionally define specific log groups as part of your query definition
- Name string
- A name for the saved query definition
- QueryDefinition stringId 
- Unique identifier of a query definition
- QueryLanguage QueryDefinition Query Language 
- Query language of the query string. Possible values are CWLI, SQL, PPL, with CWLI being the default.
- QueryString string
- The query string to use for this definition
- logGroup List<String>Names 
- Optionally define specific log groups as part of your query definition
- name String
- A name for the saved query definition
- queryDefinition StringId 
- Unique identifier of a query definition
- queryLanguage QueryDefinition Query Language 
- Query language of the query string. Possible values are CWLI, SQL, PPL, with CWLI being the default.
- queryString String
- The query string to use for this definition
- logGroup string[]Names 
- Optionally define specific log groups as part of your query definition
- name string
- A name for the saved query definition
- queryDefinition stringId 
- Unique identifier of a query definition
- queryLanguage QueryDefinition Query Language 
- Query language of the query string. Possible values are CWLI, SQL, PPL, with CWLI being the default.
- queryString string
- The query string to use for this definition
- log_group_ Sequence[str]names 
- Optionally define specific log groups as part of your query definition
- name str
- A name for the saved query definition
- query_definition_ strid 
- Unique identifier of a query definition
- query_language QueryDefinition Query Language 
- Query language of the query string. Possible values are CWLI, SQL, PPL, with CWLI being the default.
- query_string str
- The query string to use for this definition
- logGroup List<String>Names 
- Optionally define specific log groups as part of your query definition
- name String
- A name for the saved query definition
- queryDefinition StringId 
- Unique identifier of a query definition
- queryLanguage "CWLI" | "SQL" | "PPL"
- Query language of the query string. Possible values are CWLI, SQL, PPL, with CWLI being the default.
- queryString String
- The query string to use for this definition
Supporting Types
QueryDefinitionQueryLanguage   
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi