azure-native.communication.SmtpUsername
Explore with Pulumi AI
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 * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const smtpUsername = new azure_native.communication.SmtpUsername("smtpUsername", {
communicationServiceName: "contosoACSService",
entraApplicationId: "aaaa1111-bbbb-2222-3333-aaaa111122bb",
resourceGroupName: "contosoResourceGroup",
smtpUsername: "smtpusername1",
tenantId: "aaaa1111-bbbb-2222-3333-aaaa11112222",
username: "newuser1@contoso.com",
});
import pulumi
import pulumi_azure_native as azure_native
smtp_username = azure_native.communication.SmtpUsername("smtpUsername",
communication_service_name="contosoACSService",
entra_application_id="aaaa1111-bbbb-2222-3333-aaaa111122bb",
resource_group_name="contosoResourceGroup",
smtp_username="smtpusername1",
tenant_id="aaaa1111-bbbb-2222-3333-aaaa11112222",
username="newuser1@contoso.com")
resources:
smtpUsername:
type: azure-native:communication:SmtpUsername
properties:
communicationServiceName: contosoACSService
entraApplicationId: aaaa1111-bbbb-2222-3333-aaaa111122bb
resourceGroupName: contosoResourceGroup
smtpUsername: smtpusername1
tenantId: aaaa1111-bbbb-2222-3333-aaaa11112222
username: newuser1@contoso.com
Create SmtpUsername Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SmtpUsername(name: string, args: SmtpUsernameArgs, opts?: CustomResourceOptions);
@overload
def SmtpUsername(resource_name: str,
args: SmtpUsernameArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SmtpUsername(resource_name: str,
opts: Optional[ResourceOptions] = None,
communication_service_name: Optional[str] = None,
entra_application_id: Optional[str] = None,
resource_group_name: Optional[str] = None,
tenant_id: Optional[str] = None,
username: Optional[str] = None,
smtp_username: Optional[str] = None)
func NewSmtpUsername(ctx *Context, name string, args SmtpUsernameArgs, opts ...ResourceOption) (*SmtpUsername, error)
public SmtpUsername(string name, SmtpUsernameArgs args, CustomResourceOptions? opts = null)
public SmtpUsername(String name, SmtpUsernameArgs args)
public SmtpUsername(String name, SmtpUsernameArgs args, CustomResourceOptions options)
type: azure-native:communication:SmtpUsername
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SmtpUsernameArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SmtpUsernameArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SmtpUsernameArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SmtpUsernameArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SmtpUsernameArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var smtpUsernameResource = new AzureNative.Communication.SmtpUsername("smtpUsernameResource", new()
{
CommunicationServiceName = "string",
EntraApplicationId = "string",
ResourceGroupName = "string",
TenantId = "string",
Username = "string",
SmtpUsername = "string",
});
example, err := communication.NewSmtpUsername(ctx, "smtpUsernameResource", &communication.SmtpUsernameArgs{
CommunicationServiceName: pulumi.String("string"),
EntraApplicationId: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
TenantId: pulumi.String("string"),
Username: pulumi.String("string"),
SmtpUsername: pulumi.String("string"),
})
var smtpUsernameResource = new SmtpUsername("smtpUsernameResource", SmtpUsernameArgs.builder()
.communicationServiceName("string")
.entraApplicationId("string")
.resourceGroupName("string")
.tenantId("string")
.username("string")
.smtpUsername("string")
.build());
smtp_username_resource = azure_native.communication.SmtpUsername("smtpUsernameResource",
communication_service_name="string",
entra_application_id="string",
resource_group_name="string",
tenant_id="string",
username="string",
smtp_username="string")
const smtpUsernameResource = new azure_native.communication.SmtpUsername("smtpUsernameResource", {
communicationServiceName: "string",
entraApplicationId: "string",
resourceGroupName: "string",
tenantId: "string",
username: "string",
smtpUsername: "string",
});
type: azure-native:communication:SmtpUsername
properties:
communicationServiceName: string
entraApplicationId: string
resourceGroupName: string
smtpUsername: string
tenantId: string
username: string
SmtpUsername Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SmtpUsername resource accepts the following input properties:
- Communication
Service stringName - The name of the CommunicationService resource.
- Entra
Application stringId - The application Id for the linked Entra Application.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Tenant
Id string - The tenant of the linked Entra Application.
- Username string
- The SMTP username. Could be free form or in the email address format.
- Smtp
Username string - The name of the SmtpUsernameResource.
- Communication
Service stringName - The name of the CommunicationService resource.
- Entra
Application stringId - The application Id for the linked Entra Application.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Tenant
Id string - The tenant of the linked Entra Application.
- Username string
- The SMTP username. Could be free form or in the email address format.
- Smtp
Username string - The name of the SmtpUsernameResource.
- communication
Service StringName - The name of the CommunicationService resource.
- entra
Application StringId - The application Id for the linked Entra Application.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- tenant
Id String - The tenant of the linked Entra Application.
- username String
- The SMTP username. Could be free form or in the email address format.
- smtp
Username String - The name of the SmtpUsernameResource.
- communication
Service stringName - The name of the CommunicationService resource.
- entra
Application stringId - The application Id for the linked Entra Application.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- tenant
Id string - The tenant of the linked Entra Application.
- username string
- The SMTP username. Could be free form or in the email address format.
- smtp
Username string - The name of the SmtpUsernameResource.
- communication_
service_ strname - The name of the CommunicationService resource.
- entra_
application_ strid - The application Id for the linked Entra Application.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- tenant_
id str - The tenant of the linked Entra Application.
- username str
- The SMTP username. Could be free form or in the email address format.
- smtp_
username str - The name of the SmtpUsernameResource.
- communication
Service StringName - The name of the CommunicationService resource.
- entra
Application StringId - The application Id for the linked Entra Application.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- tenant
Id String - The tenant of the linked Entra Application.
- username String
- The SMTP username. Could be free form or in the email address format.
- smtp
Username String - The name of the SmtpUsernameResource.
Outputs
All input properties are implicitly available as output properties. Additionally, the SmtpUsername resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Communication. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0