castai.Commitments
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:
- Azure
Reservations stringCsv - CSV file containing reservations exported from Azure.
- Commitment
Configs List<Pulumi.Cast AI. Inputs. Commitments Commitment Config> - List of commitment configurations.
- Gcp
Cuds stringJson - JSON file containing CUDs exported from GCP.
- Azure
Reservations stringCsv - CSV file containing reservations exported from Azure.
- Commitment
Configs []CommitmentsCommitment Config Args - List of commitment configurations.
- Gcp
Cuds stringJson - JSON file containing CUDs exported from GCP.
- azure
Reservations StringCsv - CSV file containing reservations exported from Azure.
- commitment
Configs List<CommitmentsCommitment Config> - List of commitment configurations.
- gcp
Cuds StringJson - JSON file containing CUDs exported from GCP.
- azure
Reservations stringCsv - CSV file containing reservations exported from Azure.
- commitment
Configs CommitmentsCommitment Config[] - List of commitment configurations.
- gcp
Cuds stringJson - JSON file containing CUDs exported from GCP.
- azure_
reservations_ strcsv - CSV file containing reservations exported from Azure.
- commitment_
configs Sequence[CommitmentsCommitment Config Args] - List of commitment configurations.
- gcp_
cuds_ strjson - JSON file containing CUDs exported from GCP.
- azure
Reservations StringCsv - CSV file containing reservations exported from Azure.
- commitment
Configs List<Property Map> - List of commitment configurations.
- gcp
Cuds StringJson - 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:
- Azure
Reservations List<Pulumi.Cast AI. Outputs. Commitments Azure Reservation> - List of Azure reservations.
- Gcp
Cuds List<Pulumi.Cast AI. Outputs. Commitments Gcp Cud> - List of GCP CUDs.
- Id string
- The provider-assigned unique ID for this managed resource.
- Azure
Reservations []CommitmentsAzure Reservation - List of Azure reservations.
- Gcp
Cuds []CommitmentsGcp Cud - List of GCP CUDs.
- Id string
- The provider-assigned unique ID for this managed resource.
- azure
Reservations List<CommitmentsAzure Reservation> - List of Azure reservations.
- gcp
Cuds List<CommitmentsGcp Cud> - List of GCP CUDs.
- id String
- The provider-assigned unique ID for this managed resource.
- azure
Reservations CommitmentsAzure Reservation[] - List of Azure reservations.
- gcp
Cuds 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.
- azure
Reservations List<Property Map> - List of Azure reservations.
- gcp
Cuds 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) -> 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.
- Azure
Reservations List<Pulumi.Cast AI. Inputs. Commitments Azure Reservation> - List of Azure reservations.
- Azure
Reservations stringCsv - CSV file containing reservations exported from Azure.
- Commitment
Configs List<Pulumi.Cast AI. Inputs. Commitments Commitment Config> - List of commitment configurations.
- Gcp
Cuds List<Pulumi.Cast AI. Inputs. Commitments Gcp Cud> - List of GCP CUDs.
- Gcp
Cuds stringJson - JSON file containing CUDs exported from GCP.
- Azure
Reservations []CommitmentsAzure Reservation Args - List of Azure reservations.
- Azure
Reservations stringCsv - CSV file containing reservations exported from Azure.
- Commitment
Configs []CommitmentsCommitment Config Args - List of commitment configurations.
- Gcp
Cuds []CommitmentsGcp Cud Args - List of GCP CUDs.
- Gcp
Cuds stringJson - JSON file containing CUDs exported from GCP.
- azure
Reservations List<CommitmentsAzure Reservation> - List of Azure reservations.
- azure
Reservations StringCsv - CSV file containing reservations exported from Azure.
- commitment
Configs List<CommitmentsCommitment Config> - List of commitment configurations.
- gcp
Cuds List<CommitmentsGcp Cud> - List of GCP CUDs.
- gcp
Cuds StringJson - JSON file containing CUDs exported from GCP.
- azure
Reservations CommitmentsAzure Reservation[] - List of Azure reservations.
- azure
Reservations stringCsv - CSV file containing reservations exported from Azure.
- commitment
Configs CommitmentsCommitment Config[] - List of commitment configurations.
- gcp
Cuds CommitmentsGcp Cud[] - List of GCP CUDs.
- gcp
Cuds stringJson - JSON file containing CUDs exported from GCP.
- 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.
- gcp_
cuds Sequence[CommitmentsGcp Cud Args] - List of GCP CUDs.
- gcp_
cuds_ strjson - JSON file containing CUDs exported from GCP.
- azure
Reservations List<Property Map> - List of Azure reservations.
- azure
Reservations StringCsv - CSV file containing reservations exported from Azure.
- commitment
Configs List<Property Map> - List of commitment configurations.
- gcp
Cuds List<Property Map> - List of GCP CUDs.
- gcp
Cuds StringJson - JSON file containing CUDs exported from GCP.
Supporting Types
CommitmentsAzureReservation, CommitmentsAzureReservationArgs
- Count int
- Number of instances covered by the reservation.
- End
Timestamp string - End timestamp of the CUD.
- Instance
Type 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.
- Reservation
Id string - ID of the reservation in Azure.
- Reservation
Status string - Status of the reservation in Azure.
- Scope string
- Scope
Resource stringGroup - Scope
Subscription string - Start
Timestamp string - Start timestamp of the CUD.
- Allowed
Usage double - Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
- Assignments
List<Pulumi.
Cast AI. Inputs. Commitments Azure Reservation 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.
- Id string
- ID of the commitment in CAST AI.
- Prioritization bool
- If enabled, it's possible to assign priorities to the assigned clusters.
- Scaling
Strategy 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 string - End timestamp of the CUD.
- Instance
Type 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.
- Reservation
Id string - ID of the reservation in Azure.
- Reservation
Status string - Status of the reservation in Azure.
- Scope string
- Scope
Resource stringGroup - Scope
Subscription string - Start
Timestamp string - Start timestamp of the CUD.
- Allowed
Usage float64 - Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
- Assignments
[]Commitments
Azure Reservation 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.
- Id string
- ID of the commitment in CAST AI.
- Prioritization bool
- If enabled, it's possible to assign priorities to the assigned clusters.
- Scaling
Strategy 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.
- end
Timestamp String - End timestamp of the CUD.
- instance
Type 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.
- reservation
Id String - ID of the reservation in Azure.
- reservation
Status String - Status of the reservation in Azure.
- scope String
- scope
Resource StringGroup - scope
Subscription String - start
Timestamp String - Start timestamp of the CUD.
- allowed
Usage Double - Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
- assignments
List<Commitments
Azure Reservation 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.
- id String
- ID of the commitment in CAST AI.
- prioritization Boolean
- If enabled, it's possible to assign priorities to the assigned clusters.
- scaling
Strategy 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.
- end
Timestamp string - End timestamp of the CUD.
- instance
Type 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.
- reservation
Id string - ID of the reservation in Azure.
- reservation
Status string - Status of the reservation in Azure.
- scope string
- scope
Resource stringGroup - scope
Subscription string - start
Timestamp string - Start timestamp of the CUD.
- allowed
Usage number - Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
- assignments
Commitments
Azure Reservation 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.
- id string
- ID of the commitment in CAST AI.
- prioritization boolean
- If enabled, it's possible to assign priorities to the assigned clusters.
- scaling
Strategy 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_ strgroup - 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[Commitments
Azure Reservation 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.
- 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.
- end
Timestamp String - End timestamp of the CUD.
- instance
Type 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.
- reservation
Id String - ID of the reservation in Azure.
- reservation
Status String - Status of the reservation in Azure.
- scope String
- scope
Resource StringGroup - scope
Subscription String - start
Timestamp String - Start timestamp of the CUD.
- allowed
Usage 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.
- scaling
Strategy 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
- 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.
CommitmentsCommitmentConfig, CommitmentsCommitmentConfigArgs
- Matcher
Pulumi.
Cast AI. Inputs. Commitments Commitment Config Matcher - Matcher used to map config to a commitment.
- Allowed
Usage double - Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
- Assignments
List<Pulumi.
Cast AI. Inputs. Commitments Commitment 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 string - Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
- Status string
- Status of the commitment in CAST AI.
- Matcher
Commitments
Commitment Config Matcher - Matcher used to map config to a commitment.
- Allowed
Usage float64 - Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
- Assignments
[]Commitments
Commitment 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 string - Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
- Status string
- Status of the commitment in CAST AI.
- matcher
Commitments
Commitment Config Matcher - Matcher used to map config to a commitment.
- allowed
Usage Double - Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
- assignments
List<Commitments
Commitment 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.
- scaling
Strategy String - Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
- status String
- Status of the commitment in CAST AI.
- matcher
Commitments
Commitment Config Matcher - Matcher used to map config to a commitment.
- allowed
Usage number - Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
- assignments
Commitments
Commitment 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.
- scaling
Strategy string - Scaling strategy of the commitment in CAST AI. One of: Default, CPUBased, RamBased
- status string
- Status of the commitment in CAST AI.
- matcher
Commitments
Commitment 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[Commitments
Commitment 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.
- allowed
Usage 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.
- scaling
Strategy 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 int
- Priority of the assignment. The lower the value, the higher the priority. 1 is the highest priority.
CommitmentsCommitmentConfigMatcher, CommitmentsCommitmentConfigMatcherArgs
CommitmentsGcpCud, CommitmentsGcpCudArgs
- Cpu int
- Number of CPUs covered by the CUD.
- Cud
Id string - ID of the CUD in GCP.
- Cud
Status string - Status of the CUD in GCP.
- End
Timestamp string - End timestamp of the CUD.
- Memory
Mb 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.
- Start
Timestamp string - Start timestamp of the CUD.
- Type string
- Type of the CUD, e.g. determines the covered resource type e.g. 'COMPUTE_OPTIMIZED_C2D'.
- Allowed
Usage double - Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
- Assignments
List<Pulumi.
Cast AI. Inputs. Commitments Gcp Cud 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.
- Id string
- ID of the commitment in CAST AI.
- Prioritization bool
- If enabled, it's possible to assign priorities to the assigned clusters.
- Scaling
Strategy 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 string - ID of the CUD in GCP.
- Cud
Status string - Status of the CUD in GCP.
- End
Timestamp string - End timestamp of the CUD.
- Memory
Mb 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.
- Start
Timestamp string - Start timestamp of the CUD.
- Type string
- Type of the CUD, e.g. determines the covered resource type e.g. 'COMPUTE_OPTIMIZED_C2D'.
- Allowed
Usage float64 - Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
- Assignments
[]Commitments
Gcp Cud 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.
- Id string
- ID of the commitment in CAST AI.
- Prioritization bool
- If enabled, it's possible to assign priorities to the assigned clusters.
- Scaling
Strategy 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.
- cud
Id String - ID of the CUD in GCP.
- cud
Status String - Status of the CUD in GCP.
- end
Timestamp String - End timestamp of the CUD.
- memory
Mb 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.
- start
Timestamp String - Start timestamp of the CUD.
- type String
- Type of the CUD, e.g. determines the covered resource type e.g. 'COMPUTE_OPTIMIZED_C2D'.
- allowed
Usage Double - Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
- assignments
List<Commitments
Gcp Cud 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.
- id String
- ID of the commitment in CAST AI.
- prioritization Boolean
- If enabled, it's possible to assign priorities to the assigned clusters.
- scaling
Strategy 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.
- cud
Id string - ID of the CUD in GCP.
- cud
Status string - Status of the CUD in GCP.
- end
Timestamp string - End timestamp of the CUD.
- memory
Mb 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.
- start
Timestamp string - Start timestamp of the CUD.
- type string
- Type of the CUD, e.g. determines the covered resource type e.g. 'COMPUTE_OPTIMIZED_C2D'.
- allowed
Usage number - Allowed usage of the commitment. The value is between 0 (0%) and 1 (100%).
- assignments
Commitments
Gcp Cud 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.
- id string
- ID of the commitment in CAST AI.
- prioritization boolean
- If enabled, it's possible to assign priorities to the assigned clusters.
- scaling
Strategy 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[Commitments
Gcp Cud 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.
- 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.
- cud
Id String - ID of the CUD in GCP.
- cud
Status String - Status of the CUD in GCP.
- end
Timestamp String - End timestamp of the CUD.
- memory
Mb 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.
- start
Timestamp String - Start timestamp of the CUD.
- type String
- Type of the CUD, e.g. determines the covered resource type e.g. 'COMPUTE_OPTIMIZED_C2D'.
- allowed
Usage 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.
- scaling
Strategy 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
- 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.
Package Details
- Repository
- castai castai/pulumi-castai
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
castaiTerraform Provider.
