1. Packages
  2. Dynatrace
  3. API Docs
  4. Ms365EmailConnection
Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse

dynatrace.Ms365EmailConnection

Explore with Pulumi AI

Create Ms365EmailConnection Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Ms365EmailConnection(name: string, args: Ms365EmailConnectionArgs, opts?: CustomResourceOptions);
@overload
def Ms365EmailConnection(resource_name: str,
                         args: Ms365EmailConnectionArgs,
                         opts: Optional[ResourceOptions] = None)

@overload
def Ms365EmailConnection(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         client_id: Optional[str] = None,
                         from_address: Optional[str] = None,
                         tenant_id: Optional[str] = None,
                         type: Optional[str] = None,
                         client_secret: Optional[str] = None,
                         name: Optional[str] = None)
func NewMs365EmailConnection(ctx *Context, name string, args Ms365EmailConnectionArgs, opts ...ResourceOption) (*Ms365EmailConnection, error)
public Ms365EmailConnection(string name, Ms365EmailConnectionArgs args, CustomResourceOptions? opts = null)
public Ms365EmailConnection(String name, Ms365EmailConnectionArgs args)
public Ms365EmailConnection(String name, Ms365EmailConnectionArgs args, CustomResourceOptions options)
type: dynatrace:Ms365EmailConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. Ms365EmailConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. Ms365EmailConnectionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. Ms365EmailConnectionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. Ms365EmailConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. Ms365EmailConnectionArgs
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 ms365EmailConnectionResource = new Dynatrace.Ms365EmailConnection("ms365EmailConnectionResource", new()
{
    ClientId = "string",
    FromAddress = "string",
    TenantId = "string",
    Type = "string",
    ClientSecret = "string",
    Name = "string",
});
Copy
example, err := dynatrace.NewMs365EmailConnection(ctx, "ms365EmailConnectionResource", &dynatrace.Ms365EmailConnectionArgs{
	ClientId:     pulumi.String("string"),
	FromAddress:  pulumi.String("string"),
	TenantId:     pulumi.String("string"),
	Type:         pulumi.String("string"),
	ClientSecret: pulumi.String("string"),
	Name:         pulumi.String("string"),
})
Copy
var ms365EmailConnectionResource = new Ms365EmailConnection("ms365EmailConnectionResource", Ms365EmailConnectionArgs.builder()
    .clientId("string")
    .fromAddress("string")
    .tenantId("string")
    .type("string")
    .clientSecret("string")
    .name("string")
    .build());
Copy
ms365_email_connection_resource = dynatrace.Ms365EmailConnection("ms365EmailConnectionResource",
    client_id="string",
    from_address="string",
    tenant_id="string",
    type="string",
    client_secret="string",
    name="string")
Copy
const ms365EmailConnectionResource = new dynatrace.Ms365EmailConnection("ms365EmailConnectionResource", {
    clientId: "string",
    fromAddress: "string",
    tenantId: "string",
    type: "string",
    clientSecret: "string",
    name: "string",
});
Copy
type: dynatrace:Ms365EmailConnection
properties:
    clientId: string
    clientSecret: string
    fromAddress: string
    name: string
    tenantId: string
    type: string
Copy

Ms365EmailConnection 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 Ms365EmailConnection resource accepts the following input properties:

ClientId This property is required. string
Application (client) ID of your app registered in Microsoft Azure App registrations
FromAddress This property is required. string
The email address from which the messages will be sent
TenantId This property is required. string
Directory (tenant) ID of your Azure Active Directory
Type This property is required. string
Possible Values: client_secret
ClientSecret string
Client secret of your app registered in Microsoft Azure App registrations
Name string
A unique name for the Microsoft 365 email connection
ClientId This property is required. string
Application (client) ID of your app registered in Microsoft Azure App registrations
FromAddress This property is required. string
The email address from which the messages will be sent
TenantId This property is required. string
Directory (tenant) ID of your Azure Active Directory
Type This property is required. string
Possible Values: client_secret
ClientSecret string
Client secret of your app registered in Microsoft Azure App registrations
Name string
A unique name for the Microsoft 365 email connection
clientId This property is required. String
Application (client) ID of your app registered in Microsoft Azure App registrations
fromAddress This property is required. String
The email address from which the messages will be sent
tenantId This property is required. String
Directory (tenant) ID of your Azure Active Directory
type This property is required. String
Possible Values: client_secret
clientSecret String
Client secret of your app registered in Microsoft Azure App registrations
name String
A unique name for the Microsoft 365 email connection
clientId This property is required. string
Application (client) ID of your app registered in Microsoft Azure App registrations
fromAddress This property is required. string
The email address from which the messages will be sent
tenantId This property is required. string
Directory (tenant) ID of your Azure Active Directory
type This property is required. string
Possible Values: client_secret
clientSecret string
Client secret of your app registered in Microsoft Azure App registrations
name string
A unique name for the Microsoft 365 email connection
client_id This property is required. str
Application (client) ID of your app registered in Microsoft Azure App registrations
from_address This property is required. str
The email address from which the messages will be sent
tenant_id This property is required. str
Directory (tenant) ID of your Azure Active Directory
type This property is required. str
Possible Values: client_secret
client_secret str
Client secret of your app registered in Microsoft Azure App registrations
name str
A unique name for the Microsoft 365 email connection
clientId This property is required. String
Application (client) ID of your app registered in Microsoft Azure App registrations
fromAddress This property is required. String
The email address from which the messages will be sent
tenantId This property is required. String
Directory (tenant) ID of your Azure Active Directory
type This property is required. String
Possible Values: client_secret
clientSecret String
Client secret of your app registered in Microsoft Azure App registrations
name String
A unique name for the Microsoft 365 email connection

