AWS v7.11.0 published on Wednesday, Nov 5, 2025 by Pulumi
aws.sesv2.getEmailIdentityMailFromAttributes
Start a Neo task
Explain and create an aws.sesv2.getEmailIdentityMailFromAttributes resource
Data source for managing an AWS SESv2 (Simple Email V2) Email Identity Mail From Attributes.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.sesv2.getEmailIdentity({
emailIdentity: "example.com",
});
const exampleGetEmailIdentityMailFromAttributes = example.then(example => aws.sesv2.getEmailIdentityMailFromAttributes({
emailIdentity: example.emailIdentity,
}));
import pulumi
import pulumi_aws as aws
example = aws.sesv2.get_email_identity(email_identity="example.com")
example_get_email_identity_mail_from_attributes = aws.sesv2.get_email_identity_mail_from_attributes(email_identity=example.email_identity)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/sesv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := sesv2.LookupEmailIdentity(ctx, &sesv2.LookupEmailIdentityArgs{
EmailIdentity: "example.com",
}, nil)
if err != nil {
return err
}
_, err = sesv2.LookupEmailIdentityMailFromAttributes(ctx, &sesv2.LookupEmailIdentityMailFromAttributesArgs{
EmailIdentity: example.EmailIdentity,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.SesV2.GetEmailIdentity.Invoke(new()
{
EmailIdentity = "example.com",
});
var exampleGetEmailIdentityMailFromAttributes = Aws.SesV2.GetEmailIdentityMailFromAttributes.Invoke(new()
{
EmailIdentity = example.Apply(getEmailIdentityResult => getEmailIdentityResult.EmailIdentity),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sesv2.Sesv2Functions;
import com.pulumi.aws.sesv2.inputs.GetEmailIdentityArgs;
import com.pulumi.aws.sesv2.inputs.GetEmailIdentityMailFromAttributesArgs;
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 example = Sesv2Functions.getEmailIdentity(GetEmailIdentityArgs.builder()
.emailIdentity("example.com")
.build());
final var exampleGetEmailIdentityMailFromAttributes = Sesv2Functions.getEmailIdentityMailFromAttributes(GetEmailIdentityMailFromAttributesArgs.builder()
.emailIdentity(example.emailIdentity())
.build());
}
}
variables:
example:
fn::invoke:
function: aws:sesv2:getEmailIdentity
arguments:
emailIdentity: example.com
exampleGetEmailIdentityMailFromAttributes:
fn::invoke:
function: aws:sesv2:getEmailIdentityMailFromAttributes
arguments:
emailIdentity: ${example.emailIdentity}
Using getEmailIdentityMailFromAttributes
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 getEmailIdentityMailFromAttributes(args: GetEmailIdentityMailFromAttributesArgs, opts?: InvokeOptions): Promise<GetEmailIdentityMailFromAttributesResult>
function getEmailIdentityMailFromAttributesOutput(args: GetEmailIdentityMailFromAttributesOutputArgs, opts?: InvokeOptions): Output<GetEmailIdentityMailFromAttributesResult>def get_email_identity_mail_from_attributes(email_identity: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEmailIdentityMailFromAttributesResult
def get_email_identity_mail_from_attributes_output(email_identity: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEmailIdentityMailFromAttributesResult]func LookupEmailIdentityMailFromAttributes(ctx *Context, args *LookupEmailIdentityMailFromAttributesArgs, opts ...InvokeOption) (*LookupEmailIdentityMailFromAttributesResult, error)
func LookupEmailIdentityMailFromAttributesOutput(ctx *Context, args *LookupEmailIdentityMailFromAttributesOutputArgs, opts ...InvokeOption) LookupEmailIdentityMailFromAttributesResultOutput> Note: This function is named LookupEmailIdentityMailFromAttributes in the Go SDK.
public static class GetEmailIdentityMailFromAttributes
{
public static Task<GetEmailIdentityMailFromAttributesResult> InvokeAsync(GetEmailIdentityMailFromAttributesArgs args, InvokeOptions? opts = null)
public static Output<GetEmailIdentityMailFromAttributesResult> Invoke(GetEmailIdentityMailFromAttributesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEmailIdentityMailFromAttributesResult> getEmailIdentityMailFromAttributes(GetEmailIdentityMailFromAttributesArgs args, InvokeOptions options)
public static Output<GetEmailIdentityMailFromAttributesResult> getEmailIdentityMailFromAttributes(GetEmailIdentityMailFromAttributesArgs args, InvokeOptions options)
fn::invoke:
function: aws:sesv2/getEmailIdentityMailFromAttributes:getEmailIdentityMailFromAttributes
arguments:
# arguments dictionaryThe following arguments are supported:
- Email
Identity string - The name of the email identity.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Email
Identity string - The name of the email identity.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- email
Identity String - The name of the email identity.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- email
Identity string - The name of the email identity.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- email_
identity str - The name of the email identity.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- email
Identity String - The name of the email identity.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
getEmailIdentityMailFromAttributes Result
The following output properties are available:
- Behavior
On stringMx Failure - The action to take if the required MX record isn't found when you send an email. Valid values:
USE_DEFAULT_VALUE,REJECT_MESSAGE. - Email
Identity string - Id string
- The provider-assigned unique ID for this managed resource.
- Mail
From stringDomain - The custom MAIL FROM domain that you want the verified identity to use.
- Region string
- Behavior
On stringMx Failure - The action to take if the required MX record isn't found when you send an email. Valid values:
USE_DEFAULT_VALUE,REJECT_MESSAGE. - Email
Identity string - Id string
- The provider-assigned unique ID for this managed resource.
- Mail
From stringDomain - The custom MAIL FROM domain that you want the verified identity to use.
- Region string
- behavior
On StringMx Failure - The action to take if the required MX record isn't found when you send an email. Valid values:
USE_DEFAULT_VALUE,REJECT_MESSAGE. - email
Identity String - id String
- The provider-assigned unique ID for this managed resource.
- mail
From StringDomain - The custom MAIL FROM domain that you want the verified identity to use.
- region String
- behavior
On stringMx Failure - The action to take if the required MX record isn't found when you send an email. Valid values:
USE_DEFAULT_VALUE,REJECT_MESSAGE. - email
Identity string - id string
- The provider-assigned unique ID for this managed resource.
- mail
From stringDomain - The custom MAIL FROM domain that you want the verified identity to use.
- region string
- behavior_
on_ strmx_ failure - The action to take if the required MX record isn't found when you send an email. Valid values:
USE_DEFAULT_VALUE,REJECT_MESSAGE. - email_
identity str - id str
- The provider-assigned unique ID for this managed resource.
- mail_
from_ strdomain - The custom MAIL FROM domain that you want the verified identity to use.
- region str
- behavior
On StringMx Failure - The action to take if the required MX record isn't found when you send an email. Valid values:
USE_DEFAULT_VALUE,REJECT_MESSAGE. - email
Identity String - id String
- The provider-assigned unique ID for this managed resource.
- mail
From StringDomain - The custom MAIL FROM domain that you want the verified identity to use.
- region String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
