AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi
aws.ses.getEmailIdentity
Explore with Pulumi AI
Retrieve the active SES email identity
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.ses.getEmailIdentity({
email: "awesome@example.com",
});
import pulumi
import pulumi_aws as aws
example = aws.ses.get_email_identity(email="awesome@example.com")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ses"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ses.LookupEmailIdentity(ctx, &ses.LookupEmailIdentityArgs{
Email: "awesome@example.com",
}, 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.Ses.GetEmailIdentity.Invoke(new()
{
Email = "awesome@example.com",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ses.SesFunctions;
import com.pulumi.aws.ses.inputs.GetEmailIdentityArgs;
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 = SesFunctions.getEmailIdentity(GetEmailIdentityArgs.builder()
.email("awesome@example.com")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:ses:getEmailIdentity
Arguments:
email: awesome@example.com
Using getEmailIdentity
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 getEmailIdentity(args: GetEmailIdentityArgs, opts?: InvokeOptions): Promise<GetEmailIdentityResult>
function getEmailIdentityOutput(args: GetEmailIdentityOutputArgs, opts?: InvokeOptions): Output<GetEmailIdentityResult>
def get_email_identity(email: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEmailIdentityResult
def get_email_identity_output(email: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEmailIdentityResult]
func LookupEmailIdentity(ctx *Context, args *LookupEmailIdentityArgs, opts ...InvokeOption) (*LookupEmailIdentityResult, error)
func LookupEmailIdentityOutput(ctx *Context, args *LookupEmailIdentityOutputArgs, opts ...InvokeOption) LookupEmailIdentityResultOutput
> Note: This function is named LookupEmailIdentity
in the Go SDK.
public static class GetEmailIdentity
{
public static Task<GetEmailIdentityResult> InvokeAsync(GetEmailIdentityArgs args, InvokeOptions? opts = null)
public static Output<GetEmailIdentityResult> Invoke(GetEmailIdentityInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEmailIdentityResult> getEmailIdentity(GetEmailIdentityArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:ses/getEmailIdentity:getEmailIdentity
arguments:
# arguments dictionary
The following arguments are supported:
- Email string
- Email identity.
- Email string
- Email identity.
- email String
- Email identity.
- email string
- Email identity.
- email str
- Email identity.
- email String
- Email identity.
getEmailIdentity Result
The following output properties are available:
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.