AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

getDomainIdentity

Retrieve the SES domain identity

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.Ses.GetDomainIdentity.InvokeAsync(new Aws.Ses.GetDomainIdentityArgs
        {
            Domain = "example.com",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ses"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ses.LookupDomainIdentity(ctx, &ses.LookupDomainIdentityArgs{
			Domain: "example.com",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(SesFunctions.getDomainIdentity(GetDomainIdentityArgs.builder()
            .domain("example.com")
            .build()));

    }
}
import pulumi
import pulumi_aws as aws

example = aws.ses.get_domain_identity(domain="example.com")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.ses.getDomainIdentity({
    domain: "example.com",
}));
variables:
  example:
    Fn::Invoke:
      Function: aws:ses:getDomainIdentity
      Arguments:
        domain: example.com

Using getDomainIdentity

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 getDomainIdentity(args: GetDomainIdentityArgs, opts?: InvokeOptions): Promise<GetDomainIdentityResult>
function getDomainIdentityOutput(args: GetDomainIdentityOutputArgs, opts?: InvokeOptions): Output<GetDomainIdentityResult>
def get_domain_identity(domain: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDomainIdentityResult
def get_domain_identity_output(domain: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDomainIdentityResult]
func LookupDomainIdentity(ctx *Context, args *LookupDomainIdentityArgs, opts ...InvokeOption) (*LookupDomainIdentityResult, error)
func LookupDomainIdentityOutput(ctx *Context, args *LookupDomainIdentityOutputArgs, opts ...InvokeOption) LookupDomainIdentityResultOutput

> Note: This function is named LookupDomainIdentity in the Go SDK.

public static class GetDomainIdentity 
{
    public static Task<GetDomainIdentityResult> InvokeAsync(GetDomainIdentityArgs args, InvokeOptions? opts = null)
    public static Output<GetDomainIdentityResult> Invoke(GetDomainIdentityInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDomainIdentityResult> getDomainIdentity(GetDomainIdentityArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:ses/getDomainIdentity:getDomainIdentity
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Domain string

The name of the domain

Domain string

The name of the domain

domain String

The name of the domain

domain string

The name of the domain

domain str

The name of the domain

domain String

The name of the domain

getDomainIdentity Result

The following output properties are available:

Arn string

The ARN of the domain identity.

Domain string

The name of the domain

Id string

The provider-assigned unique ID for this managed resource.

VerificationToken string

A code which when added to the domain as a TXT record will signal to SES that the owner of the domain has authorized SES to act on their behalf.

Arn string

The ARN of the domain identity.

Domain string

The name of the domain

Id string

The provider-assigned unique ID for this managed resource.

VerificationToken string

A code which when added to the domain as a TXT record will signal to SES that the owner of the domain has authorized SES to act on their behalf.

arn String

The ARN of the domain identity.

domain String

The name of the domain

id String

The provider-assigned unique ID for this managed resource.

verificationToken String

A code which when added to the domain as a TXT record will signal to SES that the owner of the domain has authorized SES to act on their behalf.

arn string

The ARN of the domain identity.

domain string

The name of the domain

id string

The provider-assigned unique ID for this managed resource.

verificationToken string

A code which when added to the domain as a TXT record will signal to SES that the owner of the domain has authorized SES to act on their behalf.

arn str

The ARN of the domain identity.

domain str

The name of the domain

id str

The provider-assigned unique ID for this managed resource.

verification_token str

A code which when added to the domain as a TXT record will signal to SES that the owner of the domain has authorized SES to act on their behalf.

arn String

The ARN of the domain identity.

domain String

The name of the domain

id String

The provider-assigned unique ID for this managed resource.

verificationToken String

A code which when added to the domain as a TXT record will signal to SES that the owner of the domain has authorized SES to act on their behalf.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.