azurermCapacityReservationGroup
Manages a Capacity Reservation Group.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
this,
"example",
{
location: "West Europe",
name: "example-rg",
}
);
const azurermCapacityReservationGroupExample =
new azurerm.capacityReservationGroup.CapacityReservationGroup(
this,
"example_1",
{
location: azurermResourceGroupExample.location,
name: "example-capacity-reservation-group",
resource_group_name: azurermResourceGroupExample.name,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermCapacityReservationGroupExample.overrideLogicalId("example");
Arguments Reference
The following arguments are supported:
-
name
- (Required) Specifies the name of this Capacity Reservation Group. Changing this forces a new resource to be created. -
resourceGroupName
- (Required) Specifies the name of the resource group the Capacity Reservation Group is located in. Changing this forces a new resource to be created. -
location
- (Required) The Azure location where the Capacity Reservation Group exists. Changing this forces a new resource to be created. -
zones
- (Optional) Specifies a list of Availability Zones for this Capacity Reservation Group. Changing this forces a new resource to be created. -
tags
- (Optional) A mapping of tags to assign to the resource.
Attributes Reference
The following Attributes are exported:
id
- The ID of the Capacity Reservation Group.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Capacity Reservation Group.read
- (Defaults to 5 minutes) Used when retrieving the Capacity Reservation Group.update
- (Defaults to 30 minutes) Used when updating the Capacity Reservation Group.delete
- (Defaults to 30 minutes) Used when deleting the Capacity Reservation Group.
Import
Capacity Reservation Groups can be imported using the resourceId
, e.g.