SmtpUsernameArgs

data class SmtpUsernameArgs(val communicationServiceName: Output<String>? = null, val entraApplicationId: Output<String>? = null, val resourceGroupName: Output<String>? = null, val smtpUsername: Output<String>? = null, val tenantId: Output<String>? = null, val username: Output<String>? = null) : ConvertibleToJava<SmtpUsernameArgs>

The object describing the smtp username resource. Uses Azure REST API version 2024-09-01-preview.

Example Usage

CreateOrUpdate SmtpUsername resource

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var smtpUsername = new AzureNative.Communication.SmtpUsername("smtpUsername", new()
{
CommunicationServiceName = "contosoACSService",
EntraApplicationId = "aaaa1111-bbbb-2222-3333-aaaa111122bb",
ResourceGroupName = "contosoResourceGroup",
SmtpUsername = "smtpusername1",
TenantId = "aaaa1111-bbbb-2222-3333-aaaa11112222",
Username = "newuser1@contoso.com",
});
});
package main
import (
communication "github.com/pulumi/pulumi-azure-native-sdk/communication/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := communication.NewSmtpUsername(ctx, "smtpUsername", &communication.SmtpUsernameArgs{
CommunicationServiceName: pulumi.String("contosoACSService"),
EntraApplicationId: pulumi.String("aaaa1111-bbbb-2222-3333-aaaa111122bb"),
ResourceGroupName: pulumi.String("contosoResourceGroup"),
SmtpUsername: pulumi.String("smtpusername1"),
TenantId: pulumi.String("aaaa1111-bbbb-2222-3333-aaaa11112222"),
Username: pulumi.String("newuser1@contoso.com"),
})
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.SmtpUsername;
import com.pulumi.azurenative.communication.SmtpUsernameArgs;
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 smtpUsername = new SmtpUsername("smtpUsername", SmtpUsernameArgs.builder()
.communicationServiceName("contosoACSService")
.entraApplicationId("aaaa1111-bbbb-2222-3333-aaaa111122bb")
.resourceGroupName("contosoResourceGroup")
.smtpUsername("smtpusername1")
.tenantId("aaaa1111-bbbb-2222-3333-aaaa11112222")
.username("newuser1@contoso.com")
.build());
}
}

Import

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

$ pulumi import azure-native:communication:SmtpUsername smtpusername1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/smtpUsernames/{smtpUsername}

Constructors

Link copied to clipboard
constructor(communicationServiceName: Output<String>? = null, entraApplicationId: Output<String>? = null, resourceGroupName: Output<String>? = null, smtpUsername: Output<String>? = null, tenantId: Output<String>? = null, username: Output<String>? = null)

Properties

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

The name of the CommunicationService resource.

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

The application Id for the linked Entra Application.

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

The name of the SmtpUsernameResource.

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

The tenant of the linked Entra Application.

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

The SMTP username. Could be free form or in the email address format.

Functions

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