import * as pulumi from "@pulumi/pulumi"; /** * Config of GenAI caching features. This is a singleton resource. * * To get more information about CacheConfig, see: * * * [API documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/reference/rest/v1/projects/updateCacheConfig) * * How-to Guides * * [Official Documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/reference/rest/Shared.Types/CacheConfig) * * ## Example Usage * * ### Vertex Ai Cache Config * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const cacheConfig = new gcp.vertex.AiCacheConfig("cache_config", { * project: "my-project-name", * disableCache: true, * }); * ``` * * ## Import * * CacheConfig can be imported using any of these accepted formats: * * * `projects/{{project}}/cacheConfig` * * * `{{project}}` * * When using the `pulumi import` command, CacheConfig can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:vertex/aiCacheConfig:AiCacheConfig default projects/{{project}}/cacheConfig * ``` * * ```sh * $ pulumi import gcp:vertex/aiCacheConfig:AiCacheConfig default {{project}} * ``` */ export declare class AiCacheConfig extends pulumi.CustomResource { /** * Get an existing AiCacheConfig 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?: AiCacheConfigState, opts?: pulumi.CustomResourceOptions): AiCacheConfig; /** * Returns true if the given object is an instance of AiCacheConfig. 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 AiCacheConfig; /** * If set to true, disables GenAI caching. Otherwise caching is enabled. */ readonly disableCache: pulumi.Output; /** * Identifier. name of the cache config. Format: - `projects/{project}/cacheConfig`. */ readonly name: pulumi.Output; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output; /** * Create a AiCacheConfig 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: AiCacheConfigArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AiCacheConfig resources. */ export interface AiCacheConfigState { /** * If set to true, disables GenAI caching. Otherwise caching is enabled. */ disableCache?: pulumi.Input; /** * Identifier. name of the cache config. Format: - `projects/{project}/cacheConfig`. */ name?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; } /** * The set of arguments for constructing a AiCacheConfig resource. */ export interface AiCacheConfigArgs { /** * If set to true, disables GenAI caching. Otherwise caching is enabled. */ disableCache: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; }