Data Source: azurermDedicatedHost
Use this data source to access information about an existing Dedicated Host.
Example Usage
import * as cdktf from "cdktf";
/*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 dataAzurermDedicatedHostExample =
new azurerm.dataAzurermDedicatedHost.DataAzurermDedicatedHost(
this,
"example",
{
dedicated_host_group_name: "example-host-group",
name: "example-host",
resource_group_name: "example-resources",
}
);
new cdktf.TerraformOutput(this, "dedicated_host_id", {
value: dataAzurermDedicatedHostExample.id,
});
Argument Reference
The following arguments are supported:
-
name
- Specifies the name of the Dedicated Host. -
dedicatedHostGroupName
- Specifies the name of the Dedicated Host Group the Dedicated Host is located in. -
resourceGroupName
- Specifies the name of the resource group the Dedicated Host is located in.
Attributes Reference
The following attributes are exported:
-
id
- The ID of Dedicated Host. -
location
- The location where the Dedicated Host exists. -
tags
- A mapping of tags assigned to the Dedicated Host.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Dedicated Host.