1. Packages
  2. AWS
  3. API Docs
  4. ses
  5. getDomainIdentity
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.ses.getDomainIdentity

Explore with Pulumi AI

AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

Retrieve the SES domain identity

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.ses.getDomainIdentity({
    domain: "example.com",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.ses.get_domain_identity(domain="example.com")
Copy
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.LookupDomainIdentity(ctx, &ses.LookupDomainIdentityArgs{
			Domain: "example.com",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.Ses.GetDomainIdentity.Invoke(new()
    {
        Domain = "example.com",
    });

});
Copy
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.GetDomainIdentityArgs;
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.getDomainIdentity(GetDomainIdentityArgs.builder()
            .domain("example.com")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:ses:getDomainIdentity
      arguments:
        domain: example.com
Copy

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>
Copy
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]
Copy
func LookupDomainIdentity(ctx *Context, args *LookupDomainIdentityArgs, opts ...InvokeOption) (*LookupDomainIdentityResult, error)
func LookupDomainIdentityOutput(ctx *Context, args *LookupDomainIdentityOutputArgs, opts ...InvokeOption) LookupDomainIdentityResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetDomainIdentityResult> getDomainIdentity(GetDomainIdentityArgs args, InvokeOptions options)
public static Output<GetDomainIdentityResult> getDomainIdentity(GetDomainIdentityArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:ses/getDomainIdentity:getDomainIdentity
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Domain This property is required. string
Name of the domain
Domain This property is required. string
Name of the domain
domain This property is required. String
Name of the domain
domain This property is required. string
Name of the domain
domain This property is required. str
Name of the domain
domain This property is required. String
Name of the domain

getDomainIdentity Result

The following output properties are available:

Arn string
ARN of the domain identity.
Domain string
Name of the domain
Id string
The provider-assigned unique ID for this managed resource.
VerificationToken string
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
ARN of the domain identity.
Domain string
Name of the domain
Id string
The provider-assigned unique ID for this managed resource.
VerificationToken string
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
ARN of the domain identity.
domain String
Name of the domain
id String
The provider-assigned unique ID for this managed resource.
verificationToken String
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
ARN of the domain identity.
domain string
Name of the domain
id string
The provider-assigned unique ID for this managed resource.
verificationToken string
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
ARN of the domain identity.
domain str
Name of the domain
id str
The provider-assigned unique ID for this managed resource.
verification_token str
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
ARN of the domain identity.
domain String
Name of the domain
id String
The provider-assigned unique ID for this managed resource.
verificationToken String
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
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi