Class Email
Creates an Okta Email Template.
This resource allows you to create and configure an Okta Email Template.
Example Usage
using Pulumi;
using Okta = Pulumi.Okta;
class MyStack : Stack
{
public MyStack()
{
var example = new Okta.Template.Email("example", new Okta.Template.EmailArgs
{
Translations =
{
new Okta.Template.Inputs.EmailTranslationArgs
{
Language = "en",
Subject = "Stuff",
Template = $"Hi {user.FirstName},<br/><br/>Blah blah {resetPasswordLink}",
},
new Okta.Template.Inputs.EmailTranslationArgs
{
Language = "es",
Subject = "Cosas",
Template = $"Hola {user.FirstName},<br/><br/>Puedo ir al bano {resetPasswordLink}",
},
},
Type = "email.forgotPassword",
});
}
}
Inherited Members
Namespace: Pulumi.Okta.Template
Assembly: Pulumi.Okta.dll
Syntax
public class Email : CustomResource
Constructors
View SourceEmail(String, EmailArgs, CustomResourceOptions)
Create a Email resource with the given unique name, arguments, and options.
Declaration
public Email(string name, EmailArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| EmailArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDefaultLanguage
The default language, by default is set to "en".
Declaration
public Output<string> DefaultLanguage { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Translations
Set of translations for particular template.
Declaration
public Output<ImmutableArray<EmailTranslation>> Translations { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<EmailTranslation>> |
Type
Email template type
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, EmailState, CustomResourceOptions)
Get an existing Email resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Email Get(string name, Input<string> id, EmailState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| EmailState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|