SenderUsernameArgs

data class SenderUsernameArgs(val displayName: Output<String>? = null, val domainName: Output<String>? = null, val emailServiceName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val senderUsername: Output<String>? = null, val username: Output<String>? = null) : ConvertibleToJava<SenderUsernameArgs>

A class representing a SenderUsername 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.

Example Usage

Create or update SenderUsernames resource

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var senderUsername = new AzureNative.Communication.SenderUsername("senderUsername", new()
{
DisplayName = "Contoso News Alerts",
DomainName = "contoso.com",
EmailServiceName = "contosoEmailService",
ResourceGroupName = "contosoResourceGroup",
SenderUsername = "contosoNewsAlerts",
Username = "contosoNewsAlerts",
});
});
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.NewSenderUsername(ctx, "senderUsername", &communication.SenderUsernameArgs{
DisplayName: pulumi.String("Contoso News Alerts"),
DomainName: pulumi.String("contoso.com"),
EmailServiceName: pulumi.String("contosoEmailService"),
ResourceGroupName: pulumi.String("contosoResourceGroup"),
SenderUsername: pulumi.String("contosoNewsAlerts"),
Username: pulumi.String("contosoNewsAlerts"),
})
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.SenderUsername;
import com.pulumi.azurenative.communication.SenderUsernameArgs;
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 senderUsername = new SenderUsername("senderUsername", SenderUsernameArgs.builder()
.displayName("Contoso News Alerts")
.domainName("contoso.com")
.emailServiceName("contosoEmailService")
.resourceGroupName("contosoResourceGroup")
.senderUsername("contosoNewsAlerts")
.username("contosoNewsAlerts")
.build());
}
}

Import

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

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

Constructors

Link copied to clipboard
constructor(displayName: Output<String>? = null, domainName: Output<String>? = null, emailServiceName: Output<String>? = null, resourceGroupName: Output<String>? = null, senderUsername: Output<String>? = null, username: Output<String>? = null)

Properties

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

The display name for the senderUsername.

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

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

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

The valid sender Username.

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

A sender senderUsername to be used when sending emails.

Functions

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