DomainArgs

data class DomainArgs(val domainManagement: Output<Either<String, DomainManagement>>? = null, val domainName: Output<String>? = null, val emailServiceName: Output<String>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val userEngagementTracking: Output<Either<String, UserEngagementTracking>>? = null) : ConvertibleToJava<DomainArgs>

A class representing a Domains resource. Uses Azure REST API version 2023-06-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-03-31. Other available API versions: 2023-03-31, 2023-04-01, 2023-04-01-preview, 2024-09-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native communication [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details. Note: If domainManagement is set to AzureManaged, then domainName is required.

Example Usage

Create or update Domains resource

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var domain = new AzureNative.Communication.Domain("domain", new()
{
DomainManagement = AzureNative.Communication.DomainManagement.CustomerManaged,
DomainName = "mydomain.com",
EmailServiceName = "MyEmailServiceResource",
Location = "Global",
ResourceGroupName = "MyResourceGroup",
});
});
package main
import (
communication "github.com/pulumi/pulumi-azure-native-sdk/communication/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := communication.NewDomain(ctx, "domain", &communication.DomainArgs{
DomainManagement: pulumi.String(communication.DomainManagementCustomerManaged),
DomainName: pulumi.String("mydomain.com"),
EmailServiceName: pulumi.String("MyEmailServiceResource"),
Location: pulumi.String("Global"),
ResourceGroupName: pulumi.String("MyResourceGroup"),
})
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.communication.Domain;
import com.pulumi.azurenative.communication.DomainArgs;
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 domain = new Domain("domain", DomainArgs.builder()
.domainManagement("CustomerManaged")
.domainName("mydomain.com")
.emailServiceName("MyEmailServiceResource")
.location("Global")
.resourceGroupName("MyResourceGroup")
.build());
}
}

Import

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

$ pulumi import azure-native:communication:Domain mydomain.com /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}

Constructors

Link copied to clipboard
constructor(domainManagement: Output<Either<String, DomainManagement>>? = null, domainName: Output<String>? = null, emailServiceName: Output<String>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, userEngagementTracking: Output<Either<String, UserEngagementTracking>>? = null)

Properties

Link copied to clipboard
val domainManagement: Output<Either<String, DomainManagement>>? = null

Describes how a Domains resource is being managed.

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

The name of the Domains resource.

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

The name of the EmailService resource.

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

The geo-location where the resource lives

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

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Link copied to clipboard

Describes whether user engagement tracking is enabled or disabled.

Functions

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