AWS v6.77.1 published on Friday, Apr 18, 2025 by Pulumi
aws.datazone.getDomain
Explore with Pulumi AI
Data source for managing an AWS DataZone Domain.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.datazone.getDomain({
    name: "example_domain",
});
import pulumi
import pulumi_aws as aws
example = aws.datazone.get_domain(name="example_domain")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/datazone"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datazone.LookupDomain(ctx, &datazone.LookupDomainArgs{
			Name: pulumi.StringRef("example_domain"),
		}, 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.DataZone.GetDomain.Invoke(new()
    {
        Name = "example_domain",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.datazone.DatazoneFunctions;
import com.pulumi.aws.datazone.inputs.GetDomainArgs;
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 = DatazoneFunctions.getDomain(GetDomainArgs.builder()
            .name("example_domain")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:datazone:getDomain
      arguments:
        name: example_domain
Using getDomain
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 getDomain(args: GetDomainArgs, opts?: InvokeOptions): Promise<GetDomainResult>
function getDomainOutput(args: GetDomainOutputArgs, opts?: InvokeOptions): Output<GetDomainResult>def get_domain(id: Optional[str] = None,
               name: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetDomainResult
def get_domain_output(id: Optional[pulumi.Input[str]] = None,
               name: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetDomainResult]func LookupDomain(ctx *Context, args *LookupDomainArgs, opts ...InvokeOption) (*LookupDomainResult, error)
func LookupDomainOutput(ctx *Context, args *LookupDomainOutputArgs, opts ...InvokeOption) LookupDomainResultOutput> Note: This function is named LookupDomain in the Go SDK.
public static class GetDomain 
{
    public static Task<GetDomainResult> InvokeAsync(GetDomainArgs args, InvokeOptions? opts = null)
    public static Output<GetDomainResult> Invoke(GetDomainInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDomainResult> getDomain(GetDomainArgs args, InvokeOptions options)
public static Output<GetDomainResult> getDomain(GetDomainArgs args, InvokeOptions options)
fn::invoke:
  function: aws:datazone/getDomain:getDomain
  arguments:
    # arguments dictionaryThe following arguments are supported:
getDomain Result
The following output properties are available:
- Arn string
 - ARN of the Domain.
 - Created
At string - The date and time the Domain was created.
 - Description string
 - Description of the Domain.
 - Domain
Version string - Version of the Domain.
 - Id string
 - Last
Updated stringAt  - The date and time the Domain was last updated.
 - Managed
Account stringId  - The AWS account ID that owns the Domain.
 - Name string
 - Portal
Url string - URL of the Domain.
 - Status string
 - Status of the Domain.
 
- Arn string
 - ARN of the Domain.
 - Created
At string - The date and time the Domain was created.
 - Description string
 - Description of the Domain.
 - Domain
Version string - Version of the Domain.
 - Id string
 - Last
Updated stringAt  - The date and time the Domain was last updated.
 - Managed
Account stringId  - The AWS account ID that owns the Domain.
 - Name string
 - Portal
Url string - URL of the Domain.
 - Status string
 - Status of the Domain.
 
- arn String
 - ARN of the Domain.
 - created
At String - The date and time the Domain was created.
 - description String
 - Description of the Domain.
 - domain
Version String - Version of the Domain.
 - id String
 - last
Updated StringAt  - The date and time the Domain was last updated.
 - managed
Account StringId  - The AWS account ID that owns the Domain.
 - name String
 - portal
Url String - URL of the Domain.
 - status String
 - Status of the Domain.
 
- arn string
 - ARN of the Domain.
 - created
At string - The date and time the Domain was created.
 - description string
 - Description of the Domain.
 - domain
Version string - Version of the Domain.
 - id string
 - last
Updated stringAt  - The date and time the Domain was last updated.
 - managed
Account stringId  - The AWS account ID that owns the Domain.
 - name string
 - portal
Url string - URL of the Domain.
 - status string
 - Status of the Domain.
 
- arn str
 - ARN of the Domain.
 - created_
at str - The date and time the Domain was created.
 - description str
 - Description of the Domain.
 - domain_
version str - Version of the Domain.
 - id str
 - last_
updated_ strat  - The date and time the Domain was last updated.
 - managed_
account_ strid  - The AWS account ID that owns the Domain.
 - name str
 - portal_
url str - URL of the Domain.
 - status str
 - Status of the Domain.
 
- arn String
 - ARN of the Domain.
 - created
At String - The date and time the Domain was created.
 - description String
 - Description of the Domain.
 - domain
Version String - Version of the Domain.
 - id String
 - last
Updated StringAt  - The date and time the Domain was last updated.
 - managed
Account StringId  - The AWS account ID that owns the Domain.
 - name String
 - portal
Url String - URL of the Domain.
 - status String
 - Status of the Domain.
 
Package Details
- Repository
 - AWS Classic pulumi/pulumi-aws
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
awsTerraform Provider.