Data Source: azurermPrivateEndpointConnection
Use this data source to access the connection status information about an existing Private Endpoint Connection.
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 dataAzurermPrivateEndpointConnectionExample =
new azurerm.dataAzurermPrivateEndpointConnection.DataAzurermPrivateEndpointConnection(
this,
"example",
{
name: "example-private-endpoint",
resource_group_name: "example-rg",
}
);
new cdktf.TerraformOutput(this, "private_endpoint_status", {
value: `\${${dataAzurermPrivateEndpointConnectionExample.privateServiceConnection}.0.status}`,
});
Argument Reference
The following arguments are supported:
name
- Specifies the Name of the private endpoint.resourceGroupName
- Specifies the Name of the Resource Group within which the private endpoint exists.
Attributes Reference
The following attributes are exported:
-
id
- The ID of the Private Endpoint. -
location
- The supported Azure location where the resource exists.
A networkInterface
block exports:
-
id
- The ID of the network interface associated with the private endpoint. -
name
- The name of the network interface associated with the private endpoint.
A privateServiceConnection
block exports the following:
name
- The name of the private endpoint.status
- The current status of the private endpoint request, possible values will bepending
,approved
,rejected
, ordisconnected
.privateIpAddress
- The private IP address associated with the private endpoint, note that you will have a private IP address assigned to the private endpoint even if the connection request wasrejected
.requestResponse
- Possible values are as follows: Value | Meaning -- | --autoApproved
| The remote resource owner has added you to theautoApproved
RBAC permission list for the remote resource, all private endpoint connection requests will be automaticallyapproved
.deletedState
| The resource owner hasrejected
the private endpoint connection request and has removed your private endpoint request from the remote resource.request/responseMessage
| If you submitted a manual private endpoint connection request, while in thepending
status therequestResponse
will display the same text from yourrequestMessage
in theprivateServiceConnection
block above. If the private endpoint connection request wasrejected
by the owner of the remote resource, the text for the rejection will be displayed as therequestResponse
text, if the private endpoint connection request wasapproved
by the owner of the remote resource, the text for the approval will be displayed as therequestResponse
text
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Private Endpoint.