okta.EmailSmtpServer
Explore with Pulumi AI
Create EmailSmtpServer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EmailSmtpServer(name: string, args: EmailSmtpServerArgs, opts?: CustomResourceOptions);
@overload
def EmailSmtpServer(resource_name: str,
args: EmailSmtpServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EmailSmtpServer(resource_name: str,
opts: Optional[ResourceOptions] = None,
alias: Optional[str] = None,
host: Optional[str] = None,
password: Optional[str] = None,
port: Optional[int] = None,
username: Optional[str] = None,
enabled: Optional[bool] = None)
func NewEmailSmtpServer(ctx *Context, name string, args EmailSmtpServerArgs, opts ...ResourceOption) (*EmailSmtpServer, error)
public EmailSmtpServer(string name, EmailSmtpServerArgs args, CustomResourceOptions? opts = null)
public EmailSmtpServer(String name, EmailSmtpServerArgs args)
public EmailSmtpServer(String name, EmailSmtpServerArgs args, CustomResourceOptions options)
type: okta:EmailSmtpServer
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 EmailSmtpServerArgs
- 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 EmailSmtpServerArgs
- 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 EmailSmtpServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EmailSmtpServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EmailSmtpServerArgs
- 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 emailSmtpServerResource = new Okta.EmailSmtpServer("emailSmtpServerResource", new()
{
Alias = "string",
Host = "string",
Password = "string",
Port = 0,
Username = "string",
Enabled = false,
});
example, err := okta.NewEmailSmtpServer(ctx, "emailSmtpServerResource", &okta.EmailSmtpServerArgs{
Alias: pulumi.String("string"),
Host: pulumi.String("string"),
Password: pulumi.String("string"),
Port: pulumi.Int(0),
Username: pulumi.String("string"),
Enabled: pulumi.Bool(false),
})
var emailSmtpServerResource = new EmailSmtpServer("emailSmtpServerResource", EmailSmtpServerArgs.builder()
.alias("string")
.host("string")
.password("string")
.port(0)
.username("string")
.enabled(false)
.build());
email_smtp_server_resource = okta.EmailSmtpServer("emailSmtpServerResource",
alias="string",
host="string",
password="string",
port=0,
username="string",
enabled=False)
const emailSmtpServerResource = new okta.EmailSmtpServer("emailSmtpServerResource", {
alias: "string",
host: "string",
password: "string",
port: 0,
username: "string",
enabled: false,
});
type: okta:EmailSmtpServer
properties:
alias: string
enabled: false
host: string
password: string
port: 0
username: string
EmailSmtpServer 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 EmailSmtpServer resource accepts the following input properties:
- Alias string
- Human-readable name for your SMTP server.
- Host string
- Hostname or IP address of your SMTP server.
- Password string
- User name of the email domain.
- Port int
- Port number of your SMTP server.
- Username string
- Display name of the email domain.
- Enabled bool
- If true, routes all email traffic through your SMTP server.
- Alias string
- Human-readable name for your SMTP server.
- Host string
- Hostname or IP address of your SMTP server.
- Password string
- User name of the email domain.
- Port int
- Port number of your SMTP server.
- Username string
- Display name of the email domain.
- Enabled bool
- If true, routes all email traffic through your SMTP server.
- alias String
- Human-readable name for your SMTP server.
- host String
- Hostname or IP address of your SMTP server.
- password String
- User name of the email domain.
- port Integer
- Port number of your SMTP server.
- username String
- Display name of the email domain.
- enabled Boolean
- If true, routes all email traffic through your SMTP server.
- alias string
- Human-readable name for your SMTP server.
- host string
- Hostname or IP address of your SMTP server.
- password string
- User name of the email domain.
- port number
- Port number of your SMTP server.
- username string
- Display name of the email domain.
- enabled boolean
- If true, routes all email traffic through your SMTP server.
- alias String
- Human-readable name for your SMTP server.
- host String
- Hostname or IP address of your SMTP server.
- password String
- User name of the email domain.
- port Number
- Port number of your SMTP server.
- username String
- Display name of the email domain.
- enabled Boolean
- If true, routes all email traffic through your SMTP server.
Outputs
All input properties are implicitly available as output properties. Additionally, the EmailSmtpServer 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 EmailSmtpServer Resource
Get an existing EmailSmtpServer 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?: EmailSmtpServerState, opts?: CustomResourceOptions): EmailSmtpServer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alias: Optional[str] = None,
enabled: Optional[bool] = None,
host: Optional[str] = None,
password: Optional[str] = None,
port: Optional[int] = None,
username: Optional[str] = None) -> EmailSmtpServer
func GetEmailSmtpServer(ctx *Context, name string, id IDInput, state *EmailSmtpServerState, opts ...ResourceOption) (*EmailSmtpServer, error)
public static EmailSmtpServer Get(string name, Input<string> id, EmailSmtpServerState? state, CustomResourceOptions? opts = null)
public static EmailSmtpServer get(String name, Output<String> id, EmailSmtpServerState state, CustomResourceOptions options)
resources: _: type: okta:EmailSmtpServer get: id: ${id}
- 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.
- Alias string
- Human-readable name for your SMTP server.
- Enabled bool
- If true, routes all email traffic through your SMTP server.
- Host string
- Hostname or IP address of your SMTP server.
- Password string
- User name of the email domain.
- Port int
- Port number of your SMTP server.
- Username string
- Display name of the email domain.
- Alias string
- Human-readable name for your SMTP server.
- Enabled bool
- If true, routes all email traffic through your SMTP server.
- Host string
- Hostname or IP address of your SMTP server.
- Password string
- User name of the email domain.
- Port int
- Port number of your SMTP server.
- Username string
- Display name of the email domain.
- alias String
- Human-readable name for your SMTP server.
- enabled Boolean
- If true, routes all email traffic through your SMTP server.
- host String
- Hostname or IP address of your SMTP server.
- password String
- User name of the email domain.
- port Integer
- Port number of your SMTP server.
- username String
- Display name of the email domain.
- alias string
- Human-readable name for your SMTP server.
- enabled boolean
- If true, routes all email traffic through your SMTP server.
- host string
- Hostname or IP address of your SMTP server.
- password string
- User name of the email domain.
- port number
- Port number of your SMTP server.
- username string
- Display name of the email domain.
- alias String
- Human-readable name for your SMTP server.
- enabled Boolean
- If true, routes all email traffic through your SMTP server.
- host String
- Hostname or IP address of your SMTP server.
- password String
- User name of the email domain.
- port Number
- Port number of your SMTP server.
- username String
- Display name of the email domain.
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
okta
Terraform Provider.