castai.Reservations
Create Reservations Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Reservations(name: string, args: ReservationsArgs, opts?: CustomResourceOptions);@overload
def Reservations(resource_name: str,
args: ReservationsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Reservations(resource_name: str,
opts: Optional[ResourceOptions] = None,
reservations_csv: Optional[str] = None,
organization_id: Optional[str] = None)func NewReservations(ctx *Context, name string, args ReservationsArgs, opts ...ResourceOption) (*Reservations, error)public Reservations(string name, ReservationsArgs args, CustomResourceOptions? opts = null)
public Reservations(String name, ReservationsArgs args)
public Reservations(String name, ReservationsArgs args, CustomResourceOptions options)
type: castai:Reservations
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 ReservationsArgs
- 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 ReservationsArgs
- 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 ReservationsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReservationsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReservationsArgs
- 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 reservationsResource = new CastAI.Reservations("reservationsResource", new()
{
ReservationsCsv = "string",
OrganizationId = "string",
});
example, err := castai.NewReservations(ctx, "reservationsResource", &castai.ReservationsArgs{
ReservationsCsv: pulumi.String("string"),
OrganizationId: pulumi.String("string"),
})
var reservationsResource = new Reservations("reservationsResource", ReservationsArgs.builder()
.reservationsCsv("string")
.organizationId("string")
.build());
reservations_resource = castai.Reservations("reservationsResource",
reservations_csv="string",
organization_id="string")
const reservationsResource = new castai.Reservations("reservationsResource", {
reservationsCsv: "string",
organizationId: "string",
});
type: castai:Reservations
properties:
organizationId: string
reservationsCsv: string
Reservations 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 Reservations resource accepts the following input properties:
- Reservations
Csv string - csv file containing reservations
- Organization
Id string - organization
- Reservations
Csv string - csv file containing reservations
- Organization
Id string - organization
- reservations
Csv String - csv file containing reservations
- organization
Id String - organization
- reservations
Csv string - csv file containing reservations
- organization
Id string - organization
- reservations_
csv str - csv file containing reservations
- organization_
id str - organization
- reservations
Csv String - csv file containing reservations
- organization
Id String - organization
Outputs
All input properties are implicitly available as output properties. Additionally, the Reservations resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Reservations
List<Pulumi.
Cast AI. Outputs. Reservations Reservation>
- Id string
- The provider-assigned unique ID for this managed resource.
- Reservations
[]Reservations
Reservation
- id String
- The provider-assigned unique ID for this managed resource.
- reservations
List<Reservations
Reservation>
- id string
- The provider-assigned unique ID for this managed resource.
- reservations
Reservations
Reservation[]
- id str
- The provider-assigned unique ID for this managed resource.
- reservations
Sequence[Reservations
Reservation]
- id String
- The provider-assigned unique ID for this managed resource.
- reservations List<Property Map>
Look up Existing Reservations Resource
Get an existing Reservations 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?: ReservationsState, opts?: CustomResourceOptions): Reservations@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
organization_id: Optional[str] = None,
reservations: Optional[Sequence[ReservationsReservationArgs]] = None,
reservations_csv: Optional[str] = None) -> Reservationsfunc GetReservations(ctx *Context, name string, id IDInput, state *ReservationsState, opts ...ResourceOption) (*Reservations, error)public static Reservations Get(string name, Input<string> id, ReservationsState? state, CustomResourceOptions? opts = null)public static Reservations get(String name, Output<String> id, ReservationsState state, CustomResourceOptions options)resources: _: type: castai:Reservations 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.
- Organization
Id string - organization
- Reservations
List<Pulumi.
Cast AI. Inputs. Reservations Reservation> - Reservations
Csv string - csv file containing reservations
- Organization
Id string - organization
- Reservations
[]Reservations
Reservation Args - Reservations
Csv string - csv file containing reservations
- organization
Id String - organization
- reservations
List<Reservations
Reservation> - reservations
Csv String - csv file containing reservations
- organization
Id string - organization
- reservations
Reservations
Reservation[] - reservations
Csv string - csv file containing reservations
- organization_
id str - organization
- reservations
Sequence[Reservations
Reservation Args] - reservations_
csv str - csv file containing reservations
- organization
Id String - organization
- reservations List<Property Map>
- reservations
Csv String - csv file containing reservations
Supporting Types
ReservationsReservation, ReservationsReservationArgs
- Count string
- amount of reserved instances
- Instance
Type string - reserved instance type
- Name string
- unique reservation name in region for specific instance type
- Price string
- reservation price
- Provider string
- reservation cloud provider (gcp, aws, azure)
- Region string
- reservation region
- Start
Date string - start date of reservation
- End
Date string - end date of reservation
- Zone
Id string - reservation zone id
- Zone
Name string - reservation zone name
- Count string
- amount of reserved instances
- Instance
Type string - reserved instance type
- Name string
- unique reservation name in region for specific instance type
- Price string
- reservation price
- Provider string
- reservation cloud provider (gcp, aws, azure)
- Region string
- reservation region
- Start
Date string - start date of reservation
- End
Date string - end date of reservation
- Zone
Id string - reservation zone id
- Zone
Name string - reservation zone name
- count String
- amount of reserved instances
- instance
Type String - reserved instance type
- name String
- unique reservation name in region for specific instance type
- price String
- reservation price
- provider String
- reservation cloud provider (gcp, aws, azure)
- region String
- reservation region
- start
Date String - start date of reservation
- end
Date String - end date of reservation
- zone
Id String - reservation zone id
- zone
Name String - reservation zone name
- count string
- amount of reserved instances
- instance
Type string - reserved instance type
- name string
- unique reservation name in region for specific instance type
- price string
- reservation price
- provider string
- reservation cloud provider (gcp, aws, azure)
- region string
- reservation region
- start
Date string - start date of reservation
- end
Date string - end date of reservation
- zone
Id string - reservation zone id
- zone
Name string - reservation zone name
- count str
- amount of reserved instances
- instance_
type str - reserved instance type
- name str
- unique reservation name in region for specific instance type
- price str
- reservation price
- provider str
- reservation cloud provider (gcp, aws, azure)
- region str
- reservation region
- start_
date str - start date of reservation
- end_
date str - end date of reservation
- zone_
id str - reservation zone id
- zone_
name str - reservation zone name
- count String
- amount of reserved instances
- instance
Type String - reserved instance type
- name String
- unique reservation name in region for specific instance type
- price String
- reservation price
- provider String
- reservation cloud provider (gcp, aws, azure)
- region String
- reservation region
- start
Date String - start date of reservation
- end
Date String - end date of reservation
- zone
Id String - reservation zone id
- zone
Name String - reservation zone name
Package Details
- Repository
- castai castai/pulumi-castai
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
castaiTerraform Provider.
