Viewing docs for CAST AI v8.60.0
published on Wednesday, Aug 19, 2026 by CAST AI
published on Wednesday, Aug 19, 2026 by CAST AI
Viewing docs for CAST AI v8.60.0
published on Wednesday, Aug 19, 2026 by CAST AI
published on Wednesday, Aug 19, 2026 by CAST AI
Create AiOptimizerModelSpecs Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AiOptimizerModelSpecs(name: string, args: AiOptimizerModelSpecsArgs, opts?: CustomResourceOptions);@overload
def AiOptimizerModelSpecs(resource_name: str,
args: AiOptimizerModelSpecsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AiOptimizerModelSpecs(resource_name: str,
opts: Optional[ResourceOptions] = None,
model: Optional[str] = None,
registry_type: Optional[str] = None,
description: Optional[str] = None,
huggingface: Optional[AiOptimizerModelSpecsHuggingfaceArgs] = None,
private_registry: Optional[AiOptimizerModelSpecsPrivateRegistryArgs] = None,
routable: Optional[bool] = None,
type: Optional[str] = None)func NewAiOptimizerModelSpecs(ctx *Context, name string, args AiOptimizerModelSpecsArgs, opts ...ResourceOption) (*AiOptimizerModelSpecs, error)public AiOptimizerModelSpecs(string name, AiOptimizerModelSpecsArgs args, CustomResourceOptions? opts = null)
public AiOptimizerModelSpecs(String name, AiOptimizerModelSpecsArgs args)
public AiOptimizerModelSpecs(String name, AiOptimizerModelSpecsArgs args, CustomResourceOptions options)
type: castai:index/aiOptimizer:AiOptimizerModelSpecs
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "castai_ai_optimizer_model_specs" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AiOptimizerModelSpecsArgs
- 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 AiOptimizerModelSpecsArgs
- 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 AiOptimizerModelSpecsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AiOptimizerModelSpecsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AiOptimizerModelSpecsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AiOptimizerModelSpecs 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 AiOptimizerModelSpecs resource accepts the following input properties:
- Model string
- Model name.
- Registry
Type string - Registry type: HUGGING_FACE or PRIVATE.
- Description string
- Model description.
- Huggingface
Pulumi.
Cast AI. Inputs. Ai Optimizer Model Specs Huggingface - HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
- Private
Registry Pulumi.Cast AI. Inputs. Ai Optimizer Model Specs Private Registry - Private registry configuration. Required when registryType is PRIVATE.
- Routable bool
- Whether the model is routable.
- Type string
- Model type (chat, embeddings, completion, etc.).
- Model string
- Model name.
- Registry
Type string - Registry type: HUGGING_FACE or PRIVATE.
- Description string
- Model description.
- Huggingface
Ai
Optimizer Model Specs Huggingface Args - HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
- Private
Registry AiOptimizer Model Specs Private Registry Args - Private registry configuration. Required when registryType is PRIVATE.
- Routable bool
- Whether the model is routable.
- Type string
- Model type (chat, embeddings, completion, etc.).
- model string
- Model name.
- registry_
type string - Registry type: HUGGING_FACE or PRIVATE.
- description string
- Model description.
- huggingface object
- HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
- private_
registry object - Private registry configuration. Required when registryType is PRIVATE.
- routable bool
- Whether the model is routable.
- type string
- Model type (chat, embeddings, completion, etc.).
- model String
- Model name.
- registry
Type String - Registry type: HUGGING_FACE or PRIVATE.
- description String
- Model description.
- huggingface
Ai
Optimizer Model Specs Huggingface - HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
- private
Registry AiOptimizer Model Specs Private Registry - Private registry configuration. Required when registryType is PRIVATE.
- routable Boolean
- Whether the model is routable.
- type String
- Model type (chat, embeddings, completion, etc.).
- model string
- Model name.
- registry
Type string - Registry type: HUGGING_FACE or PRIVATE.
- description string
- Model description.
- huggingface
Ai
Optimizer Model Specs Huggingface - HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
- private
Registry AiOptimizer Model Specs Private Registry - Private registry configuration. Required when registryType is PRIVATE.
- routable boolean
- Whether the model is routable.
- type string
- Model type (chat, embeddings, completion, etc.).
- model str
- Model name.
- registry_
type str - Registry type: HUGGING_FACE or PRIVATE.
- description str
- Model description.
- huggingface
Ai
Optimizer Model Specs Huggingface Args - HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
- private_
registry AiOptimizer Model Specs Private Registry Args - Private registry configuration. Required when registryType is PRIVATE.
- routable bool
- Whether the model is routable.
- type str
- Model type (chat, embeddings, completion, etc.).
- model String
- Model name.
- registry
Type String - Registry type: HUGGING_FACE or PRIVATE.
- description String
- Model description.
- huggingface Property Map
- HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
- private
Registry Property Map - Private registry configuration. Required when registryType is PRIVATE.
- routable Boolean
- Whether the model is routable.
- type String
- Model type (chat, embeddings, completion, etc.).
Outputs
All input properties are implicitly available as output properties. Additionally, the AiOptimizerModelSpecs 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 AiOptimizerModelSpecs Resource
Get an existing AiOptimizerModelSpecs 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?: AiOptimizerModelSpecsState, opts?: CustomResourceOptions): AiOptimizerModelSpecs@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
huggingface: Optional[AiOptimizerModelSpecsHuggingfaceArgs] = None,
model: Optional[str] = None,
private_registry: Optional[AiOptimizerModelSpecsPrivateRegistryArgs] = None,
registry_type: Optional[str] = None,
routable: Optional[bool] = None,
type: Optional[str] = None) -> AiOptimizerModelSpecsfunc GetAiOptimizerModelSpecs(ctx *Context, name string, id IDInput, state *AiOptimizerModelSpecsState, opts ...ResourceOption) (*AiOptimizerModelSpecs, error)public static AiOptimizerModelSpecs Get(string name, Input<string> id, AiOptimizerModelSpecsState? state, CustomResourceOptions? opts = null)public static AiOptimizerModelSpecs get(String name, Output<String> id, AiOptimizerModelSpecsState state, CustomResourceOptions options)resources: _: type: castai:index/aiOptimizer:AiOptimizerModelSpecs get: id: ${id}import {
to = castai_ai_optimizer_model_specs.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.
- Description string
- Model description.
- Huggingface
Pulumi.
Cast AI. Inputs. Ai Optimizer Model Specs Huggingface - HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
- Model string
- Model name.
- Private
Registry Pulumi.Cast AI. Inputs. Ai Optimizer Model Specs Private Registry - Private registry configuration. Required when registryType is PRIVATE.
- Registry
Type string - Registry type: HUGGING_FACE or PRIVATE.
- Routable bool
- Whether the model is routable.
- Type string
- Model type (chat, embeddings, completion, etc.).
- Description string
- Model description.
- Huggingface
Ai
Optimizer Model Specs Huggingface Args - HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
- Model string
- Model name.
- Private
Registry AiOptimizer Model Specs Private Registry Args - Private registry configuration. Required when registryType is PRIVATE.
- Registry
Type string - Registry type: HUGGING_FACE or PRIVATE.
- Routable bool
- Whether the model is routable.
- Type string
- Model type (chat, embeddings, completion, etc.).
- description string
- Model description.
- huggingface object
- HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
- model string
- Model name.
- private_
registry object - Private registry configuration. Required when registryType is PRIVATE.
- registry_
type string - Registry type: HUGGING_FACE or PRIVATE.
- routable bool
- Whether the model is routable.
- type string
- Model type (chat, embeddings, completion, etc.).
- description String
- Model description.
- huggingface
Ai
Optimizer Model Specs Huggingface - HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
- model String
- Model name.
- private
Registry AiOptimizer Model Specs Private Registry - Private registry configuration. Required when registryType is PRIVATE.
- registry
Type String - Registry type: HUGGING_FACE or PRIVATE.
- routable Boolean
- Whether the model is routable.
- type String
- Model type (chat, embeddings, completion, etc.).
- description string
- Model description.
- huggingface
Ai
Optimizer Model Specs Huggingface - HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
- model string
- Model name.
- private
Registry AiOptimizer Model Specs Private Registry - Private registry configuration. Required when registryType is PRIVATE.
- registry
Type string - Registry type: HUGGING_FACE or PRIVATE.
- routable boolean
- Whether the model is routable.
- type string
- Model type (chat, embeddings, completion, etc.).
- description str
- Model description.
- huggingface
Ai
Optimizer Model Specs Huggingface Args - HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
- model str
- Model name.
- private_
registry AiOptimizer Model Specs Private Registry Args - Private registry configuration. Required when registryType is PRIVATE.
- registry_
type str - Registry type: HUGGING_FACE or PRIVATE.
- routable bool
- Whether the model is routable.
- type str
- Model type (chat, embeddings, completion, etc.).
- description String
- Model description.
- huggingface Property Map
- HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
- model String
- Model name.
- private
Registry Property Map - Private registry configuration. Required when registryType is PRIVATE.
- registry
Type String - Registry type: HUGGING_FACE or PRIVATE.
- routable Boolean
- Whether the model is routable.
- type String
- Model type (chat, embeddings, completion, etc.).
Supporting Types
AiOptimizerModelSpecsHuggingface, AiOptimizerModelSpecsHuggingfaceArgs
- Model
Name string - HuggingFace model name (e.g. meta-llama/Llama-3.1-8B-Instruct).
- Model
Name string - HuggingFace model name (e.g. meta-llama/Llama-3.1-8B-Instruct).
- model_
name string - HuggingFace model name (e.g. meta-llama/Llama-3.1-8B-Instruct).
- model
Name String - HuggingFace model name (e.g. meta-llama/Llama-3.1-8B-Instruct).
- model
Name string - HuggingFace model name (e.g. meta-llama/Llama-3.1-8B-Instruct).
- model_
name str - HuggingFace model name (e.g. meta-llama/Llama-3.1-8B-Instruct).
- model
Name String - HuggingFace model name (e.g. meta-llama/Llama-3.1-8B-Instruct).
AiOptimizerModelSpecsPrivateRegistry, AiOptimizerModelSpecsPrivateRegistryArgs
- Base
Model stringId - Base model identifier.
- Registry
Id string - ID of the castai.AiOptimizerModelRegistry resource.
- Base
Model stringId - Base model identifier.
- Registry
Id string - ID of the castai.AiOptimizerModelRegistry resource.
- base_
model_ stringid - Base model identifier.
- registry_
id string - ID of the castai.AiOptimizerModelRegistry resource.
- base
Model StringId - Base model identifier.
- registry
Id String - ID of the castai.AiOptimizerModelRegistry resource.
- base
Model stringId - Base model identifier.
- registry
Id string - ID of the castai.AiOptimizerModelRegistry resource.
- base_
model_ strid - Base model identifier.
- registry_
id str - ID of the castai.AiOptimizerModelRegistry resource.
- base
Model StringId - Base model identifier.
- registry
Id String - ID of the castai.AiOptimizerModelRegistry resource.
Package Details
- Repository
- castai castai/pulumi-castai
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
castaiTerraform Provider.
Viewing docs for CAST AI v8.60.0
published on Wednesday, Aug 19, 2026 by CAST AI
published on Wednesday, Aug 19, 2026 by CAST AI