We recommend new projects start with resources from the AWS provider.
aws-native.logs.QueryDefinition
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The resource schema for AWSLogs QueryDefinition
Create QueryDefinition Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new QueryDefinition(name: string, args: QueryDefinitionArgs, opts?: CustomResourceOptions);@overload
def QueryDefinition(resource_name: str,
                    args: QueryDefinitionArgs,
                    opts: Optional[ResourceOptions] = None)
@overload
def QueryDefinition(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    query_string: Optional[str] = None,
                    log_group_names: Optional[Sequence[str]] = None,
                    name: Optional[str] = None,
                    query_language: Optional[QueryDefinitionQueryLanguage] = None)func NewQueryDefinition(ctx *Context, name string, args QueryDefinitionArgs, opts ...ResourceOption) (*QueryDefinition, error)public QueryDefinition(string name, QueryDefinitionArgs args, CustomResourceOptions? opts = null)
public QueryDefinition(String name, QueryDefinitionArgs args)
public QueryDefinition(String name, QueryDefinitionArgs args, CustomResourceOptions options)
type: aws-native:logs:QueryDefinition
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args QueryDefinitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args QueryDefinitionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args QueryDefinitionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args QueryDefinitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args QueryDefinitionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
QueryDefinition Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The QueryDefinition resource accepts the following input properties:
- 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
- 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
- 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
- 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
- queryLanguage 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
- 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_language 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
- queryLanguage "CWLI" | "SQL" | "PPL"
- Query language of the query string. Possible values are CWLI, SQL, PPL, with CWLI being the default.
Outputs
All input properties are implicitly available as output properties. Additionally, the QueryDefinition resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- QueryDefinition stringId 
- Unique identifier of a query definition
- Id string
- The provider-assigned unique ID for this managed resource.
- QueryDefinition stringId 
- Unique identifier of a query definition
- id String
- The provider-assigned unique ID for this managed resource.
- queryDefinition StringId 
- Unique identifier of a query definition
- id string
- The provider-assigned unique ID for this managed resource.
- queryDefinition stringId 
- Unique identifier of a query definition
- id str
- The provider-assigned unique ID for this managed resource.
- query_definition_ strid 
- Unique identifier of a query definition
- id String
- The provider-assigned unique ID for this managed resource.
- queryDefinition StringId 
- Unique identifier of a query definition
Supporting Types
QueryDefinitionQueryLanguage, QueryDefinitionQueryLanguageArgs        
- Cwli
- CWLI
- Sql
- SQL
- Ppl
- PPL
- QueryDefinition Query Language Cwli 
- CWLI
- QueryDefinition Query Language Sql 
- SQL
- QueryDefinition Query Language Ppl 
- PPL
- Cwli
- CWLI
- Sql
- SQL
- Ppl
- PPL
- Cwli
- CWLI
- Sql
- SQL
- Ppl
- PPL
- CWLI
- CWLI
- SQL
- SQL
- PPL
- PPL
- "CWLI"
- CWLI
- "SQL"
- SQL
- "PPL"
- PPL
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.