Outputs

All input properties are implicitly available as output properties. Additionally, the Ms365EmailConnection resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing Ms365EmailConnection Resource

Get an existing Ms365EmailConnection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: Ms365EmailConnectionState, opts?: CustomResourceOptions): Ms365EmailConnection
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        client_id: Optional[str] = None,
        client_secret: Optional[str] = None,
        from_address: Optional[str] = None,
        name: Optional[str] = None,
        tenant_id: Optional[str] = None,
        type: Optional[str] = None) -> Ms365EmailConnection
func GetMs365EmailConnection(ctx *Context, name string, id IDInput, state *Ms365EmailConnectionState, opts ...ResourceOption) (*Ms365EmailConnection, error)
public static Ms365EmailConnection Get(string name, Input<string> id, Ms365EmailConnectionState? state, CustomResourceOptions? opts = null)
public static Ms365EmailConnection get(String name, Output<String> id, Ms365EmailConnectionState state, CustomResourceOptions options)
resources:  _:    type: dynatrace:Ms365EmailConnection    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ClientId string
Application (client) ID of your app registered in Microsoft Azure App registrations
ClientSecret string
Client secret of your app registered in Microsoft Azure App registrations
FromAddress string
The email address from which the messages will be sent
Name string
A unique name for the Microsoft 365 email connection
TenantId string
Directory (tenant) ID of your Azure Active Directory
Type string
Possible Values: client_secret
ClientId string
Application (client) ID of your app registered in Microsoft Azure App registrations
ClientSecret string
Client secret of your app registered in Microsoft Azure App registrations
FromAddress string
The email address from which the messages will be sent
Name string
A unique name for the Microsoft 365 email connection
TenantId string
Directory (tenant) ID of your Azure Active Directory
Type string
Possible Values: client_secret
clientId String
Application (client) ID of your app registered in Microsoft Azure App registrations
clientSecret String
Client secret of your app registered in Microsoft Azure App registrations
fromAddress String
The email address from which the messages will be sent
name String
A unique name for the Microsoft 365 email connection
tenantId String
Directory (tenant) ID of your Azure Active Directory
type String
Possible Values: client_secret
clientId string
Application (client) ID of your app registered in Microsoft Azure App registrations
clientSecret string
Client secret of your app registered in Microsoft Azure App registrations
fromAddress string
The email address from which the messages will be sent
name string
A unique name for the Microsoft 365 email connection
tenantId string
Directory (tenant) ID of your Azure Active Directory
type string
Possible Values: client_secret
client_id str
Application (client) ID of your app registered in Microsoft Azure App registrations
client_secret str
Client secret of your app registered in Microsoft Azure App registrations
from_address str
The email address from which the messages will be sent
name str
A unique name for the Microsoft 365 email connection
tenant_id str
Directory (tenant) ID of your Azure Active Directory
type str
Possible Values: client_secret
clientId String
Application (client) ID of your app registered in Microsoft Azure App registrations
clientSecret String
Client secret of your app registered in Microsoft Azure App registrations
fromAddress String
The email address from which the messages will be sent
name String
A unique name for the Microsoft 365 email connection
tenantId String
Directory (tenant) ID of your Azure Active Directory
type String
Possible Values: client_secret

Package Details

Repository
dynatrace pulumiverse/pulumi-dynatrace
License
Apache-2.0
Notes
This Pulumi package is based on the dynatrace Terraform Provider.