import * as pulumi from "@pulumi/pulumi"; /** * Describes a view over log entries in a bucket. * * To get more information about LogView, see: * * * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.locations.buckets.views) * * How-to Guides * * [Official Documentation](https://cloud.google.com/logging/docs/apis) * * ## Example Usage * * ### Logging Log View Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const loggingLogView = new gcp.logging.ProjectBucketConfig("logging_log_view", { * project: "my-project-name", * location: "global", * retentionDays: 30, * bucketId: "_Default", * }); * const loggingLogViewLogView = new gcp.logging.LogView("logging_log_view", { * name: "my-view", * bucket: loggingLogView.id, * description: "A logging view configured with Terraform", * filter: "SOURCE(\"projects/myproject\") AND resource.type = \"gce_instance\" AND LOG_ID(\"stdout\")", * }); * ``` * * ## Import * * LogView can be imported using any of these accepted formats: * * * `{{parent}}/locations/{{location}}/buckets/{{bucket}}/views/{{name}}` * * When using the `pulumi import` command, LogView can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:logging/logView:LogView default {{parent}}/locations/{{location}}/buckets/{{bucket}}/views/{{name}} * ``` */ export declare class LogView extends pulumi.CustomResource { /** * Get an existing LogView 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 state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: LogViewState, opts?: pulumi.CustomResourceOptions): LogView; /** * Returns true if the given object is an instance of LogView. 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 LogView; /** * The bucket of the resource */ readonly bucket: pulumi.Output; /** * Output only. The creation timestamp of the view. */ readonly createTime: pulumi.Output; /** * Describes this view. */ readonly description: pulumi.Output; /** * Filter that restricts which log entries in a bucket are visible in this view. Filters are restricted to be a logical AND of ==/!= of any of the following: - originating project/folder/organization/billing account. - resource type - log id For example: SOURCE("projects/myproject") AND resource.type = "gceInstance" AND LOG_ID("stdout") */ readonly filter: pulumi.Output; /** * The location of the resource. The supported locations are: global, us-central1, us-east1, us-west1, asia-east1, europe-west1. */ readonly location: pulumi.Output; /** * The resource name of the view. For example: \`projects/my-project/locations/global/buckets/my-bucket/views/my-view\` */ readonly name: pulumi.Output; /** * The parent of the resource. */ readonly parent: pulumi.Output; /** * Output only. The last update timestamp of the view. */ readonly updateTime: pulumi.Output; /** * Create a LogView 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: LogViewArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LogView resources. */ export interface LogViewState { /** * The bucket of the resource */ bucket?: pulumi.Input; /** * Output only. The creation timestamp of the view. */ createTime?: pulumi.Input; /** * Describes this view. */ description?: pulumi.Input; /** * Filter that restricts which log entries in a bucket are visible in this view. Filters are restricted to be a logical AND of ==/!= of any of the following: - originating project/folder/organization/billing account. - resource type - log id For example: SOURCE("projects/myproject") AND resource.type = "gceInstance" AND LOG_ID("stdout") */ filter?: pulumi.Input; /** * The location of the resource. The supported locations are: global, us-central1, us-east1, us-west1, asia-east1, europe-west1. */ location?: pulumi.Input; /** * The resource name of the view. For example: \`projects/my-project/locations/global/buckets/my-bucket/views/my-view\` */ name?: pulumi.Input; /** * The parent of the resource. */ parent?: pulumi.Input; /** * Output only. The last update timestamp of the view. */ updateTime?: pulumi.Input; } /** * The set of arguments for constructing a LogView resource. */ export interface LogViewArgs { /** * The bucket of the resource */ bucket: pulumi.Input; /** * Describes this view. */ description?: pulumi.Input; /** * Filter that restricts which log entries in a bucket are visible in this view. Filters are restricted to be a logical AND of ==/!= of any of the following: - originating project/folder/organization/billing account. - resource type - log id For example: SOURCE("projects/myproject") AND resource.type = "gceInstance" AND LOG_ID("stdout") */ filter?: pulumi.Input; /** * The location of the resource. The supported locations are: global, us-central1, us-east1, us-west1, asia-east1, europe-west1. */ location?: pulumi.Input; /** * The resource name of the view. For example: \`projects/my-project/locations/global/buckets/my-bucket/views/my-view\` */ name?: pulumi.Input; /** * The parent of the resource. */ parent?: pulumi.Input; }