1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. cloudwatchomni
  6. OrganizationDomain
Viewing docs for AWS v7.55.0
published on Friday, Nov 13, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.55.0
published on Friday, Nov 13, 2026 by Pulumi

    Manages an Amazon CloudWatch Omni organization domain.

    An organization domain is a CloudWatch Omni domain shared by every account in an AWS Organizations organization. An organization can have one organization domain. While it exists, member accounts create their spaces in the organization domain instead of in an account domain.

    NOTE: This resource must be managed from the organization’s management account, in the domain’s home Region. Trusted access for the observabilityadmin.amazonaws.com service principal must be enabled in AWS Organizations, and the management account must not have its own CloudWatch Omni domain.

    NOTE: An organization domain cannot be deleted while any account in the organization has a space in it.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const current = aws.getCallerIdentity({});
    const currentGetPartition = aws.getPartition({});
    const example = new aws.iam.Role("example", {
        name: "example",
        assumeRolePolicy: JSON.stringify({
            Version: "2012-10-17",
            Statement: [{
                Effect: "Allow",
                Principal: {
                    Service: "cloudwatch.amazonaws.com",
                },
                Action: [
                    "sts:AssumeRole",
                    "sts:TagSession",
                ],
                Condition: {
                    StringEquals: {
                        "aws:SourceAccount": current.then(current => current.accountId),
                    },
                },
            }],
        }),
    });
    const exampleRolePolicyAttachment = new aws.iam.RolePolicyAttachment("example", {
        role: example.name,
        policyArn: currentGetPartition.then(currentGetPartition => `arn:${currentGetPartition.partition}:iam::aws:policy/CloudWatchOmniDomainAccessPolicy`),
    });
    const exampleOrganizationDomain = new aws.cloudwatchomni.OrganizationDomain("example", {
        name: "example",
        identityProviders: ["IAM"],
        domainAccessRoleArn: example.arn,
    }, {
        dependsOn: [exampleRolePolicyAttachment],
    });
    
    import pulumi
    import json
    import pulumi_aws as aws
    
    current = aws.get_caller_identity()
    current_get_partition = aws.get_partition()
    example = aws.iam.Role("example",
        name="example",
        assume_role_policy=json.dumps({
            "Version": "2012-10-17",
            "Statement": [{
                "Effect": "Allow",
                "Principal": {
                    "Service": "cloudwatch.amazonaws.com",
                },
                "Action": [
                    "sts:AssumeRole",
                    "sts:TagSession",
                ],
                "Condition": {
                    "StringEquals": {
                        "aws:SourceAccount": current.account_id,
                    },
                },
            }],
        }))
    example_role_policy_attachment = aws.iam.RolePolicyAttachment("example",
        role=example.name,
        policy_arn=f"arn:{current_get_partition.partition}:iam::aws:policy/CloudWatchOmniDomainAccessPolicy")
    example_organization_domain = aws.cloudwatchomni.OrganizationDomain("example",
        name="example",
        identity_providers=["IAM"],
        domain_access_role_arn=example.arn,
        opts = pulumi.ResourceOptions(depends_on=[example_role_policy_attachment]))
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws"
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/cloudwatchomni"
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/iam"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		current, err := aws.GetCallerIdentity(ctx, &aws.GetCallerIdentityArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		currentGetPartition, err := aws.GetPartition(ctx, &aws.GetPartitionArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"Version": "2012-10-17",
    			"Statement": []map[string]interface{}{
    				map[string]interface{}{
    					"Effect": "Allow",
    					"Principal": map[string]string{
    						"Service": "cloudwatch.amazonaws.com",
    					},
    					"Action": []string{
    						"sts:AssumeRole",
    						"sts:TagSession",
    					},
    					"Condition": map[string]map[string]interface{}{
    						"StringEquals": map[string]interface{}{
    							"aws:SourceAccount": current.AccountId,
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		example, err := iam.NewRole(ctx, "example", &iam.RoleArgs{
    			Name:             pulumi.String("example"),
    			AssumeRolePolicy: json0,
    		})
    		if err != nil {
    			return err
    		}
    		exampleRolePolicyAttachment, err := iam.NewRolePolicyAttachment(ctx, "example", &iam.RolePolicyAttachmentArgs{
    			Role:      example.Name,
    			PolicyArn: pulumi.Sprintf("arn:%v:iam::aws:policy/CloudWatchOmniDomainAccessPolicy", currentGetPartition.Partition),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cloudwatchomni.NewOrganizationDomain(ctx, "example", &cloudwatchomni.OrganizationDomainArgs{
    			Name: pulumi.String("example"),
    			IdentityProviders: pulumi.StringArray{
    				pulumi.String("IAM"),
    			},
    			DomainAccessRoleArn: example.Arn,
    		}, pulumi.DependsOn([]pulumi.Resource{
    			exampleRolePolicyAttachment,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var current = Aws.GetCallerIdentity.Invoke();
    
        var currentGetPartition = Aws.GetPartition.Invoke();
    
        var example = new Aws.Iam.Role("example", new()
        {
            Name = "example",
            AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["Version"] = "2012-10-17",
                ["Statement"] = new[]
                {
                    new Dictionary<string, object?>
                    {
                        ["Effect"] = "Allow",
                        ["Principal"] = new Dictionary<string, object?>
                        {
                            ["Service"] = "cloudwatch.amazonaws.com",
                        },
                        ["Action"] = new[]
                        {
                            "sts:AssumeRole",
                            "sts:TagSession",
                        },
                        ["Condition"] = new Dictionary<string, object?>
                        {
                            ["StringEquals"] = new Dictionary<string, object?>
                            {
                                ["aws:SourceAccount"] = current.Apply(getCallerIdentityResult => getCallerIdentityResult.AccountId),
                            },
                        },
                    },
                },
            }),
        });
    
        var exampleRolePolicyAttachment = new Aws.Iam.RolePolicyAttachment("example", new()
        {
            Role = example.Name,
            PolicyArn = $"arn:{currentGetPartition.Apply(getPartitionResult => getPartitionResult.Partition)}:iam::aws:policy/CloudWatchOmniDomainAccessPolicy",
        });
    
        var exampleOrganizationDomain = new Aws.CloudWatchOmni.OrganizationDomain("example", new()
        {
            Name = "example",
            IdentityProviders = new[]
            {
                "IAM",
            },
            DomainAccessRoleArn = example.Arn,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                exampleRolePolicyAttachment,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.AwsFunctions;
    import com.pulumi.aws.inputs.GetCallerIdentityArgs;
    import com.pulumi.aws.inputs.GetPartitionArgs;
    import com.pulumi.aws.iam.Role;
    import com.pulumi.aws.iam.RoleArgs;
    import com.pulumi.aws.iam.RolePolicyAttachment;
    import com.pulumi.aws.iam.RolePolicyAttachmentArgs;
    import com.pulumi.aws.cloudwatchomni.OrganizationDomain;
    import com.pulumi.aws.cloudwatchomni.OrganizationDomainArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    import com.pulumi.resources.CustomResourceOptions;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 current = AwsFunctions.getCallerIdentity(GetCallerIdentityArgs.builder()
                .build());
    
            final var currentGetPartition = AwsFunctions.getPartition(GetPartitionArgs.builder()
                .build());
    
            var example = new Role("example", RoleArgs.builder()
                .name("example")
                .assumeRolePolicy(serializeJson(
                    jsonObject(
                        jsonProperty("Version", "2012-10-17"),
                        jsonProperty("Statement", jsonArray(jsonObject(
                            jsonProperty("Effect", "Allow"),
                            jsonProperty("Principal", jsonObject(
                                jsonProperty("Service", "cloudwatch.amazonaws.com")
                            )),
                            jsonProperty("Action", jsonArray(
                                "sts:AssumeRole", 
                                "sts:TagSession"
                            )),
                            jsonProperty("Condition", jsonObject(
                                jsonProperty("StringEquals", jsonObject(
                                    jsonProperty("aws:SourceAccount", current.accountId())
                                ))
                            ))
                        )))
                    )))
                .build());
    
            var exampleRolePolicyAttachment = new RolePolicyAttachment("exampleRolePolicyAttachment", RolePolicyAttachmentArgs.builder()
                .role(example.name())
                .policyArn(String.format("arn:%s:iam::aws:policy/CloudWatchOmniDomainAccessPolicy", currentGetPartition.partition()))
                .build());
    
            var exampleOrganizationDomain = new OrganizationDomain("exampleOrganizationDomain", OrganizationDomainArgs.builder()
                .name("example")
                .identityProviders("IAM")
                .domainAccessRoleArn(example.arn())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(exampleRolePolicyAttachment)
                    .build());
    
        }
    }
    
    resources:
      example:
        type: aws:iam:Role
        properties:
          name: example
          assumeRolePolicy:
            fn::toJSON:
              Version: 2012-10-17
              Statement:
                - Effect: Allow
                  Principal:
                    Service: cloudwatch.amazonaws.com
                  Action:
                    - sts:AssumeRole
                    - sts:TagSession
                  Condition:
                    StringEquals:
                      aws:SourceAccount: ${current.accountId}
      exampleRolePolicyAttachment:
        type: aws:iam:RolePolicyAttachment
        name: example
        properties:
          role: ${example.name}
          policyArn: arn:${currentGetPartition.partition}:iam::aws:policy/CloudWatchOmniDomainAccessPolicy
      exampleOrganizationDomain:
        type: aws:cloudwatchomni:OrganizationDomain
        name: example
        properties:
          name: example
          identityProviders:
            - IAM
          domainAccessRoleArn: ${example.arn}
        options:
          dependsOn:
            - ${exampleRolePolicyAttachment}
    variables:
      current:
        fn::invoke:
          function: aws:getCallerIdentity
          arguments: {}
      currentGetPartition:
        fn::invoke:
          function: aws:getPartition
          arguments: {}
    
    terraform {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    data "aws_caller_identity" "current" {
    }
    data "aws_partition" "currentGetPartition" {
    }
    
    resource "aws_iam_role" "example" {
      lifecycle {
        create_before_destroy = true
      }
      name = "example"
      assume_role_policy = jsonencode({
        "Version" = "2012-10-17"
        "Statement" = [{
          "Effect" = "Allow"
          "Principal" = {
            "Service" = "cloudwatch.amazonaws.com"
          }
          "Action" = ["sts:AssumeRole", "sts:TagSession"]
          "Condition" = {
            "StringEquals" = {
              "aws:SourceAccount" = data.aws_caller_identity.current.account_id
            }
          }
        }]
      })
    }
    resource "aws_iam_role_policy_attachment" "example" {
      lifecycle {
        create_before_destroy = true
      }
      role       = aws_iam_role.example.name
      policy_arn ="arn:${data.aws_partition.currentGetPartition.partition}:iam::aws:policy/CloudWatchOmniDomainAccessPolicy"
    }
    resource "aws_cloudwatchomni_organization_domain" "example" {
      depends_on = [aws_iam_role_policy_attachment.example]
      lifecycle {
        create_before_destroy = true
      }
      name                   = "example"
      identity_providers     = ["IAM"]
      domain_access_role_arn = aws_iam_role.example.arn
    }
    

    With IAM Identity Center

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.ssoadmin.getInstances({});
    const exampleOrganizationDomain = new aws.cloudwatchomni.OrganizationDomain("example", {
        identityProviderConfiguration: {
            identityCenterConfiguration: {
                identityCenterInstanceArn: example.then(example => example.arns?.[0]),
            },
        },
        name: "example",
        identityProviders: [
            "IAM",
            "IDC",
        ],
        domainAccessRoleArn: exampleAwsIamRole.arn,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.ssoadmin.get_instances()
    example_organization_domain = aws.cloudwatchomni.OrganizationDomain("example",
        identity_provider_configuration={
            "identity_center_configuration": {
                "identity_center_instance_arn": example.arns[0],
            },
        },
        name="example",
        identity_providers=[
            "IAM",
            "IDC",
        ],
        domain_access_role_arn=example_aws_iam_role["arn"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/cloudwatchomni"
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ssoadmin"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := ssoadmin.GetInstances(ctx, &ssoadmin.GetInstancesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = cloudwatchomni.NewOrganizationDomain(ctx, "example", &cloudwatchomni.OrganizationDomainArgs{
    			IdentityProviderConfiguration: &cloudwatchomni.OrganizationDomainIdentityProviderConfigurationArgs{
    				IdentityCenterConfiguration: &cloudwatchomni.OrganizationDomainIdentityProviderConfigurationIdentityCenterConfigurationArgs{
    					IdentityCenterInstanceArn: pulumi.String(example.Arns[0]),
    				},
    			},
    			Name: pulumi.String("example"),
    			IdentityProviders: pulumi.StringArray{
    				pulumi.String("IAM"),
    				pulumi.String("IDC"),
    			},
    			DomainAccessRoleArn: pulumi.Any(exampleAwsIamRole.Arn),
    		})
    		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.SsoAdmin.GetInstances.Invoke();
    
        var exampleOrganizationDomain = new Aws.CloudWatchOmni.OrganizationDomain("example", new()
        {
            IdentityProviderConfiguration = new Aws.CloudWatchOmni.Inputs.OrganizationDomainIdentityProviderConfigurationArgs
            {
                IdentityCenterConfiguration = new Aws.CloudWatchOmni.Inputs.OrganizationDomainIdentityProviderConfigurationIdentityCenterConfigurationArgs
                {
                    IdentityCenterInstanceArn = example.Apply(getInstancesResult => getInstancesResult.Arns[0]),
                },
            },
            Name = "example",
            IdentityProviders = new[]
            {
                "IAM",
                "IDC",
            },
            DomainAccessRoleArn = exampleAwsIamRole.Arn,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.ssoadmin.SsoadminFunctions;
    import com.pulumi.aws.ssoadmin.inputs.GetInstancesArgs;
    import com.pulumi.aws.cloudwatchomni.OrganizationDomain;
    import com.pulumi.aws.cloudwatchomni.OrganizationDomainArgs;
    import com.pulumi.aws.cloudwatchomni.inputs.OrganizationDomainIdentityProviderConfigurationArgs;
    import com.pulumi.aws.cloudwatchomni.inputs.OrganizationDomainIdentityProviderConfigurationIdentityCenterConfigurationArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 = SsoadminFunctions.getInstances(GetInstancesArgs.builder()
                .build());
    
            var exampleOrganizationDomain = new OrganizationDomain("exampleOrganizationDomain", OrganizationDomainArgs.builder()
                .identityProviderConfiguration(OrganizationDomainIdentityProviderConfigurationArgs.builder()
                    .identityCenterConfiguration(OrganizationDomainIdentityProviderConfigurationIdentityCenterConfigurationArgs.builder()
                        .identityCenterInstanceArn(example.arns()[0])
                        .build())
                    .build())
                .name("example")
                .identityProviders(            
                    "IAM",
                    "IDC")
                .domainAccessRoleArn(exampleAwsIamRole.get("arn"))
                .build());
    
        }
    }
    
    resources:
      exampleOrganizationDomain:
        type: aws:cloudwatchomni:OrganizationDomain
        name: example
        properties:
          identityProviderConfiguration:
            identityCenterConfiguration:
              identityCenterInstanceArn: ${example.arns[0]}
          name: example
          identityProviders:
            - IAM
            - IDC
          domainAccessRoleArn: ${exampleAwsIamRole.arn}
    variables:
      example:
        fn::invoke:
          function: aws:ssoadmin:getInstances
          arguments: {}
    
    terraform {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    data "aws_ssoadmin_instances" "example" {
    }
    
    resource "aws_cloudwatchomni_organization_domain" "example" {
      lifecycle {
        create_before_destroy = true
      }
      identity_provider_configuration {
        identity_center_configuration {
          identity_center_instance_arn = data.aws_ssoadmin_instances.example.arns[0]
        }
      }
      name                   = "example"
      identity_providers     = ["IAM", "IDC"]
      domain_access_role_arn = exampleAwsIamRole.arn
    }
    

    Create OrganizationDomain Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new OrganizationDomain(name: string, args: OrganizationDomainArgs, opts?: CustomResourceOptions);
    @overload
    def OrganizationDomain(resource_name: str,
                           args: OrganizationDomainArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def OrganizationDomain(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           domain_access_role_arn: Optional[str] = None,
                           identity_providers: Optional[Sequence[str]] = None,
                           identity_provider_configuration: Optional[OrganizationDomainIdentityProviderConfigurationArgs] = None,
                           name: Optional[str] = None,
                           region: Optional[str] = None,
                           tags: Optional[Mapping[str, str]] = None)
    func NewOrganizationDomain(ctx *Context, name string, args OrganizationDomainArgs, opts ...ResourceOption) (*OrganizationDomain, error)
    public OrganizationDomain(string name, OrganizationDomainArgs args, CustomResourceOptions? opts = null)
    public OrganizationDomain(String name, OrganizationDomainArgs args)
    public OrganizationDomain(String name, OrganizationDomainArgs args, CustomResourceOptions options)
    
    type: aws:cloudwatchomni:OrganizationDomain
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_cloudwatchomni_organization_domain" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args OrganizationDomainArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args OrganizationDomainArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args OrganizationDomainArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OrganizationDomainArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OrganizationDomainArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var organizationDomainResource = new Aws.CloudWatchOmni.OrganizationDomain("organizationDomainResource", new()
    {
        DomainAccessRoleArn = "string",
        IdentityProviders = new[]
        {
            "string",
        },
        IdentityProviderConfiguration = new Aws.CloudWatchOmni.Inputs.OrganizationDomainIdentityProviderConfigurationArgs
        {
            IdentityCenterConfiguration = new Aws.CloudWatchOmni.Inputs.OrganizationDomainIdentityProviderConfigurationIdentityCenterConfigurationArgs
            {
                IdentityCenterInstanceArn = "string",
            },
        },
        Name = "string",
        Region = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := cloudwatchomni.NewOrganizationDomain(ctx, "organizationDomainResource", &cloudwatchomni.OrganizationDomainArgs{
    	DomainAccessRoleArn: pulumi.String("string"),
    	IdentityProviders: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	IdentityProviderConfiguration: &cloudwatchomni.OrganizationDomainIdentityProviderConfigurationArgs{
    		IdentityCenterConfiguration: &cloudwatchomni.OrganizationDomainIdentityProviderConfigurationIdentityCenterConfigurationArgs{
    			IdentityCenterInstanceArn: pulumi.String("string"),
    		},
    	},
    	Name:   pulumi.String("string"),
    	Region: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    resource "aws_cloudwatchomni_organization_domain" "organizationDomainResource" {
      lifecycle {
        create_before_destroy = true
      }
      domain_access_role_arn = "string"
      identity_providers     = ["string"]
      identity_provider_configuration = {
        identity_center_configuration = {
          identity_center_instance_arn = "string"
        }
      }
      name   = "string"
      region = "string"
      tags = {
        "string" = "string"
      }
    }
    
    var organizationDomainResource = new OrganizationDomain("organizationDomainResource", OrganizationDomainArgs.builder()
        .domainAccessRoleArn("string")
        .identityProviders("string")
        .identityProviderConfiguration(OrganizationDomainIdentityProviderConfigurationArgs.builder()
            .identityCenterConfiguration(OrganizationDomainIdentityProviderConfigurationIdentityCenterConfigurationArgs.builder()
                .identityCenterInstanceArn("string")
                .build())
            .build())
        .name("string")
        .region("string")
        .tags(Map.of("string", "string"))
        .build());
    
    organization_domain_resource = aws.cloudwatchomni.OrganizationDomain("organizationDomainResource",
        domain_access_role_arn="string",
        identity_providers=["string"],
        identity_provider_configuration={
            "identity_center_configuration": {
                "identity_center_instance_arn": "string",
            },
        },
        name="string",
        region="string",
        tags={
            "string": "string",
        })
    
    const organizationDomainResource = new aws.cloudwatchomni.OrganizationDomain("organizationDomainResource", {
        domainAccessRoleArn: "string",
        identityProviders: ["string"],
        identityProviderConfiguration: {
            identityCenterConfiguration: {
                identityCenterInstanceArn: "string",
            },
        },
        name: "string",
        region: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:cloudwatchomni:OrganizationDomain
    properties:
        domainAccessRoleArn: string
        identityProviderConfiguration:
            identityCenterConfiguration:
                identityCenterInstanceArn: string
        identityProviders:
            - string
        name: string
        region: string
        tags:
            string: string
    

    OrganizationDomain Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The OrganizationDomain resource accepts the following input properties:

    DomainAccessRoleArn string
    ARN of the IAM role that CloudWatch Omni assumes to access the organization. The role must be in the management account, trust cloudwatch.amazonaws.com for sts:AssumeRole and sts:TagSession, and have the CloudWatchOmniDomainAccessPolicy AWS managed policy attached.
    IdentityProviders List<string>
    Set of identity providers that users can sign in with. Valid values: IAM, IDC.
    IdentityProviderConfiguration OrganizationDomainIdentityProviderConfiguration
    Identity provider configuration. Required when identityProviders includes IDC. See below.
    Name string

    Name of the domain. Must be 3-63 characters, contain only lowercase letters, numbers, and hyphens, begin and end with a letter or number, and not contain consecutive hyphens. Changing the name changes the domain's custom endpoint URLs.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    DomainAccessRoleArn string
    ARN of the IAM role that CloudWatch Omni assumes to access the organization. The role must be in the management account, trust cloudwatch.amazonaws.com for sts:AssumeRole and sts:TagSession, and have the CloudWatchOmniDomainAccessPolicy AWS managed policy attached.
    IdentityProviders []string
    Set of identity providers that users can sign in with. Valid values: IAM, IDC.
    IdentityProviderConfiguration OrganizationDomainIdentityProviderConfigurationArgs
    Identity provider configuration. Required when identityProviders includes IDC. See below.
    Name string

    Name of the domain. Must be 3-63 characters, contain only lowercase letters, numbers, and hyphens, begin and end with a letter or number, and not contain consecutive hyphens. Changing the name changes the domain's custom endpoint URLs.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    domain_access_role_arn string
    ARN of the IAM role that CloudWatch Omni assumes to access the organization. The role must be in the management account, trust cloudwatch.amazonaws.com for sts:AssumeRole and sts:TagSession, and have the CloudWatchOmniDomainAccessPolicy AWS managed policy attached.
    identity_providers list(string)
    Set of identity providers that users can sign in with. Valid values: IAM, IDC.
    identity_provider_configuration object
    Identity provider configuration. Required when identityProviders includes IDC. See below.
    name string

    Name of the domain. Must be 3-63 characters, contain only lowercase letters, numbers, and hyphens, begin and end with a letter or number, and not contain consecutive hyphens. Changing the name changes the domain's custom endpoint URLs.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags map(string)
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    domainAccessRoleArn String
    ARN of the IAM role that CloudWatch Omni assumes to access the organization. The role must be in the management account, trust cloudwatch.amazonaws.com for sts:AssumeRole and sts:TagSession, and have the CloudWatchOmniDomainAccessPolicy AWS managed policy attached.
    identityProviders List<String>
    Set of identity providers that users can sign in with. Valid values: IAM, IDC.
    identityProviderConfiguration OrganizationDomainIdentityProviderConfiguration
    Identity provider configuration. Required when identityProviders includes IDC. See below.
    name String

    Name of the domain. Must be 3-63 characters, contain only lowercase letters, numbers, and hyphens, begin and end with a letter or number, and not contain consecutive hyphens. Changing the name changes the domain's custom endpoint URLs.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    domainAccessRoleArn string
    ARN of the IAM role that CloudWatch Omni assumes to access the organization. The role must be in the management account, trust cloudwatch.amazonaws.com for sts:AssumeRole and sts:TagSession, and have the CloudWatchOmniDomainAccessPolicy AWS managed policy attached.
    identityProviders string[]
    Set of identity providers that users can sign in with. Valid values: IAM, IDC.
    identityProviderConfiguration OrganizationDomainIdentityProviderConfiguration
    Identity provider configuration. Required when identityProviders includes IDC. See below.
    name string

    Name of the domain. Must be 3-63 characters, contain only lowercase letters, numbers, and hyphens, begin and end with a letter or number, and not contain consecutive hyphens. Changing the name changes the domain's custom endpoint URLs.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    domain_access_role_arn str
    ARN of the IAM role that CloudWatch Omni assumes to access the organization. The role must be in the management account, trust cloudwatch.amazonaws.com for sts:AssumeRole and sts:TagSession, and have the CloudWatchOmniDomainAccessPolicy AWS managed policy attached.
    identity_providers Sequence[str]
    Set of identity providers that users can sign in with. Valid values: IAM, IDC.
    identity_provider_configuration OrganizationDomainIdentityProviderConfigurationArgs
    Identity provider configuration. Required when identityProviders includes IDC. See below.
    name str

    Name of the domain. Must be 3-63 characters, contain only lowercase letters, numbers, and hyphens, begin and end with a letter or number, and not contain consecutive hyphens. Changing the name changes the domain's custom endpoint URLs.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    domainAccessRoleArn String
    ARN of the IAM role that CloudWatch Omni assumes to access the organization. The role must be in the management account, trust cloudwatch.amazonaws.com for sts:AssumeRole and sts:TagSession, and have the CloudWatchOmniDomainAccessPolicy AWS managed policy attached.
    identityProviders List<String>
    Set of identity providers that users can sign in with. Valid values: IAM, IDC.
    identityProviderConfiguration Property Map
    Identity provider configuration. Required when identityProviders includes IDC. See below.
    name String

    Name of the domain. Must be 3-63 characters, contain only lowercase letters, numbers, and hyphens, begin and end with a letter or number, and not contain consecutive hyphens. Changing the name changes the domain's custom endpoint URLs.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OrganizationDomain resource produces the following output properties:

    Arn string
    ARN of the organization domain.
    CustomEndpointUrls List<string>
    Additional endpoint URLs derived from the domain name.
    DomainEndpointUrl string
    HTTPS endpoint URL for accessing the domain.
    DomainId string
    Unique identifier of the organization domain.
    Id string
    The provider-assigned unique ID for this managed resource.
    IdentityCenterApplicationArn string
    ARN of the IAM Identity Center application. Only set when identityProviders includes IDC.
    OrganizationId string
    ID of the organization that the domain belongs to.
    OwnerAccountId string
    ID of the management account that owns the domain.
    Status string
    Status of the domain.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Arn string
    ARN of the organization domain.
    CustomEndpointUrls []string
    Additional endpoint URLs derived from the domain name.
    DomainEndpointUrl string
    HTTPS endpoint URL for accessing the domain.
    DomainId string
    Unique identifier of the organization domain.
    Id string
    The provider-assigned unique ID for this managed resource.
    IdentityCenterApplicationArn string
    ARN of the IAM Identity Center application. Only set when identityProviders includes IDC.
    OrganizationId string
    ID of the organization that the domain belongs to.
    OwnerAccountId string
    ID of the management account that owns the domain.
    Status string
    Status of the domain.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the organization domain.
    custom_endpoint_urls list(string)
    Additional endpoint URLs derived from the domain name.
    domain_endpoint_url string
    HTTPS endpoint URL for accessing the domain.
    domain_id string
    Unique identifier of the organization domain.
    id string
    The provider-assigned unique ID for this managed resource.
    identity_center_application_arn string
    ARN of the IAM Identity Center application. Only set when identityProviders includes IDC.
    organization_id string
    ID of the organization that the domain belongs to.
    owner_account_id string
    ID of the management account that owns the domain.
    status string
    Status of the domain.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the organization domain.
    customEndpointUrls List<String>
    Additional endpoint URLs derived from the domain name.
    domainEndpointUrl String
    HTTPS endpoint URL for accessing the domain.
    domainId String
    Unique identifier of the organization domain.
    id String
    The provider-assigned unique ID for this managed resource.
    identityCenterApplicationArn String
    ARN of the IAM Identity Center application. Only set when identityProviders includes IDC.
    organizationId String
    ID of the organization that the domain belongs to.
    ownerAccountId String
    ID of the management account that owns the domain.
    status String
    Status of the domain.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the organization domain.
    customEndpointUrls string[]
    Additional endpoint URLs derived from the domain name.
    domainEndpointUrl string
    HTTPS endpoint URL for accessing the domain.
    domainId string
    Unique identifier of the organization domain.
    id string
    The provider-assigned unique ID for this managed resource.
    identityCenterApplicationArn string
    ARN of the IAM Identity Center application. Only set when identityProviders includes IDC.
    organizationId string
    ID of the organization that the domain belongs to.
    ownerAccountId string
    ID of the management account that owns the domain.
    status string
    Status of the domain.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn str
    ARN of the organization domain.
    custom_endpoint_urls Sequence[str]
    Additional endpoint URLs derived from the domain name.
    domain_endpoint_url str
    HTTPS endpoint URL for accessing the domain.
    domain_id str
    Unique identifier of the organization domain.
    id str
    The provider-assigned unique ID for this managed resource.
    identity_center_application_arn str
    ARN of the IAM Identity Center application. Only set when identityProviders includes IDC.
    organization_id str
    ID of the organization that the domain belongs to.
    owner_account_id str
    ID of the management account that owns the domain.
    status str
    Status of the domain.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the organization domain.
    customEndpointUrls List<String>
    Additional endpoint URLs derived from the domain name.
    domainEndpointUrl String
    HTTPS endpoint URL for accessing the domain.
    domainId String
    Unique identifier of the organization domain.
    id String
    The provider-assigned unique ID for this managed resource.
    identityCenterApplicationArn String
    ARN of the IAM Identity Center application. Only set when identityProviders includes IDC.
    organizationId String
    ID of the organization that the domain belongs to.
    ownerAccountId String
    ID of the management account that owns the domain.
    status String
    Status of the domain.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    Look up Existing OrganizationDomain Resource

    Get an existing OrganizationDomain resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: OrganizationDomainState, opts?: CustomResourceOptions): OrganizationDomain
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            custom_endpoint_urls: Optional[Sequence[str]] = None,
            domain_access_role_arn: Optional[str] = None,
            domain_endpoint_url: Optional[str] = None,
            domain_id: Optional[str] = None,
            identity_center_application_arn: Optional[str] = None,
            identity_provider_configuration: Optional[OrganizationDomainIdentityProviderConfigurationArgs] = None,
            identity_providers: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            organization_id: Optional[str] = None,
            owner_account_id: Optional[str] = None,
            region: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> OrganizationDomain
    func GetOrganizationDomain(ctx *Context, name string, id IDInput, state *OrganizationDomainState, opts ...ResourceOption) (*OrganizationDomain, error)
    public static OrganizationDomain Get(string name, Input<string> id, OrganizationDomainState? state, CustomResourceOptions? opts = null)
    public static OrganizationDomain get(String name, Output<String> id, OrganizationDomainState state, CustomResourceOptions options)
    resources:  existingOrganizationDomain:    type: aws:cloudwatchomni:OrganizationDomain    get:      id: ${id}
    import {
      to = aws_cloudwatchomni_organization_domain.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    state OrganizationDomainState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state OrganizationDomainState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    state OrganizationDomainState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    state OrganizationDomainState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    Arn string
    ARN of the organization domain.
    CustomEndpointUrls List<string>
    Additional endpoint URLs derived from the domain name.
    DomainAccessRoleArn string
    ARN of the IAM role that CloudWatch Omni assumes to access the organization. The role must be in the management account, trust cloudwatch.amazonaws.com for sts:AssumeRole and sts:TagSession, and have the CloudWatchOmniDomainAccessPolicy AWS managed policy attached.
    DomainEndpointUrl string
    HTTPS endpoint URL for accessing the domain.
    DomainId string
    Unique identifier of the organization domain.
    IdentityCenterApplicationArn string
    ARN of the IAM Identity Center application. Only set when identityProviders includes IDC.
    IdentityProviderConfiguration OrganizationDomainIdentityProviderConfiguration
    Identity provider configuration. Required when identityProviders includes IDC. See below.
    IdentityProviders List<string>
    Set of identity providers that users can sign in with. Valid values: IAM, IDC.
    Name string

    Name of the domain. Must be 3-63 characters, contain only lowercase letters, numbers, and hyphens, begin and end with a letter or number, and not contain consecutive hyphens. Changing the name changes the domain's custom endpoint URLs.

    The following arguments are optional:

    OrganizationId string
    ID of the organization that the domain belongs to.
    OwnerAccountId string
    ID of the management account that owns the domain.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Status string
    Status of the domain.
    Tags Dictionary<string, string>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Arn string
    ARN of the organization domain.
    CustomEndpointUrls []string
    Additional endpoint URLs derived from the domain name.
    DomainAccessRoleArn string
    ARN of the IAM role that CloudWatch Omni assumes to access the organization. The role must be in the management account, trust cloudwatch.amazonaws.com for sts:AssumeRole and sts:TagSession, and have the CloudWatchOmniDomainAccessPolicy AWS managed policy attached.
    DomainEndpointUrl string
    HTTPS endpoint URL for accessing the domain.
    DomainId string
    Unique identifier of the organization domain.
    IdentityCenterApplicationArn string
    ARN of the IAM Identity Center application. Only set when identityProviders includes IDC.
    IdentityProviderConfiguration OrganizationDomainIdentityProviderConfigurationArgs
    Identity provider configuration. Required when identityProviders includes IDC. See below.
    IdentityProviders []string
    Set of identity providers that users can sign in with. Valid values: IAM, IDC.
    Name string

    Name of the domain. Must be 3-63 characters, contain only lowercase letters, numbers, and hyphens, begin and end with a letter or number, and not contain consecutive hyphens. Changing the name changes the domain's custom endpoint URLs.

    The following arguments are optional:

    OrganizationId string
    ID of the organization that the domain belongs to.
    OwnerAccountId string
    ID of the management account that owns the domain.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Status string
    Status of the domain.
    Tags map[string]string
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the organization domain.
    custom_endpoint_urls list(string)
    Additional endpoint URLs derived from the domain name.
    domain_access_role_arn string
    ARN of the IAM role that CloudWatch Omni assumes to access the organization. The role must be in the management account, trust cloudwatch.amazonaws.com for sts:AssumeRole and sts:TagSession, and have the CloudWatchOmniDomainAccessPolicy AWS managed policy attached.
    domain_endpoint_url string
    HTTPS endpoint URL for accessing the domain.
    domain_id string
    Unique identifier of the organization domain.
    identity_center_application_arn string
    ARN of the IAM Identity Center application. Only set when identityProviders includes IDC.
    identity_provider_configuration object
    Identity provider configuration. Required when identityProviders includes IDC. See below.
    identity_providers list(string)
    Set of identity providers that users can sign in with. Valid values: IAM, IDC.
    name string

    Name of the domain. Must be 3-63 characters, contain only lowercase letters, numbers, and hyphens, begin and end with a letter or number, and not contain consecutive hyphens. Changing the name changes the domain's custom endpoint URLs.

    The following arguments are optional:

    organization_id string
    ID of the organization that the domain belongs to.
    owner_account_id string
    ID of the management account that owns the domain.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    status string
    Status of the domain.
    tags map(string)
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the organization domain.
    customEndpointUrls List<String>
    Additional endpoint URLs derived from the domain name.
    domainAccessRoleArn String
    ARN of the IAM role that CloudWatch Omni assumes to access the organization. The role must be in the management account, trust cloudwatch.amazonaws.com for sts:AssumeRole and sts:TagSession, and have the CloudWatchOmniDomainAccessPolicy AWS managed policy attached.
    domainEndpointUrl String
    HTTPS endpoint URL for accessing the domain.
    domainId String
    Unique identifier of the organization domain.
    identityCenterApplicationArn String
    ARN of the IAM Identity Center application. Only set when identityProviders includes IDC.
    identityProviderConfiguration OrganizationDomainIdentityProviderConfiguration
    Identity provider configuration. Required when identityProviders includes IDC. See below.
    identityProviders List<String>
    Set of identity providers that users can sign in with. Valid values: IAM, IDC.
    name String

    Name of the domain. Must be 3-63 characters, contain only lowercase letters, numbers, and hyphens, begin and end with a letter or number, and not contain consecutive hyphens. Changing the name changes the domain's custom endpoint URLs.

    The following arguments are optional:

    organizationId String
    ID of the organization that the domain belongs to.
    ownerAccountId String
    ID of the management account that owns the domain.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    status String
    Status of the domain.
    tags Map<String,String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the organization domain.
    customEndpointUrls string[]
    Additional endpoint URLs derived from the domain name.
    domainAccessRoleArn string
    ARN of the IAM role that CloudWatch Omni assumes to access the organization. The role must be in the management account, trust cloudwatch.amazonaws.com for sts:AssumeRole and sts:TagSession, and have the CloudWatchOmniDomainAccessPolicy AWS managed policy attached.
    domainEndpointUrl string
    HTTPS endpoint URL for accessing the domain.
    domainId string
    Unique identifier of the organization domain.
    identityCenterApplicationArn string
    ARN of the IAM Identity Center application. Only set when identityProviders includes IDC.
    identityProviderConfiguration OrganizationDomainIdentityProviderConfiguration
    Identity provider configuration. Required when identityProviders includes IDC. See below.
    identityProviders string[]
    Set of identity providers that users can sign in with. Valid values: IAM, IDC.
    name string

    Name of the domain. Must be 3-63 characters, contain only lowercase letters, numbers, and hyphens, begin and end with a letter or number, and not contain consecutive hyphens. Changing the name changes the domain's custom endpoint URLs.

    The following arguments are optional:

    organizationId string
    ID of the organization that the domain belongs to.
    ownerAccountId string
    ID of the management account that owns the domain.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    status string
    Status of the domain.
    tags {[key: string]: string}
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn str
    ARN of the organization domain.
    custom_endpoint_urls Sequence[str]
    Additional endpoint URLs derived from the domain name.
    domain_access_role_arn str
    ARN of the IAM role that CloudWatch Omni assumes to access the organization. The role must be in the management account, trust cloudwatch.amazonaws.com for sts:AssumeRole and sts:TagSession, and have the CloudWatchOmniDomainAccessPolicy AWS managed policy attached.
    domain_endpoint_url str
    HTTPS endpoint URL for accessing the domain.
    domain_id str
    Unique identifier of the organization domain.
    identity_center_application_arn str
    ARN of the IAM Identity Center application. Only set when identityProviders includes IDC.
    identity_provider_configuration OrganizationDomainIdentityProviderConfigurationArgs
    Identity provider configuration. Required when identityProviders includes IDC. See below.
    identity_providers Sequence[str]
    Set of identity providers that users can sign in with. Valid values: IAM, IDC.
    name str

    Name of the domain. Must be 3-63 characters, contain only lowercase letters, numbers, and hyphens, begin and end with a letter or number, and not contain consecutive hyphens. Changing the name changes the domain's custom endpoint URLs.

    The following arguments are optional:

    organization_id str
    ID of the organization that the domain belongs to.
    owner_account_id str
    ID of the management account that owns the domain.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    status str
    Status of the domain.
    tags Mapping[str, str]
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the organization domain.
    customEndpointUrls List<String>
    Additional endpoint URLs derived from the domain name.
    domainAccessRoleArn String
    ARN of the IAM role that CloudWatch Omni assumes to access the organization. The role must be in the management account, trust cloudwatch.amazonaws.com for sts:AssumeRole and sts:TagSession, and have the CloudWatchOmniDomainAccessPolicy AWS managed policy attached.
    domainEndpointUrl String
    HTTPS endpoint URL for accessing the domain.
    domainId String
    Unique identifier of the organization domain.
    identityCenterApplicationArn String
    ARN of the IAM Identity Center application. Only set when identityProviders includes IDC.
    identityProviderConfiguration Property Map
    Identity provider configuration. Required when identityProviders includes IDC. See below.
    identityProviders List<String>
    Set of identity providers that users can sign in with. Valid values: IAM, IDC.
    name String

    Name of the domain. Must be 3-63 characters, contain only lowercase letters, numbers, and hyphens, begin and end with a letter or number, and not contain consecutive hyphens. Changing the name changes the domain's custom endpoint URLs.

    The following arguments are optional:

    organizationId String
    ID of the organization that the domain belongs to.
    ownerAccountId String
    ID of the management account that owns the domain.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    status String
    Status of the domain.
    tags Map<String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    Supporting Types

    OrganizationDomainIdentityProviderConfiguration, OrganizationDomainIdentityProviderConfigurationArgs

    identity_center_configuration object
    IAM Identity Center configuration. See below.
    identityCenterConfiguration Property Map
    IAM Identity Center configuration. See below.

    OrganizationDomainIdentityProviderConfigurationIdentityCenterConfiguration, OrganizationDomainIdentityProviderConfigurationIdentityCenterConfigurationArgs

    IdentityCenterInstanceArn string
    ARN of the IAM Identity Center instance.
    IdentityCenterInstanceArn string
    ARN of the IAM Identity Center instance.
    identity_center_instance_arn string
    ARN of the IAM Identity Center instance.
    identityCenterInstanceArn String
    ARN of the IAM Identity Center instance.
    identityCenterInstanceArn string
    ARN of the IAM Identity Center instance.
    identity_center_instance_arn str
    ARN of the IAM Identity Center instance.
    identityCenterInstanceArn String
    ARN of the IAM Identity Center instance.

    Import

    Identity Schema

    Required

    • domainId (String) Domain ID.

    Optional

    • accountId (String) AWS Account where this resource is managed.
    • region (String) Region where this resource is managed.

    Using pulumi import, import a CloudWatch Omni Organization Domain by domain ID. For example:

    $ pulumi import aws:cloudwatchomni/organizationDomain:OrganizationDomain example d-0123456789abcdefghijklmno
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo aws logo
    Viewing docs for AWS v7.55.0
    published on Friday, Nov 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial