castai.Commitments
Explore with Pulumi AI
Commitments represent cloud service provider reserved instances (Azure) and commited use discounts (GCP) that can be used by CAST AI autoscaler.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as castai from "@pulumi/castai";
import * as fs from "fs";
const gcpTest = new castai.Commitments("gcpTest", {
    gcpCudsJson: fs.readFileSync("./cuds.json", "utf8"),
    commitmentConfigs: [{
        matcher: {
            region: "us-east4",
            type: "COMPUTE_OPTIMIZED_C2D",
            name: "test",
        },
        prioritization: true,
        allowedUsage: 0.6,
        status: "Inactive",
        scalingStrategy: "Default",
        assignments: [
            {
                clusterId: "cluster-id-1",
            },
            {
                clusterId: "cluster-id-2",
            },
        ],
    }],
});
const azureTest = new castai.Commitments("azureTest", {
    azureReservationsCsv: fs.readFileSync("./reservations.csv", "utf8"),
    commitmentConfigs: [{
        matcher: {
            region: "eastus",
            type: "Standard_D32as_v4",
            name: "test-res-1",
        },
        prioritization: false,
        allowedUsage: 0.9,
        status: "Active",
        scalingStrategy: "Default",
        assignments: [
            {
                clusterId: "cluster-id-3",
            },
            {
                clusterId: "cluster-id-4",
            },
        ],
    }],
});
import pulumi
import pulumi_castai as castai
gcp_test = castai.Commitments("gcpTest",
    gcp_cuds_json=(lambda path: open(path).read())("./cuds.json"),
    commitment_configs=[{
        "matcher": {
            "region": "us-east4",
            "type": "COMPUTE_OPTIMIZED_C2D",
            "name": "test",
        },
        "prioritization": True,
        "allowed_usage": 0.6,
        "status": "Inactive",
        "scaling_strategy": "Default",
        "assignments": [
            {
                "cluster_id": "cluster-id-1",
            },
            {
                "cluster_id": "cluster-id-2",
            },
        ],
    }])
azure_test = castai.Commitments("azureTest",
    azure_reservations_csv=(lambda path: open(path).read())("./reservations.csv"),
    commitment_configs=[{
        "matcher": {
            "region": "eastus",
            "type": "Standard_D32as_v4",
            "name": "test-res-1",
        },
        "prioritization": False,
        "allowed_usage": 0.9,
        "status": "Active",
        "scaling_strategy": "Default",
        "assignments": [
            {
                "cluster_id": "cluster-id-3",
            },
            {
                "cluster_id": "cluster-id-4",
            },
        ],
    }])
package main
import (
	"os"
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/castai/v7/castai"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := os.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := castai.NewCommitments(ctx, "gcpTest", &castai.CommitmentsArgs{
			GcpCudsJson: pulumi.String(readFileOrPanic("./cuds.json")),
			CommitmentConfigs: castai.CommitmentsCommitmentConfigArray{
				&castai.CommitmentsCommitmentConfigArgs{
					Matcher: &castai.CommitmentsCommitmentConfigMatcherArgs{
						Region: pulumi.String("us-east4"),
						Type:   pulumi.String("COMPUTE_OPTIMIZED_C2D"),
						Name:   pulumi.String("test"),
					},
					Prioritization:  pulumi.Bool(true),
					AllowedUsage:    pulumi.Float64(0.6),
					Status:          pulumi.String("Inactive"),
					ScalingStrategy: pulumi.String("Default"),
					Assignments: castai.CommitmentsCommitmentConfigAssignmentArray{
						&castai.CommitmentsCommitmentConfigAssignmentArgs{
							ClusterId: pulumi.String("cluster-id-1"),
						},
						&castai.CommitmentsCommitmentConfigAssignmentArgs{
							ClusterId: pulumi.String("cluster-id-2"),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = castai.NewCommitments(ctx, "azureTest", &castai.CommitmentsArgs{
			AzureReservationsCsv: pulumi.String(readFileOrPanic("./reservations.csv")),
			CommitmentConfigs: castai.CommitmentsCommitmentConfigArray{
				&castai.CommitmentsCommitmentConfigArgs{
					Matcher: &castai.CommitmentsCommitmentConfigMatcherArgs{
						Region: pulumi.String("eastus"),
						Type:   pulumi.String("Standard_D32as_v4"),
						Name:   pulumi.String("test-res-1"),
					},
					Prioritization:  pulumi.Bool(false),
					AllowedUsage:    pulumi.Float64(0.9),
					Status:          pulumi.String("Active"),
					ScalingStrategy: pulumi.String("Default"),
					Assignments: castai.CommitmentsCommitmentConfigAssignmentArray{
						&castai.CommitmentsCommitmentConfigAssignmentArgs{
							ClusterId: pulumi.String("cluster-id-3"),
						},
						&castai.CommitmentsCommitmentConfigAssignmentArgs{
							ClusterId: pulumi.String("cluster-id-4"),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Pulumi;
using Castai = Pulumi.Castai;
return await Deployment.RunAsync(() => 
{
    var gcpTest = new Castai.Commitments("gcpTest", new()
    {
        GcpCudsJson = File.ReadAllText("./cuds.json"),
        CommitmentConfigs = new[]
        {
            new Castai.Inputs.CommitmentsCommitmentConfigArgs
            {
                Matcher = new Castai.Inputs.CommitmentsCommitmentConfigMatcherArgs
                {
                    Region = "us-east4",
                    Type = "COMPUTE_OPTIMIZED_C2D",
                    Name = "test",
                },
                Prioritization = true,
                AllowedUsage = 0.6,
                Status = "Inactive",
                ScalingStrategy = "Default",
                Assignments = new[]
                {
                    new Castai.Inputs.CommitmentsCommitmentConfigAssignmentArgs
                    {
                        ClusterId = "cluster-id-1",
                    },
                    new Castai.Inputs.CommitmentsCommitmentConfigAssignmentArgs
                    {
                        ClusterId = "cluster-id-2",
                    },
                },
            },
        },
    });
    var azureTest = new Castai.Commitments("azureTest", new()
    {
        AzureReservationsCsv = File.ReadAllText("./reservations.csv"),
        CommitmentConfigs = new[]
        {
            new Castai.Inputs.CommitmentsCommitmentConfigArgs
            {
                Matcher = new Castai.Inputs.CommitmentsCommitmentConfigMatcherArgs
                {
                    Region = "eastus",
                    Type = "Standard_D32as_v4",
                    Name = "test-res-1",
                },
                Prioritization = false,
                AllowedUsage = 0.9,
                Status = "Active",
                ScalingStrategy = "Default",
                Assignments = new[]
                {
                    new Castai.Inputs.CommitmentsCommitmentConfigAssignmentArgs
                    {
                        ClusterId = "cluster-id-3",
                    },
                    new Castai.Inputs.CommitmentsCommitmentConfigAssignmentArgs
                    {
                        ClusterId = "cluster-id-4",
                    },
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.castai.Commitments;
import com.pulumi.castai.CommitmentsArgs;
import com.pulumi.castai.inputs.CommitmentsCommitmentConfigArgs;
import com.pulumi.castai.inputs.CommitmentsCommitmentConfigMatcherArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var gcpTest = new Commitments("gcpTest", CommitmentsArgs.builder()
            .gcpCudsJson(Files.readString(Paths.get("./cuds.json")))
            .commitmentConfigs(CommitmentsCommitmentConfigArgs.builder()
                .matcher(CommitmentsCommitmentConfigMatcherArgs.builder()
                    .region("us-east4")
                    .type("COMPUTE_OPTIMIZED_C2D")
                    .name("test")
                    .build())
                .prioritization(true)
                .allowedUsage(0.6)
                .status("Inactive")
                .scalingStrategy("Default")
                .assignments(                
                    CommitmentsCommitmentConfigAssignmentArgs.builder()
                        .clusterId("cluster-id-1")
                        .build(),
                    CommitmentsCommitmentConfigAssignmentArgs.builder()
                        .clusterId("cluster-id-2")
                        .build())
                .build())
            .build());
        var azureTest = new Commitments("azureTest", CommitmentsArgs.builder()
            .azureReservationsCsv(Files.readString(Paths.get("./reservations.csv")))
            .commitmentConfigs(CommitmentsCommitmentConfigArgs.builder()
                .matcher(CommitmentsCommitmentConfigMatcherArgs.builder()
                    .region("eastus")
                    .type("Standard_D32as_v4")
                    .name("test-res-1")
                    .build())
                .prioritization(false)
                .allowedUsage(0.9)
                .status("Active")
                .scalingStrategy("Default")
                .assignments(                
                    CommitmentsCommitmentConfigAssignmentArgs.builder()
                        .clusterId("cluster-id-3")
                        .build(),
                    CommitmentsCommitmentConfigAssignmentArgs.builder()
                        .clusterId("cluster-id-4")
                        .build())
                .build())
            .build());
    }
}
resources:
  gcpTest:
    type: castai:Commitments
    properties:
      gcpCudsJson:
        fn::readFile: ./cuds.json
      commitmentConfigs:
        - matcher:
            region: us-east4
            type: COMPUTE_OPTIMIZED_C2D
            name: test
          prioritization: true
          allowedUsage: 0.6
          status: Inactive
          scalingStrategy: Default
          assignments:
            - clusterId: cluster-id-1
            - clusterId: cluster-id-2
  azureTest:
    type: castai:Commitments
    properties:
      azureReservationsCsv:
        fn::readFile: ./reservations.csv
      commitmentConfigs:
        - matcher:
            region: eastus
            type: Standard_D32as_v4
            name: test-res-1
          prioritization: false
          allowedUsage: 0.9
          status: Active
          scalingStrategy: Default
          assignments:
            - clusterId: cluster-id-3
            - clusterId: cluster-id-4
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,
                commitments_id: Optional[str] = None,
                gcp_cuds_json: Optional[str] = None,
                timeouts: Optional[CommitmentsTimeoutsArgs] = 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",
        },
    },
    CommitmentsId = "string",
    GcpCudsJson = "string",
    Timeouts = new Castai.Inputs.CommitmentsTimeoutsArgs
    {
        Create = "string",
        Update = "string",
    },
});
example, err := castai.NewCommitments(ctx, "commitmentsResource", &castai.CommitmentsArgs{
AzureReservationsCsv: pulumi.String("string"),
CommitmentConfigs: .CommitmentsCommitmentConfigArray{
&.CommitmentsCommitmentConfigArgs{
Matcher: &.CommitmentsCommitmentConfigMatcherArgs{
Name: pulumi.String("string"),
Region: pulumi.String("string"),
Type: pulumi.String("string"),
},
AllowedUsage: pulumi.Float64(0),
Assignments: .CommitmentsCommitmentConfigAssignmentArray{
&.CommitmentsCommitmentConfigAssignmentArgs{
ClusterId: pulumi.String("string"),
Priority: pulumi.Float64(0),
},
},
Prioritization: pulumi.Bool(false),
ScalingStrategy: pulumi.String("string"),
Status: pulumi.String("string"),
},
},
CommitmentsId: pulumi.String("string"),
GcpCudsJson: pulumi.String("string"),
Timeouts: &.CommitmentsTimeoutsArgs{
Create: pulumi.String("string"),
Update: 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)
        .assignments(CommitmentsCommitmentConfigAssignmentArgs.builder()
            .clusterId("string")
            .priority(0)
            .build())
        .prioritization(false)
        .scalingStrategy("string")
        .status("string")
        .build())
    .commitmentsId("string")
    .gcpCudsJson("string")
    .timeouts(CommitmentsTimeoutsArgs.builder()
        .create("string")
        .update("string")
        .build())
    .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",
    }],
    commitments_id="string",
    gcp_cuds_json="string",
    timeouts={
        "create": "string",
        "update": "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",
    }],
    commitmentsId: "string",
    gcpCudsJson: "string",
    timeouts: {
        create: "string",
        update: "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
    commitmentsId: string
    gcpCudsJson: string
    timeouts:
        create: string
        update: 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:
- AzureReservations stringCsv 
- CSV file containing reservations exported from Azure.
- CommitmentConfigs List<CommitmentsCommitment Config> 
- List of commitment configurations.
- CommitmentsId string
- The ID of this resource.
- GcpCuds stringJson 
- JSON file containing CUDs exported from GCP.
- Timeouts
CommitmentsTimeouts 
- AzureReservations stringCsv 
- CSV file containing reservations exported from Azure.
- CommitmentConfigs []CommitmentsCommitment Config Args 
- List of commitment configurations.
- CommitmentsId string
- The ID of this resource.
- GcpCuds stringJson 
- JSON file containing CUDs exported from GCP.
- Timeouts
CommitmentsTimeouts Args 
- azureReservations StringCsv 
- CSV file containing reservations exported from Azure.
- commitmentConfigs List<CommitmentsCommitment Config> 
- List of commitment configurations.
- commitmentsId String
- The ID of this resource.
- gcpCuds StringJson 
- JSON file containing CUDs exported from GCP.
- timeouts
CommitmentsTimeouts 
- azureReservations stringCsv 
- CSV file containing reservations exported from Azure.
- commitmentConfigs CommitmentsCommitment Config[] 
- List of commitment configurations.
- commitmentsId string
- The ID of this resource.
- gcpCuds stringJson 
- JSON file containing CUDs exported from GCP.
- timeouts
CommitmentsTimeouts 
- azure_reservations_ strcsv 
- CSV file containing reservations exported from Azure.
- commitment_configs Sequence[CommitmentsCommitment Config Args] 
- List of commitment configurations.
- commitments_id str
- The ID of this resource.
- gcp_cuds_ strjson 
- JSON file containing CUDs exported from GCP.
- timeouts
CommitmentsTimeouts Args 
- azureReservations StringCsv 
- CSV file containing reservations exported from Azure.
- commitmentConfigs List<Property Map>
- List of commitment configurations.
- commitmentsId String
- The ID of this resource.
- gcpCuds StringJson 
- JSON file containing CUDs exported from GCP.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the Commitments resource produces the following output properties:
- AzureReservations List<CommitmentsAzure Reservation> 
- List of Azure reservations.
- GcpCuds List<CommitmentsGcp Cud> 
- List of GCP CUDs.
- Id string
- The provider-assigned unique ID for this managed resource.
- AzureReservations []CommitmentsAzure Reservation 
- List of Azure reservations.
- GcpCuds []CommitmentsGcp Cud 
- List of GCP CUDs.
- Id string
- The provider-assigned unique ID for this managed resource.
- azureReservations List<CommitmentsAzure Reservation> 
- List of Azure reservations.
- gcpCuds List<CommitmentsGcp Cud> 
- List of GCP CUDs.
- id String
- The provider-assigned unique ID for this managed resource.
- azureReservations CommitmentsAzure Reservation[] 
- List of Azure reservations.
- gcpCuds CommitmentsGcp Cud[] 
- List of GCP CUDs.
- id string
- The provider-assigned unique ID for this managed resource.
- azure_reservations Sequence[CommitmentsAzure Reservation] 
- List of Azure reservations.
- gcp_cuds Sequence[CommitmentsGcp Cud] 
- 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,
        commitments_id: Optional[str] = None,
        gcp_cuds: Optional[Sequence[CommitmentsGcpCudArgs]] = None,
        gcp_cuds_json: Optional[str] = None,
        timeouts: Optional[CommitmentsTimeoutsArgs] = None) -> Commitmentsfunc 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.
- AzureReservations List<CommitmentsAzure Reservation> 
- List of Azure reservations.
- AzureReservations stringCsv 
- CSV file containing reservations exported from Azure.
- CommitmentConfigs List<CommitmentsCommitment Config> 
- List of commitment configurations.
- CommitmentsId string
- The ID of this resource.
- GcpCuds List<CommitmentsGcp Cud> 
- List of GCP CUDs.
- GcpCuds stringJson 
- JSON file containing CUDs exported from GCP.
- Timeouts
CommitmentsTimeouts 
- AzureReservations []CommitmentsAzure Reservation Args 
- List of Azure reservations.
- AzureReservations stringCsv 
- CSV file containing reservations exported from Azure.
- CommitmentConfigs []CommitmentsCommitment Config Args 
- List of commitment configurations.
- CommitmentsId string
- The ID of this resource.
- GcpCuds []CommitmentsGcp Cud Args 
- List of GCP CUDs.
- GcpCuds stringJson 
- JSON file containing CUDs exported from GCP.
- Timeouts
CommitmentsTimeouts Args 
- azureReservations List<CommitmentsAzure Reservation> 
- List of Azure reservations.
- azureReservations StringCsv 
- CSV file containing reservations exported from Azure.
- commitmentConfigs List<CommitmentsCommitment Config> 
- List of commitment configurations.
- commitmentsId String
- The ID of this resource.
- gcpCuds List<CommitmentsGcp Cud> 
- List of GCP CUDs.
- gcpCuds StringJson 
- JSON file containing CUDs exported from GCP.
- timeouts
CommitmentsTimeouts 
- azureReservations CommitmentsAzure Reservation[] 
- List of Azure reservations.
- azureReservations stringCsv 
- CSV file containing reservations exported from Azure.
- commitmentConfigs CommitmentsCommitment Config[] 
- List of commitment configurations.
- commitmentsId string
- The ID of this resource.
- gcpCuds CommitmentsGcp Cud[] 
- List of GCP CUDs.
- gcpCuds stringJson 
- JSON file containing CUDs exported from GCP.
- timeouts
CommitmentsTimeouts 
- azure_reservations Sequence[CommitmentsAzure Reservation Args] 
- List of Azure reservations.
- azure_reservations_ strcsv 
- CSV file containing reservations exported from Azure.
- commitment_configs Sequence[CommitmentsCommitment Config Args] 
- List of commitment configurations.
- commitments_id str
- The ID of this resource.
- gcp_cuds Sequence[CommitmentsGcp Cud Args] 
- List of GCP CUDs.
- gcp_cuds_ strjson 
- JSON file containing CUDs exported from GCP.
- timeouts
CommitmentsTimeouts Args 
- azureReservations List<Property Map>
- List of Azure reservations.
- azureReservations StringCsv 
- CSV file containing reservations exported from Azure.
- commitmentConfigs List<Property Map>
- List of commitment configurations.
- commitmentsId String
- The ID of this resource.
- gcpCuds List<Property Map>
- List of GCP CUDs.
- gcpCuds StringJson 
- JSON file containing CUDs exported from GCP.
- timeouts Property Map
Supporting Types
CommitmentsAzureReservation, CommitmentsAzureReservationArgs      
- AllowedUsage double
- Assignments
List<CommitmentsAzure Reservation Assignment> 
- Count double
- EndTimestamp string
- Id string
- InstanceType string
- Name string
- Plan string
- Prioritization bool
- Region string
- ReservationId string
- ReservationStatus string
- ScalingStrategy string
- Scope string
- ScopeResource stringGroup 
- ScopeSubscription string
- StartTimestamp string
- Status string
- AllowedUsage float64
- Assignments
[]CommitmentsAzure Reservation Assignment 
- Count float64
- EndTimestamp string
- Id string
- InstanceType string
- Name string
- Plan string
- Prioritization bool
- Region string
- ReservationId string
- ReservationStatus string
- ScalingStrategy string
- Scope string
- ScopeResource stringGroup 
- ScopeSubscription string
- StartTimestamp string
- Status string
- allowedUsage Double
- assignments
List<CommitmentsAzure Reservation Assignment> 
- count Double
- endTimestamp String
- id String
- instanceType String
- name String
- plan String
- prioritization Boolean
- region String
- reservationId String
- reservationStatus String
- scalingStrategy String
- scope String
- scopeResource StringGroup 
- scopeSubscription String
- startTimestamp String
- status String
- allowedUsage number
- assignments
CommitmentsAzure Reservation Assignment[] 
- count number
- endTimestamp string
- id string
- instanceType string
- name string
- plan string
- prioritization boolean
- region string
- reservationId string
- reservationStatus string
- scalingStrategy string
- scope string
- scopeResource stringGroup 
- scopeSubscription string
- startTimestamp string
- status string
- allowed_usage float
- assignments
Sequence[CommitmentsAzure Reservation Assignment] 
- count float
- end_timestamp str
- id str
- instance_type str
- name str
- plan str
- prioritization bool
- region str
- reservation_id str
- reservation_status str
- scaling_strategy str
- scope str
- scope_resource_ strgroup 
- scope_subscription str
- start_timestamp str
- status str
- allowedUsage Number
- assignments List<Property Map>
- count Number
- endTimestamp String
- id String
- instanceType String
- name String
- plan String
- prioritization Boolean
- region String
- reservationId String
- reservationStatus String
- scalingStrategy String
- scope String
- scopeResource StringGroup 
- scopeSubscription String
- startTimestamp String
- status String
CommitmentsAzureReservationAssignment, CommitmentsAzureReservationAssignmentArgs        
- cluster_id str
- priority float
CommitmentsCommitmentConfig, CommitmentsCommitmentConfigArgs      
- Matcher
CommitmentsCommitment Config Matcher 
- 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<CommitmentsCommitment Config Assignment> 
- 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
CommitmentsCommitment Config Matcher 
- 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
[]CommitmentsCommitment Config Assignment 
- 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
CommitmentsCommitment Config Matcher 
- 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<CommitmentsCommitment Config Assignment> 
- 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
CommitmentsCommitment Config Matcher 
- 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
CommitmentsCommitment Config Assignment[] 
- 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
CommitmentsCommitment Config Matcher 
- 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[CommitmentsCommitment Config Assignment] 
- 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        
- cluster_id str
- ID of the cluster to assign the commitment to.
- priority float
- Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.
CommitmentsCommitmentConfigMatcher, CommitmentsCommitmentConfigMatcherArgs        
CommitmentsGcpCud, CommitmentsGcpCudArgs      
- AllowedUsage double
- Assignments
List<CommitmentsGcp Cud Assignment> 
- Cpu double
- CudId string
- CudStatus string
- EndTimestamp string
- Id string
- MemoryMb double
- Name string
- Plan string
- Prioritization bool
- Region string
- ScalingStrategy string
- StartTimestamp string
- Status string
- Type string
- AllowedUsage float64
- Assignments
[]CommitmentsGcp Cud Assignment 
- Cpu float64
- CudId string
- CudStatus string
- EndTimestamp string
- Id string
- MemoryMb float64
- Name string
- Plan string
- Prioritization bool
- Region string
- ScalingStrategy string
- StartTimestamp string
- Status string
- Type string
- allowedUsage Double
- assignments
List<CommitmentsGcp Cud Assignment> 
- cpu Double
- cudId String
- cudStatus String
- endTimestamp String
- id String
- memoryMb Double
- name String
- plan String
- prioritization Boolean
- region String
- scalingStrategy String
- startTimestamp String
- status String
- type String
- allowedUsage number
- assignments
CommitmentsGcp Cud Assignment[] 
- cpu number
- cudId string
- cudStatus string
- endTimestamp string
- id string
- memoryMb number
- name string
- plan string
- prioritization boolean
- region string
- scalingStrategy string
- startTimestamp string
- status string
- type string
- allowed_usage float
- assignments
Sequence[CommitmentsGcp Cud Assignment] 
- cpu float
- cud_id str
- cud_status str
- end_timestamp str
- id str
- memory_mb float
- name str
- plan str
- prioritization bool
- region str
- scaling_strategy str
- start_timestamp str
- status str
- type str
- allowedUsage Number
- assignments List<Property Map>
- cpu Number
- cudId String
- cudStatus String
- endTimestamp String
- id String
- memoryMb Number
- name String
- plan String
- prioritization Boolean
- region String
- scalingStrategy String
- startTimestamp String
- status String
- type String
CommitmentsGcpCudAssignment, CommitmentsGcpCudAssignmentArgs        
- cluster_id str
- priority float
CommitmentsTimeouts, CommitmentsTimeoutsArgs    
Package Details
- Repository
- castai castai/terraform-provider-castai
- License
- Notes
- This Pulumi package is based on the castaiTerraform Provider.