1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. logs
  5. QueryDefinition

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

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

aws-native.logs.QueryDefinition

Explore with Pulumi AI

aws-native logo

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

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

    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)
    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
    LogGroupNames List<string>
    Optionally define specific log groups as part of your query definition
    Name string
    A name for the saved 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
    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
    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
    query_string str
    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
    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

    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.
    QueryDefinitionId string
    Unique identifier of a query definition
    Id string
    The provider-assigned unique ID for this managed resource.
    QueryDefinitionId string
    Unique identifier of a query definition
    id String
    The provider-assigned unique ID for this managed resource.
    queryDefinitionId String
    Unique identifier of a query definition
    id string
    The provider-assigned unique ID for this managed resource.
    queryDefinitionId string
    Unique identifier of a query definition
    id str
    The provider-assigned unique ID for this managed resource.
    query_definition_id str
    Unique identifier of a query definition
    id String
    The provider-assigned unique ID for this managed resource.
    queryDefinitionId String
    Unique identifier of a query 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 Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi