Data Source: azurermAppServiceCertificate
Use this data source to access information about an App Service Certificate.
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 dataAzurermAppServiceCertificateExample =
new azurerm.dataAzurermAppServiceCertificate.DataAzurermAppServiceCertificate(
this,
"example",
{
name: "example-app-service-certificate",
resource_group_name: "example-rg",
}
);
new cdktf.TerraformOutput(this, "app_service_certificate_id", {
value: dataAzurermAppServiceCertificateExample.id,
});
Argument Reference
The following arguments are supported:
-
name
- Specifies the name of the certificate. -
resourceGroupName
- The name of the resource group in which to create the certificate.
Attributes Reference
The following attributes are exported:
-
id
- The App Service certificate ID. -
friendlyName
- The friendly name of the certificate. -
subjectName
- The subject name of the certificate. -
hostNames
- List of host names the certificate applies to. -
issuer
- The name of the certificate issuer. -
issueDate
- The issue date for the certificate. -
expirationDate
- The expiration date for the certificate. -
thumbprint
- The thumbprint for the certificate.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the App Service Certificate.