Data Source: azurermApplicationGateway
Use this data source to access information about an existing Application Gateway.
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 dataAzurermApplicationGatewayExample =
new azurerm.dataAzurermApplicationGateway.DataAzurermApplicationGateway(
this,
"example",
{
name: "existing-app-gateway",
resource_group_name: "existing-resources",
}
);
new cdktf.TerraformOutput(this, "id", {
value: dataAzurermApplicationGatewayExample.id,
});
Arguments Reference
The following arguments are supported:
-
name
- (Required) The name of this Application Gateway. -
resourceGroupName
- (Required) The name of the Resource Group where the Application Gateway exists.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
-
id
- The ID of the Application Gateway. -
backendAddressPool
- AbackendAddressPool
block as defined below. -
identity
- Aidentity
block as defined below. -
location
- The Azure Region where the Application Gateway exists. -
tags
- A mapping of tags assigned to the Application Gateway.
A backendAddressPool
block exports the following:
-
id
- The ID of the Backend Address Pool. -
name
- The name of the Backend Address Pool. -
fqdns
- A list of FQDN's that are included in the Backend Address Pool. -
ipAddresses
- A list of IP Addresses that are included in the Backend Address Pool.
A identity
block exports the following:
-
identityIds
- A list of Managed Identity IDs assigned to this Application Gateway. -
type
- The type of Managed Identity assigned to this Application Gateway.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Application Gateway.