1. Packages
  2. CAST AI
  3. API Docs
  4. Autoscaler
CAST AI v0.1.45 published on Thursday, Apr 17, 2025 by CAST AI

castai.Autoscaler

Explore with Pulumi AI

castai logo
CAST AI v0.1.45 published on Thursday, Apr 17, 2025 by CAST 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:

    AutoscalerPoliciesJson string
    autoscaler policies JSON string to override current autoscaler settings
    ClusterId string
    CAST AI cluster id
    AutoscalerPoliciesJson string
    autoscaler policies JSON string to override current autoscaler settings
    ClusterId string
    CAST AI cluster id
    autoscalerPoliciesJson String
    autoscaler policies JSON string to override current autoscaler settings
    clusterId String
    CAST AI cluster id
    autoscalerPoliciesJson string
    autoscaler policies JSON string to override current autoscaler settings
    clusterId string
    CAST AI cluster id
    autoscaler_policies_json str
    autoscaler policies JSON string to override current autoscaler settings
    cluster_id str
    CAST AI cluster id
    autoscalerPoliciesJson String
    autoscaler policies JSON string to override current autoscaler settings
    clusterId String
    CAST AI cluster id

    Outputs

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

    AutoscalerPolicies string
    computed value to store full policies configuration
    Id string
    The provider-assigned unique ID for this managed resource.
    AutoscalerPolicies string
    computed value to store full policies configuration
    Id string
    The provider-assigned unique ID for this managed resource.
    autoscalerPolicies String
    computed value to store full policies configuration
    id String
    The provider-assigned unique ID for this managed resource.
    autoscalerPolicies 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.
    autoscalerPolicies 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.
    The following state arguments are supported:
    AutoscalerPolicies string
    computed value to store full policies configuration
    AutoscalerPoliciesJson string
    autoscaler policies JSON string to override current autoscaler settings
    ClusterId string
    CAST AI cluster id
    AutoscalerPolicies string
    computed value to store full policies configuration
    AutoscalerPoliciesJson string
    autoscaler policies JSON string to override current autoscaler settings
    ClusterId string
    CAST AI cluster id
    autoscalerPolicies String
    computed value to store full policies configuration
    autoscalerPoliciesJson String
    autoscaler policies JSON string to override current autoscaler settings
    clusterId String
    CAST AI cluster id
    autoscalerPolicies string
    computed value to store full policies configuration
    autoscalerPoliciesJson string
    autoscaler policies JSON string to override current autoscaler settings
    clusterId string
    CAST AI cluster id
    autoscaler_policies str
    computed value to store full policies configuration
    autoscaler_policies_json str
    autoscaler policies JSON string to override current autoscaler settings
    cluster_id str
    CAST AI cluster id
    autoscalerPolicies String
    computed value to store full policies configuration
    autoscalerPoliciesJson String
    autoscaler policies JSON string to override current autoscaler settings
    clusterId 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.
    castai logo
    CAST AI v0.1.45 published on Thursday, Apr 17, 2025 by CAST AI