CustomDomainArgs

data class CustomDomainArgs(val appName: Output<String>? = null, val domainName: Output<String>? = null, val properties: Output<CustomDomainPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val serviceName: Output<String>? = null) : ConvertibleToJava<CustomDomainArgs>

Custom domain resource payload. Uses Azure REST API version 2024-01-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-05-01-preview. Other available API versions: 2023-05-01-preview, 2023-07-01-preview, 2023-09-01-preview, 2023-11-01-preview, 2023-12-01, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native appplatform [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

CustomDomains_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var customDomain = new AzureNative.AppPlatform.CustomDomain("customDomain", new()
{
AppName = "myapp",
DomainName = "mydomain.com",
Properties = new AzureNative.AppPlatform.Inputs.CustomDomainPropertiesArgs
{
CertName = "mycert",
Thumbprint = "934367bf1c97033f877db0f15cb1b586957d3133",
},
ResourceGroupName = "myResourceGroup",
ServiceName = "myservice",
});
});
package main
import (
appplatform "github.com/pulumi/pulumi-azure-native-sdk/appplatform/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appplatform.NewCustomDomain(ctx, "customDomain", &appplatform.CustomDomainArgs{
AppName: pulumi.String("myapp"),
DomainName: pulumi.String("mydomain.com"),
Properties: &appplatform.CustomDomainPropertiesArgs{
CertName: pulumi.String("mycert"),
Thumbprint: pulumi.String("934367bf1c97033f877db0f15cb1b586957d3133"),
},
ResourceGroupName: pulumi.String("myResourceGroup"),
ServiceName: pulumi.String("myservice"),
})
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.appplatform.CustomDomain;
import com.pulumi.azurenative.appplatform.CustomDomainArgs;
import com.pulumi.azurenative.appplatform.inputs.CustomDomainPropertiesArgs;
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 customDomain = new CustomDomain("customDomain", CustomDomainArgs.builder()
.appName("myapp")
.domainName("mydomain.com")
.properties(CustomDomainPropertiesArgs.builder()
.certName("mycert")
.thumbprint("934367bf1c97033f877db0f15cb1b586957d3133")
.build())
.resourceGroupName("myResourceGroup")
.serviceName("myservice")
.build());
}
}

Import

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

$ pulumi import azure-native:appplatform:CustomDomain mydomain.com /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}

Constructors

Link copied to clipboard
constructor(appName: Output<String>? = null, domainName: Output<String>? = null, properties: Output<CustomDomainPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, serviceName: Output<String>? = null)

Properties

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

The name of the App resource.

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

The name of the custom domain resource.

Link copied to clipboard

Properties of the custom domain resource.

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 serviceName: Output<String>? = null

The name of the Service resource.

Functions

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