castai.Autoscaler
Explore with Pulumi AI
CAST AI autoscaler resource to manage autoscaler settings
Create Autoscaler Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Autoscaler(name: string, args?: AutoscalerArgs, opts?: CustomResourceOptions);
@overload
def Autoscaler(resource_name: str,
args: Optional[AutoscalerArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Autoscaler(resource_name: str,
opts: Optional[ResourceOptions] = None,
autoscaler_policies_json: Optional[str] = None,
cluster_id: Optional[str] = None)
func NewAutoscaler(ctx *Context, name string, args *AutoscalerArgs, opts ...ResourceOption) (*Autoscaler, error)
public Autoscaler(string name, AutoscalerArgs? args = null, CustomResourceOptions? opts = null)
public Autoscaler(String name, AutoscalerArgs args)
public Autoscaler(String name, AutoscalerArgs args, CustomResourceOptions options)
type: castai:autoscaling:Autoscaler
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 AutoscalerArgs
- 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 AutoscalerArgs
- 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 AutoscalerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AutoscalerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AutoscalerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Autoscaler 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 Autoscaler resource accepts the following input properties:
- Autoscaler
Policies stringJson - autoscaler policies JSON string to override current autoscaler settings
- Cluster
Id string - CAST AI cluster id
- Autoscaler
Policies stringJson - autoscaler policies JSON string to override current autoscaler settings
- Cluster
Id string - CAST AI cluster id
- autoscaler
Policies StringJson - autoscaler policies JSON string to override current autoscaler settings
- cluster
Id String - CAST AI cluster id
- autoscaler
Policies stringJson - autoscaler policies JSON string to override current autoscaler settings
- cluster
Id string - CAST AI cluster id
- autoscaler_
policies_ strjson - autoscaler policies JSON string to override current autoscaler settings
- cluster_
id str - CAST AI cluster id
- autoscaler
Policies StringJson - autoscaler policies JSON string to override current autoscaler settings
- cluster
Id String - CAST AI cluster id
Outputs
All input properties are implicitly available as output properties. Additionally, the Autoscaler resource produces the following output properties:
- Autoscaler
Policies string - computed value to store full policies configuration
- Id string
- The provider-assigned unique ID for this managed resource.
- Autoscaler
Policies string - computed value to store full policies configuration
- Id string
- The provider-assigned unique ID for this managed resource.
- autoscaler
Policies String - computed value to store full policies configuration
- id String
- The provider-assigned unique ID for this managed resource.
- autoscaler
Policies string - computed value to store full policies configuration
- id string
- The provider-assigned unique ID for this managed resource.
- autoscaler_
policies str - computed value to store full policies configuration
- id str
- The provider-assigned unique ID for this managed resource.
- autoscaler
Policies String - computed value to store full policies configuration
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Autoscaler Resource
Get an existing Autoscaler 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?: AutoscalerState, opts?: CustomResourceOptions): Autoscaler
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
autoscaler_policies: Optional[str] = None,
autoscaler_policies_json: Optional[str] = None,
cluster_id: Optional[str] = None) -> Autoscaler
func GetAutoscaler(ctx *Context, name string, id IDInput, state *AutoscalerState, opts ...ResourceOption) (*Autoscaler, error)
public static Autoscaler Get(string name, Input<string> id, AutoscalerState? state, CustomResourceOptions? opts = null)
public static Autoscaler get(String name, Output<String> id, AutoscalerState state, CustomResourceOptions options)
resources: _: type: castai:autoscaling:Autoscaler 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.
- Autoscaler
Policies string - computed value to store full policies configuration
- Autoscaler
Policies stringJson - autoscaler policies JSON string to override current autoscaler settings
- Cluster
Id string - CAST AI cluster id
- Autoscaler
Policies string - computed value to store full policies configuration
- Autoscaler
Policies stringJson - autoscaler policies JSON string to override current autoscaler settings
- Cluster
Id string - CAST AI cluster id
- autoscaler
Policies String - computed value to store full policies configuration
- autoscaler
Policies StringJson - autoscaler policies JSON string to override current autoscaler settings
- cluster
Id String - CAST AI cluster id
- autoscaler
Policies string - computed value to store full policies configuration
- autoscaler
Policies stringJson - autoscaler policies JSON string to override current autoscaler settings
- cluster
Id string - CAST AI cluster id
- autoscaler_
policies str - computed value to store full policies configuration
- autoscaler_
policies_ strjson - autoscaler policies JSON string to override current autoscaler settings
- cluster_
id str - CAST AI cluster id
- autoscaler
Policies String - computed value to store full policies configuration
- autoscaler
Policies StringJson - autoscaler policies JSON string to override current autoscaler settings
- cluster
Id String - CAST AI cluster id
Package Details
- Repository
- castai castai/pulumi-castai
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
castai
Terraform Provider.