@pulumi/aws-native
Version:
The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)
71 lines (70 loc) • 2.78 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as enums from "../types/enums";
/**
* The resource schema for AWSLogs QueryDefinition
*/
export declare class QueryDefinition extends pulumi.CustomResource {
/**
* Get an existing QueryDefinition resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): QueryDefinition;
/**
* Returns true if the given object is an instance of QueryDefinition. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is QueryDefinition;
/**
* Optionally define specific log groups as part of your query definition
*/
readonly logGroupNames: pulumi.Output<string[] | undefined>;
/**
* A name for the saved query definition
*/
readonly name: pulumi.Output<string>;
/**
* Unique identifier of a query definition
*/
readonly queryDefinitionId: pulumi.Output<string>;
/**
* Query language of the query string. Possible values are CWLI, SQL, PPL, with CWLI being the default.
*/
readonly queryLanguage: pulumi.Output<enums.logs.QueryDefinitionQueryLanguage | undefined>;
/**
* The query string to use for this definition
*/
readonly queryString: pulumi.Output<string>;
/**
* Create a QueryDefinition resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: QueryDefinitionArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* The set of arguments for constructing a QueryDefinition resource.
*/
export interface QueryDefinitionArgs {
/**
* Optionally define specific log groups as part of your query definition
*/
logGroupNames?: pulumi.Input<pulumi.Input<string>[]>;
/**
* A name for the saved query definition
*/
name?: pulumi.Input<string>;
/**
* Query language of the query string. Possible values are CWLI, SQL, PPL, with CWLI being the default.
*/
queryLanguage?: pulumi.Input<enums.logs.QueryDefinitionQueryLanguage>;
/**
* The query string to use for this definition
*/
queryString: pulumi.Input<string>;
}