Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse
dynatrace.ManagedSmtp
Explore with Pulumi AI
Create ManagedSmtp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagedSmtp(name: string, args: ManagedSmtpArgs, opts?: CustomResourceOptions);
@overload
def ManagedSmtp(resource_name: str,
args: ManagedSmtpArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ManagedSmtp(resource_name: str,
opts: Optional[ResourceOptions] = None,
host_name: Optional[str] = None,
password: Optional[str] = None,
sender_email_address: Optional[str] = None,
user_name: Optional[str] = None,
allow_fallback_via_mission_control: Optional[bool] = None,
connection_security: Optional[str] = None,
is_password_configured: Optional[bool] = None,
port: Optional[int] = None,
use_smtp_server: Optional[bool] = None)
func NewManagedSmtp(ctx *Context, name string, args ManagedSmtpArgs, opts ...ResourceOption) (*ManagedSmtp, error)
public ManagedSmtp(string name, ManagedSmtpArgs args, CustomResourceOptions? opts = null)
public ManagedSmtp(String name, ManagedSmtpArgs args)
public ManagedSmtp(String name, ManagedSmtpArgs args, CustomResourceOptions options)
type: dynatrace:ManagedSmtp
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 ManagedSmtpArgs
- 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 ManagedSmtpArgs
- 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 ManagedSmtpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagedSmtpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagedSmtpArgs
- 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 managedSmtpResource = new Dynatrace.ManagedSmtp("managedSmtpResource", new()
{
HostName = "string",
Password = "string",
SenderEmailAddress = "string",
UserName = "string",
AllowFallbackViaMissionControl = false,
ConnectionSecurity = "string",
IsPasswordConfigured = false,
Port = 0,
UseSmtpServer = false,
});
example, err := dynatrace.NewManagedSmtp(ctx, "managedSmtpResource", &dynatrace.ManagedSmtpArgs{
HostName: pulumi.String("string"),
Password: pulumi.String("string"),
SenderEmailAddress: pulumi.String("string"),
UserName: pulumi.String("string"),
AllowFallbackViaMissionControl: pulumi.Bool(false),
ConnectionSecurity: pulumi.String("string"),
IsPasswordConfigured: pulumi.Bool(false),
Port: pulumi.Int(0),
UseSmtpServer: pulumi.Bool(false),
})
var managedSmtpResource = new ManagedSmtp("managedSmtpResource", ManagedSmtpArgs.builder()
.hostName("string")
.password("string")
.senderEmailAddress("string")
.userName("string")
.allowFallbackViaMissionControl(false)
.connectionSecurity("string")
.isPasswordConfigured(false)
.port(0)
.useSmtpServer(false)
.build());
managed_smtp_resource = dynatrace.ManagedSmtp("managedSmtpResource",
host_name="string",
password="string",
sender_email_address="string",
user_name="string",
allow_fallback_via_mission_control=False,
connection_security="string",
is_password_configured=False,
port=0,
use_smtp_server=False)
const managedSmtpResource = new dynatrace.ManagedSmtp("managedSmtpResource", {
hostName: "string",
password: "string",
senderEmailAddress: "string",
userName: "string",
allowFallbackViaMissionControl: false,
connectionSecurity: "string",
isPasswordConfigured: false,
port: 0,
useSmtpServer: false,
});
type: dynatrace:ManagedSmtp
properties:
allowFallbackViaMissionControl: false
connectionSecurity: string
hostName: string
isPasswordConfigured: false
password: string
port: 0
senderEmailAddress: string
useSmtpServer: false
userName: string
ManagedSmtp Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ManagedSmtp resource accepts the following input properties:
- Host
Name string - Host Name
- Password string
- Password
- Sender
Email stringAddress - Sender email address
- User
Name string - User Name
- Allow
Fallback boolVia Mission Control - If true, we will send e-mails via Mission Control in case of problems with SMTP server.
- Connection
Security string - Connection security, possible values:
NO_ENCRYPTION
,OPTIONAL_STARTTLS
,REQUIRE_STARTTLS
,TLS
. Default:NO_ENCRYPTION
- Is
Password boolConfigured - If true, a password has been configured. Default:
false
. - Port int
- Integer value of port. Default:
25
- Use
Smtp boolServer - If true, we will send e-mails via SMTP server.
- Host
Name string - Host Name
- Password string
- Password
- Sender
Email stringAddress - Sender email address
- User
Name string - User Name
- Allow
Fallback boolVia Mission Control - If true, we will send e-mails via Mission Control in case of problems with SMTP server.
- Connection
Security string - Connection security, possible values:
NO_ENCRYPTION
,OPTIONAL_STARTTLS
,REQUIRE_STARTTLS
,TLS
. Default:NO_ENCRYPTION
- Is
Password boolConfigured - If true, a password has been configured. Default:
false
. - Port int
- Integer value of port. Default:
25
- Use
Smtp boolServer - If true, we will send e-mails via SMTP server.
- host
Name String - Host Name
- password String
- Password
- sender
Email StringAddress - Sender email address
- user
Name String - User Name
- allow
Fallback BooleanVia Mission Control - If true, we will send e-mails via Mission Control in case of problems with SMTP server.
- connection
Security String - Connection security, possible values:
NO_ENCRYPTION
,OPTIONAL_STARTTLS
,REQUIRE_STARTTLS
,TLS
. Default:NO_ENCRYPTION
- is
Password BooleanConfigured - If true, a password has been configured. Default:
false
. - port Integer
- Integer value of port. Default:
25
- use
Smtp BooleanServer - If true, we will send e-mails via SMTP server.
- host
Name string - Host Name
- password string
- Password
- sender
Email stringAddress - Sender email address
- user
Name string - User Name
- allow
Fallback booleanVia Mission Control - If true, we will send e-mails via Mission Control in case of problems with SMTP server.
- connection
Security string - Connection security, possible values:
NO_ENCRYPTION
,OPTIONAL_STARTTLS
,REQUIRE_STARTTLS
,TLS
. Default:NO_ENCRYPTION
- is
Password booleanConfigured - If true, a password has been configured. Default:
false
. - port number
- Integer value of port. Default:
25
- use
Smtp booleanServer - If true, we will send e-mails via SMTP server.
- host_
name str - Host Name
- password str
- Password
- sender_
email_ straddress - Sender email address
- user_
name str - User Name
- allow_
fallback_ boolvia_ mission_ control - If true, we will send e-mails via Mission Control in case of problems with SMTP server.
- connection_
security str - Connection security, possible values:
NO_ENCRYPTION
,OPTIONAL_STARTTLS
,REQUIRE_STARTTLS
,TLS
. Default:NO_ENCRYPTION
- is_
password_ boolconfigured - If true, a password has been configured. Default:
false
. - port int
- Integer value of port. Default:
25
- use_
smtp_ boolserver - If true, we will send e-mails via SMTP server.
- host
Name String - Host Name
- password String
- Password
- sender
Email StringAddress - Sender email address
- user
Name String - User Name
- allow
Fallback BooleanVia Mission Control - If true, we will send e-mails via Mission Control in case of problems with SMTP server.
- connection
Security String - Connection security, possible values:
NO_ENCRYPTION
,OPTIONAL_STARTTLS
,REQUIRE_STARTTLS
,TLS
. Default:NO_ENCRYPTION
- is
Password BooleanConfigured - If true, a password has been configured. Default:
false
. - port Number
- Integer value of port. Default:
25
- use
Smtp BooleanServer - If true, we will send e-mails via SMTP server.
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagedSmtp 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 ManagedSmtp Resource
Get an existing ManagedSmtp 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?: ManagedSmtpState, opts?: CustomResourceOptions): ManagedSmtp
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_fallback_via_mission_control: Optional[bool] = None,
connection_security: Optional[str] = None,
host_name: Optional[str] = None,
is_password_configured: Optional[bool] = None,
password: Optional[str] = None,
port: Optional[int] = None,
sender_email_address: Optional[str] = None,
use_smtp_server: Optional[bool] = None,
user_name: Optional[str] = None) -> ManagedSmtp
func GetManagedSmtp(ctx *Context, name string, id IDInput, state *ManagedSmtpState, opts ...ResourceOption) (*ManagedSmtp, error)
public static ManagedSmtp Get(string name, Input<string> id, ManagedSmtpState? state, CustomResourceOptions? opts = null)
public static ManagedSmtp get(String name, Output<String> id, ManagedSmtpState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Allow
Fallback boolVia Mission Control - If true, we will send e-mails via Mission Control in case of problems with SMTP server.
- Connection
Security string - Connection security, possible values:
NO_ENCRYPTION
,OPTIONAL_STARTTLS
,REQUIRE_STARTTLS
,TLS
. Default:NO_ENCRYPTION
- Host
Name string - Host Name
- Is
Password boolConfigured - If true, a password has been configured. Default:
false
. - Password string
- Password
- Port int
- Integer value of port. Default:
25
- Sender
Email stringAddress - Sender email address
- Use
Smtp boolServer - If true, we will send e-mails via SMTP server.
- User
Name string - User Name
- Allow
Fallback boolVia Mission Control - If true, we will send e-mails via Mission Control in case of problems with SMTP server.
- Connection
Security string - Connection security, possible values:
NO_ENCRYPTION
,OPTIONAL_STARTTLS
,REQUIRE_STARTTLS
,TLS
. Default:NO_ENCRYPTION
- Host
Name string - Host Name
- Is
Password boolConfigured - If true, a password has been configured. Default:
false
. - Password string
- Password
- Port int
- Integer value of port. Default:
25
- Sender
Email stringAddress - Sender email address
- Use
Smtp boolServer - If true, we will send e-mails via SMTP server.
- User
Name string - User Name
- allow
Fallback BooleanVia Mission Control - If true, we will send e-mails via Mission Control in case of problems with SMTP server.
- connection
Security String - Connection security, possible values:
NO_ENCRYPTION
,OPTIONAL_STARTTLS
,REQUIRE_STARTTLS
,TLS
. Default:NO_ENCRYPTION
- host
Name String - Host Name
- is
Password BooleanConfigured - If true, a password has been configured. Default:
false
. - password String
- Password
- port Integer
- Integer value of port. Default:
25
- sender
Email StringAddress - Sender email address
- use
Smtp BooleanServer - If true, we will send e-mails via SMTP server.
- user
Name String - User Name
- allow
Fallback booleanVia Mission Control - If true, we will send e-mails via Mission Control in case of problems with SMTP server.
- connection
Security string - Connection security, possible values:
NO_ENCRYPTION
,OPTIONAL_STARTTLS
,REQUIRE_STARTTLS
,TLS
. Default:NO_ENCRYPTION
- host
Name string - Host Name
- is
Password booleanConfigured - If true, a password has been configured. Default:
false
. - password string
- Password
- port number
- Integer value of port. Default:
25
- sender
Email stringAddress - Sender email address
- use
Smtp booleanServer - If true, we will send e-mails via SMTP server.
- user
Name string - User Name
- allow_
fallback_ boolvia_ mission_ control - If true, we will send e-mails via Mission Control in case of problems with SMTP server.
- connection_
security str - Connection security, possible values:
NO_ENCRYPTION
,OPTIONAL_STARTTLS
,REQUIRE_STARTTLS
,TLS
. Default:NO_ENCRYPTION
- host_
name str - Host Name
- is_
password_ boolconfigured - If true, a password has been configured. Default:
false
. - password str
- Password
- port int
- Integer value of port. Default:
25
- sender_
email_ straddress - Sender email address
- use_
smtp_ boolserver - If true, we will send e-mails via SMTP server.
- user_
name str - User Name
- allow
Fallback BooleanVia Mission Control - If true, we will send e-mails via Mission Control in case of problems with SMTP server.
- connection
Security String - Connection security, possible values:
NO_ENCRYPTION
,OPTIONAL_STARTTLS
,REQUIRE_STARTTLS
,TLS
. Default:NO_ENCRYPTION
- host
Name String - Host Name
- is
Password BooleanConfigured - If true, a password has been configured. Default:
false
. - password String
- Password
- port Number
- Integer value of port. Default:
25
- sender
Email StringAddress - Sender email address
- use
Smtp BooleanServer - If true, we will send e-mails via SMTP server.
- user
Name String - User Name
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.