WebPubSubCustomDomainArgs

data class WebPubSubCustomDomainArgs(val customCertificate: Output<ResourceReferenceArgs>? = null, val domainName: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null) : ConvertibleToJava<WebPubSubCustomDomainArgs>

A custom domain 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

WebPubSubCustomDomains_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var webPubSubCustomDomain = new AzureNative.WebPubSub.WebPubSubCustomDomain("webPubSubCustomDomain", new()
{
CustomCertificate = new AzureNative.WebPubSub.Inputs.ResourceReferenceArgs
{
Id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/customCertificates/myCert",
},
DomainName = "example.com",
Name = "myDomain",
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.NewWebPubSubCustomDomain(ctx, "webPubSubCustomDomain", &webpubsub.WebPubSubCustomDomainArgs{
CustomCertificate: &webpubsub.ResourceReferenceArgs{
Id: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/customCertificates/myCert"),
},
DomainName: pulumi.String("example.com"),
Name: pulumi.String("myDomain"),
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.WebPubSubCustomDomain;
import com.pulumi.azurenative.webpubsub.WebPubSubCustomDomainArgs;
import com.pulumi.azurenative.webpubsub.inputs.ResourceReferenceArgs;
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 webPubSubCustomDomain = new WebPubSubCustomDomain("webPubSubCustomDomain", WebPubSubCustomDomainArgs.builder()
.customCertificate(ResourceReferenceArgs.builder()
.id("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/customCertificates/myCert")
.build())
.domainName("example.com")
.name("myDomain")
.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:WebPubSubCustomDomain myDomain /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customDomains/{name}

Constructors

Link copied to clipboard
constructor(customCertificate: Output<ResourceReferenceArgs>? = null, domainName: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null)

Properties

Link copied to clipboard

Reference to a resource.

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

The custom domain name.

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

Custom domain name.

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(): WebPubSubCustomDomainArgs