UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

147 lines (146 loc) 6.42 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * ## Example Usage * * ### Storage Control Project Intelligence Config Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const example = new gcp.storage.ControlProjectIntelligenceConfig("example", { * name: "test-project", * editionConfig: "TRIAL", * filter: { * includedCloudStorageBuckets: { * bucketIdRegexes: [ * "test-id-1*", * "test-id-2*", * ], * }, * }, * }); * ``` * * ## Import * * ProjectIntelligenceConfig can be imported using any of these accepted formats: * * * `projects/{{name}}/locations/global/intelligenceConfig` * * * `{{name}}` * * When using the `pulumi import` command, ProjectIntelligenceConfig can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:storage/controlProjectIntelligenceConfig:ControlProjectIntelligenceConfig default projects/{{name}}/locations/global/intelligenceConfig * ``` * * ```sh * $ pulumi import gcp:storage/controlProjectIntelligenceConfig:ControlProjectIntelligenceConfig default {{name}} * ``` */ export declare class ControlProjectIntelligenceConfig extends pulumi.CustomResource { /** * Get an existing ControlProjectIntelligenceConfig 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<pulumi.ID>, state?: ControlProjectIntelligenceConfigState, opts?: pulumi.CustomResourceOptions): ControlProjectIntelligenceConfig; /** * Returns true if the given object is an instance of ControlProjectIntelligenceConfig. 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 ControlProjectIntelligenceConfig; /** * Edition configuration of the Storage Intelligence resource. Valid values are INHERIT, TRIAL, DISABLED and STANDARD. */ readonly editionConfig: pulumi.Output<string>; /** * The Intelligence config that is effective for the resource. * Structure is documented below. */ readonly effectiveIntelligenceConfigs: pulumi.Output<outputs.storage.ControlProjectIntelligenceConfigEffectiveIntelligenceConfig[]>; /** * Filter over location and bucket using include or exclude semantics. Resources that match the include or exclude filter are exclusively included or excluded from the Storage Intelligence plan. * Structure is documented below. */ readonly filter: pulumi.Output<outputs.storage.ControlProjectIntelligenceConfigFilter | undefined>; /** * Identifier of the GCP project. For GCP project, this field can be project name or project number. */ readonly name: pulumi.Output<string>; /** * The trial configuration of the Storage Intelligence resource. * Structure is documented below. */ readonly trialConfigs: pulumi.Output<outputs.storage.ControlProjectIntelligenceConfigTrialConfig[]>; /** * The time at which the Storage Intelligence Config resource is last updated. */ readonly updateTime: pulumi.Output<string>; /** * Create a ControlProjectIntelligenceConfig 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?: ControlProjectIntelligenceConfigArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ControlProjectIntelligenceConfig resources. */ export interface ControlProjectIntelligenceConfigState { /** * Edition configuration of the Storage Intelligence resource. Valid values are INHERIT, TRIAL, DISABLED and STANDARD. */ editionConfig?: pulumi.Input<string>; /** * The Intelligence config that is effective for the resource. * Structure is documented below. */ effectiveIntelligenceConfigs?: pulumi.Input<pulumi.Input<inputs.storage.ControlProjectIntelligenceConfigEffectiveIntelligenceConfig>[]>; /** * Filter over location and bucket using include or exclude semantics. Resources that match the include or exclude filter are exclusively included or excluded from the Storage Intelligence plan. * Structure is documented below. */ filter?: pulumi.Input<inputs.storage.ControlProjectIntelligenceConfigFilter>; /** * Identifier of the GCP project. For GCP project, this field can be project name or project number. */ name?: pulumi.Input<string>; /** * The trial configuration of the Storage Intelligence resource. * Structure is documented below. */ trialConfigs?: pulumi.Input<pulumi.Input<inputs.storage.ControlProjectIntelligenceConfigTrialConfig>[]>; /** * The time at which the Storage Intelligence Config resource is last updated. */ updateTime?: pulumi.Input<string>; } /** * The set of arguments for constructing a ControlProjectIntelligenceConfig resource. */ export interface ControlProjectIntelligenceConfigArgs { /** * Edition configuration of the Storage Intelligence resource. Valid values are INHERIT, TRIAL, DISABLED and STANDARD. */ editionConfig?: pulumi.Input<string>; /** * Filter over location and bucket using include or exclude semantics. Resources that match the include or exclude filter are exclusively included or excluded from the Storage Intelligence plan. * Structure is documented below. */ filter?: pulumi.Input<inputs.storage.ControlProjectIntelligenceConfigFilter>; /** * Identifier of the GCP project. For GCP project, this field can be project name or project number. */ name?: pulumi.Input<string>; }