1. Registry
  2. Packages
  3. CAST AI
  4. API Docs
  5. CacheConfiguration
Viewing docs for CAST AI v8.60.0
published on Wednesday, Aug 19, 2026 by CAST AI
castai logo
Viewing docs for CAST AI v8.60.0
published on Wednesday, Aug 19, 2026 by CAST AI

    Create CacheConfiguration Resource

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

    Constructor syntax

    new CacheConfiguration(name: string, args: CacheConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def CacheConfiguration(resource_name: str,
                           args: CacheConfigurationArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def CacheConfiguration(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           cache_group_id: Optional[str] = None,
                           database_name: Optional[str] = None,
                           mode: Optional[str] = None)
    func NewCacheConfiguration(ctx *Context, name string, args CacheConfigurationArgs, opts ...ResourceOption) (*CacheConfiguration, error)
    public CacheConfiguration(string name, CacheConfigurationArgs args, CustomResourceOptions? opts = null)
    public CacheConfiguration(String name, CacheConfigurationArgs args)
    public CacheConfiguration(String name, CacheConfigurationArgs args, CustomResourceOptions options)
    
    type: castai:cache:CacheConfiguration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "castai_cache_configuration" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args CacheConfigurationArgs
    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 CacheConfigurationArgs
    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 CacheConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CacheConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CacheConfigurationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CacheConfiguration 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 CacheConfiguration resource accepts the following input properties:

    CacheGroupId string
    ID of the cache group this configuration belongs to.
    DatabaseName string
    Logical database name to cache.
    Mode string
    Caching mode for this database. Valid values: Auto, DontCache, Manual.
    CacheGroupId string
    ID of the cache group this configuration belongs to.
    DatabaseName string
    Logical database name to cache.
    Mode string
    Caching mode for this database. Valid values: Auto, DontCache, Manual.
    cache_group_id string
    ID of the cache group this configuration belongs to.
    database_name string
    Logical database name to cache.
    mode string
    Caching mode for this database. Valid values: Auto, DontCache, Manual.
    cacheGroupId String
    ID of the cache group this configuration belongs to.
    databaseName String
    Logical database name to cache.
    mode String
    Caching mode for this database. Valid values: Auto, DontCache, Manual.
    cacheGroupId string
    ID of the cache group this configuration belongs to.
    databaseName string
    Logical database name to cache.
    mode string
    Caching mode for this database. Valid values: Auto, DontCache, Manual.
    cache_group_id str
    ID of the cache group this configuration belongs to.
    database_name str
    Logical database name to cache.
    mode str
    Caching mode for this database. Valid values: Auto, DontCache, Manual.
    cacheGroupId String
    ID of the cache group this configuration belongs to.
    databaseName String
    Logical database name to cache.
    mode String
    Caching mode for this database. Valid values: Auto, DontCache, Manual.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CacheConfiguration Resource

    Get an existing CacheConfiguration 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?: CacheConfigurationState, opts?: CustomResourceOptions): CacheConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cache_group_id: Optional[str] = None,
            database_name: Optional[str] = None,
            mode: Optional[str] = None) -> CacheConfiguration
    func GetCacheConfiguration(ctx *Context, name string, id IDInput, state *CacheConfigurationState, opts ...ResourceOption) (*CacheConfiguration, error)
    public static CacheConfiguration Get(string name, Input<string> id, CacheConfigurationState? state, CustomResourceOptions? opts = null)
    public static CacheConfiguration get(String name, Output<String> id, CacheConfigurationState state, CustomResourceOptions options)
    resources:  _:    type: castai:cache:CacheConfiguration    get:      id: ${id}
    import {
      to = castai_cache_configuration.example
      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:
    CacheGroupId string
    ID of the cache group this configuration belongs to.
    DatabaseName string
    Logical database name to cache.
    Mode string
    Caching mode for this database. Valid values: Auto, DontCache, Manual.
    CacheGroupId string
    ID of the cache group this configuration belongs to.
    DatabaseName string
    Logical database name to cache.
    Mode string
    Caching mode for this database. Valid values: Auto, DontCache, Manual.
    cache_group_id string
    ID of the cache group this configuration belongs to.
    database_name string
    Logical database name to cache.
    mode string
    Caching mode for this database. Valid values: Auto, DontCache, Manual.
    cacheGroupId String
    ID of the cache group this configuration belongs to.
    databaseName String
    Logical database name to cache.
    mode String
    Caching mode for this database. Valid values: Auto, DontCache, Manual.
    cacheGroupId string
    ID of the cache group this configuration belongs to.
    databaseName string
    Logical database name to cache.
    mode string
    Caching mode for this database. Valid values: Auto, DontCache, Manual.
    cache_group_id str
    ID of the cache group this configuration belongs to.
    database_name str
    Logical database name to cache.
    mode str
    Caching mode for this database. Valid values: Auto, DontCache, Manual.
    cacheGroupId String
    ID of the cache group this configuration belongs to.
    databaseName String
    Logical database name to cache.
    mode String
    Caching mode for this database. Valid values: Auto, DontCache, Manual.

    Package Details

    Repository
    castai castai/pulumi-castai
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the castai Terraform Provider.
    castai logo
    Viewing docs for CAST AI v8.60.0
    published on Wednesday, Aug 19, 2026 by CAST AI

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial