FusionAuth v5.1.0 published on Tuesday, Oct 22, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: fusionauth:index/getEMail:getEMail
arguments:
# arguments dictionary
The 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, object>Names - The From Name used when sending emails to users who speak other languages.
- Localized
Html Dictionary<string, object>Templates - The HTML Email Template used when sending emails to users who speak other languages.
- Localized
Subjects Dictionary<string, object> - The Subject used when sending emails to users who speak other languages.
- Localized
Text Dictionary<string, object>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]interface{}Names - The From Name used when sending emails to users who speak other languages.
- Localized
Html map[string]interface{}Templates - The HTML Email Template used when sending emails to users who speak other languages.
- Localized
Subjects map[string]interface{} - The Subject used when sending emails to users who speak other languages.
- Localized
Text map[string]interface{}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,Object>Names - The From Name used when sending emails to users who speak other languages.
- localized
Html Map<String,Object>Templates - The HTML Email Template used when sending emails to users who speak other languages.
- localized
Subjects Map<String,Object> - The Subject used when sending emails to users who speak other languages.
- localized
Text Map<String,Object>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]: any}Names - The From Name used when sending emails to users who speak other languages.
- localized
Html {[key: string]: any}Templates - The HTML Email Template used when sending emails to users who speak other languages.
- localized
Subjects {[key: string]: any} - The Subject used when sending emails to users who speak other languages.
- localized
Text {[key: string]: any}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, Any]names - The From Name used when sending emails to users who speak other languages.
- localized_
html_ Mapping[str, Any]templates - The HTML Email Template used when sending emails to users who speak other languages.
- localized_
subjects Mapping[str, Any] - The Subject used when sending emails to users who speak other languages.
- localized_
text_ Mapping[str, Any]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<Any>Names - The From Name used when sending emails to users who speak other languages.
- localized
Html Map<Any>Templates - The HTML Email Template used when sending emails to users who speak other languages.
- localized
Subjects Map<Any> - The Subject used when sending emails to users who speak other languages.
- localized
Text Map<Any>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
fusionauth
Terraform Provider.