1. Packages
  2. CAST AI
  3. API Docs
  4. Commitments
CAST AI v7.73.2 published on Wednesday, Oct 29, 2025 by CAST AI

castai.Commitments

Get Started
castai logo
CAST AI v7.73.2 published on Wednesday, Oct 29, 2025 by CAST AI

    Create Commitments Resource

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

    Constructor syntax

    new Commitments(name: string, args?: CommitmentsArgs, opts?: CustomResourceOptions);
    @overload
    def Commitments(resource_name: str,
                    args: Optional[CommitmentsArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def Commitments(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    azure_reservations_csv: Optional[str] = None,
                    commitment_configs: Optional[Sequence[CommitmentsCommitmentConfigArgs]] = None,
                    gcp_cuds_json: Optional[str] = None)
    func NewCommitments(ctx *Context, name string, args *CommitmentsArgs, opts ...ResourceOption) (*Commitments, error)
    public Commitments(string name, CommitmentsArgs? args = null, CustomResourceOptions? opts = null)
    public Commitments(String name, CommitmentsArgs args)
    public Commitments(String name, CommitmentsArgs args, CustomResourceOptions options)
    
    type: castai:Commitments
    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 CommitmentsArgs
    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 CommitmentsArgs
    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 CommitmentsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CommitmentsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CommitmentsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var commitmentsResource = new CastAI.Commitments("commitmentsResource", new()
    {
        AzureReservationsCsv = "string",
        CommitmentConfigs = new[]
        {
            new CastAI.Inputs.CommitmentsCommitmentConfigArgs
            {
                Matcher = new CastAI.Inputs.CommitmentsCommitmentConfigMatcherArgs
                {
                    Name = "string",
                    Region = "string",
                    Type = "string",
                },
                AllowedUsage = 0,
                Assignments = new[]
                {
                    new CastAI.Inputs.CommitmentsCommitmentConfigAssignmentArgs
                    {
                        ClusterId = "string",
                        Priority = 0,
                    },
                },
                Prioritization = false,
                ScalingStrategy = "string",
                Status = "string",
            },
        },
        GcpCudsJson = "string",
    });
    
    example, err := castai.NewCommitments(ctx, "commitmentsResource", &castai.CommitmentsArgs{
    	AzureReservationsCsv: pulumi.String("string"),
    	CommitmentConfigs: castai.CommitmentsCommitmentConfigArray{
    		&castai.CommitmentsCommitmentConfigArgs{
    			Matcher: &castai.CommitmentsCommitmentConfigMatcherArgs{
    				Name:   pulumi.String("string"),
    				Region: pulumi.String("string"),
    				Type:   pulumi.String("string"),
    			},
    			AllowedUsage: pulumi.Float64(0),
    			Assignments: castai.CommitmentsCommitmentConfigAssignmentArray{
    				&castai.CommitmentsCommitmentConfigAssignmentArgs{
    					ClusterId: pulumi.String("string"),
    					Priority:  pulumi.Int(0),
    				},
    			},
    			Prioritization:  pulumi.Bool(false),
    			ScalingStrategy: pulumi.String("string"),
    			Status:          pulumi.String("string"),
    		},
    	},
    	GcpCudsJson: pulumi.String("string"),
    })
    
    var commitmentsResource = new Commitments("commitmentsResource", CommitmentsArgs.builder()
        .azureReservationsCsv("string")
        .commitmentConfigs(CommitmentsCommitmentConfigArgs.builder()
            .matcher(CommitmentsCommitmentConfigMatcherArgs.builder()
                .name("string")
                .region("string")
                .type("string")
                .build())
            .allowedUsage(0.0)
            .assignments(CommitmentsCommitmentConfigAssignmentArgs.builder()
                .clusterId("string")
                .priority(0)
                .build())
            .prioritization(false)
            .scalingStrategy("string")
            .status("string")
            .build())
        .gcpCudsJson("string")
        .build());
    
    commitments_resource = castai.Commitments("commitmentsResource",
        azure_reservations_csv="string",
        commitment_configs=[{
            "matcher": {
                "name": "string",
                "region": "string",
                "type": "string",
            },
            "allowed_usage": 0,
            "assignments": [{
                "cluster_id": "string",
                "priority": 0,
            }],
            "prioritization": False,
            "scaling_strategy": "string",
            "status": "string",
        }],
        gcp_cuds_json="string")
    
    const commitmentsResource = new castai.Commitments("commitmentsResource", {
        azureReservationsCsv: "string",
        commitmentConfigs: [{
            matcher: {
                name: "string",
                region: "string",
                type: "string",
            },
            allowedUsage: 0,
            assignments: [{
                clusterId: "string",
                priority: 0,
            }],
            prioritization: false,
            scalingStrategy: "string",
            status: "string",
        }],
        gcpCudsJson: "string",
    });
    
    type: castai:Commitments
    properties:
        azureReservationsCsv: string
        commitmentConfigs:
            - allowedUsage: 0
              assignments:
                - clusterId: string
                  priority: 0
              matcher:
                name: string
                region: string
                type: string
              prioritization: false
              scalingStrategy: string
              status: string
        gcpCudsJson: string
    

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

    AzureReservationsCsv string
    CSV file containing reservations exported from Azure.
    CommitmentConfigs List<Pulumi.CastAI.Inputs.CommitmentsCommitmentConfig>
    List of commitment configurations.
    GcpCudsJson string
    JSON file containing CUDs exported from GCP.
    AzureReservationsCsv string
    CSV file containing reservations exported from Azure.
    CommitmentConfigs []CommitmentsCommitmentConfigArgs
    List of commitment configurations.
    GcpCudsJson string
    JSON file containing CUDs exported from GCP.
    azureReservationsCsv String
    CSV file containing reservations exported from Azure.
    commitmentConfigs List<CommitmentsCommitmentConfig>
    List of commitment configurations.
    gcpCudsJson String
    JSON file containing CUDs exported from GCP.
    azureReservationsCsv string
    CSV file containing reservations exported from Azure.
    commitmentConfigs CommitmentsCommitmentConfig[]
    List of commitment configurations.
    gcpCudsJson string
    JSON file containing CUDs exported from GCP.
    azure_reservations_csv str
    CSV file containing reservations exported from Azure.
    commitment_configs Sequence[CommitmentsCommitmentConfigArgs]
    List of commitment configurations.
    gcp_cuds_json str
    JSON file containing CUDs exported from GCP.
    azureReservationsCsv String
    CSV file containing reservations exported from Azure.
    commitmentConfigs List<Property Map>
    List of commitment configurations.
    gcpCudsJson String
    JSON file containing CUDs exported from GCP.

    Outputs

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

    AzureReservations List<Pulumi.CastAI.Outputs.CommitmentsAzureReservation>
    List of Azure reservations.
    GcpCuds List<Pulumi.CastAI.Outputs.CommitmentsGcpCud>
    List of GCP CUDs.
    Id string
    The provider-assigned unique ID for this managed resource.
    AzureReservations []CommitmentsAzureReservation
    List of Azure reservations.
    GcpCuds []CommitmentsGcpCud
    List of GCP CUDs.
    Id string
    The provider-assigned unique ID for this managed resource.
    azureReservations List<CommitmentsAzureReservation>
    List of Azure reservations.
    gcpCuds List<CommitmentsGcpCud>
    List of GCP CUDs.
    id String
    The provider-assigned unique ID for this managed resource.
    azureReservations CommitmentsAzureReservation[]
    List of Azure reservations.
    gcpCuds CommitmentsGcpCud[]
    List of GCP CUDs.
    id string
    The provider-assigned unique ID for this managed resource.
    azure_reservations Sequence[CommitmentsAzureReservation]
    List of Azure reservations.
    gcp_cuds Sequence[CommitmentsGcpCud]
    List of GCP CUDs.
    id str
    The provider-assigned unique ID for this managed resource.
    azureReservations List<Property Map>
    List of Azure reservations.
    gcpCuds List<Property Map>
    List of GCP CUDs.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Commitments Resource

    Get an existing Commitments 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?: CommitmentsState, opts?: CustomResourceOptions): Commitments
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            azure_reservations: Optional[Sequence[CommitmentsAzureReservationArgs]] = None,
            azure_reservations_csv: Optional[str] = None,
            commitment_configs: Optional[Sequence[CommitmentsCommitmentConfigArgs]] = None,
            gcp_cuds: Optional[Sequence[CommitmentsGcpCudArgs]] = None,
            gcp_cuds_json: Optional[str] = None) -> Commitments
    func GetCommitments(ctx *Context, name string, id IDInput, state *CommitmentsState, opts ...ResourceOption) (*Commitments, error)
    public static Commitments Get(string name, Input<string> id, CommitmentsState? state, CustomResourceOptions? opts = null)
    public static Commitments get(String name, Output<String> id, CommitmentsState state, CustomResourceOptions options)
    resources:  _:    type: castai:Commitments    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:
    AzureReservations List<Pulumi.CastAI.Inputs.CommitmentsAzureReservation>
    List of Azure reservations.
    AzureReservationsCsv string
    CSV file containing reservations exported from Azure.
    CommitmentConfigs List<Pulumi.CastAI.Inputs.CommitmentsCommitmentConfig>
    List of commitment configurations.
    GcpCuds List<Pulumi.CastAI.Inputs.CommitmentsGcpCud>
    List of GCP CUDs.
    GcpCudsJson string
    JSON file containing CUDs exported from GCP.
    AzureReservations []CommitmentsAzureReservationArgs
    List of Azure reservations.
    AzureReservationsCsv string
    CSV file containing reservations exported from Azure.
    CommitmentConfigs []CommitmentsCommitmentConfigArgs
    List of commitment configurations.
    GcpCuds []CommitmentsGcpCudArgs
    List of GCP CUDs.
    GcpCudsJson string
    JSON file containing CUDs exported from GCP.
    azureReservations List<CommitmentsAzureReservation>
    List of Azure reservations.
    azureReservationsCsv String
    CSV file containing reservations exported from Azure.
    commitmentConfigs List<CommitmentsCommitmentConfig>
    List of commitment configurations.
    gcpCuds List<CommitmentsGcpCud>
    List of GCP CUDs.
    gcpCudsJson String
    JSON file containing CUDs exported from GCP.
    azureReservations CommitmentsAzureReservation[]
    List of Azure reservations.
    azureReservationsCsv string
    CSV file containing reservations exported from Azure.
    commitmentConfigs CommitmentsCommitmentConfig[]
    List of commitment configurations.
    gcpCuds CommitmentsGcpCud[]
    List of GCP CUDs.
    gcpCudsJson string
    JSON file containing CUDs exported from GCP.
    azure_reservations Sequence[CommitmentsAzureReservationArgs]
    List of Azure reservations.
    azure_reservations_csv str
    CSV file containing reservations exported from Azure.
    commitment_configs Sequence[CommitmentsCommitmentConfigArgs]
    List of commitment configurations.
    gcp_cuds Sequence[CommitmentsGcpCudArgs]
    List of GCP CUDs.
    gcp_cuds_json str
    JSON file containing CUDs exported from GCP.
    azureReservations List<Property Map>
    List of Azure reservations.
    azureReservationsCsv String
    CSV file containing reservations exported from Azure.
    commitmentConfigs List<Property Map>
    List of commitment configurations.
    gcpCuds List<Property Map>
    List of GCP CUDs.
    gcpCudsJson String
    JSON file containing CUDs exported from GCP.

    Supporting Types

    CommitmentsAzureReservation, CommitmentsAzureReservationArgs

    Count int
    Number of instances covered by the reservation.
    EndTimestamp string
    End timestamp of the CUD.
    InstanceType string
    Type of the instance covered by the reservation.
    Name string
    Name of the CUD.
    Plan string
    Plan of the reservation.
    Region string
    Region in which the CUD is available.
    ReservationId string
    ID of the reservation in Azure.
    ReservationStatus string
    Status of the reservation in Azure.
    Scope string
    ScopeResourceGroup string
    ScopeSubscription string
    StartTimestamp string
    Start timestamp of the CUD.
    AllowedUsage double
    Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
    Assignments List<Pulumi.CastAI.Inputs.CommitmentsAzureReservationAssignment>
    List of assigned clusters for the commitment. If prioritization is enabled, the order of the assignments indicates the priority. The first assignment has the highest priority.
    Id string
    ID of the commitment in CAST AI.
    Prioritization bool
    If enabled, it's possible to assign priorities to the assigned clusters.
    ScalingStrategy string
    Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
    Status string
    Status of the commitment in CAST AI.
    Count int
    Number of instances covered by the reservation.
    EndTimestamp string
    End timestamp of the CUD.
    InstanceType string
    Type of the instance covered by the reservation.
    Name string
    Name of the CUD.
    Plan string
    Plan of the reservation.
    Region string
    Region in which the CUD is available.
    ReservationId string
    ID of the reservation in Azure.
    ReservationStatus string
    Status of the reservation in Azure.
    Scope string
    ScopeResourceGroup string
    ScopeSubscription string
    StartTimestamp string
    Start timestamp of the CUD.
    AllowedUsage float64
    Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
    Assignments []CommitmentsAzureReservationAssignment
    List of assigned clusters for the commitment. If prioritization is enabled, the order of the assignments indicates the priority. The first assignment has the highest priority.
    Id string
    ID of the commitment in CAST AI.
    Prioritization bool
    If enabled, it's possible to assign priorities to the assigned clusters.
    ScalingStrategy string
    Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
    Status string
    Status of the commitment in CAST AI.
    count Integer
    Number of instances covered by the reservation.
    endTimestamp String
    End timestamp of the CUD.
    instanceType String
    Type of the instance covered by the reservation.
    name String
    Name of the CUD.
    plan String
    Plan of the reservation.
    region String
    Region in which the CUD is available.
    reservationId String
    ID of the reservation in Azure.
    reservationStatus String
    Status of the reservation in Azure.
    scope String
    scopeResourceGroup String
    scopeSubscription String
    startTimestamp String
    Start timestamp of the CUD.
    allowedUsage Double
    Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
    assignments List<CommitmentsAzureReservationAssignment>
    List of assigned clusters for the commitment. If prioritization is enabled, the order of the assignments indicates the priority. The first assignment has the highest priority.
    id String
    ID of the commitment in CAST AI.
    prioritization Boolean
    If enabled, it's possible to assign priorities to the assigned clusters.
    scalingStrategy String
    Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
    status String
    Status of the commitment in CAST AI.
    count number
    Number of instances covered by the reservation.
    endTimestamp string
    End timestamp of the CUD.
    instanceType string
    Type of the instance covered by the reservation.
    name string
    Name of the CUD.
    plan string
    Plan of the reservation.
    region string
    Region in which the CUD is available.
    reservationId string
    ID of the reservation in Azure.
    reservationStatus string
    Status of the reservation in Azure.
    scope string
    scopeResourceGroup string
    scopeSubscription string
    startTimestamp string
    Start timestamp of the CUD.
    allowedUsage number
    Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
    assignments CommitmentsAzureReservationAssignment[]
    List of assigned clusters for the commitment. If prioritization is enabled, the order of the assignments indicates the priority. The first assignment has the highest priority.
    id string
    ID of the commitment in CAST AI.
    prioritization boolean
    If enabled, it's possible to assign priorities to the assigned clusters.
    scalingStrategy string
    Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
    status string
    Status of the commitment in CAST AI.
    count int
    Number of instances covered by the reservation.
    end_timestamp str
    End timestamp of the CUD.
    instance_type str
    Type of the instance covered by the reservation.
    name str
    Name of the CUD.
    plan str
    Plan of the reservation.
    region str
    Region in which the CUD is available.
    reservation_id str
    ID of the reservation in Azure.
    reservation_status str
    Status of the reservation in Azure.
    scope str
    scope_resource_group str
    scope_subscription str
    start_timestamp str
    Start timestamp of the CUD.
    allowed_usage float
    Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
    assignments Sequence[CommitmentsAzureReservationAssignment]
    List of assigned clusters for the commitment. If prioritization is enabled, the order of the assignments indicates the priority. The first assignment has the highest priority.
    id str
    ID of the commitment in CAST AI.
    prioritization bool
    If enabled, it's possible to assign priorities to the assigned clusters.
    scaling_strategy str
    Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
    status str
    Status of the commitment in CAST AI.
    count Number
    Number of instances covered by the reservation.
    endTimestamp String
    End timestamp of the CUD.
    instanceType String
    Type of the instance covered by the reservation.
    name String
    Name of the CUD.
    plan String
    Plan of the reservation.
    region String
    Region in which the CUD is available.
    reservationId String
    ID of the reservation in Azure.
    reservationStatus String
    Status of the reservation in Azure.
    scope String
    scopeResourceGroup String
    scopeSubscription String
    startTimestamp String
    Start timestamp of the CUD.
    allowedUsage Number
    Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
    assignments List<Property Map>
    List of assigned clusters for the commitment. If prioritization is enabled, the order of the assignments indicates the priority. The first assignment has the highest priority.
    id String
    ID of the commitment in CAST AI.
    prioritization Boolean
    If enabled, it's possible to assign priorities to the assigned clusters.
    scalingStrategy String
    Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
    status String
    Status of the commitment in CAST AI.

    CommitmentsAzureReservationAssignment, CommitmentsAzureReservationAssignmentArgs

    ClusterId string
    ID of the cluster to assign the commitment to.
    Priority int
    Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.
    ClusterId string
    ID of the cluster to assign the commitment to.
    Priority int
    Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.
    clusterId String
    ID of the cluster to assign the commitment to.
    priority Integer
    Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.
    clusterId string
    ID of the cluster to assign the commitment to.
    priority number
    Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.
    cluster_id str
    ID of the cluster to assign the commitment to.
    priority int
    Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.
    clusterId String
    ID of the cluster to assign the commitment to.
    priority Number
    Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.

    CommitmentsCommitmentConfig, CommitmentsCommitmentConfigArgs

    Matcher Pulumi.CastAI.Inputs.CommitmentsCommitmentConfigMatcher
    Matcher used to map config to a commitment.
    AllowedUsage double
    Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
    Assignments List<Pulumi.CastAI.Inputs.CommitmentsCommitmentConfigAssignment>
    List of assigned clusters for the commitment. If prioritization is enabled, the order of the assignments indicates the priority. The first assignment has the highest priority.
    Prioritization bool
    If enabled, it's possible to assign priorities to the assigned clusters.
    ScalingStrategy string
    Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
    Status string
    Status of the commitment in CAST AI.
    Matcher CommitmentsCommitmentConfigMatcher
    Matcher used to map config to a commitment.
    AllowedUsage float64
    Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
    Assignments []CommitmentsCommitmentConfigAssignment
    List of assigned clusters for the commitment. If prioritization is enabled, the order of the assignments indicates the priority. The first assignment has the highest priority.
    Prioritization bool
    If enabled, it's possible to assign priorities to the assigned clusters.
    ScalingStrategy string
    Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
    Status string
    Status of the commitment in CAST AI.
    matcher CommitmentsCommitmentConfigMatcher
    Matcher used to map config to a commitment.
    allowedUsage Double
    Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
    assignments List<CommitmentsCommitmentConfigAssignment>
    List of assigned clusters for the commitment. If prioritization is enabled, the order of the assignments indicates the priority. The first assignment has the highest priority.
    prioritization Boolean
    If enabled, it's possible to assign priorities to the assigned clusters.
    scalingStrategy String
    Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
    status String
    Status of the commitment in CAST AI.
    matcher CommitmentsCommitmentConfigMatcher
    Matcher used to map config to a commitment.
    allowedUsage number
    Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
    assignments CommitmentsCommitmentConfigAssignment[]
    List of assigned clusters for the commitment. If prioritization is enabled, the order of the assignments indicates the priority. The first assignment has the highest priority.
    prioritization boolean
    If enabled, it's possible to assign priorities to the assigned clusters.
    scalingStrategy string
    Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
    status string
    Status of the commitment in CAST AI.
    matcher CommitmentsCommitmentConfigMatcher
    Matcher used to map config to a commitment.
    allowed_usage float
    Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
    assignments Sequence[CommitmentsCommitmentConfigAssignment]
    List of assigned clusters for the commitment. If prioritization is enabled, the order of the assignments indicates the priority. The first assignment has the highest priority.
    prioritization bool
    If enabled, it's possible to assign priorities to the assigned clusters.
    scaling_strategy str
    Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
    status str
    Status of the commitment in CAST AI.
    matcher Property Map
    Matcher used to map config to a commitment.
    allowedUsage Number
    Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
    assignments List<Property Map>
    List of assigned clusters for the commitment. If prioritization is enabled, the order of the assignments indicates the priority. The first assignment has the highest priority.
    prioritization Boolean
    If enabled, it's possible to assign priorities to the assigned clusters.
    scalingStrategy String
    Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
    status String
    Status of the commitment in CAST AI.

    CommitmentsCommitmentConfigAssignment, CommitmentsCommitmentConfigAssignmentArgs

    ClusterId string
    ID of the cluster to assign the commitment to.
    Priority int
    Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.
    ClusterId string
    ID of the cluster to assign the commitment to.
    Priority int
    Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.
    clusterId String
    ID of the cluster to assign the commitment to.
    priority Integer
    Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.
    clusterId string
    ID of the cluster to assign the commitment to.
    priority number
    Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.
    cluster_id str
    ID of the cluster to assign the commitment to.
    priority int
    Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.
    clusterId String
    ID of the cluster to assign the commitment to.
    priority Number
    Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.

    CommitmentsCommitmentConfigMatcher, CommitmentsCommitmentConfigMatcherArgs

    Name string
    Name of the commitment to match.
    Region string
    Region of the commitment to match.
    Type string
    Type of the commitment to match. For compute resources, it's the type of the machine.
    Name string
    Name of the commitment to match.
    Region string
    Region of the commitment to match.
    Type string
    Type of the commitment to match. For compute resources, it's the type of the machine.
    name String
    Name of the commitment to match.
    region String
    Region of the commitment to match.
    type String
    Type of the commitment to match. For compute resources, it's the type of the machine.
    name string
    Name of the commitment to match.
    region string
    Region of the commitment to match.
    type string
    Type of the commitment to match. For compute resources, it's the type of the machine.
    name str
    Name of the commitment to match.
    region str
    Region of the commitment to match.
    type str
    Type of the commitment to match. For compute resources, it's the type of the machine.
    name String
    Name of the commitment to match.
    region String
    Region of the commitment to match.
    type String
    Type of the commitment to match. For compute resources, it's the type of the machine.

    CommitmentsGcpCud, CommitmentsGcpCudArgs

    Cpu int
    Number of CPUs covered by the CUD.
    CudId string
    ID of the CUD in GCP.
    CudStatus string
    Status of the CUD in GCP.
    EndTimestamp string
    End timestamp of the CUD.
    MemoryMb int
    Amount of memory in MB covered by the CUD.
    Name string
    Name of the CUD.
    Plan string
    CUD plan e.g. 'TWELVE_MONTH'.
    Region string
    Region in which the CUD is available.
    StartTimestamp string
    Start timestamp of the CUD.
    Type string
    Type of the CUD, e.g. determines the covered resource type e.g. 'COMPUTE_OPTIMIZED_C2D'.
    AllowedUsage double
    Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
    Assignments List<Pulumi.CastAI.Inputs.CommitmentsGcpCudAssignment>
    List of assigned clusters for the commitment. If prioritization is enabled, the order of the assignments indicates the priority. The first assignment has the highest priority.
    Id string
    ID of the commitment in CAST AI.
    Prioritization bool
    If enabled, it's possible to assign priorities to the assigned clusters.
    ScalingStrategy string
    Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
    Status string
    Status of the commitment in CAST AI.
    Cpu int
    Number of CPUs covered by the CUD.
    CudId string
    ID of the CUD in GCP.
    CudStatus string
    Status of the CUD in GCP.
    EndTimestamp string
    End timestamp of the CUD.
    MemoryMb int
    Amount of memory in MB covered by the CUD.
    Name string
    Name of the CUD.
    Plan string
    CUD plan e.g. 'TWELVE_MONTH'.
    Region string
    Region in which the CUD is available.
    StartTimestamp string
    Start timestamp of the CUD.
    Type string
    Type of the CUD, e.g. determines the covered resource type e.g. 'COMPUTE_OPTIMIZED_C2D'.
    AllowedUsage float64
    Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
    Assignments []CommitmentsGcpCudAssignment
    List of assigned clusters for the commitment. If prioritization is enabled, the order of the assignments indicates the priority. The first assignment has the highest priority.
    Id string
    ID of the commitment in CAST AI.
    Prioritization bool
    If enabled, it's possible to assign priorities to the assigned clusters.
    ScalingStrategy string
    Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
    Status string
    Status of the commitment in CAST AI.
    cpu Integer
    Number of CPUs covered by the CUD.
    cudId String
    ID of the CUD in GCP.
    cudStatus String
    Status of the CUD in GCP.
    endTimestamp String
    End timestamp of the CUD.
    memoryMb Integer
    Amount of memory in MB covered by the CUD.
    name String
    Name of the CUD.
    plan String
    CUD plan e.g. 'TWELVE_MONTH'.
    region String
    Region in which the CUD is available.
    startTimestamp String
    Start timestamp of the CUD.
    type String
    Type of the CUD, e.g. determines the covered resource type e.g. 'COMPUTE_OPTIMIZED_C2D'.
    allowedUsage Double
    Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
    assignments List<CommitmentsGcpCudAssignment>
    List of assigned clusters for the commitment. If prioritization is enabled, the order of the assignments indicates the priority. The first assignment has the highest priority.
    id String
    ID of the commitment in CAST AI.
    prioritization Boolean
    If enabled, it's possible to assign priorities to the assigned clusters.
    scalingStrategy String
    Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
    status String
    Status of the commitment in CAST AI.
    cpu number
    Number of CPUs covered by the CUD.
    cudId string
    ID of the CUD in GCP.
    cudStatus string
    Status of the CUD in GCP.
    endTimestamp string
    End timestamp of the CUD.
    memoryMb number
    Amount of memory in MB covered by the CUD.
    name string
    Name of the CUD.
    plan string
    CUD plan e.g. 'TWELVE_MONTH'.
    region string
    Region in which the CUD is available.
    startTimestamp string
    Start timestamp of the CUD.
    type string
    Type of the CUD, e.g. determines the covered resource type e.g. 'COMPUTE_OPTIMIZED_C2D'.
    allowedUsage number
    Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
    assignments CommitmentsGcpCudAssignment[]
    List of assigned clusters for the commitment. If prioritization is enabled, the order of the assignments indicates the priority. The first assignment has the highest priority.
    id string
    ID of the commitment in CAST AI.
    prioritization boolean
    If enabled, it's possible to assign priorities to the assigned clusters.
    scalingStrategy string
    Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
    status string
    Status of the commitment in CAST AI.
    cpu int
    Number of CPUs covered by the CUD.
    cud_id str
    ID of the CUD in GCP.
    cud_status str
    Status of the CUD in GCP.
    end_timestamp str
    End timestamp of the CUD.
    memory_mb int
    Amount of memory in MB covered by the CUD.
    name str
    Name of the CUD.
    plan str
    CUD plan e.g. 'TWELVE_MONTH'.
    region str
    Region in which the CUD is available.
    start_timestamp str
    Start timestamp of the CUD.
    type str
    Type of the CUD, e.g. determines the covered resource type e.g. 'COMPUTE_OPTIMIZED_C2D'.
    allowed_usage float
    Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
    assignments Sequence[CommitmentsGcpCudAssignment]
    List of assigned clusters for the commitment. If prioritization is enabled, the order of the assignments indicates the priority. The first assignment has the highest priority.
    id str
    ID of the commitment in CAST AI.
    prioritization bool
    If enabled, it's possible to assign priorities to the assigned clusters.
    scaling_strategy str
    Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
    status str
    Status of the commitment in CAST AI.
    cpu Number
    Number of CPUs covered by the CUD.
    cudId String
    ID of the CUD in GCP.
    cudStatus String
    Status of the CUD in GCP.
    endTimestamp String
    End timestamp of the CUD.
    memoryMb Number
    Amount of memory in MB covered by the CUD.
    name String
    Name of the CUD.
    plan String
    CUD plan e.g. 'TWELVE_MONTH'.
    region String
    Region in which the CUD is available.
    startTimestamp String
    Start timestamp of the CUD.
    type String
    Type of the CUD, e.g. determines the covered resource type e.g. 'COMPUTE_OPTIMIZED_C2D'.
    allowedUsage Number
    Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
    assignments List<Property Map>
    List of assigned clusters for the commitment. If prioritization is enabled, the order of the assignments indicates the priority. The first assignment has the highest priority.
    id String
    ID of the commitment in CAST AI.
    prioritization Boolean
    If enabled, it's possible to assign priorities to the assigned clusters.
    scalingStrategy String
    Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
    status String
    Status of the commitment in CAST AI.

    CommitmentsGcpCudAssignment, CommitmentsGcpCudAssignmentArgs

    ClusterId string
    ID of the cluster to assign the commitment to.
    Priority int
    Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.
    ClusterId string
    ID of the cluster to assign the commitment to.
    Priority int
    Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.
    clusterId String
    ID of the cluster to assign the commitment to.
    priority Integer
    Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.
    clusterId string
    ID of the cluster to assign the commitment to.
    priority number
    Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.
    cluster_id str
    ID of the cluster to assign the commitment to.
    priority int
    Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.
    clusterId String
    ID of the cluster to assign the commitment to.
    priority Number
    Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.

    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 v7.73.2 published on Wednesday, Oct 29, 2025 by CAST AI
      Meet Neo: Your AI Platform Teammate