Sender Username
A class representing a SenderUsername resource. Uses Azure REST API version 2023-03-31. Other available API versions: 2023-04-01, 2023-04-01-preview, 2023-06-01-preview, 2024-09-01-preview.
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Properties
Link copied to clipboard
The location where the SenderUsername resource data is stored at rest.
Link copied to clipboard
The display name for the senderUsername.
Link copied to clipboard
Provisioning state of the resource. Unknown is the default state for Communication Services.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.