All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.keyvault.kotlin.Certifiate.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.keyvault.kotlin

import com.pulumi.azure.keyvault.kotlin.outputs.CertifiateCertificate
import com.pulumi.azure.keyvault.kotlin.outputs.CertifiateCertificateAttribute
import com.pulumi.azure.keyvault.kotlin.outputs.CertifiateCertificatePolicy
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.azure.keyvault.kotlin.outputs.CertifiateCertificate.Companion.toKotlin as certifiateCertificateToKotlin
import com.pulumi.azure.keyvault.kotlin.outputs.CertifiateCertificateAttribute.Companion.toKotlin as certifiateCertificateAttributeToKotlin
import com.pulumi.azure.keyvault.kotlin.outputs.CertifiateCertificatePolicy.Companion.toKotlin as certifiateCertificatePolicyToKotlin

/**
 * Builder for [Certifiate].
 */
@PulumiTagMarker
@Deprecated(
    message = """
azure.keyvault.Certifiate has been deprecated in favor of azure.keyvault.Certificate
""",
)
public class CertifiateResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: CertifiateArgs = CertifiateArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend CertifiateArgsBuilder.() -> Unit) {
        val builder = CertifiateArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): Certifiate {
        val builtJavaResource = com.pulumi.azure.keyvault.Certifiate(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return Certifiate(builtJavaResource)
    }
}

