import * as pulumi from "@pulumi/pulumi"; /** * Manages an App Service certificate. * * ## Example Usage * * This example provisions an App Service Certificate from a Local File. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * import * as std from "@pulumi/std"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleCertificate = new azure.appservice.Certificate("example", { * name: "example-cert", * resourceGroupName: example.name, * location: example.location, * pfxBlob: std.filebase64({ * input: "certificate.pfx", * }).then(invoke => invoke.result), * password: "password123!", * }); * ``` * * ## Import * * App Service Certificates can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:appservice/certificate:Certificate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/certificates/certificate1 * ``` */ export declare class Certificate extends pulumi.CustomResource { /** * Get an existing Certificate resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: CertificateState, opts?: pulumi.CustomResourceOptions): Certificate; /** * Returns true if the given object is an instance of Certificate. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Certificate; /** * The ID of the associated App Service plan. Must be specified when the certificate is used inside an App Service Environment hosted App Service or with Basic and Premium App Service plans. Changing this forces a new resource to be created. */ readonly appServicePlanId: pulumi.Output; /** * The expiration date for the certificate. */ readonly expirationDate: pulumi.Output; /** * The friendly name of the certificate. */ readonly friendlyName: pulumi.Output; /** * List of host names the certificate applies to. */ readonly hostNames: pulumi.Output; /** * The ID of the App Service Environment where the certificate is in use. */ readonly hostingEnvironmentProfileId: pulumi.Output; /** * The issue date for the certificate. */ readonly issueDate: pulumi.Output; /** * The name of the certificate issuer. */ readonly issuer: pulumi.Output; readonly keyVaultId: pulumi.Output; /** * The ID of the Key Vault secret. Changing this forces a new resource to be created. * * > **NOTE:** Exactly one of `keyVaultSecretId` or `pfxBlob` must be specified. */ readonly keyVaultSecretId: pulumi.Output; /** * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * Specifies the name of the certificate. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The password to access the certificate's private key. Changing this forces a new resource to be created. */ readonly password: pulumi.Output; /** * The base64-encoded contents of the certificate. Changing this forces a new resource to be created. * * > **NOTE:** Exactly one of `keyVaultSecretId` or `pfxBlob` must be specified. */ readonly pfxBlob: pulumi.Output; /** * The name of the resource group in which to create the certificate. Changing this forces a new resource to be created. * * > **NOTE:** The resource group must be the same as that which the app service plan is defined in - otherwise the certificate will not show as available for the app services. */ readonly resourceGroupName: pulumi.Output; /** * The subject name of the certificate. */ readonly subjectName: pulumi.Output; readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The thumbprint for the certificate. */ readonly thumbprint: pulumi.Output; /** * Create a Certificate resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: CertificateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Certificate resources. */ export interface CertificateState { /** * The ID of the associated App Service plan. Must be specified when the certificate is used inside an App Service Environment hosted App Service or with Basic and Premium App Service plans. Changing this forces a new resource to be created. */ appServicePlanId?: pulumi.Input; /** * The expiration date for the certificate. */ expirationDate?: pulumi.Input; /** * The friendly name of the certificate. */ friendlyName?: pulumi.Input; /** * List of host names the certificate applies to. */ hostNames?: pulumi.Input[]>; /** * The ID of the App Service Environment where the certificate is in use. */ hostingEnvironmentProfileId?: pulumi.Input; /** * The issue date for the certificate. */ issueDate?: pulumi.Input; /** * The name of the certificate issuer. */ issuer?: pulumi.Input; keyVaultId?: pulumi.Input; /** * The ID of the Key Vault secret. Changing this forces a new resource to be created. * * > **NOTE:** Exactly one of `keyVaultSecretId` or `pfxBlob` must be specified. */ keyVaultSecretId?: pulumi.Input; /** * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Specifies the name of the certificate. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The password to access the certificate's private key. Changing this forces a new resource to be created. */ password?: pulumi.Input; /** * The base64-encoded contents of the certificate. Changing this forces a new resource to be created. * * > **NOTE:** Exactly one of `keyVaultSecretId` or `pfxBlob` must be specified. */ pfxBlob?: pulumi.Input; /** * The name of the resource group in which to create the certificate. Changing this forces a new resource to be created. * * > **NOTE:** The resource group must be the same as that which the app service plan is defined in - otherwise the certificate will not show as available for the app services. */ resourceGroupName?: pulumi.Input; /** * The subject name of the certificate. */ subjectName?: pulumi.Input; tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The thumbprint for the certificate. */ thumbprint?: pulumi.Input; } /** * The set of arguments for constructing a Certificate resource. */ export interface CertificateArgs { /** * The ID of the associated App Service plan. Must be specified when the certificate is used inside an App Service Environment hosted App Service or with Basic and Premium App Service plans. Changing this forces a new resource to be created. */ appServicePlanId?: pulumi.Input; keyVaultId?: pulumi.Input; /** * The ID of the Key Vault secret. Changing this forces a new resource to be created. * * > **NOTE:** Exactly one of `keyVaultSecretId` or `pfxBlob` must be specified. */ keyVaultSecretId?: pulumi.Input; /** * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Specifies the name of the certificate. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The password to access the certificate's private key. Changing this forces a new resource to be created. */ password?: pulumi.Input; /** * The base64-encoded contents of the certificate. Changing this forces a new resource to be created. * * > **NOTE:** Exactly one of `keyVaultSecretId` or `pfxBlob` must be specified. */ pfxBlob?: pulumi.Input; /** * The name of the resource group in which to create the certificate. Changing this forces a new resource to be created. * * > **NOTE:** The resource group must be the same as that which the app service plan is defined in - otherwise the certificate will not show as available for the app services. */ resourceGroupName: pulumi.Input; tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }