Sender Username Args
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
Properties
The display name for the senderUsername.
The name of the Domains resource.
The name of the EmailService resource.
The name of the resource group. The name is case insensitive.
The valid sender Username.