/**
 * Manages a Key Vault Certificate.
 * ## Example Usage
 * ### Importing A PFX)
 * > **Note:** this example assumed the PFX file is located in the same directory at `certificate-to-import.pfx`.
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * 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 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",
 *             "Delete",
 *             "DeleteIssuers",
 *             "Get",
 *             "GetIssuers",
 *             "Import",
 *             "List",
 *             "ListIssuers",
 *             "ManageContacts",
 *             "ManageIssuers",
 *             "SetIssuers",
 *             "Update",
 *         ],
 *         keyPermissions: [
 *             "Backup",
 *             "Create",
 *             "Decrypt",
 *             "Delete",
 *             "Encrypt",
 *             "Get",
 *             "Import",
 *             "List",
 *             "Purge",
 *             "Recover",
 *             "Restore",
 *             "Sign",
 *             "UnwrapKey",
 *             "Update",
 *             "Verify",
 *             "WrapKey",
 *         ],
 *         secretPermissions: [
 *             "Backup",
 *             "Delete",
 *             "Get",
 *             "List",
 *             "Purge",
 *             "Recover",
 *             "Restore",
 *             "Set",
 *         ],
 *     }],
 * });
 * 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: "",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * import pulumi_std as std
 * current = azure.core.get_client_config()
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_key_vault = azure.keyvault.KeyVault("example",
 *     name="examplekeyvault",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     tenant_id=current.tenant_id,
 *     sku_name="premium",
 *     access_policies=[{
 *         "tenant_id": current.tenant_id,
 *         "object_id": current.object_id,
 *         "certificate_permissions": [
 *             "Create",
 *             "Delete",
 *             "DeleteIssuers",
 *             "Get",
 *             "GetIssuers",
 *             "Import",
 *             "List",
 *             "ListIssuers",
 *             "ManageContacts",
 *             "ManageIssuers",
 *             "SetIssuers",
 *             "Update",
 *         ],
 *         "key_permissions": [
 *             "Backup",
 *             "Create",
 *             "Decrypt",
 *             "Delete",
 *             "Encrypt",
 *             "Get",
 *             "Import",
 *             "List",
 *             "Purge",
 *             "Recover",
 *             "Restore",
 *             "Sign",
 *             "UnwrapKey",
 *             "Update",
 *             "Verify",
 *             "WrapKey",
 *         ],
 *         "secret_permissions": [
 *             "Backup",
 *             "Delete",
 *             "Get",
 *             "List",
 *             "Purge",
 *             "Recover",
 *             "Restore",
 *             "Set",
 *         ],
 *     }])
 * example_certificate = azure.keyvault.Certificate("example",
 *     name="imported-cert",
 *     key_vault_id=example_key_vault.id,
 *     certificate={
 *         "contents": std.filebase64(input="certificate-to-import.pfx").result,
 *         "password": "",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * using Std = Pulumi.Std;
 * return await Deployment.RunAsync(() =>
 * {
 *     var current = Azure.Core.GetClientConfig.Invoke();
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleKeyVault = new Azure.KeyVault.KeyVault("example", new()
 *     {
 *         Name = "examplekeyvault",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         TenantId = current.Apply(getClientConfigResult => getClientConfigResult.TenantId),
 *         SkuName = "premium",
 *         AccessPolicies = new[]
 *         {
 *             new Azure.KeyVault.Inputs.KeyVaultAccessPolicyArgs
 *             {
 *                 TenantId = current.Apply(getClientConfigResult => getClientConfigResult.TenantId),
 *                 ObjectId = current.Apply(getClientConfigResult => getClientConfigResult.ObjectId),
 *                 CertificatePermissions = new[]
 *                 {
 *                     "Create",
 *                     "Delete",
 *                     "DeleteIssuers",
 *                     "Get",
 *                     "GetIssuers",
 *                     "Import",
 *                     "List",
 *                     "ListIssuers",
 *                     "ManageContacts",
 *                     "ManageIssuers",
 *                     "SetIssuers",
 *                     "Update",
 *                 },
 *                 KeyPermissions = new[]
 *                 {
 *                     "Backup",
 *                     "Create",
 *                     "Decrypt",
 *                     "Delete",
 *                     "Encrypt",
 *                     "Get",
 *                     "Import",
 *                     "List",
 *                     "Purge",
 *                     "Recover",
 *                     "Restore",
 *                     "Sign",
 *                     "UnwrapKey",
 *                     "Update",
 *                     "Verify",
 *                     "WrapKey",
 *                 },
 *                 SecretPermissions = new[]
 *                 {
 *                     "Backup",
 *                     "Delete",
 *                     "Get",
 *                     "List",
 *                     "Purge",
 *                     "Recover",
 *                     "Restore",
 *                     "Set",
 *                 },
 *             },
 *         },
 *     });
 *     var exampleCertificate = new Azure.KeyVault.Certificate("example", new()
 *     {
 *         Name = "imported-cert",
 *         KeyVaultId = exampleKeyVault.Id,
 *         KeyVaultCertificate = new Azure.KeyVault.Inputs.CertificateCertificateArgs
 *         {
 *             Contents = Std.Filebase64.Invoke(new()
 *             {
 *                 Input = "certificate-to-import.pfx",
 *             }).Apply(invoke => invoke.Result),
 *             Password = "",
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/keyvault"
 * 	"github.com/pulumi/pulumi-std/sdk/go/std"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		current, err := core.GetClientConfig(ctx, nil, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{
 * 			Name:              pulumi.String("examplekeyvault"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			TenantId:          pulumi.String(current.TenantId),
 * 			SkuName:           pulumi.String("premium"),
 * 			AccessPolicies: keyvault.KeyVaultAccessPolicyArray{
 * 				&keyvault.KeyVaultAccessPolicyArgs{
 * 					TenantId: pulumi.String(current.TenantId),
 * 					ObjectId: pulumi.String(current.ObjectId),
 * 					CertificatePermissions: pulumi.StringArray{
 * 						pulumi.String("Create"),
 * 						pulumi.String("Delete"),
 * 						pulumi.String("DeleteIssuers"),
 * 						pulumi.String("Get"),
 * 						pulumi.String("GetIssuers"),
 * 						pulumi.String("Import"),
 * 						pulumi.String("List"),
 * 						pulumi.String("ListIssuers"),
 * 						pulumi.String("ManageContacts"),
 * 						pulumi.String("ManageIssuers"),
 * 						pulumi.String("SetIssuers"),
 * 						pulumi.String("Update"),
 * 					},
 * 					KeyPermissions: pulumi.StringArray{
 * 						pulumi.String("Backup"),
 * 						pulumi.String("Create"),
 * 						pulumi.String("Decrypt"),
 * 						pulumi.String("Delete"),
 * 						pulumi.String("Encrypt"),
 * 						pulumi.String("Get"),
 * 						pulumi.String("Import"),
 * 						pulumi.String("List"),
 * 						pulumi.String("Purge"),
 * 						pulumi.String("Recover"),
 * 						pulumi.String("Restore"),
 * 						pulumi.String("Sign"),
 * 						pulumi.String("UnwrapKey"),
 * 						pulumi.String("Update"),
 * 						pulumi.String("Verify"),
 * 						pulumi.String("WrapKey"),
 * 					},
 * 					SecretPermissions: pulumi.StringArray{
 * 						pulumi.String("Backup"),
 * 						pulumi.String("Delete"),
 * 						pulumi.String("Get"),
 * 						pulumi.String("List"),
 * 						pulumi.String("Purge"),
 * 						pulumi.String("Recover"),
 * 						pulumi.String("Restore"),
 * 						pulumi.String("Set"),
 * 					},
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		invokeFilebase64, err := std.Filebase64(ctx, &std.Filebase64Args{
 * 			Input: "certificate-to-import.pfx",
 * 		}, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = keyvault.NewCertificate(ctx, "example", &keyvault.CertificateArgs{
 * 			Name:       pulumi.String("imported-cert"),
 * 			KeyVaultId: exampleKeyVault.ID(),
 * 			Certificate: &keyvault.CertificateCertificateArgs{
 * 				Contents: pulumi.String(invokeFilebase64.Result),
 * 				Password: pulumi.String(""),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.CoreFunctions;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.keyvault.KeyVault;
 * import com.pulumi.azure.keyvault.KeyVaultArgs;
 * import com.pulumi.azure.keyvault.inputs.KeyVaultAccessPolicyArgs;
 * import com.pulumi.azure.keyvault.Certificate;
 * import com.pulumi.azure.keyvault.CertificateArgs;
 * import com.pulumi.azure.keyvault.inputs.CertificateCertificateArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         final var current = CoreFunctions.getClientConfig();
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleKeyVault = new KeyVault("exampleKeyVault", KeyVaultArgs.builder()
 *             .name("examplekeyvault")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
 *             .skuName("premium")
 *             .accessPolicies(KeyVaultAccessPolicyArgs.builder()
 *                 .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
 *                 .objectId(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId()))
 *                 .certificatePermissions(
 *                     "Create",
 *                     "Delete",
 *                     "DeleteIssuers",
 *                     "Get",
 *                     "GetIssuers",
 *                     "Import",
 *                     "List",
 *                     "ListIssuers",
 *                     "ManageContacts",
 *                     "ManageIssuers",
 *                     "SetIssuers",
 *                     "Update")
 *                 .keyPermissions(
 *                     "Backup",
 *                     "Create",
 *                     "Decrypt",
 *                     "Delete",
 *                     "Encrypt",
 *                     "Get",
 *                     "Import",
 *                     "List",
 *                     "Purge",
 *                     "Recover",
 *                     "Restore",
 *                     "Sign",
 *                     "UnwrapKey",
 *                     "Update",
 *                     "Verify",
 *                     "WrapKey")
 *                 .secretPermissions(
 *                     "Backup",
 *                     "Delete",
 *                     "Get",
 *                     "List",
 *                     "Purge",
 *                     "Recover",
 *                     "Restore",
 *                     "Set")
 *                 .build())
 *             .build());
 *         var exampleCertificate = new Certificate("exampleCertificate", CertificateArgs.builder()
 *             .name("imported-cert")
 *             .keyVaultId(exampleKeyVault.id())
 *             .certificate(CertificateCertificateArgs.builder()
 *                 .contents(StdFunctions.filebase64(Filebase64Args.builder()
 *                     .input("certificate-to-import.pfx")
 *                     .build()).result())
 *                 .password("")
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleKeyVault:
 *     type: azure:keyvault:KeyVault
 *     name: example
 *     properties:
 *       name: examplekeyvault
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       tenantId: ${current.tenantId}
 *       skuName: premium
 *       accessPolicies:
 *         - tenantId: ${current.tenantId}
 *           objectId: ${current.objectId}
 *           certificatePermissions:
 *             - Create
 *             - Delete
 *             - DeleteIssuers
 *             - Get
 *             - GetIssuers
 *             - Import
 *             - List
 *             - ListIssuers
 *             - ManageContacts
 *             - ManageIssuers
 *             - SetIssuers
 *             - Update
 *           keyPermissions:
 *             - Backup
 *             - Create
 *             - Decrypt
 *             - Delete
 *             - Encrypt
 *             - Get
 *             - Import
 *             - List
 *             - Purge
 *             - Recover
 *             - Restore
 *             - Sign
 *             - UnwrapKey
 *             - Update
 *             - Verify
 *             - WrapKey
 *           secretPermissions:
 *             - Backup
 *             - Delete
 *             - Get
 *             - List
 *             - Purge
 *             - Recover
 *             - Restore
 *             - Set
 *   exampleCertificate:
 *     type: azure:keyvault:Certificate
 *     name: example
 *     properties:
 *       name: imported-cert
 *       keyVaultId: ${exampleKeyVault.id}
 *       certificate:
 *         contents:
 *           fn::invoke:
 *             Function: std:filebase64
 *             Arguments:
 *               input: certificate-to-import.pfx
 *             Return: result
 *         password:
 * variables:
 *   current:
 *     fn::invoke:
 *       Function: azure:core:getClientConfig
 *       Arguments: {}
 * ```
 * 
 * ### Generating a new certificate
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const current = azure.core.getClientConfig({});
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleKeyVault = new azure.keyvault.KeyVault("example", {
 *     name: "examplekeyvault",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     tenantId: current.then(current => current.tenantId),
 *     skuName: "standard",
 *     softDeleteRetentionDays: 7,
 *     accessPolicies: [{
 *         tenantId: current.then(current => current.tenantId),
 *         objectId: current.then(current => current.objectId),
 *         certificatePermissions: [
 *             "Create",
 *             "Delete",
 *             "DeleteIssuers",
 *             "Get",
 *             "GetIssuers",
 *             "Import",
 *             "List",
 *             "ListIssuers",
 *             "ManageContacts",
 *             "ManageIssuers",
 *             "Purge",
 *             "SetIssuers",
 *             "Update",
 *         ],
 *         keyPermissions: [
 *             "Backup",
 *             "Create",
 *             "Decrypt",
 *             "Delete",
 *             "Encrypt",
 *             "Get",
 *             "Import",
 *             "List",
 *             "Purge",
 *             "Recover",
 *             "Restore",
 *             "Sign",
 *             "UnwrapKey",
 *             "Update",
 *             "Verify",
 *             "WrapKey",
 *         ],
 *         secretPermissions: [
 *             "Backup",
 *             "Delete",
 *             "Get",
 *             "List",
 *             "Purge",
 *             "Recover",
 *             "Restore",
 *             "Set",
 *         ],
 *     }],
 * });
 * const exampleCertificate = new azure.keyvault.Certificate("example", {
 *     name: "generated-cert",
 *     keyVaultId: exampleKeyVault.id,
 *     certificatePolicy: {
 *         issuerParameters: {
 *             name: "Self",
 *         },
 *         keyProperties: {
 *             exportable: true,
 *             keySize: 2048,
 *             keyType: "RSA",
 *             reuseKey: true,
 *         },
 *         lifetimeActions: [{
 *             action: {
 *                 actionType: "AutoRenew",
 *             },
 *             trigger: {
 *                 daysBeforeExpiry: 30,
 *             },
 *         }],
 *         secretProperties: {
 *             contentType: "application/x-pkcs12",
 *         },
 *         x509CertificateProperties: {
 *             extendedKeyUsages: ["1.3.6.1.5.5.7.3.1"],
 *             keyUsages: [
 *                 "cRLSign",
 *                 "dataEncipherment",
 *                 "digitalSignature",
 *                 "keyAgreement",
 *                 "keyCertSign",
 *                 "keyEncipherment",
 *             ],
 *             subjectAlternativeNames: {
 *                 dnsNames: [
 *                     "internal.contoso.com",
 *                     "domain.hello.world",
 *                 ],
 *             },
 *             subject: "CN=hello-world",
 *             validityInMonths: 12,
 *         },
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * current = azure.core.get_client_config()
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_key_vault = azure.keyvault.KeyVault("example",
 *     name="examplekeyvault",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     tenant_id=current.tenant_id,
 *     sku_name="standard",
 *     soft_delete_retention_days=7,
 *     access_policies=[{
 *         "tenant_id": current.tenant_id,
 *         "object_id": current.object_id,
 *         "certificate_permissions": [
 *             "Create",
 *             "Delete",
 *             "DeleteIssuers",
 *             "Get",
 *             "GetIssuers",
 *             "Import",
 *             "List",
 *             "ListIssuers",
 *             "ManageContacts",
 *             "ManageIssuers",
 *             "Purge",
 *             "SetIssuers",
 *             "Update",
 *         ],
 *         "key_permissions": [
 *             "Backup",
 *             "Create",
 *             "Decrypt",
 *             "Delete",
 *             "Encrypt",
 *             "Get",
 *             "Import",
 *             "List",
 *             "Purge",
 *             "Recover",
 *             "Restore",
 *             "Sign",
 *             "UnwrapKey",
 *             "Update",
 *             "Verify",
 *             "WrapKey",
 *         ],
 *         "secret_permissions": [
 *             "Backup",
 *             "Delete",
 *             "Get",
 *             "List",
 *             "Purge",
 *             "Recover",
 *             "Restore",
 *             "Set",
 *         ],
 *     }])
 * example_certificate = azure.keyvault.Certificate("example",
 *     name="generated-cert",
 *     key_vault_id=example_key_vault.id,
 *     certificate_policy={
 *         "issuer_parameters": {
 *             "name": "Self",
 *         },
 *         "key_properties": {
 *             "exportable": True,
 *             "key_size": 2048,
 *             "key_type": "RSA",
 *             "reuse_key": True,
 *         },
 *         "lifetime_actions": [{
 *             "action": {
 *                 "action_type": "AutoRenew",
 *             },
 *             "trigger": {
 *                 "days_before_expiry": 30,
 *             },
 *         }],
 *         "secret_properties": {
 *             "content_type": "application/x-pkcs12",
 *         },
 *         "x509_certificate_properties": {
 *             "extended_key_usages": ["1.3.6.1.5.5.7.3.1"],
 *             "key_usages": [
 *                 "cRLSign",
 *                 "dataEncipherment",
 *                 "digitalSignature",
 *                 "keyAgreement",
 *                 "keyCertSign",
 *                 "keyEncipherment",
 *             ],
 *             "subject_alternative_names": {
 *                 "dns_names": [
 *                     "internal.contoso.com",
 *                     "domain.hello.world",
 *                 ],
 *             },
 *             "subject": "CN=hello-world",
 *             "validity_in_months": 12,
 *         },
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var current = Azure.Core.GetClientConfig.Invoke();
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleKeyVault = new Azure.KeyVault.KeyVault("example", new()
 *     {
 *         Name = "examplekeyvault",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         TenantId = current.Apply(getClientConfigResult => getClientConfigResult.TenantId),
 *         SkuName = "standard",
 *         SoftDeleteRetentionDays = 7,
 *         AccessPolicies = new[]
 *         {
 *             new Azure.KeyVault.Inputs.KeyVaultAccessPolicyArgs
 *             {
 *                 TenantId = current.Apply(getClientConfigResult => getClientConfigResult.TenantId),
 *                 ObjectId = current.Apply(getClientConfigResult => getClientConfigResult.ObjectId),
 *                 CertificatePermissions = new[]
 *                 {
 *                     "Create",
 *                     "Delete",
 *                     "DeleteIssuers",
 *                     "Get",
 *                     "GetIssuers",
 *                     "Import",
 *                     "List",
 *                     "ListIssuers",
 *                     "ManageContacts",
 *                     "ManageIssuers",
 *                     "Purge",
 *                     "SetIssuers",
 *                     "Update",
 *                 },
 *                 KeyPermissions = new[]
 *                 {
 *                     "Backup",
 *                     "Create",
 *                     "Decrypt",
 *                     "Delete",
 *                     "Encrypt",
 *                     "Get",
 *                     "Import",
 *                     "List",
 *                     "Purge",
 *                     "Recover",
 *                     "Restore",
 *                     "Sign",
 *                     "UnwrapKey",
 *                     "Update",
 *                     "Verify",
 *                     "WrapKey",
 *                 },
 *                 SecretPermissions = new[]
 *                 {
 *                     "Backup",
 *                     "Delete",
 *                     "Get",
 *                     "List",
 *                     "Purge",
 *                     "Recover",
 *                     "Restore",
 *                     "Set",
 *                 },
 *             },
 *         },
 *     });
 *     var exampleCertificate = new Azure.KeyVault.Certificate("example", new()
 *     {
 *         Name = "generated-cert",
 *         KeyVaultId = exampleKeyVault.Id,
 *         CertificatePolicy = new Azure.KeyVault.Inputs.CertificateCertificatePolicyArgs
 *         {
 *             IssuerParameters = new Azure.KeyVault.Inputs.CertificateCertificatePolicyIssuerParametersArgs
 *             {
 *                 Name = "Self",
 *             },
 *             KeyProperties = new Azure.KeyVault.Inputs.CertificateCertificatePolicyKeyPropertiesArgs
 *             {
 *                 Exportable = true,
 *                 KeySize = 2048,
 *                 KeyType = "RSA",
 *                 ReuseKey = true,
 *             },
 *             LifetimeActions = new[]
 *             {
 *                 new Azure.KeyVault.Inputs.CertificateCertificatePolicyLifetimeActionArgs
 *                 {
 *                     Action = new Azure.KeyVault.Inputs.CertificateCertificatePolicyLifetimeActionActionArgs
 *                     {
 *                         ActionType = "AutoRenew",
 *                     },
 *                     Trigger = new Azure.KeyVault.Inputs.CertificateCertificatePolicyLifetimeActionTriggerArgs
 *                     {
 *                         DaysBeforeExpiry = 30,
 *                     },
 *                 },
 *             },
 *             SecretProperties = new Azure.KeyVault.Inputs.CertificateCertificatePolicySecretPropertiesArgs
 *             {
 *                 ContentType = "application/x-pkcs12",
 *             },
 *             X509CertificateProperties = new Azure.KeyVault.Inputs.CertificateCertificatePolicyX509CertificatePropertiesArgs
 *             {
 *                 ExtendedKeyUsages = new[]
 *                 {
 *                     "1.3.6.1.5.5.7.3.1",
 *                 },
 *                 KeyUsages = new[]
 *                 {
 *                     "cRLSign",
 *                     "dataEncipherment",
 *                     "digitalSignature",
 *                     "keyAgreement",
 *                     "keyCertSign",
 *                     "keyEncipherment",
 *                 },
 *                 SubjectAlternativeNames = new Azure.KeyVault.Inputs.CertificateCertificatePolicyX509CertificatePropertiesSubjectAlternativeNamesArgs
 *                 {
 *                     DnsNames = new[]
 *                     {
 *                         "internal.contoso.com",
 *                         "domain.hello.world",
 *                     },
 *                 },
 *                 Subject = "CN=hello-world",
 *                 ValidityInMonths = 12,
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/keyvault"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		current, err := core.GetClientConfig(ctx, nil, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{
 * 			Name:                    pulumi.String("examplekeyvault"),
 * 			Location:                example.Location,
 * 			ResourceGroupName:       example.Name,
 * 			TenantId:                pulumi.String(current.TenantId),
 * 			SkuName:                 pulumi.String("standard"),
 * 			SoftDeleteRetentionDays: pulumi.Int(7),
 * 			AccessPolicies: keyvault.KeyVaultAccessPolicyArray{
 * 				&keyvault.KeyVaultAccessPolicyArgs{
 * 					TenantId: pulumi.String(current.TenantId),
 * 					ObjectId: pulumi.String(current.ObjectId),
 * 					CertificatePermissions: pulumi.StringArray{
 * 						pulumi.String("Create"),
 * 						pulumi.String("Delete"),
 * 						pulumi.String("DeleteIssuers"),
 * 						pulumi.String("Get"),
 * 						pulumi.String("GetIssuers"),
 * 						pulumi.String("Import"),
 * 						pulumi.String("List"),
 * 						pulumi.String("ListIssuers"),
 * 						pulumi.String("ManageContacts"),
 * 						pulumi.String("ManageIssuers"),
 * 						pulumi.String("Purge"),
 * 						pulumi.String("SetIssuers"),
 * 						pulumi.String("Update"),
 * 					},
 * 					KeyPermissions: pulumi.StringArray{
 * 						pulumi.String("Backup"),
 * 						pulumi.String("Create"),
 * 						pulumi.String("Decrypt"),
 * 						pulumi.String("Delete"),
 * 						pulumi.String("Encrypt"),
 * 						pulumi.String("Get"),
 * 						pulumi.String("Import"),
 * 						pulumi.String("List"),
 * 						pulumi.String("Purge"),
 * 						pulumi.String("Recover"),
 * 						pulumi.String("Restore"),
 * 						pulumi.String("Sign"),
 * 						pulumi.String("UnwrapKey"),
 * 						pulumi.String("Update"),
 * 						pulumi.String("Verify"),
 * 						pulumi.String("WrapKey"),
 * 					},
 * 					SecretPermissions: pulumi.StringArray{
 * 						pulumi.String("Backup"),
 * 						pulumi.String("Delete"),
 * 						pulumi.String("Get"),
 * 						pulumi.String("List"),
 * 						pulumi.String("Purge"),
 * 						pulumi.String("Recover"),
 * 						pulumi.String("Restore"),
 * 						pulumi.String("Set"),
 * 					},
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = keyvault.NewCertificate(ctx, "example", &keyvault.CertificateArgs{
 * 			Name:       pulumi.String("generated-cert"),
 * 			KeyVaultId: exampleKeyVault.ID(),
 * 			CertificatePolicy: &keyvault.CertificateCertificatePolicyArgs{
 * 				IssuerParameters: &keyvault.CertificateCertificatePolicyIssuerParametersArgs{
 * 					Name: pulumi.String("Self"),
 * 				},
 * 				KeyProperties: &keyvault.CertificateCertificatePolicyKeyPropertiesArgs{
 * 					Exportable: pulumi.Bool(true),
 * 					KeySize:    pulumi.Int(2048),
 * 					KeyType:    pulumi.String("RSA"),
 * 					ReuseKey:   pulumi.Bool(true),
 * 				},
 * 				LifetimeActions: keyvault.CertificateCertificatePolicyLifetimeActionArray{
 * 					&keyvault.CertificateCertificatePolicyLifetimeActionArgs{
 * 						Action: &keyvault.CertificateCertificatePolicyLifetimeActionActionArgs{
 * 							ActionType: pulumi.String("AutoRenew"),
 * 						},
 * 						Trigger: &keyvault.CertificateCertificatePolicyLifetimeActionTriggerArgs{
 * 							DaysBeforeExpiry: pulumi.Int(30),
 * 						},
 * 					},
 * 				},
 * 				SecretProperties: &keyvault.CertificateCertificatePolicySecretPropertiesArgs{
 * 					ContentType: pulumi.String("application/x-pkcs12"),
 * 				},
 * 				X509CertificateProperties: &keyvault.CertificateCertificatePolicyX509CertificatePropertiesArgs{
 * 					ExtendedKeyUsages: pulumi.StringArray{
 * 						pulumi.String("1.3.6.1.5.5.7.3.1"),
 * 					},
 * 					KeyUsages: pulumi.StringArray{
 * 						pulumi.String("cRLSign"),
 * 						pulumi.String("dataEncipherment"),
 * 						pulumi.String("digitalSignature"),
 * 						pulumi.String("keyAgreement"),
 * 						pulumi.String("keyCertSign"),
 * 						pulumi.String("keyEncipherment"),
 * 					},
 * 					SubjectAlternativeNames: &keyvault.CertificateCertificatePolicyX509CertificatePropertiesSubjectAlternativeNamesArgs{
 * 						DnsNames: pulumi.StringArray{
 * 							pulumi.String("internal.contoso.com"),
 * 							pulumi.String("domain.hello.world"),
 * 						},
 * 					},
 * 					Subject:          pulumi.String("CN=hello-world"),
 * 					ValidityInMonths: pulumi.Int(12),
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.CoreFunctions;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.keyvault.KeyVault;
 * import com.pulumi.azure.keyvault.KeyVaultArgs;
 * import com.pulumi.azure.keyvault.inputs.KeyVaultAccessPolicyArgs;
 * import com.pulumi.azure.keyvault.Certificate;
 * import com.pulumi.azure.keyvault.CertificateArgs;
 * import com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicyArgs;
 * import com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicyIssuerParametersArgs;
 * import com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicyKeyPropertiesArgs;
 * import com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicySecretPropertiesArgs;
 * import com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicyX509CertificatePropertiesArgs;
 * import com.pulumi.azure.keyvault.inputs.CertificateCertificatePolicyX509CertificatePropertiesSubjectAlternativeNamesArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         final var current = CoreFunctions.getClientConfig();
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleKeyVault = new KeyVault("exampleKeyVault", KeyVaultArgs.builder()
 *             .name("examplekeyvault")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
 *             .skuName("standard")
 *             .softDeleteRetentionDays(7)
 *             .accessPolicies(KeyVaultAccessPolicyArgs.builder()
 *                 .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
 *                 .objectId(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId()))
 *                 .certificatePermissions(
 *                     "Create",
 *                     "Delete",
 *                     "DeleteIssuers",
 *                     "Get",
 *                     "GetIssuers",
 *                     "Import",
 *                     "List",
 *                     "ListIssuers",
 *                     "ManageContacts",
 *                     "ManageIssuers",
 *                     "Purge",
 *                     "SetIssuers",
 *                     "Update")
 *                 .keyPermissions(
 *                     "Backup",
 *                     "Create",
 *                     "Decrypt",
 *                     "Delete",
 *                     "Encrypt",
 *                     "Get",
 *                     "Import",
 *                     "List",
 *                     "Purge",
 *                     "Recover",
 *                     "Restore",
 *                     "Sign",
 *                     "UnwrapKey",
 *                     "Update",
 *                     "Verify",
 *                     "WrapKey")
 *                 .secretPermissions(
 *                     "Backup",
 *                     "Delete",
 *                     "Get",
 *                     "List",
 *                     "Purge",
 *                     "Recover",
 *                     "Restore",
 *                     "Set")
 *                 .build())
 *             .build());
 *         var exampleCertificate = new Certificate("exampleCertificate", CertificateArgs.builder()
 *             .name("generated-cert")
 *             .keyVaultId(exampleKeyVault.id())
 *             .certificatePolicy(CertificateCertificatePolicyArgs.builder()
 *                 .issuerParameters(CertificateCertificatePolicyIssuerParametersArgs.builder()
 *                     .name("Self")
 *                     .build())
 *                 .keyProperties(CertificateCertificatePolicyKeyPropertiesArgs.builder()
 *                     .exportable(true)
 *                     .keySize(2048)
 *                     .keyType("RSA")
 *                     .reuseKey(true)
 *                     .build())
 *                 .lifetimeActions(CertificateCertificatePolicyLifetimeActionArgs.builder()
 *                     .action(CertificateCertificatePolicyLifetimeActionActionArgs.builder()
 *                         .actionType("AutoRenew")
 *                         .build())
 *                     .trigger(CertificateCertificatePolicyLifetimeActionTriggerArgs.builder()
 *                         .daysBeforeExpiry(30)
 *                         .build())
 *                     .build())
 *                 .secretProperties(CertificateCertificatePolicySecretPropertiesArgs.builder()
 *                     .contentType("application/x-pkcs12")
 *                     .build())
 *                 .x509CertificateProperties(CertificateCertificatePolicyX509CertificatePropertiesArgs.builder()
 *                     .extendedKeyUsages("1.3.6.1.5.5.7.3.1")
 *                     .keyUsages(
 *                         "cRLSign",
 *                         "dataEncipherment",
 *                         "digitalSignature",
 *                         "keyAgreement",
 *                         "keyCertSign",
 *                         "keyEncipherment")
 *                     .subjectAlternativeNames(CertificateCertificatePolicyX509CertificatePropertiesSubjectAlternativeNamesArgs.builder()
 *                         .dnsNames(
 *                             "internal.contoso.com",
 *                             "domain.hello.world")
 *                         .build())
 *                     .subject("CN=hello-world")
 *                     .validityInMonths(12)
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleKeyVault:
 *     type: azure:keyvault:KeyVault
 *     name: example
 *     properties:
 *       name: examplekeyvault
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       tenantId: ${current.tenantId}
 *       skuName: standard
 *       softDeleteRetentionDays: 7
 *       accessPolicies:
 *         - tenantId: ${current.tenantId}
 *           objectId: ${current.objectId}
 *           certificatePermissions:
 *             - Create
 *             - Delete
 *             - DeleteIssuers
 *             - Get
 *             - GetIssuers
 *             - Import
 *             - List
 *             - ListIssuers
 *             - ManageContacts
 *             - ManageIssuers
 *             - Purge
 *             - SetIssuers
 *             - Update
 *           keyPermissions:
 *             - Backup
 *             - Create
 *             - Decrypt
 *             - Delete
 *             - Encrypt
 *             - Get
 *             - Import
 *             - List
 *             - Purge
 *             - Recover
 *             - Restore
 *             - Sign
 *             - UnwrapKey
 *             - Update
 *             - Verify
 *             - WrapKey
 *           secretPermissions:
 *             - Backup
 *             - Delete
 *             - Get
 *             - List
 *             - Purge
 *             - Recover
 *             - Restore
 *             - Set
 *   exampleCertificate:
 *     type: azure:keyvault:Certificate
 *     name: example
 *     properties:
 *       name: generated-cert
 *       keyVaultId: ${exampleKeyVault.id}
 *       certificatePolicy:
 *         issuerParameters:
 *           name: Self
 *         keyProperties:
 *           exportable: true
 *           keySize: 2048
 *           keyType: RSA
 *           reuseKey: true
 *         lifetimeActions:
 *           - action:
 *               actionType: AutoRenew
 *             trigger:
 *               daysBeforeExpiry: 30
 *         secretProperties:
 *           contentType: application/x-pkcs12
 *         x509CertificateProperties:
 *           extendedKeyUsages:
 *             - 1.3.6.1.5.5.7.3.1
 *           keyUsages:
 *             - cRLSign
 *             - dataEncipherment
 *             - digitalSignature
 *             - keyAgreement
 *             - keyCertSign
 *             - keyEncipherment
 *           subjectAlternativeNames:
 *             dnsNames:
 *               - internal.contoso.com
 *               - domain.hello.world
 *           subject: CN=hello-world
 *           validityInMonths: 12
 * variables:
 *   current:
 *     fn::invoke:
 *       Function: azure:core:getClientConfig
 *       Arguments: {}
 * ```
 * 
 * ## Import
 * Key Vault Certificates can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:keyvault/certifiate:Certifiate example "https://example-keyvault.vault.azure.net/certificates/example/fdf067c93bbb4b22bff4d8b7a9a56217"
 * ```
 */
