1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. vertex
  5. AiCacheConfig
Google Cloud v9.4.0 published on Tuesday, Nov 4, 2025 by Pulumi

gcp.vertex.AiCacheConfig

Start a Neo task
Explain and create a gcp.vertex.AiCacheConfig resource
gcp logo
Google Cloud v9.4.0 published on Tuesday, Nov 4, 2025 by Pulumi

    Config of GenAI caching features. This is a singleton resource.

    To get more information about CacheConfig, see:

    Example Usage

    Vertex Ai Cache Config

    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 pulumi
    import pulumi_gcp as gcp
    
    cache_config = gcp.vertex.AiCacheConfig("cache_config",
        project="my-project-name",
        disable_cache=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/vertex"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vertex.NewAiCacheConfig(ctx, "cache_config", &vertex.AiCacheConfigArgs{
    			Project:      pulumi.String("my-project-name"),
    			DisableCache: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var cacheConfig = new Gcp.Vertex.AiCacheConfig("cache_config", new()
        {
            Project = "my-project-name",
            DisableCache = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.vertex.AiCacheConfig;
    import com.pulumi.gcp.vertex.AiCacheConfigArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var cacheConfig = new AiCacheConfig("cacheConfig", AiCacheConfigArgs.builder()
                .project("my-project-name")
                .disableCache(true)
                .build());
    
        }
    }
    
    resources:
      cacheConfig:
        type: gcp:vertex:AiCacheConfig
        name: cache_config
        properties:
          project: my-project-name
          disableCache: true
    

    Create AiCacheConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AiCacheConfig(name: string, args: AiCacheConfigArgs, opts?: CustomResourceOptions);
    @overload
    def AiCacheConfig(resource_name: str,
                      args: AiCacheConfigArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def AiCacheConfig(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      disable_cache: Optional[bool] = None,
                      project: Optional[str] = None)
    func NewAiCacheConfig(ctx *Context, name string, args AiCacheConfigArgs, opts ...ResourceOption) (*AiCacheConfig, error)
    public AiCacheConfig(string name, AiCacheConfigArgs args, CustomResourceOptions? opts = null)
    public AiCacheConfig(String name, AiCacheConfigArgs args)
    public AiCacheConfig(String name, AiCacheConfigArgs args, CustomResourceOptions options)
    
    type: gcp:vertex:AiCacheConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AiCacheConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AiCacheConfigArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AiCacheConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AiCacheConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AiCacheConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var aiCacheConfigResource = new Gcp.Vertex.AiCacheConfig("aiCacheConfigResource", new()
    {
        DisableCache = false,
        Project = "string",
    });
    
    example, err := vertex.NewAiCacheConfig(ctx, "aiCacheConfigResource", &vertex.AiCacheConfigArgs{
    	DisableCache: pulumi.Bool(false),
    	Project:      pulumi.String("string"),
    })
    
    var aiCacheConfigResource = new AiCacheConfig("aiCacheConfigResource", AiCacheConfigArgs.builder()
        .disableCache(false)
        .project("string")
        .build());
    
    ai_cache_config_resource = gcp.vertex.AiCacheConfig("aiCacheConfigResource",
        disable_cache=False,
        project="string")
    
    const aiCacheConfigResource = new gcp.vertex.AiCacheConfig("aiCacheConfigResource", {
        disableCache: false,
        project: "string",
    });
    
    type: gcp:vertex:AiCacheConfig
    properties:
        disableCache: false
        project: string
    

    AiCacheConfig Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AiCacheConfig resource accepts the following input properties:

    DisableCache bool
    If set to true, disables GenAI caching. Otherwise caching is enabled.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    DisableCache bool
    If set to true, disables GenAI caching. Otherwise caching is enabled.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    disableCache Boolean
    If set to true, disables GenAI caching. Otherwise caching is enabled.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    disableCache boolean
    If set to true, disables GenAI caching. Otherwise caching is enabled.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    disable_cache bool
    If set to true, disables GenAI caching. Otherwise caching is enabled.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    disableCache Boolean
    If set to true, disables GenAI caching. Otherwise caching is enabled.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AiCacheConfig resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. name of the cache config. Format: - projects/{project}/cacheConfig.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. name of the cache config. Format: - projects/{project}/cacheConfig.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. name of the cache config. Format: - projects/{project}/cacheConfig.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Identifier. name of the cache config. Format: - projects/{project}/cacheConfig.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Identifier. name of the cache config. Format: - projects/{project}/cacheConfig.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. name of the cache config. Format: - projects/{project}/cacheConfig.

    Look up Existing AiCacheConfig Resource

    Get an existing AiCacheConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AiCacheConfigState, opts?: CustomResourceOptions): AiCacheConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            disable_cache: Optional[bool] = None,
            name: Optional[str] = None,
            project: Optional[str] = None) -> AiCacheConfig
    func GetAiCacheConfig(ctx *Context, name string, id IDInput, state *AiCacheConfigState, opts ...ResourceOption) (*AiCacheConfig, error)
    public static AiCacheConfig Get(string name, Input<string> id, AiCacheConfigState? state, CustomResourceOptions? opts = null)
    public static AiCacheConfig get(String name, Output<String> id, AiCacheConfigState state, CustomResourceOptions options)
    resources:  _:    type: gcp:vertex:AiCacheConfig    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DisableCache bool
    If set to true, disables GenAI caching. Otherwise caching is enabled.
    Name string
    Identifier. name of the cache config. Format: - projects/{project}/cacheConfig.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    DisableCache bool
    If set to true, disables GenAI caching. Otherwise caching is enabled.
    Name string
    Identifier. name of the cache config. Format: - projects/{project}/cacheConfig.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    disableCache Boolean
    If set to true, disables GenAI caching. Otherwise caching is enabled.
    name String
    Identifier. name of the cache config. Format: - projects/{project}/cacheConfig.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    disableCache boolean
    If set to true, disables GenAI caching. Otherwise caching is enabled.
    name string
    Identifier. name of the cache config. Format: - projects/{project}/cacheConfig.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    disable_cache bool
    If set to true, disables GenAI caching. Otherwise caching is enabled.
    name str
    Identifier. name of the cache config. Format: - projects/{project}/cacheConfig.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    disableCache Boolean
    If set to true, disables GenAI caching. Otherwise caching is enabled.
    name String
    Identifier. name of the cache config. Format: - projects/{project}/cacheConfig.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    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:

    $ pulumi import gcp:vertex/aiCacheConfig:AiCacheConfig default projects/{{project}}/cacheConfig
    
    $ pulumi import gcp:vertex/aiCacheConfig:AiCacheConfig default {{project}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud v9.4.0 published on Tuesday, Nov 4, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate