FusionAuth v6.0.2 published on Sunday, Feb 9, 2025 by Theo Gravity
fusionauth.getEMail
Explore with Pulumi AI
# 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:
- DefaultFrom stringName 
- The default From Name used when sending emails.
- DefaultHtml stringTemplate 
- The default HTML Email Template.
- DefaultSubject string
- The default Subject used when sending emails.
- DefaultText stringTemplate 
- The default Text Email Template.
- Id string
- The Id of the Email Template.
- LocalizedFrom Dictionary<string, string>Names 
- The From Name used when sending emails to users who speak other languages.
- LocalizedHtml Dictionary<string, string>Templates 
- The HTML Email Template used when sending emails to users who speak other languages.
- LocalizedSubjects Dictionary<string, string>
- The Subject used when sending emails to users who speak other languages.
- LocalizedText Dictionary<string, string>Templates 
- The Text Email Template used when sending emails to users who speak other languages.
- Name string
- FromEmail string
- The email address that this email will be sent from.
- DefaultFrom stringName 
- The default From Name used when sending emails.
- DefaultHtml stringTemplate 
- The default HTML Email Template.
- DefaultSubject string
- The default Subject used when sending emails.
- DefaultText stringTemplate 
- The default Text Email Template.
- Id string
- The Id of the Email Template.
- LocalizedFrom map[string]stringNames 
- The From Name used when sending emails to users who speak other languages.
- LocalizedHtml map[string]stringTemplates 
- The HTML Email Template used when sending emails to users who speak other languages.
- LocalizedSubjects map[string]string
- The Subject used when sending emails to users who speak other languages.
- LocalizedText map[string]stringTemplates 
- The Text Email Template used when sending emails to users who speak other languages.
- Name string
- FromEmail string
- The email address that this email will be sent from.
- defaultFrom StringName 
- The default From Name used when sending emails.
- defaultHtml StringTemplate 
- The default HTML Email Template.
- defaultSubject String
- The default Subject used when sending emails.
- defaultText StringTemplate 
- The default Text Email Template.
- id String
- The Id of the Email Template.
- localizedFrom Map<String,String>Names 
- The From Name used when sending emails to users who speak other languages.
- localizedHtml Map<String,String>Templates 
- The HTML Email Template used when sending emails to users who speak other languages.
- localizedSubjects Map<String,String>
- The Subject used when sending emails to users who speak other languages.
- localizedText Map<String,String>Templates 
- The Text Email Template used when sending emails to users who speak other languages.
- name String
- fromEmail String
- The email address that this email will be sent from.
- defaultFrom stringName 
- The default From Name used when sending emails.
- defaultHtml stringTemplate 
- The default HTML Email Template.
- defaultSubject string
- The default Subject used when sending emails.
- defaultText stringTemplate 
- The default Text Email Template.
- id string
- The Id of the Email Template.
- localizedFrom {[key: string]: string}Names 
- The From Name used when sending emails to users who speak other languages.
- localizedHtml {[key: string]: string}Templates 
- The HTML Email Template used when sending emails to users who speak other languages.
- localizedSubjects {[key: string]: string}
- The Subject used when sending emails to users who speak other languages.
- localizedText {[key: string]: string}Templates 
- The Text Email Template used when sending emails to users who speak other languages.
- name string
- fromEmail 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.
- defaultFrom StringName 
- The default From Name used when sending emails.
- defaultHtml StringTemplate 
- The default HTML Email Template.
- defaultSubject String
- The default Subject used when sending emails.
- defaultText StringTemplate 
- The default Text Email Template.
- id String
- The Id of the Email Template.
- localizedFrom Map<String>Names 
- The From Name used when sending emails to users who speak other languages.
- localizedHtml Map<String>Templates 
- The HTML Email Template used when sending emails to users who speak other languages.
- localizedSubjects Map<String>
- The Subject used when sending emails to users who speak other languages.
- localizedText Map<String>Templates 
- The Text Email Template used when sending emails to users who speak other languages.
- name String
- fromEmail 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.