@Deprecated(
    message = """
azure.keyvault.Certifiate has been deprecated in favor of azure.keyvault.Certificate
""",
)
public class Certifiate internal constructor(
    override val javaResource: com.pulumi.azure.keyvault.Certifiate,
) : KotlinCustomResource(javaResource, CertifiateMapper) {
    /**
     * A `certificate` block as defined below, used to Import an existing certificate. Changing this will create a new version of the Key Vault Certificate.
     */
    public val certificate: Output?
        get() = javaResource.certificate().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    certifiateCertificateToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * A `certificate_attribute` block as defined below.
     */
    public val certificateAttributes: Output>
        get() = javaResource.certificateAttributes().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> certifiateCertificateAttributeToKotlin(args0) })
            })
        })

    /**
     * The raw Key Vault Certificate data represented as a hexadecimal string.
     */
    public val certificateData: Output
        get() = javaResource.certificateData().applyValue({ args0 -> args0 })

    /**
     * The Base64 encoded Key Vault Certificate data.
     */
    public val certificateDataBase64: Output
        get() = javaResource.certificateDataBase64().applyValue({ args0 -> args0 })

    /**
     * A `certificate_policy` block as defined below. Changing this (except the `lifetime_action` field) will create a new version of the Key Vault Certificate.
     * > **NOTE:** When creating a Key Vault Certificate, at least one of `certificate` or `certificate_policy` is required. Provide `certificate` to import an existing certificate, `certificate_policy` to generate a new certificate.
     */
    public val certificatePolicy: Output
        get() = javaResource.certificatePolicy().applyValue({ args0 ->
            args0.let({ args0 ->
                certifiateCertificatePolicyToKotlin(args0)
            })
        })

    /**
     * The ID of the Key Vault where the Certificate should be created. Changing this forces a new resource to be created.
     */
    public val keyVaultId: Output
        get() = javaResource.keyVaultId().applyValue({ args0 -> args0 })

    /**
     * Specifies the name of the Key Vault Certificate. Changing this forces a new resource to be created.
     */
    public val name: Output
        get() = javaResource.name().applyValue({ args0 -> args0 })

    /**
     * The (Versioned) ID for this Key Vault Certificate. This property points to a specific version of a Key Vault Certificate, as such using this won't auto-rotate values if used in other Azure Services.
     */
    public val resourceManagerId: Output
        get() = javaResource.resourceManagerId().applyValue({ args0 -> args0 })

    /**
     * The Versionless ID of the Key Vault Certificate. This property allows other Azure Services (that support it) to auto-rotate their value when the Key Vault Certificate is updated.
     */
    public val resourceManagerVersionlessId: Output
        get() = javaResource.resourceManagerVersionlessId().applyValue({ args0 -> args0 })

    /**
     * The ID of the associated Key Vault Secret.
     */
    public val secretId: Output
        get() = javaResource.secretId().applyValue({ args0 -> args0 })

    /**
     * A mapping of tags to assign to the resource.
     */
    public val tags: Output>?
        get() = javaResource.tags().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.key.to(args0.value)
                }).toMap()
            }).orElse(null)
        })

    /**
     * The X509 Thumbprint of the Key Vault Certificate represented as a hexadecimal string.
     */
    public val thumbprint: Output
        get() = javaResource.thumbprint().applyValue({ args0 -> args0 })

    /**
     * The current version of the Key Vault Certificate.
     */
    public val version: Output
        get() = javaResource.version().applyValue({ args0 -> args0 })

    /**
     * The Base ID of the Key Vault Certificate.
     */
    public val versionlessId: Output
        get() = javaResource.versionlessId().applyValue({ args0 -> args0 })

    /**
     * The Base ID of the Key Vault Secret.
     */
    public val versionlessSecretId: Output
        get() = javaResource.versionlessSecretId().applyValue({ args0 -> args0 })
}

public object CertifiateMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.azure.keyvault.Certifiate::class == javaResource::class

    override fun map(javaResource: Resource): Certifiate = Certifiate(
        javaResource as
            com.pulumi.azure.keyvault.Certifiate,
    )
}

/**
 * @see [Certifiate].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [Certifiate].
 */
@Deprecated(
    message = """
azure.keyvault.Certifiate has been deprecated in favor of azure.keyvault.Certificate
""",
)
public suspend fun certifiate(name: String, block: suspend CertifiateResourceBuilder.() -> Unit): Certifiate {
    val builder = CertifiateResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [Certifiate].
 * @param name The _unique_ name of the resulting resource.
 */
@Deprecated(
    message = """
azure.keyvault.Certifiate has been deprecated in favor of azure.keyvault.Certificate
""",
)
public fun certifiate(name: String): Certifiate {
    val builder = CertifiateResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy