published on Tuesday, Mar 24, 2026 by lokkju
ImprovMXpublished on Tuesday, Mar 24, 2026 by lokkju
Manages an ImprovMX SMTP credential for sending email.
Create SmtpCredential Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SmtpCredential(name: string, args: SmtpCredentialArgs, opts?: CustomResourceOptions);@overload
def SmtpCredential(resource_name: str,
args: SmtpCredentialArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SmtpCredential(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
password: Optional[str] = None,
username: Optional[str] = None)func NewSmtpCredential(ctx *Context, name string, args SmtpCredentialArgs, opts ...ResourceOption) (*SmtpCredential, error)public SmtpCredential(string name, SmtpCredentialArgs args, CustomResourceOptions? opts = null)
public SmtpCredential(String name, SmtpCredentialArgs args)
public SmtpCredential(String name, SmtpCredentialArgs args, CustomResourceOptions options)
type: improvmx:SmtpCredential
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "improvmx_smtp_credential" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args SmtpCredentialArgs
- 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 SmtpCredentialArgs
- 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 SmtpCredentialArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SmtpCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SmtpCredentialArgs
- 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 smtpCredentialResource = new Improvmx.SmtpCredential("smtpCredentialResource", new()
{
DomainName = "string",
Password = "string",
Username = "string",
});
example, err := improvmx.NewSmtpCredential(ctx, "smtpCredentialResource", &improvmx.SmtpCredentialArgs{
Domain: pulumi.String("string"),
Password: pulumi.String("string"),
Username: pulumi.String("string"),
})
resource "improvmx_smtp_credential" "smtpCredentialResource" {
lifecycle {
create_before_destroy = true
}
domain = "string"
password = "string"
username = "string"
}
var smtpCredentialResource = new SmtpCredential("smtpCredentialResource", SmtpCredentialArgs.builder()
.domain("string")
.password("string")
.username("string")
.build());
smtp_credential_resource = improvmx.SmtpCredential("smtpCredentialResource",
domain="string",
password="string",
username="string")
const smtpCredentialResource = new improvmx.SmtpCredential("smtpCredentialResource", {
domain: "string",
password: "string",
username: "string",
});
type: improvmx:SmtpCredential
properties:
domain: string
password: string
username: string
SmtpCredential 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 SmtpCredential resource accepts the following input properties:
- Domain
Name string - The domain this SMTP credential belongs to.
- Password string
- The SMTP password.
- Username string
- The SMTP username.
Outputs
All input properties are implicitly available as output properties. Additionally, the SmtpCredential resource produces the following output properties:
Look up Existing SmtpCredential Resource
Get an existing SmtpCredential 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>, opts?: CustomResourceOptions): SmtpCredential@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> SmtpCredentialfunc GetSmtpCredential(ctx *Context, name string, id IDInput, state *SmtpCredentialState, opts ...ResourceOption) (*SmtpCredential, error)public static SmtpCredential Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static SmtpCredential get(String name, Output<String> id, CustomResourceOptions options)resources: existingSmtpCredential: type: improvmx:SmtpCredential get: id: ${id}import {
to = improvmx_smtp_credential.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state SmtpCredentialState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Package Details
- Repository
- improvmx lokkju/pulumi-improvmx
- License
ImprovMXpublished on Tuesday, Mar 24, 2026 by lokkju