SmtpUsername

class SmtpUsername : KotlinCustomResource

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}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard

The application Id for the linked Entra Application.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val tenantId: Output<String>

The tenant of the linked Entra Application.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val username: Output<String>

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