Viewing docs for FusionAuth v6.0.2
published on Sunday, Feb 9, 2025 by Theo Gravity
published on Sunday, Feb 9, 2025 by Theo Gravity
Viewing docs for FusionAuth v6.0.2
published on Sunday, Feb 9, 2025 by Theo Gravity
published on Sunday, Feb 9, 2025 by Theo Gravity
# Email Resource
This data source is used to fetch information about a specific Email Template.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fusionauth from "@pulumi/fusionauth";
const defaultBreachedPassword = fusionauth.getEMail({
name: "[FusionAuth Default] Breached Password Notification",
});
import pulumi
import pulumi_fusionauth as fusionauth
default_breached_password = fusionauth.get_e_mail(name="[FusionAuth Default] Breached Password Notification")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/theogravity/pulumi-fusionauth/sdk/go/fusionauth"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fusionauth.GetEMail(ctx, &fusionauth.GetEMailArgs{
Name: "[FusionAuth Default] Breached Password Notification",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fusionauth = Pulumi.Fusionauth;
return await Deployment.RunAsync(() =>
{
var defaultBreachedPassword = Fusionauth.GetEMail.Invoke(new()
{
Name = "[FusionAuth Default] Breached Password Notification",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fusionauth.FusionauthFunctions;
import com.pulumi.fusionauth.inputs.GetEMailArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var defaultBreachedPassword = FusionauthFunctions.getEMail(GetEMailArgs.builder()
.name("[FusionAuth Default] Breached Password Notification")
.build());
}
}
variables:
defaultBreachedPassword:
fn::invoke:
function: fusionauth:getEMail
arguments:
name: '[FusionAuth Default] Breached Password Notification'
Using getEMail
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getEMail(args: GetEMailArgs, opts?: InvokeOptions): Promise<GetEMailResult>
function getEMailOutput(args: GetEMailOutputArgs, opts?: InvokeOptions): Output<GetEMailResult>def get_e_mail(from_email: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEMailResult
def get_e_mail_output(from_email: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEMailResult]func GetEMail(ctx *Context, args *GetEMailArgs, opts ...InvokeOption) (*GetEMailResult, error)
func GetEMailOutput(ctx *Context, args *GetEMailOutputArgs, opts ...InvokeOption) GetEMailResultOutput> Note: This function is named GetEMail in the Go SDK.
public static class GetEMail
{
public static Task<GetEMailResult> InvokeAsync(GetEMailArgs args, InvokeOptions? opts = null)
public static Output<GetEMailResult> Invoke(GetEMailInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEMailResult> getEMail(GetEMailArgs args, InvokeOptions options)
public static Output<GetEMailResult> getEMail(GetEMailArgs args, InvokeOptions options)
fn::invoke:
function: fusionauth:index/getEMail:getEMail
arguments:
# arguments dictionaryThe following arguments are supported:
- name str
- The name of the Email Template.
- from_
email str - The email address that this email will be sent from.
getEMail Result
The following output properties are available:
- Default
From stringName - The default From Name used when sending emails.
- Default
Html stringTemplate - The default HTML Email Template.
- Default
Subject string - The default Subject used when sending emails.
- Default
Text stringTemplate - The default Text Email Template.
- Id string
- The Id of the Email Template.
- Localized
From Dictionary<string, string>Names - The From Name used when sending emails to users who speak other languages.
- Localized
Html Dictionary<string, string>Templates - The HTML Email Template used when sending emails to users who speak other languages.
- Localized
Subjects Dictionary<string, string> - The Subject used when sending emails to users who speak other languages.
- Localized
Text Dictionary<string, string>Templates - The Text Email Template used when sending emails to users who speak other languages.
- Name string
- From
Email string - The email address that this email will be sent from.
- Default
From stringName - The default From Name used when sending emails.
- Default
Html stringTemplate - The default HTML Email Template.
- Default
Subject string - The default Subject used when sending emails.
- Default
Text stringTemplate - The default Text Email Template.
- Id string
- The Id of the Email Template.
- Localized
From map[string]stringNames - The From Name used when sending emails to users who speak other languages.
- Localized
Html map[string]stringTemplates - The HTML Email Template used when sending emails to users who speak other languages.
- Localized
Subjects map[string]string - The Subject used when sending emails to users who speak other languages.
- Localized
Text map[string]stringTemplates - The Text Email Template used when sending emails to users who speak other languages.
- Name string
- From
Email string - The email address that this email will be sent from.
- default
From StringName - The default From Name used when sending emails.
- default
Html StringTemplate - The default HTML Email Template.
- default
Subject String - The default Subject used when sending emails.
- default
Text StringTemplate - The default Text Email Template.
- id String
- The Id of the Email Template.
- localized
From Map<String,String>Names - The From Name used when sending emails to users who speak other languages.
- localized
Html Map<String,String>Templates - The HTML Email Template used when sending emails to users who speak other languages.
- localized
Subjects Map<String,String> - The Subject used when sending emails to users who speak other languages.
- localized
Text Map<String,String>Templates - The Text Email Template used when sending emails to users who speak other languages.
- name String
- from
Email String - The email address that this email will be sent from.
- default
From stringName - The default From Name used when sending emails.
- default
Html stringTemplate - The default HTML Email Template.
- default
Subject string - The default Subject used when sending emails.
- default
Text stringTemplate - The default Text Email Template.
- id string
- The Id of the Email Template.
- localized
From {[key: string]: string}Names - The From Name used when sending emails to users who speak other languages.
- localized
Html {[key: string]: string}Templates - The HTML Email Template used when sending emails to users who speak other languages.
- localized
Subjects {[key: string]: string} - The Subject used when sending emails to users who speak other languages.
- localized
Text {[key: string]: string}Templates - The Text Email Template used when sending emails to users who speak other languages.
- name string
- from
Email string - The email address that this email will be sent from.
- default_
from_ strname - The default From Name used when sending emails.
- default_
html_ strtemplate - The default HTML Email Template.
- default_
subject str - The default Subject used when sending emails.
- default_
text_ strtemplate - The default Text Email Template.
- id str
- The Id of the Email Template.
- localized_
from_ Mapping[str, str]names - The From Name used when sending emails to users who speak other languages.
- localized_
html_ Mapping[str, str]templates - The HTML Email Template used when sending emails to users who speak other languages.
- localized_
subjects Mapping[str, str] - The Subject used when sending emails to users who speak other languages.
- localized_
text_ Mapping[str, str]templates - The Text Email Template used when sending emails to users who speak other languages.
- name str
- from_
email str - The email address that this email will be sent from.
- default
From StringName - The default From Name used when sending emails.
- default
Html StringTemplate - The default HTML Email Template.
- default
Subject String - The default Subject used when sending emails.
- default
Text StringTemplate - The default Text Email Template.
- id String
- The Id of the Email Template.
- localized
From Map<String>Names - The From Name used when sending emails to users who speak other languages.
- localized
Html Map<String>Templates - The HTML Email Template used when sending emails to users who speak other languages.
- localized
Subjects Map<String> - The Subject used when sending emails to users who speak other languages.
- localized
Text Map<String>Templates - The Text Email Template used when sending emails to users who speak other languages.
- name String
- from
Email String - The email address that this email will be sent from.
Package Details
- Repository
- fusionauth theogravity/pulumi-fusionauth
- License
- MIT
- Notes
- This Pulumi package is based on the
fusionauthTerraform Provider.
Viewing docs for FusionAuth v6.0.2
published on Sunday, Feb 9, 2025 by Theo Gravity
published on Sunday, Feb 9, 2025 by Theo Gravity
