WebPubSubCustomCertificateArgs

data class WebPubSubCustomCertificateArgs(val certificateName: Output<String>? = null, val keyVaultBaseUri: Output<String>? = null, val keyVaultSecretName: Output<String>? = null, val keyVaultSecretVersion: Output<String>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null) : ConvertibleToJava<WebPubSubCustomCertificateArgs>

A custom certificate. Uses Azure REST API version 2023-02-01. Other available API versions: 2023-03-01-preview, 2023-06-01-preview, 2023-08-01-preview, 2024-01-01-preview, 2024-03-01, 2024-04-01-preview, 2024-08-01-preview, 2024-10-01-preview.

Example Usage

WebPubSubCustomCertificates_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var webPubSubCustomCertificate = new AzureNative.WebPubSub.WebPubSubCustomCertificate("webPubSubCustomCertificate", new()
{
CertificateName = "myCert",
KeyVaultBaseUri = "https://myvault.keyvault.azure.net/",
KeyVaultSecretName = "mycert",
KeyVaultSecretVersion = "bb6a44b2743f47f68dad0d6cc9756432",
ResourceGroupName = "myResourceGroup",
ResourceName = "myWebPubSubService",
});
});
package main
import (
webpubsub "github.com/pulumi/pulumi-azure-native-sdk/webpubsub/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := webpubsub.NewWebPubSubCustomCertificate(ctx, "webPubSubCustomCertificate", &webpubsub.WebPubSubCustomCertificateArgs{
CertificateName: pulumi.String("myCert"),
KeyVaultBaseUri: pulumi.String("https://myvault.keyvault.azure.net/"),
KeyVaultSecretName: pulumi.String("mycert"),
KeyVaultSecretVersion: pulumi.String("bb6a44b2743f47f68dad0d6cc9756432"),
ResourceGroupName: pulumi.String("myResourceGroup"),
ResourceName: pulumi.String("myWebPubSubService"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.webpubsub.WebPubSubCustomCertificate;
import com.pulumi.azurenative.webpubsub.WebPubSubCustomCertificateArgs;
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) {
var webPubSubCustomCertificate = new WebPubSubCustomCertificate("webPubSubCustomCertificate", WebPubSubCustomCertificateArgs.builder()
.certificateName("myCert")
.keyVaultBaseUri("https://myvault.keyvault.azure.net/")
.keyVaultSecretName("mycert")
.keyVaultSecretVersion("bb6a44b2743f47f68dad0d6cc9756432")
.resourceGroupName("myResourceGroup")
.resourceName("myWebPubSubService")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:webpubsub:WebPubSubCustomCertificate myCert /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customCertificates/{certificateName}

Constructors

Link copied to clipboard
constructor(certificateName: Output<String>? = null, keyVaultBaseUri: Output<String>? = null, keyVaultSecretName: Output<String>? = null, keyVaultSecretVersion: Output<String>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null)

Properties

Link copied to clipboard
val certificateName: Output<String>? = null

Custom certificate name

Link copied to clipboard
val keyVaultBaseUri: Output<String>? = null

Base uri of the KeyVault that stores certificate.

Link copied to clipboard
val keyVaultSecretName: Output<String>? = null

Certificate secret name.

Link copied to clipboard
val keyVaultSecretVersion: Output<String>? = null

Certificate secret version.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

Link copied to clipboard
val resourceName: Output<String>? = null

The name of the resource.

Functions

Link copied to clipboard
open override fun toJava(): WebPubSubCustomCertificateArgs