import * as pulumi from "@pulumi/pulumi";
/**
 * Manages an Azure Web PubSub Custom Certificate.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * import * as azurerm from "@pulumi/azurerm";
 * import * as std from "@pulumi/std";
 *
 * const current = azure.core.getClientConfig({});
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleWebPubsubService = new azurerm.index.WebPubsubService("example", {
 *     name: "example-webpubsub",
 *     location: testAzurermResourceGroup.location,
 *     resourceGroupName: testAzurermResourceGroup.name,
 *     sku: [{
 *         name: "Premium_P1",
 *         capacity: 1,
 *     }],
 *     identity: [{
 *         type: "SystemAssigned",
 *     }],
 * });
 * const exampleKeyVault = new azure.keyvault.KeyVault("example", {
 *     name: "examplekeyvault",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     tenantId: current.then(current => current.tenantId),
 *     skuName: "premium",
 *     accessPolicies: [
 *         {
 *             tenantId: current.then(current => current.tenantId),
 *             objectId: current.then(current => current.objectId),
 *             certificatePermissions: [
 *                 "Create",
 *                 "Get",
 *                 "List",
 *             ],
 *             secretPermissions: [
 *                 "Get",
 *                 "List",
 *             ],
 *         },
 *         {
 *             tenantId: current.then(current => current.tenantId),
 *             objectId: testAzurermWebPubsubService.identity[0].principalId,
 *             certificatePermissions: [
 *                 "Create",
 *                 "Get",
 *                 "List",
 *             ],
 *             secretPermissions: [
 *                 "Get",
 *                 "List",
 *             ],
 *         },
 *     ],
 * });
 * const exampleCertificate = new azure.keyvault.Certificate("example", {
 *     name: "imported-cert",
 *     keyVaultId: exampleKeyVault.id,
 *     certificate: {
 *         contents: std.filebase64({
 *             input: "certificate-to-import.pfx",
 *         }).then(invoke => invoke.result),
 *         password: "",
 *     },
 * });
 * const test = new azure.webpubsub.CustomCertificate("test", {
 *     name: "example-cert",
 *     webPubsubId: exampleWebPubsubService.id,
 *     customCertificateId: exampleCertificate.id,
 * }, {
 *     dependsOn: [exampleAzurermKeyVaultAccessPolicy],
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.SignalRService` - 2024-03-01
 *
 * ## Import
 *
 * Custom Certificate for a Web PubSub service can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:webpubsub/customCertificate:CustomCertificate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.SignalRService/webPubSub/WebPubsub1/customCertificates/cert1
 * ```
 */
export declare class CustomCertificate extends pulumi.CustomResource {
    /**
     * Get an existing CustomCertificate 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<pulumi.ID>, state?: CustomCertificateState, opts?: pulumi.CustomResourceOptions): CustomCertificate;
    /**
     * Returns true if the given object is an instance of CustomCertificate.  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 CustomCertificate;
    /**
     * The certificate version of the Web PubSub Custom Certificate.
     */
    readonly certificateVersion: pulumi.Output<string>;
    /**
     * The certificate ID of the Web PubSub Custom Certificate. Changing this forces a new resource to be created.
     *
     * > **Note:** Self assigned certificate is not supported and the provisioning status will fail.
     */
    readonly customCertificateId: pulumi.Output<string>;
    /**
     * The name of the Web PubSub Custom Certificate. Changing this forces a new resource to be created.
     */
    readonly name: pulumi.Output<string>;
    /**
     * The Web PubSub ID of the Web PubSub Custom Certificate. Changing this forces a new resource to be created.
     *
     * > **Note:** custom certificate is only available for Web PubSub Premium tier. Please enable managed identity in the corresponding Web PubSub Service and give the managed identity access to the key vault, the required permission is Get Certificate and Secret.
     */
    readonly webPubsubId: pulumi.Output<string>;
    /**
     * Create a CustomCertificate 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: CustomCertificateArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering CustomCertificate resources.
 */
export interface CustomCertificateState {
    /**
     * The certificate version of the Web PubSub Custom Certificate.
     */
    certificateVersion?: pulumi.Input<string | undefined>;
    /**
     * The certificate ID of the Web PubSub Custom Certificate. Changing this forces a new resource to be created.
     *
     * > **Note:** Self assigned certificate is not supported and the provisioning status will fail.
     */
    customCertificateId?: pulumi.Input<string | undefined>;
    /**
     * The name of the Web PubSub Custom Certificate. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * The Web PubSub ID of the Web PubSub Custom Certificate. Changing this forces a new resource to be created.
     *
     * > **Note:** custom certificate is only available for Web PubSub Premium tier. Please enable managed identity in the corresponding Web PubSub Service and give the managed identity access to the key vault, the required permission is Get Certificate and Secret.
     */
    webPubsubId?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a CustomCertificate resource.
 */
export interface CustomCertificateArgs {
    /**
     * The certificate ID of the Web PubSub Custom Certificate. Changing this forces a new resource to be created.
     *
     * > **Note:** Self assigned certificate is not supported and the provisioning status will fail.
     */
    customCertificateId: pulumi.Input<string>;
    /**
     * The name of the Web PubSub Custom Certificate. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * The Web PubSub ID of the Web PubSub Custom Certificate. Changing this forces a new resource to be created.
     *
     * > **Note:** custom certificate is only available for Web PubSub Premium tier. Please enable managed identity in the corresponding Web PubSub Service and give the managed identity access to the key vault, the required permission is Get Certificate and Secret.
     */
    webPubsubId: pulumi.Input<string>;
}
//# sourceMappingURL=customCertificate.d.ts.map