CAST AI v7.73.2 published on Wednesday, Oct 29, 2025 by CAST AI
castai.WorkloadScalingPolicyOrder
Start a Neo task
Explain and create a castai.WorkloadScalingPolicyOrder resource
Create WorkloadScalingPolicyOrder Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WorkloadScalingPolicyOrder(name: string, args: WorkloadScalingPolicyOrderArgs, opts?: CustomResourceOptions);@overload
def WorkloadScalingPolicyOrder(resource_name: str,
args: WorkloadScalingPolicyOrderArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WorkloadScalingPolicyOrder(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
policy_ids: Optional[Sequence[str]] = None)func NewWorkloadScalingPolicyOrder(ctx *Context, name string, args WorkloadScalingPolicyOrderArgs, opts ...ResourceOption) (*WorkloadScalingPolicyOrder, error)public WorkloadScalingPolicyOrder(string name, WorkloadScalingPolicyOrderArgs args, CustomResourceOptions? opts = null)
public WorkloadScalingPolicyOrder(String name, WorkloadScalingPolicyOrderArgs args)
public WorkloadScalingPolicyOrder(String name, WorkloadScalingPolicyOrderArgs args, CustomResourceOptions options)
type: castai:workload:WorkloadScalingPolicyOrder
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 WorkloadScalingPolicyOrderArgs
- 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 WorkloadScalingPolicyOrderArgs
- 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 WorkloadScalingPolicyOrderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkloadScalingPolicyOrderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkloadScalingPolicyOrderArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WorkloadScalingPolicyOrder 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 WorkloadScalingPolicyOrder resource accepts the following input properties:
- cluster_
id str - CAST AI cluster id
- policy_
ids Sequence[str] - List of scaling policy IDs in the order they should be applied.
Outputs
All input properties are implicitly available as output properties. Additionally, the WorkloadScalingPolicyOrder 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 str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing WorkloadScalingPolicyOrder Resource
Get an existing WorkloadScalingPolicyOrder 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?: WorkloadScalingPolicyOrderState, opts?: CustomResourceOptions): WorkloadScalingPolicyOrder@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
policy_ids: Optional[Sequence[str]] = None) -> WorkloadScalingPolicyOrderfunc GetWorkloadScalingPolicyOrder(ctx *Context, name string, id IDInput, state *WorkloadScalingPolicyOrderState, opts ...ResourceOption) (*WorkloadScalingPolicyOrder, error)public static WorkloadScalingPolicyOrder Get(string name, Input<string> id, WorkloadScalingPolicyOrderState? state, CustomResourceOptions? opts = null)public static WorkloadScalingPolicyOrder get(String name, Output<String> id, WorkloadScalingPolicyOrderState state, CustomResourceOptions options)resources: _: type: castai:workload:WorkloadScalingPolicyOrder 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.
- cluster_
id str - CAST AI cluster id
- policy_
ids Sequence[str] - List of scaling policy IDs in the order they should be applied.
Package Details
- Repository
- castai castai/pulumi-castai
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
castaiTerraform Provider.
