import * as pulumi from "@pulumi/pulumi"; /** * Describes a group of resources to read log entries from * * To get more information about LogScope, see: * * * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.locations.logScopes) * * How-to Guides * * [Official Documentation](https://cloud.google.com/logging/docs/apis) * * ## Example Usage * * ### Logging Log Scope Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const loggingLogScope = new gcp.logging.LogScope("logging_log_scope", { * parent: "projects/my-project-name", * location: "global", * name: "projects/my-project-name/locations/global/logScopes/my-log-scope", * resourceNames: [ * "projects/my-project-name", * "projects/my-project-name/locations/global/buckets/_Default/views/view1", * "projects/my-project-name/locations/global/buckets/_Default/views/view2", * ], * description: "A log scope configured with Terraform", * }); * ``` * * ## Import * * LogScope can be imported using any of these accepted formats: * * * `{{parent}}/locations/{{location}}/logScopes/{{name}}` * * When using the `pulumi import` command, LogScope can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:logging/logScope:LogScope default {{parent}}/locations/{{location}}/logScopes/{{name}} * ``` */ export declare class LogScope extends pulumi.CustomResource { /** * Get an existing LogScope 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?: LogScopeState, opts?: pulumi.CustomResourceOptions): LogScope; /** * Returns true if the given object is an instance of LogScope. 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 LogScope; /** * Output only. The creation timestamp of the log scopes. */ readonly createTime: pulumi.Output; /** * Describes this log scopes. */ readonly description: pulumi.Output; /** * The location of the resource. The only supported location is global so far. */ readonly location: pulumi.Output; /** * The resource name of the log scope. For example: \`projects/my-project/locations/global/logScopes/my-log-scope\` */ readonly name: pulumi.Output; /** * The parent of the resource. */ readonly parent: pulumi.Output; /** * Names of one or more parent resources : * \`projects/[PROJECT_ID]\` May alternatively be one or more views : * \`projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\` A log scope can include a maximum of 50 projects and a maximum of 100 resources in total. */ readonly resourceNames: pulumi.Output; /** * Output only. The last update timestamp of the log scopes. */ readonly updateTime: pulumi.Output; /** * Create a LogScope 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: LogScopeArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LogScope resources. */ export interface LogScopeState { /** * Output only. The creation timestamp of the log scopes. */ createTime?: pulumi.Input; /** * Describes this log scopes. */ description?: pulumi.Input; /** * The location of the resource. The only supported location is global so far. */ location?: pulumi.Input; /** * The resource name of the log scope. For example: \`projects/my-project/locations/global/logScopes/my-log-scope\` */ name?: pulumi.Input; /** * The parent of the resource. */ parent?: pulumi.Input; /** * Names of one or more parent resources : * \`projects/[PROJECT_ID]\` May alternatively be one or more views : * \`projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\` A log scope can include a maximum of 50 projects and a maximum of 100 resources in total. */ resourceNames?: pulumi.Input[]>; /** * Output only. The last update timestamp of the log scopes. */ updateTime?: pulumi.Input; } /** * The set of arguments for constructing a LogScope resource. */ export interface LogScopeArgs { /** * Describes this log scopes. */ description?: pulumi.Input; /** * The location of the resource. The only supported location is global so far. */ location?: pulumi.Input; /** * The resource name of the log scope. For example: \`projects/my-project/locations/global/logScopes/my-log-scope\` */ name?: pulumi.Input; /** * The parent of the resource. */ parent?: pulumi.Input; /** * Names of one or more parent resources : * \`projects/[PROJECT_ID]\` May alternatively be one or more views : * \`projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]\` A log scope can include a maximum of 50 projects and a maximum of 100 resources in total. */ resourceNames: pulumi.Input[]>; }