aws.elasticsearch.Domain
Explore with Pulumi AI
Manages an AWS Elasticsearch Domain.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.elasticsearch.Domain("example", {
    domainName: "example",
    elasticsearchVersion: "7.10",
    clusterConfig: {
        instanceType: "r4.large.elasticsearch",
    },
    tags: {
        Domain: "TestDomain",
    },
});
import pulumi
import pulumi_aws as aws
example = aws.elasticsearch.Domain("example",
    domain_name="example",
    elasticsearch_version="7.10",
    cluster_config={
        "instance_type": "r4.large.elasticsearch",
    },
    tags={
        "Domain": "TestDomain",
    })
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/elasticsearch"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := elasticsearch.NewDomain(ctx, "example", &elasticsearch.DomainArgs{
			DomainName:           pulumi.String("example"),
			ElasticsearchVersion: pulumi.String("7.10"),
			ClusterConfig: &elasticsearch.DomainClusterConfigArgs{
				InstanceType: pulumi.String("r4.large.elasticsearch"),
			},
			Tags: pulumi.StringMap{
				"Domain": pulumi.String("TestDomain"),
			},
		})
		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 = new Aws.ElasticSearch.Domain("example", new()
    {
        DomainName = "example",
        ElasticsearchVersion = "7.10",
        ClusterConfig = new Aws.ElasticSearch.Inputs.DomainClusterConfigArgs
        {
            InstanceType = "r4.large.elasticsearch",
        },
        Tags = 
        {
            { "Domain", "TestDomain" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.elasticsearch.Domain;
import com.pulumi.aws.elasticsearch.DomainArgs;
import com.pulumi.aws.elasticsearch.inputs.DomainClusterConfigArgs;
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) {
        var example = new Domain("example", DomainArgs.builder()
            .domainName("example")
            .elasticsearchVersion("7.10")
            .clusterConfig(DomainClusterConfigArgs.builder()
                .instanceType("r4.large.elasticsearch")
                .build())
            .tags(Map.of("Domain", "TestDomain"))
            .build());
    }
}
resources:
  example:
    type: aws:elasticsearch:Domain
    properties:
      domainName: example
      elasticsearchVersion: '7.10'
      clusterConfig:
        instanceType: r4.large.elasticsearch
      tags:
        Domain: TestDomain
Access Policy
See also:
aws.elasticsearch.DomainPolicyresource
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const config = new pulumi.Config();
const domain = config.get("domain") || "tf-test";
const current = aws.getRegion({});
const currentGetCallerIdentity = aws.getCallerIdentity({});
const example = new aws.elasticsearch.Domain("example", {
    domainName: domain,
    accessPolicies: Promise.all([current, currentGetCallerIdentity]).then(([current, currentGetCallerIdentity]) => `{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": "es:*",
      "Principal": "*",
      "Effect": "Allow",
      "Resource": "arn:aws:es:${current.name}:${currentGetCallerIdentity.accountId}:domain/${domain}/*",
      "Condition": {
        "IpAddress": {"aws:SourceIp": ["66.193.100.22/32"]}
      }
    }
  ]
}
`),
});
import pulumi
import pulumi_aws as aws
config = pulumi.Config()
domain = config.get("domain")
if domain is None:
    domain = "tf-test"
current = aws.get_region()
current_get_caller_identity = aws.get_caller_identity()
example = aws.elasticsearch.Domain("example",
    domain_name=domain,
    access_policies=f"""{{
  "Version": "2012-10-17",
  "Statement": [
    {{
      "Action": "es:*",
      "Principal": "*",
      "Effect": "Allow",
      "Resource": "arn:aws:es:{current.name}:{current_get_caller_identity.account_id}:domain/{domain}/*",
      "Condition": {{
        "IpAddress": {{"aws:SourceIp": ["66.193.100.22/32"]}}
      }}
    }}
  ]
}}
""")
package main
import (
	"fmt"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/elasticsearch"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		domain := "tf-test"
		if param := cfg.Get("domain"); param != "" {
			domain = param
		}
		current, err := aws.GetRegion(ctx, &aws.GetRegionArgs{}, nil)
		if err != nil {
			return err
		}
		currentGetCallerIdentity, err := aws.GetCallerIdentity(ctx, &aws.GetCallerIdentityArgs{}, nil)
		if err != nil {
			return err
		}
		_, err = elasticsearch.NewDomain(ctx, "example", &elasticsearch.DomainArgs{
			DomainName: pulumi.String(domain),
			AccessPolicies: pulumi.Any(fmt.Sprintf(`{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": "es:*",
      "Principal": "*",
      "Effect": "Allow",
      "Resource": "arn:aws:es:%v:%v:domain/%v/*",
      "Condition": {
        "IpAddress": {"aws:SourceIp": ["66.193.100.22/32"]}
      }
    }
  ]
}
`, current.Name, currentGetCallerIdentity.AccountId, domain)),
		})
		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 config = new Config();
    var domain = config.Get("domain") ?? "tf-test";
    var current = Aws.GetRegion.Invoke();
    var currentGetCallerIdentity = Aws.GetCallerIdentity.Invoke();
    var example = new Aws.ElasticSearch.Domain("example", new()
    {
        DomainName = domain,
        AccessPolicies = Output.Tuple(current, currentGetCallerIdentity).Apply(values =>
        {
            var current = values.Item1;
            var currentGetCallerIdentity = values.Item2;
            return @$"{{
  ""Version"": ""2012-10-17"",
  ""Statement"": [
    {{
      ""Action"": ""es:*"",
      ""Principal"": ""*"",
      ""Effect"": ""Allow"",
      ""Resource"": ""arn:aws:es:{current.Apply(getRegionResult => getRegionResult.Name)}:{currentGetCallerIdentity.Apply(getCallerIdentityResult => getCallerIdentityResult.AccountId)}:domain/{domain}/*"",
      ""Condition"": {{
        ""IpAddress"": {{""aws:SourceIp"": [""66.193.100.22/32""]}}
      }}
    }}
  ]
}}
";
        }),
    });
});
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.GetRegionArgs;
import com.pulumi.aws.inputs.GetCallerIdentityArgs;
import com.pulumi.aws.elasticsearch.Domain;
import com.pulumi.aws.elasticsearch.DomainArgs;
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 config = ctx.config();
        final var domain = config.get("domain").orElse("tf-test");
        final var current = AwsFunctions.getRegion();
        final var currentGetCallerIdentity = AwsFunctions.getCallerIdentity();
        var example = new Domain("example", DomainArgs.builder()
            .domainName(domain)
            .accessPolicies("""
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": "es:*",
      "Principal": "*",
      "Effect": "Allow",
      "Resource": "arn:aws:es:%s:%s:domain/%s/*",
      "Condition": {
        "IpAddress": {"aws:SourceIp": ["66.193.100.22/32"]}
      }
    }
  ]
}
", current.applyValue(getRegionResult -> getRegionResult.name()),currentGetCallerIdentity.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()),domain))
            .build());
    }
}
configuration:
  domain:
    type: string
    default: tf-test
resources:
  example:
    type: aws:elasticsearch:Domain
    properties:
      domainName: ${domain}
      accessPolicies: |
        {
          "Version": "2012-10-17",
          "Statement": [
            {
              "Action": "es:*",
              "Principal": "*",
              "Effect": "Allow",
              "Resource": "arn:aws:es:${current.name}:${currentGetCallerIdentity.accountId}:domain/${domain}/*",
              "Condition": {
                "IpAddress": {"aws:SourceIp": ["66.193.100.22/32"]}
              }
            }
          ]
        }        
variables:
  current:
    fn::invoke:
      function: aws:getRegion
      arguments: {}
  currentGetCallerIdentity:
    fn::invoke:
      function: aws:getCallerIdentity
      arguments: {}
Log Publishing to CloudWatch Logs
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleLogGroup = new aws.cloudwatch.LogGroup("example", {name: "example"});
const example = aws.iam.getPolicyDocument({
    statements: [{
        effect: "Allow",
        principals: [{
            type: "Service",
            identifiers: ["es.amazonaws.com"],
        }],
        actions: [
            "logs:PutLogEvents",
            "logs:PutLogEventsBatch",
            "logs:CreateLogStream",
        ],
        resources: ["arn:aws:logs:*"],
    }],
});
const exampleLogResourcePolicy = new aws.cloudwatch.LogResourcePolicy("example", {
    policyName: "example",
    policyDocument: example.then(example => example.json),
});
const exampleDomain = new aws.elasticsearch.Domain("example", {logPublishingOptions: [{
    cloudwatchLogGroupArn: exampleLogGroup.arn,
    logType: "INDEX_SLOW_LOGS",
}]});
import pulumi
import pulumi_aws as aws
example_log_group = aws.cloudwatch.LogGroup("example", name="example")
example = aws.iam.get_policy_document(statements=[{
    "effect": "Allow",
    "principals": [{
        "type": "Service",
        "identifiers": ["es.amazonaws.com"],
    }],
    "actions": [
        "logs:PutLogEvents",
        "logs:PutLogEventsBatch",
        "logs:CreateLogStream",
    ],
    "resources": ["arn:aws:logs:*"],
}])
example_log_resource_policy = aws.cloudwatch.LogResourcePolicy("example",
    policy_name="example",
    policy_document=example.json)
example_domain = aws.elasticsearch.Domain("example", log_publishing_options=[{
    "cloudwatch_log_group_arn": example_log_group.arn,
    "log_type": "INDEX_SLOW_LOGS",
}])
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudwatch"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/elasticsearch"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleLogGroup, err := cloudwatch.NewLogGroup(ctx, "example", &cloudwatch.LogGroupArgs{
			Name: pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		example, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{
			Statements: []iam.GetPolicyDocumentStatement{
				{
					Effect: pulumi.StringRef("Allow"),
					Principals: []iam.GetPolicyDocumentStatementPrincipal{
						{
							Type: "Service",
							Identifiers: []string{
								"es.amazonaws.com",
							},
						},
					},
					Actions: []string{
						"logs:PutLogEvents",
						"logs:PutLogEventsBatch",
						"logs:CreateLogStream",
					},
					Resources: []string{
						"arn:aws:logs:*",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = cloudwatch.NewLogResourcePolicy(ctx, "example", &cloudwatch.LogResourcePolicyArgs{
			PolicyName:     pulumi.String("example"),
			PolicyDocument: pulumi.String(example.Json),
		})
		if err != nil {
			return err
		}
		_, err = elasticsearch.NewDomain(ctx, "example", &elasticsearch.DomainArgs{
			LogPublishingOptions: elasticsearch.DomainLogPublishingOptionArray{
				&elasticsearch.DomainLogPublishingOptionArgs{
					CloudwatchLogGroupArn: exampleLogGroup.Arn,
					LogType:               pulumi.String("INDEX_SLOW_LOGS"),
				},
			},
		})
		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 exampleLogGroup = new Aws.CloudWatch.LogGroup("example", new()
    {
        Name = "example",
    });
    var example = Aws.Iam.GetPolicyDocument.Invoke(new()
    {
        Statements = new[]
        {
            new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
            {
                Effect = "Allow",
                Principals = new[]
                {
                    new Aws.Iam.Inputs.GetPolicyDocumentStatementPrincipalInputArgs
                    {
                        Type = "Service",
                        Identifiers = new[]
                        {
                            "es.amazonaws.com",
                        },
                    },
                },
                Actions = new[]
                {
                    "logs:PutLogEvents",
                    "logs:PutLogEventsBatch",
                    "logs:CreateLogStream",
                },
                Resources = new[]
                {
                    "arn:aws:logs:*",
                },
            },
        },
    });
    var exampleLogResourcePolicy = new Aws.CloudWatch.LogResourcePolicy("example", new()
    {
        PolicyName = "example",
        PolicyDocument = example.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Json),
    });
    var exampleDomain = new Aws.ElasticSearch.Domain("example", new()
    {
        LogPublishingOptions = new[]
        {
            new Aws.ElasticSearch.Inputs.DomainLogPublishingOptionArgs
            {
                CloudwatchLogGroupArn = exampleLogGroup.Arn,
                LogType = "INDEX_SLOW_LOGS",
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudwatch.LogGroup;
import com.pulumi.aws.cloudwatch.LogGroupArgs;
import com.pulumi.aws.iam.IamFunctions;
import com.pulumi.aws.iam.inputs.GetPolicyDocumentArgs;
import com.pulumi.aws.cloudwatch.LogResourcePolicy;
import com.pulumi.aws.cloudwatch.LogResourcePolicyArgs;
import com.pulumi.aws.elasticsearch.Domain;
import com.pulumi.aws.elasticsearch.DomainArgs;
import com.pulumi.aws.elasticsearch.inputs.DomainLogPublishingOptionArgs;
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) {
        var exampleLogGroup = new LogGroup("exampleLogGroup", LogGroupArgs.builder()
            .name("example")
            .build());
        final var example = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
            .statements(GetPolicyDocumentStatementArgs.builder()
                .effect("Allow")
                .principals(GetPolicyDocumentStatementPrincipalArgs.builder()
                    .type("Service")
                    .identifiers("es.amazonaws.com")
                    .build())
                .actions(                
                    "logs:PutLogEvents",
                    "logs:PutLogEventsBatch",
                    "logs:CreateLogStream")
                .resources("arn:aws:logs:*")
                .build())
            .build());
        var exampleLogResourcePolicy = new LogResourcePolicy("exampleLogResourcePolicy", LogResourcePolicyArgs.builder()
            .policyName("example")
            .policyDocument(example.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))
            .build());
        var exampleDomain = new Domain("exampleDomain", DomainArgs.builder()
            .logPublishingOptions(DomainLogPublishingOptionArgs.builder()
                .cloudwatchLogGroupArn(exampleLogGroup.arn())
                .logType("INDEX_SLOW_LOGS")
                .build())
            .build());
    }
}
resources:
  exampleLogGroup:
    type: aws:cloudwatch:LogGroup
    name: example
    properties:
      name: example
  exampleLogResourcePolicy:
    type: aws:cloudwatch:LogResourcePolicy
    name: example
    properties:
      policyName: example
      policyDocument: ${example.json}
  exampleDomain:
    type: aws:elasticsearch:Domain
    name: example
    properties:
      logPublishingOptions:
        - cloudwatchLogGroupArn: ${exampleLogGroup.arn}
          logType: INDEX_SLOW_LOGS
variables:
  example:
    fn::invoke:
      function: aws:iam:getPolicyDocument
      arguments:
        statements:
          - effect: Allow
            principals:
              - type: Service
                identifiers:
                  - es.amazonaws.com
            actions:
              - logs:PutLogEvents
              - logs:PutLogEventsBatch
              - logs:CreateLogStream
            resources:
              - arn:aws:logs:*
VPC based ES
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const config = new pulumi.Config();
const vpc = config.requireObject("vpc");
const domain = config.get("domain") || "tf-test";
const selected = aws.ec2.getVpc({
    tags: {
        Name: vpc,
    },
});
const selectedGetSubnets = selected.then(selected => aws.ec2.getSubnets({
    filters: [{
        name: "vpc-id",
        values: [selected.id],
    }],
    tags: {
        Tier: "private",
    },
}));
const current = aws.getRegion({});
const currentGetCallerIdentity = aws.getCallerIdentity({});
const es = new aws.ec2.SecurityGroup("es", {
    name: `${vpc}-elasticsearch-${domain}`,
    description: "Managed by Pulumi",
    vpcId: selected.then(selected => selected.id),
    ingress: [{
        fromPort: 443,
        toPort: 443,
        protocol: "tcp",
        cidrBlocks: [selected.then(selected => selected.cidrBlock)],
    }],
});
const esServiceLinkedRole = new aws.iam.ServiceLinkedRole("es", {awsServiceName: "opensearchservice.amazonaws.com"});
const esDomain = new aws.elasticsearch.Domain("es", {
    domainName: domain,
    elasticsearchVersion: "6.3",
    clusterConfig: {
        instanceType: "m4.large.elasticsearch",
        zoneAwarenessEnabled: true,
    },
    vpcOptions: {
        subnetIds: [
            selectedGetSubnets.then(selectedGetSubnets => selectedGetSubnets.ids?.[0]),
            selectedGetSubnets.then(selectedGetSubnets => selectedGetSubnets.ids?.[1]),
        ],
        securityGroupIds: [es.id],
    },
    advancedOptions: {
        "rest.action.multi.allow_explicit_index": "true",
    },
    accessPolicies: Promise.all([current, currentGetCallerIdentity]).then(([current, currentGetCallerIdentity]) => `{
	"Version": "2012-10-17",
	"Statement": [
		{
			"Action": "es:*",
			"Principal": "*",
			"Effect": "Allow",
			"Resource": "arn:aws:es:${current.name}:${currentGetCallerIdentity.accountId}:domain/${domain}/*"
		}
	]
}
`),
    tags: {
        Domain: "TestDomain",
    },
}, {
    dependsOn: [esServiceLinkedRole],
});
import pulumi
import pulumi_aws as aws
config = pulumi.Config()
vpc = config.require_object("vpc")
domain = config.get("domain")
if domain is None:
    domain = "tf-test"
selected = aws.ec2.get_vpc(tags={
    "Name": vpc,
})
selected_get_subnets = aws.ec2.get_subnets(filters=[{
        "name": "vpc-id",
        "values": [selected.id],
    }],
    tags={
        "Tier": "private",
    })
current = aws.get_region()
current_get_caller_identity = aws.get_caller_identity()
es = aws.ec2.SecurityGroup("es",
    name=f"{vpc}-elasticsearch-{domain}",
    description="Managed by Pulumi",
    vpc_id=selected.id,
    ingress=[{
        "from_port": 443,
        "to_port": 443,
        "protocol": "tcp",
        "cidr_blocks": [selected.cidr_block],
    }])
es_service_linked_role = aws.iam.ServiceLinkedRole("es", aws_service_name="opensearchservice.amazonaws.com")
es_domain = aws.elasticsearch.Domain("es",
    domain_name=domain,
    elasticsearch_version="6.3",
    cluster_config={
        "instance_type": "m4.large.elasticsearch",
        "zone_awareness_enabled": True,
    },
    vpc_options={
        "subnet_ids": [
            selected_get_subnets.ids[0],
            selected_get_subnets.ids[1],
        ],
        "security_group_ids": [es.id],
    },
    advanced_options={
        "rest.action.multi.allow_explicit_index": "true",
    },
    access_policies=f"""{{
\x09"Version": "2012-10-17",
\x09"Statement": [
\x09\x09{{
\x09\x09\x09"Action": "es:*",
\x09\x09\x09"Principal": "*",
\x09\x09\x09"Effect": "Allow",
\x09\x09\x09"Resource": "arn:aws:es:{current.name}:{current_get_caller_identity.account_id}:domain/{domain}/*"
\x09\x09}}
\x09]
}}
""",
    tags={
        "Domain": "TestDomain",
    },
    opts = pulumi.ResourceOptions(depends_on=[es_service_linked_role]))
package main
import (
	"fmt"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/elasticsearch"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
vpc := cfg.RequireObject("vpc")
domain := "tf-test";
if param := cfg.Get("domain"); param != ""{
domain = param
}
selected, err := ec2.LookupVpc(ctx, &ec2.LookupVpcArgs{
Tags: pulumi.StringMap{
"Name": vpc,
},
}, nil);
if err != nil {
return err
}
selectedGetSubnets, err := ec2.GetSubnets(ctx, &ec2.GetSubnetsArgs{
Filters: []ec2.GetSubnetsFilter{
{
Name: "vpc-id",
Values: interface{}{
selected.Id,
},
},
},
Tags: map[string]interface{}{
"Tier": "private",
},
}, nil);
if err != nil {
return err
}
current, err := aws.GetRegion(ctx, &aws.GetRegionArgs{
}, nil);
if err != nil {
return err
}
currentGetCallerIdentity, err := aws.GetCallerIdentity(ctx, &aws.GetCallerIdentityArgs{
}, nil);
if err != nil {
return err
}
es, err := ec2.NewSecurityGroup(ctx, "es", &ec2.SecurityGroupArgs{
Name: pulumi.Sprintf("%v-elasticsearch-%v", vpc, domain),
Description: pulumi.String("Managed by Pulumi"),
VpcId: pulumi.String(selected.Id),
Ingress: ec2.SecurityGroupIngressArray{
&ec2.SecurityGroupIngressArgs{
FromPort: pulumi.Int(443),
ToPort: pulumi.Int(443),
Protocol: pulumi.String("tcp"),
CidrBlocks: pulumi.StringArray{
pulumi.String(selected.CidrBlock),
},
},
},
})
if err != nil {
return err
}
esServiceLinkedRole, err := iam.NewServiceLinkedRole(ctx, "es", &iam.ServiceLinkedRoleArgs{
AwsServiceName: pulumi.String("opensearchservice.amazonaws.com"),
})
if err != nil {
return err
}
_, err = elasticsearch.NewDomain(ctx, "es", &elasticsearch.DomainArgs{
DomainName: pulumi.String(domain),
ElasticsearchVersion: pulumi.String("6.3"),
ClusterConfig: &elasticsearch.DomainClusterConfigArgs{
InstanceType: pulumi.String("m4.large.elasticsearch"),
ZoneAwarenessEnabled: pulumi.Bool(true),
},
VpcOptions: &elasticsearch.DomainVpcOptionsArgs{
SubnetIds: pulumi.StringArray{
pulumi.String(selectedGetSubnets.Ids[0]),
pulumi.String(selectedGetSubnets.Ids[1]),
},
SecurityGroupIds: pulumi.StringArray{
es.ID(),
},
},
AdvancedOptions: pulumi.StringMap{
"rest.action.multi.allow_explicit_index": pulumi.String("true"),
},
AccessPolicies: pulumi.Any(fmt.Sprintf(`{
	"Version": "2012-10-17",
	"Statement": [
		{
			"Action": "es:*",
			"Principal": "*",
			"Effect": "Allow",
			"Resource": "arn:aws:es:%v:%v:domain/%v/*"
		}
	]
}
`, current.Name, currentGetCallerIdentity.AccountId, domain)),
Tags: pulumi.StringMap{
"Domain": pulumi.String("TestDomain"),
},
}, pulumi.DependsOn([]pulumi.Resource{
esServiceLinkedRole,
}))
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 config = new Config();
    var vpc = config.RequireObject<dynamic>("vpc");
    var domain = config.Get("domain") ?? "tf-test";
    var selected = Aws.Ec2.GetVpc.Invoke(new()
    {
        Tags = 
        {
            { "Name", vpc },
        },
    });
    var selectedGetSubnets = Aws.Ec2.GetSubnets.Invoke(new()
    {
        Filters = new[]
        {
            new Aws.Ec2.Inputs.GetSubnetsFilterInputArgs
            {
                Name = "vpc-id",
                Values = new[]
                {
                    selected.Apply(getVpcResult => getVpcResult.Id),
                },
            },
        },
        Tags = 
        {
            { "Tier", "private" },
        },
    });
    var current = Aws.GetRegion.Invoke();
    var currentGetCallerIdentity = Aws.GetCallerIdentity.Invoke();
    var es = new Aws.Ec2.SecurityGroup("es", new()
    {
        Name = $"{vpc}-elasticsearch-{domain}",
        Description = "Managed by Pulumi",
        VpcId = selected.Apply(getVpcResult => getVpcResult.Id),
        Ingress = new[]
        {
            new Aws.Ec2.Inputs.SecurityGroupIngressArgs
            {
                FromPort = 443,
                ToPort = 443,
                Protocol = "tcp",
                CidrBlocks = new[]
                {
                    selected.Apply(getVpcResult => getVpcResult.CidrBlock),
                },
            },
        },
    });
    var esServiceLinkedRole = new Aws.Iam.ServiceLinkedRole("es", new()
    {
        AwsServiceName = "opensearchservice.amazonaws.com",
    });
    var esDomain = new Aws.ElasticSearch.Domain("es", new()
    {
        DomainName = domain,
        ElasticsearchVersion = "6.3",
        ClusterConfig = new Aws.ElasticSearch.Inputs.DomainClusterConfigArgs
        {
            InstanceType = "m4.large.elasticsearch",
            ZoneAwarenessEnabled = true,
        },
        VpcOptions = new Aws.ElasticSearch.Inputs.DomainVpcOptionsArgs
        {
            SubnetIds = new[]
            {
                selectedGetSubnets.Apply(getSubnetsResult => getSubnetsResult.Ids[0]),
                selectedGetSubnets.Apply(getSubnetsResult => getSubnetsResult.Ids[1]),
            },
            SecurityGroupIds = new[]
            {
                es.Id,
            },
        },
        AdvancedOptions = 
        {
            { "rest.action.multi.allow_explicit_index", "true" },
        },
        AccessPolicies = Output.Tuple(current, currentGetCallerIdentity).Apply(values =>
        {
            var current = values.Item1;
            var currentGetCallerIdentity = values.Item2;
            return @$"{{
	""Version"": ""2012-10-17"",
	""Statement"": [
		{{
			""Action"": ""es:*"",
			""Principal"": ""*"",
			""Effect"": ""Allow"",
			""Resource"": ""arn:aws:es:{current.Apply(getRegionResult => getRegionResult.Name)}:{currentGetCallerIdentity.Apply(getCallerIdentityResult => getCallerIdentityResult.AccountId)}:domain/{domain}/*""
		}}
	]
}}
";
        }),
        Tags = 
        {
            { "Domain", "TestDomain" },
        },
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            esServiceLinkedRole,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Ec2Functions;
import com.pulumi.aws.ec2.inputs.GetVpcArgs;
import com.pulumi.aws.ec2.inputs.GetSubnetsArgs;
import com.pulumi.aws.AwsFunctions;
import com.pulumi.aws.inputs.GetRegionArgs;
import com.pulumi.aws.inputs.GetCallerIdentityArgs;
import com.pulumi.aws.ec2.SecurityGroup;
import com.pulumi.aws.ec2.SecurityGroupArgs;
import com.pulumi.aws.ec2.inputs.SecurityGroupIngressArgs;
import com.pulumi.aws.iam.ServiceLinkedRole;
import com.pulumi.aws.iam.ServiceLinkedRoleArgs;
import com.pulumi.aws.elasticsearch.Domain;
import com.pulumi.aws.elasticsearch.DomainArgs;
import com.pulumi.aws.elasticsearch.inputs.DomainClusterConfigArgs;
import com.pulumi.aws.elasticsearch.inputs.DomainVpcOptionsArgs;
import com.pulumi.resources.CustomResourceOptions;
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 config = ctx.config();
        final var vpc = config.get("vpc");
        final var domain = config.get("domain").orElse("tf-test");
        final var selected = Ec2Functions.getVpc(GetVpcArgs.builder()
            .tags(Map.of("Name", vpc))
            .build());
        final var selectedGetSubnets = Ec2Functions.getSubnets(GetSubnetsArgs.builder()
            .filters(GetSubnetsFilterArgs.builder()
                .name("vpc-id")
                .values(selected.applyValue(getVpcResult -> getVpcResult.id()))
                .build())
            .tags(Map.of("Tier", "private"))
            .build());
        final var current = AwsFunctions.getRegion();
        final var currentGetCallerIdentity = AwsFunctions.getCallerIdentity();
        var es = new SecurityGroup("es", SecurityGroupArgs.builder()
            .name(String.format("%s-elasticsearch-%s", vpc,domain))
            .description("Managed by Pulumi")
            .vpcId(selected.applyValue(getVpcResult -> getVpcResult.id()))
            .ingress(SecurityGroupIngressArgs.builder()
                .fromPort(443)
                .toPort(443)
                .protocol("tcp")
                .cidrBlocks(selected.applyValue(getVpcResult -> getVpcResult.cidrBlock()))
                .build())
            .build());
        var esServiceLinkedRole = new ServiceLinkedRole("esServiceLinkedRole", ServiceLinkedRoleArgs.builder()
            .awsServiceName("opensearchservice.amazonaws.com")
            .build());
        var esDomain = new Domain("esDomain", DomainArgs.builder()
            .domainName(domain)
            .elasticsearchVersion("6.3")
            .clusterConfig(DomainClusterConfigArgs.builder()
                .instanceType("m4.large.elasticsearch")
                .zoneAwarenessEnabled(true)
                .build())
            .vpcOptions(DomainVpcOptionsArgs.builder()
                .subnetIds(                
                    selectedGetSubnets.applyValue(getSubnetsResult -> getSubnetsResult.ids()[0]),
                    selectedGetSubnets.applyValue(getSubnetsResult -> getSubnetsResult.ids()[1]))
                .securityGroupIds(es.id())
                .build())
            .advancedOptions(Map.of("rest.action.multi.allow_explicit_index", "true"))
            .accessPolicies("""
{
	"Version": "2012-10-17",
	"Statement": [
		{
			"Action": "es:*",
			"Principal": "*",
			"Effect": "Allow",
			"Resource": "arn:aws:es:%s:%s:domain/%s/*"
		}
	]
}
", current.applyValue(getRegionResult -> getRegionResult.name()),currentGetCallerIdentity.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()),domain))
            .tags(Map.of("Domain", "TestDomain"))
            .build(), CustomResourceOptions.builder()
                .dependsOn(esServiceLinkedRole)
                .build());
    }
}
configuration:
  vpc:
    type: dynamic
  domain:
    type: string
    default: tf-test
resources:
  es:
    type: aws:ec2:SecurityGroup
    properties:
      name: ${vpc}-elasticsearch-${domain}
      description: Managed by Pulumi
      vpcId: ${selected.id}
      ingress:
        - fromPort: 443
          toPort: 443
          protocol: tcp
          cidrBlocks:
            - ${selected.cidrBlock}
  esServiceLinkedRole:
    type: aws:iam:ServiceLinkedRole
    name: es
    properties:
      awsServiceName: opensearchservice.amazonaws.com
  esDomain:
    type: aws:elasticsearch:Domain
    name: es
    properties:
      domainName: ${domain}
      elasticsearchVersion: '6.3'
      clusterConfig:
        instanceType: m4.large.elasticsearch
        zoneAwarenessEnabled: true
      vpcOptions:
        subnetIds:
          - ${selectedGetSubnets.ids[0]}
          - ${selectedGetSubnets.ids[1]}
        securityGroupIds:
          - ${es.id}
      advancedOptions:
        rest.action.multi.allow_explicit_index: 'true'
      accessPolicies: |
        {
        	"Version": "2012-10-17",
        	"Statement": [
        		{
        			"Action": "es:*",
        			"Principal": "*",
        			"Effect": "Allow",
        			"Resource": "arn:aws:es:${current.name}:${currentGetCallerIdentity.accountId}:domain/${domain}/*"
        		}
        	]
        }        
      tags:
        Domain: TestDomain
    options:
      dependsOn:
        - ${esServiceLinkedRole}
variables:
  selected:
    fn::invoke:
      function: aws:ec2:getVpc
      arguments:
        tags:
          Name: ${vpc}
  selectedGetSubnets:
    fn::invoke:
      function: aws:ec2:getSubnets
      arguments:
        filters:
          - name: vpc-id
            values:
              - ${selected.id}
        tags:
          Tier: private
  current:
    fn::invoke:
      function: aws:getRegion
      arguments: {}
  currentGetCallerIdentity:
    fn::invoke:
      function: aws:getCallerIdentity
      arguments: {}
Create Domain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Domain(name: string, args?: DomainArgs, opts?: CustomResourceOptions);@overload
def Domain(resource_name: str,
           args: Optional[DomainArgs] = None,
           opts: Optional[ResourceOptions] = None)
@overload
def Domain(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           access_policies: Optional[str] = None,
           advanced_options: Optional[Mapping[str, str]] = None,
           advanced_security_options: Optional[DomainAdvancedSecurityOptionsArgs] = None,
           auto_tune_options: Optional[DomainAutoTuneOptionsArgs] = None,
           cluster_config: Optional[DomainClusterConfigArgs] = None,
           cognito_options: Optional[DomainCognitoOptionsArgs] = None,
           domain_endpoint_options: Optional[DomainDomainEndpointOptionsArgs] = None,
           domain_name: Optional[str] = None,
           ebs_options: Optional[DomainEbsOptionsArgs] = None,
           elasticsearch_version: Optional[str] = None,
           encrypt_at_rest: Optional[DomainEncryptAtRestArgs] = None,
           log_publishing_options: Optional[Sequence[DomainLogPublishingOptionArgs]] = None,
           node_to_node_encryption: Optional[DomainNodeToNodeEncryptionArgs] = None,
           snapshot_options: Optional[DomainSnapshotOptionsArgs] = None,
           tags: Optional[Mapping[str, str]] = None,
           vpc_options: Optional[DomainVpcOptionsArgs] = None)func NewDomain(ctx *Context, name string, args *DomainArgs, opts ...ResourceOption) (*Domain, error)public Domain(string name, DomainArgs? args = null, CustomResourceOptions? opts = null)
public Domain(String name, DomainArgs args)
public Domain(String name, DomainArgs args, CustomResourceOptions options)
type: aws:elasticsearch:Domain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DomainArgs
- 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 DomainArgs
- 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 DomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DomainArgs
- 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 exampledomainResourceResourceFromElasticsearchdomain = new Aws.ElasticSearch.Domain("exampledomainResourceResourceFromElasticsearchdomain", new()
{
    AccessPolicies = "string",
    AdvancedOptions = 
    {
        { "string", "string" },
    },
    AdvancedSecurityOptions = new Aws.ElasticSearch.Inputs.DomainAdvancedSecurityOptionsArgs
    {
        Enabled = false,
        InternalUserDatabaseEnabled = false,
        MasterUserOptions = new Aws.ElasticSearch.Inputs.DomainAdvancedSecurityOptionsMasterUserOptionsArgs
        {
            MasterUserArn = "string",
            MasterUserName = "string",
            MasterUserPassword = "string",
        },
    },
    AutoTuneOptions = new Aws.ElasticSearch.Inputs.DomainAutoTuneOptionsArgs
    {
        DesiredState = "string",
        MaintenanceSchedules = new[]
        {
            new Aws.ElasticSearch.Inputs.DomainAutoTuneOptionsMaintenanceScheduleArgs
            {
                CronExpressionForRecurrence = "string",
                Duration = new Aws.ElasticSearch.Inputs.DomainAutoTuneOptionsMaintenanceScheduleDurationArgs
                {
                    Unit = "string",
                    Value = 0,
                },
                StartAt = "string",
            },
        },
        RollbackOnDisable = "string",
    },
    ClusterConfig = new Aws.ElasticSearch.Inputs.DomainClusterConfigArgs
    {
        ColdStorageOptions = new Aws.ElasticSearch.Inputs.DomainClusterConfigColdStorageOptionsArgs
        {
            Enabled = false,
        },
        DedicatedMasterCount = 0,
        DedicatedMasterEnabled = false,
        DedicatedMasterType = "string",
        InstanceCount = 0,
        InstanceType = "string",
        WarmCount = 0,
        WarmEnabled = false,
        WarmType = "string",
        ZoneAwarenessConfig = new Aws.ElasticSearch.Inputs.DomainClusterConfigZoneAwarenessConfigArgs
        {
            AvailabilityZoneCount = 0,
        },
        ZoneAwarenessEnabled = false,
    },
    CognitoOptions = new Aws.ElasticSearch.Inputs.DomainCognitoOptionsArgs
    {
        IdentityPoolId = "string",
        RoleArn = "string",
        UserPoolId = "string",
        Enabled = false,
    },
    DomainEndpointOptions = new Aws.ElasticSearch.Inputs.DomainDomainEndpointOptionsArgs
    {
        CustomEndpoint = "string",
        CustomEndpointCertificateArn = "string",
        CustomEndpointEnabled = false,
        EnforceHttps = false,
        TlsSecurityPolicy = "string",
    },
    DomainName = "string",
    EbsOptions = new Aws.ElasticSearch.Inputs.DomainEbsOptionsArgs
    {
        EbsEnabled = false,
        Iops = 0,
        Throughput = 0,
        VolumeSize = 0,
        VolumeType = "string",
    },
    ElasticsearchVersion = "string",
    EncryptAtRest = new Aws.ElasticSearch.Inputs.DomainEncryptAtRestArgs
    {
        Enabled = false,
        KmsKeyId = "string",
    },
    LogPublishingOptions = new[]
    {
        new Aws.ElasticSearch.Inputs.DomainLogPublishingOptionArgs
        {
            CloudwatchLogGroupArn = "string",
            LogType = "string",
            Enabled = false,
        },
    },
    NodeToNodeEncryption = new Aws.ElasticSearch.Inputs.DomainNodeToNodeEncryptionArgs
    {
        Enabled = false,
    },
    SnapshotOptions = new Aws.ElasticSearch.Inputs.DomainSnapshotOptionsArgs
    {
        AutomatedSnapshotStartHour = 0,
    },
    Tags = 
    {
        { "string", "string" },
    },
    VpcOptions = new Aws.ElasticSearch.Inputs.DomainVpcOptionsArgs
    {
        AvailabilityZones = new[]
        {
            "string",
        },
        SecurityGroupIds = new[]
        {
            "string",
        },
        SubnetIds = new[]
        {
            "string",
        },
        VpcId = "string",
    },
});
example, err := elasticsearch.NewDomain(ctx, "exampledomainResourceResourceFromElasticsearchdomain", &elasticsearch.DomainArgs{
	AccessPolicies: pulumi.Any("string"),
	AdvancedOptions: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	AdvancedSecurityOptions: &elasticsearch.DomainAdvancedSecurityOptionsArgs{
		Enabled:                     pulumi.Bool(false),
		InternalUserDatabaseEnabled: pulumi.Bool(false),
		MasterUserOptions: &elasticsearch.DomainAdvancedSecurityOptionsMasterUserOptionsArgs{
			MasterUserArn:      pulumi.String("string"),
			MasterUserName:     pulumi.String("string"),
			MasterUserPassword: pulumi.String("string"),
		},
	},
	AutoTuneOptions: &elasticsearch.DomainAutoTuneOptionsArgs{
		DesiredState: pulumi.String("string"),
		MaintenanceSchedules: elasticsearch.DomainAutoTuneOptionsMaintenanceScheduleArray{
			&elasticsearch.DomainAutoTuneOptionsMaintenanceScheduleArgs{
				CronExpressionForRecurrence: pulumi.String("string"),
				Duration: &elasticsearch.DomainAutoTuneOptionsMaintenanceScheduleDurationArgs{
					Unit:  pulumi.String("string"),
					Value: pulumi.Int(0),
				},
				StartAt: pulumi.String("string"),
			},
		},
		RollbackOnDisable: pulumi.String("string"),
	},
	ClusterConfig: &elasticsearch.DomainClusterConfigArgs{
		ColdStorageOptions: &elasticsearch.DomainClusterConfigColdStorageOptionsArgs{
			Enabled: pulumi.Bool(false),
		},
		DedicatedMasterCount:   pulumi.Int(0),
		DedicatedMasterEnabled: pulumi.Bool(false),
		DedicatedMasterType:    pulumi.String("string"),
		InstanceCount:          pulumi.Int(0),
		InstanceType:           pulumi.String("string"),
		WarmCount:              pulumi.Int(0),
		WarmEnabled:            pulumi.Bool(false),
		WarmType:               pulumi.String("string"),
		ZoneAwarenessConfig: &elasticsearch.DomainClusterConfigZoneAwarenessConfigArgs{
			AvailabilityZoneCount: pulumi.Int(0),
		},
		ZoneAwarenessEnabled: pulumi.Bool(false),
	},
	CognitoOptions: &elasticsearch.DomainCognitoOptionsArgs{
		IdentityPoolId: pulumi.String("string"),
		RoleArn:        pulumi.String("string"),
		UserPoolId:     pulumi.String("string"),
		Enabled:        pulumi.Bool(false),
	},
	DomainEndpointOptions: &elasticsearch.DomainDomainEndpointOptionsArgs{
		CustomEndpoint:               pulumi.String("string"),
		CustomEndpointCertificateArn: pulumi.String("string"),
		CustomEndpointEnabled:        pulumi.Bool(false),
		EnforceHttps:                 pulumi.Bool(false),
		TlsSecurityPolicy:            pulumi.String("string"),
	},
	DomainName: pulumi.String("string"),
	EbsOptions: &elasticsearch.DomainEbsOptionsArgs{
		EbsEnabled: pulumi.Bool(false),
		Iops:       pulumi.Int(0),
		Throughput: pulumi.Int(0),
		VolumeSize: pulumi.Int(0),
		VolumeType: pulumi.String("string"),
	},
	ElasticsearchVersion: pulumi.String("string"),
	EncryptAtRest: &elasticsearch.DomainEncryptAtRestArgs{
		Enabled:  pulumi.Bool(false),
		KmsKeyId: pulumi.String("string"),
	},
	LogPublishingOptions: elasticsearch.DomainLogPublishingOptionArray{
		&elasticsearch.DomainLogPublishingOptionArgs{
			CloudwatchLogGroupArn: pulumi.String("string"),
			LogType:               pulumi.String("string"),
			Enabled:               pulumi.Bool(false),
		},
	},
	NodeToNodeEncryption: &elasticsearch.DomainNodeToNodeEncryptionArgs{
		Enabled: pulumi.Bool(false),
	},
	SnapshotOptions: &elasticsearch.DomainSnapshotOptionsArgs{
		AutomatedSnapshotStartHour: pulumi.Int(0),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	VpcOptions: &elasticsearch.DomainVpcOptionsArgs{
		AvailabilityZones: pulumi.StringArray{
			pulumi.String("string"),
		},
		SecurityGroupIds: pulumi.StringArray{
			pulumi.String("string"),
		},
		SubnetIds: pulumi.StringArray{
			pulumi.String("string"),
		},
		VpcId: pulumi.String("string"),
	},
})
var exampledomainResourceResourceFromElasticsearchdomain = new Domain("exampledomainResourceResourceFromElasticsearchdomain", DomainArgs.builder()
    .accessPolicies("string")
    .advancedOptions(Map.of("string", "string"))
    .advancedSecurityOptions(DomainAdvancedSecurityOptionsArgs.builder()
        .enabled(false)
        .internalUserDatabaseEnabled(false)
        .masterUserOptions(DomainAdvancedSecurityOptionsMasterUserOptionsArgs.builder()
            .masterUserArn("string")
            .masterUserName("string")
            .masterUserPassword("string")
            .build())
        .build())
    .autoTuneOptions(DomainAutoTuneOptionsArgs.builder()
        .desiredState("string")
        .maintenanceSchedules(DomainAutoTuneOptionsMaintenanceScheduleArgs.builder()
            .cronExpressionForRecurrence("string")
            .duration(DomainAutoTuneOptionsMaintenanceScheduleDurationArgs.builder()
                .unit("string")
                .value(0)
                .build())
            .startAt("string")
            .build())
        .rollbackOnDisable("string")
        .build())
    .clusterConfig(DomainClusterConfigArgs.builder()
        .coldStorageOptions(DomainClusterConfigColdStorageOptionsArgs.builder()
            .enabled(false)
            .build())
        .dedicatedMasterCount(0)
        .dedicatedMasterEnabled(false)
        .dedicatedMasterType("string")
        .instanceCount(0)
        .instanceType("string")
        .warmCount(0)
        .warmEnabled(false)
        .warmType("string")
        .zoneAwarenessConfig(DomainClusterConfigZoneAwarenessConfigArgs.builder()
            .availabilityZoneCount(0)
            .build())
        .zoneAwarenessEnabled(false)
        .build())
    .cognitoOptions(DomainCognitoOptionsArgs.builder()
        .identityPoolId("string")
        .roleArn("string")
        .userPoolId("string")
        .enabled(false)
        .build())
    .domainEndpointOptions(DomainDomainEndpointOptionsArgs.builder()
        .customEndpoint("string")
        .customEndpointCertificateArn("string")
        .customEndpointEnabled(false)
        .enforceHttps(false)
        .tlsSecurityPolicy("string")
        .build())
    .domainName("string")
    .ebsOptions(DomainEbsOptionsArgs.builder()
        .ebsEnabled(false)
        .iops(0)
        .throughput(0)
        .volumeSize(0)
        .volumeType("string")
        .build())
    .elasticsearchVersion("string")
    .encryptAtRest(DomainEncryptAtRestArgs.builder()
        .enabled(false)
        .kmsKeyId("string")
        .build())
    .logPublishingOptions(DomainLogPublishingOptionArgs.builder()
        .cloudwatchLogGroupArn("string")
        .logType("string")
        .enabled(false)
        .build())
    .nodeToNodeEncryption(DomainNodeToNodeEncryptionArgs.builder()
        .enabled(false)
        .build())
    .snapshotOptions(DomainSnapshotOptionsArgs.builder()
        .automatedSnapshotStartHour(0)
        .build())
    .tags(Map.of("string", "string"))
    .vpcOptions(DomainVpcOptionsArgs.builder()
        .availabilityZones("string")
        .securityGroupIds("string")
        .subnetIds("string")
        .vpcId("string")
        .build())
    .build());
exampledomain_resource_resource_from_elasticsearchdomain = aws.elasticsearch.Domain("exampledomainResourceResourceFromElasticsearchdomain",
    access_policies="string",
    advanced_options={
        "string": "string",
    },
    advanced_security_options={
        "enabled": False,
        "internal_user_database_enabled": False,
        "master_user_options": {
            "master_user_arn": "string",
            "master_user_name": "string",
            "master_user_password": "string",
        },
    },
    auto_tune_options={
        "desired_state": "string",
        "maintenance_schedules": [{
            "cron_expression_for_recurrence": "string",
            "duration": {
                "unit": "string",
                "value": 0,
            },
            "start_at": "string",
        }],
        "rollback_on_disable": "string",
    },
    cluster_config={
        "cold_storage_options": {
            "enabled": False,
        },
        "dedicated_master_count": 0,
        "dedicated_master_enabled": False,
        "dedicated_master_type": "string",
        "instance_count": 0,
        "instance_type": "string",
        "warm_count": 0,
        "warm_enabled": False,
        "warm_type": "string",
        "zone_awareness_config": {
            "availability_zone_count": 0,
        },
        "zone_awareness_enabled": False,
    },
    cognito_options={
        "identity_pool_id": "string",
        "role_arn": "string",
        "user_pool_id": "string",
        "enabled": False,
    },
    domain_endpoint_options={
        "custom_endpoint": "string",
        "custom_endpoint_certificate_arn": "string",
        "custom_endpoint_enabled": False,
        "enforce_https": False,
        "tls_security_policy": "string",
    },
    domain_name="string",
    ebs_options={
        "ebs_enabled": False,
        "iops": 0,
        "throughput": 0,
        "volume_size": 0,
        "volume_type": "string",
    },
    elasticsearch_version="string",
    encrypt_at_rest={
        "enabled": False,
        "kms_key_id": "string",
    },
    log_publishing_options=[{
        "cloudwatch_log_group_arn": "string",
        "log_type": "string",
        "enabled": False,
    }],
    node_to_node_encryption={
        "enabled": False,
    },
    snapshot_options={
        "automated_snapshot_start_hour": 0,
    },
    tags={
        "string": "string",
    },
    vpc_options={
        "availability_zones": ["string"],
        "security_group_ids": ["string"],
        "subnet_ids": ["string"],
        "vpc_id": "string",
    })
const exampledomainResourceResourceFromElasticsearchdomain = new aws.elasticsearch.Domain("exampledomainResourceResourceFromElasticsearchdomain", {
    accessPolicies: "string",
    advancedOptions: {
        string: "string",
    },
    advancedSecurityOptions: {
        enabled: false,
        internalUserDatabaseEnabled: false,
        masterUserOptions: {
            masterUserArn: "string",
            masterUserName: "string",
            masterUserPassword: "string",
        },
    },
    autoTuneOptions: {
        desiredState: "string",
        maintenanceSchedules: [{
            cronExpressionForRecurrence: "string",
            duration: {
                unit: "string",
                value: 0,
            },
            startAt: "string",
        }],
        rollbackOnDisable: "string",
    },
    clusterConfig: {
        coldStorageOptions: {
            enabled: false,
        },
        dedicatedMasterCount: 0,
        dedicatedMasterEnabled: false,
        dedicatedMasterType: "string",
        instanceCount: 0,
        instanceType: "string",
        warmCount: 0,
        warmEnabled: false,
        warmType: "string",
        zoneAwarenessConfig: {
            availabilityZoneCount: 0,
        },
        zoneAwarenessEnabled: false,
    },
    cognitoOptions: {
        identityPoolId: "string",
        roleArn: "string",
        userPoolId: "string",
        enabled: false,
    },
    domainEndpointOptions: {
        customEndpoint: "string",
        customEndpointCertificateArn: "string",
        customEndpointEnabled: false,
        enforceHttps: false,
        tlsSecurityPolicy: "string",
    },
    domainName: "string",
    ebsOptions: {
        ebsEnabled: false,
        iops: 0,
        throughput: 0,
        volumeSize: 0,
        volumeType: "string",
    },
    elasticsearchVersion: "string",
    encryptAtRest: {
        enabled: false,
        kmsKeyId: "string",
    },
    logPublishingOptions: [{
        cloudwatchLogGroupArn: "string",
        logType: "string",
        enabled: false,
    }],
    nodeToNodeEncryption: {
        enabled: false,
    },
    snapshotOptions: {
        automatedSnapshotStartHour: 0,
    },
    tags: {
        string: "string",
    },
    vpcOptions: {
        availabilityZones: ["string"],
        securityGroupIds: ["string"],
        subnetIds: ["string"],
        vpcId: "string",
    },
});
type: aws:elasticsearch:Domain
properties:
    accessPolicies: string
    advancedOptions:
        string: string
    advancedSecurityOptions:
        enabled: false
        internalUserDatabaseEnabled: false
        masterUserOptions:
            masterUserArn: string
            masterUserName: string
            masterUserPassword: string
    autoTuneOptions:
        desiredState: string
        maintenanceSchedules:
            - cronExpressionForRecurrence: string
              duration:
                unit: string
                value: 0
              startAt: string
        rollbackOnDisable: string
    clusterConfig:
        coldStorageOptions:
            enabled: false
        dedicatedMasterCount: 0
        dedicatedMasterEnabled: false
        dedicatedMasterType: string
        instanceCount: 0
        instanceType: string
        warmCount: 0
        warmEnabled: false
        warmType: string
        zoneAwarenessConfig:
            availabilityZoneCount: 0
        zoneAwarenessEnabled: false
    cognitoOptions:
        enabled: false
        identityPoolId: string
        roleArn: string
        userPoolId: string
    domainEndpointOptions:
        customEndpoint: string
        customEndpointCertificateArn: string
        customEndpointEnabled: false
        enforceHttps: false
        tlsSecurityPolicy: string
    domainName: string
    ebsOptions:
        ebsEnabled: false
        iops: 0
        throughput: 0
        volumeSize: 0
        volumeType: string
    elasticsearchVersion: string
    encryptAtRest:
        enabled: false
        kmsKeyId: string
    logPublishingOptions:
        - cloudwatchLogGroupArn: string
          enabled: false
          logType: string
    nodeToNodeEncryption:
        enabled: false
    snapshotOptions:
        automatedSnapshotStartHour: 0
    tags:
        string: string
    vpcOptions:
        availabilityZones:
            - string
        securityGroupIds:
            - string
        subnetIds:
            - string
        vpcId: string
Domain 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 Domain resource accepts the following input properties:
- AccessPolicies string | string
- IAM policy document specifying the access policies for the domain.
- AdvancedOptions Dictionary<string, string>
- Key-value string pairs to specify advanced configuration options. Note that the values for these configuration options must be strings (wrapped in quotes) or they may be wrong and cause a perpetual diff, causing the provider to want to recreate your Elasticsearch domain on every apply.
- AdvancedSecurity DomainOptions Advanced Security Options 
- Configuration block for fine-grained access control. Detailed below.
- AutoTune DomainOptions Auto Tune Options 
- Configuration block for the Auto-Tune options of the domain. Detailed below.
- ClusterConfig DomainCluster Config 
- Configuration block for the cluster of the domain. Detailed below.
- CognitoOptions DomainCognito Options 
- Configuration block for authenticating Kibana with Cognito. Detailed below.
- DomainEndpoint DomainOptions Domain Endpoint Options 
- Configuration block for domain endpoint HTTP(S) related options. Detailed below.
- DomainName string
- Name of the domain. - The following arguments are optional: 
- EbsOptions DomainEbs Options 
- Configuration block for EBS related options, may be required based on chosen instance size. Detailed below.
- ElasticsearchVersion string
- Version of Elasticsearch to deploy. Defaults to 1.5.
- EncryptAt DomainRest Encrypt At Rest 
- Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below.
- LogPublishing List<DomainOptions Log Publishing Option> 
- Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below.
- NodeTo DomainNode Encryption Node To Node Encryption 
- Configuration block for node-to-node encryption options. Detailed below.
- SnapshotOptions DomainSnapshot Options 
- Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running Elasticsearch 5.3 and later, Amazon ES takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions of Elasticsearch, Amazon ES takes daily automated snapshots.
- Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- VpcOptions DomainVpc Options 
- Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below.
- AccessPolicies string | string
- IAM policy document specifying the access policies for the domain.
- AdvancedOptions map[string]string
- Key-value string pairs to specify advanced configuration options. Note that the values for these configuration options must be strings (wrapped in quotes) or they may be wrong and cause a perpetual diff, causing the provider to want to recreate your Elasticsearch domain on every apply.
- AdvancedSecurity DomainOptions Advanced Security Options Args 
- Configuration block for fine-grained access control. Detailed below.
- AutoTune DomainOptions Auto Tune Options Args 
- Configuration block for the Auto-Tune options of the domain. Detailed below.
- ClusterConfig DomainCluster Config Args 
- Configuration block for the cluster of the domain. Detailed below.
- CognitoOptions DomainCognito Options Args 
- Configuration block for authenticating Kibana with Cognito. Detailed below.
- DomainEndpoint DomainOptions Domain Endpoint Options Args 
- Configuration block for domain endpoint HTTP(S) related options. Detailed below.
- DomainName string
- Name of the domain. - The following arguments are optional: 
- EbsOptions DomainEbs Options Args 
- Configuration block for EBS related options, may be required based on chosen instance size. Detailed below.
- ElasticsearchVersion string
- Version of Elasticsearch to deploy. Defaults to 1.5.
- EncryptAt DomainRest Encrypt At Rest Args 
- Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below.
- LogPublishing []DomainOptions Log Publishing Option Args 
- Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below.
- NodeTo DomainNode Encryption Node To Node Encryption Args 
- Configuration block for node-to-node encryption options. Detailed below.
- SnapshotOptions DomainSnapshot Options Args 
- Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running Elasticsearch 5.3 and later, Amazon ES takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions of Elasticsearch, Amazon ES takes daily automated snapshots.
- map[string]string
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- VpcOptions DomainVpc Options Args 
- Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below.
- accessPolicies String | String
- IAM policy document specifying the access policies for the domain.
- advancedOptions Map<String,String>
- Key-value string pairs to specify advanced configuration options. Note that the values for these configuration options must be strings (wrapped in quotes) or they may be wrong and cause a perpetual diff, causing the provider to want to recreate your Elasticsearch domain on every apply.
- advancedSecurity DomainOptions Advanced Security Options 
- Configuration block for fine-grained access control. Detailed below.
- autoTune DomainOptions Auto Tune Options 
- Configuration block for the Auto-Tune options of the domain. Detailed below.
- clusterConfig DomainCluster Config 
- Configuration block for the cluster of the domain. Detailed below.
- cognitoOptions DomainCognito Options 
- Configuration block for authenticating Kibana with Cognito. Detailed below.
- domainEndpoint DomainOptions Domain Endpoint Options 
- Configuration block for domain endpoint HTTP(S) related options. Detailed below.
- domainName String
- Name of the domain. - The following arguments are optional: 
- ebsOptions DomainEbs Options 
- Configuration block for EBS related options, may be required based on chosen instance size. Detailed below.
- elasticsearchVersion String
- Version of Elasticsearch to deploy. Defaults to 1.5.
- encryptAt DomainRest Encrypt At Rest 
- Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below.
- logPublishing List<DomainOptions Log Publishing Option> 
- Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below.
- nodeTo DomainNode Encryption Node To Node Encryption 
- Configuration block for node-to-node encryption options. Detailed below.
- snapshotOptions DomainSnapshot Options 
- Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running Elasticsearch 5.3 and later, Amazon ES takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions of Elasticsearch, Amazon ES takes daily automated snapshots.
- Map<String,String>
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- vpcOptions DomainVpc Options 
- Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below.
- accessPolicies string | PolicyDocument 
- IAM policy document specifying the access policies for the domain.
- advancedOptions {[key: string]: string}
- Key-value string pairs to specify advanced configuration options. Note that the values for these configuration options must be strings (wrapped in quotes) or they may be wrong and cause a perpetual diff, causing the provider to want to recreate your Elasticsearch domain on every apply.
- advancedSecurity DomainOptions Advanced Security Options 
- Configuration block for fine-grained access control. Detailed below.
- autoTune DomainOptions Auto Tune Options 
- Configuration block for the Auto-Tune options of the domain. Detailed below.
- clusterConfig DomainCluster Config 
- Configuration block for the cluster of the domain. Detailed below.
- cognitoOptions DomainCognito Options 
- Configuration block for authenticating Kibana with Cognito. Detailed below.
- domainEndpoint DomainOptions Domain Endpoint Options 
- Configuration block for domain endpoint HTTP(S) related options. Detailed below.
- domainName string
- Name of the domain. - The following arguments are optional: 
- ebsOptions DomainEbs Options 
- Configuration block for EBS related options, may be required based on chosen instance size. Detailed below.
- elasticsearchVersion string
- Version of Elasticsearch to deploy. Defaults to 1.5.
- encryptAt DomainRest Encrypt At Rest 
- Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below.
- logPublishing DomainOptions Log Publishing Option[] 
- Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below.
- nodeTo DomainNode Encryption Node To Node Encryption 
- Configuration block for node-to-node encryption options. Detailed below.
- snapshotOptions DomainSnapshot Options 
- Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running Elasticsearch 5.3 and later, Amazon ES takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions of Elasticsearch, Amazon ES takes daily automated snapshots.
- {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- vpcOptions DomainVpc Options 
- Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below.
- access_policies str | str
- IAM policy document specifying the access policies for the domain.
- advanced_options Mapping[str, str]
- Key-value string pairs to specify advanced configuration options. Note that the values for these configuration options must be strings (wrapped in quotes) or they may be wrong and cause a perpetual diff, causing the provider to want to recreate your Elasticsearch domain on every apply.
- advanced_security_ Domainoptions Advanced Security Options Args 
- Configuration block for fine-grained access control. Detailed below.
- auto_tune_ Domainoptions Auto Tune Options Args 
- Configuration block for the Auto-Tune options of the domain. Detailed below.
- cluster_config DomainCluster Config Args 
- Configuration block for the cluster of the domain. Detailed below.
- cognito_options DomainCognito Options Args 
- Configuration block for authenticating Kibana with Cognito. Detailed below.
- domain_endpoint_ Domainoptions Domain Endpoint Options Args 
- Configuration block for domain endpoint HTTP(S) related options. Detailed below.
- domain_name str
- Name of the domain. - The following arguments are optional: 
- ebs_options DomainEbs Options Args 
- Configuration block for EBS related options, may be required based on chosen instance size. Detailed below.
- elasticsearch_version str
- Version of Elasticsearch to deploy. Defaults to 1.5.
- encrypt_at_ Domainrest Encrypt At Rest Args 
- Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below.
- log_publishing_ Sequence[Domainoptions Log Publishing Option Args] 
- Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below.
- node_to_ Domainnode_ encryption Node To Node Encryption Args 
- Configuration block for node-to-node encryption options. Detailed below.
- snapshot_options DomainSnapshot Options Args 
- Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running Elasticsearch 5.3 and later, Amazon ES takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions of Elasticsearch, Amazon ES takes daily automated snapshots.
- Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- vpc_options DomainVpc Options Args 
- Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below.
- accessPolicies String |
- IAM policy document specifying the access policies for the domain.
- advancedOptions Map<String>
- Key-value string pairs to specify advanced configuration options. Note that the values for these configuration options must be strings (wrapped in quotes) or they may be wrong and cause a perpetual diff, causing the provider to want to recreate your Elasticsearch domain on every apply.
- advancedSecurity Property MapOptions 
- Configuration block for fine-grained access control. Detailed below.
- autoTune Property MapOptions 
- Configuration block for the Auto-Tune options of the domain. Detailed below.
- clusterConfig Property Map
- Configuration block for the cluster of the domain. Detailed below.
- cognitoOptions Property Map
- Configuration block for authenticating Kibana with Cognito. Detailed below.
- domainEndpoint Property MapOptions 
- Configuration block for domain endpoint HTTP(S) related options. Detailed below.
- domainName String
- Name of the domain. - The following arguments are optional: 
- ebsOptions Property Map
- Configuration block for EBS related options, may be required based on chosen instance size. Detailed below.
- elasticsearchVersion String
- Version of Elasticsearch to deploy. Defaults to 1.5.
- encryptAt Property MapRest 
- Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below.
- logPublishing List<Property Map>Options 
- Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below.
- nodeTo Property MapNode Encryption 
- Configuration block for node-to-node encryption options. Detailed below.
- snapshotOptions Property Map
- Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running Elasticsearch 5.3 and later, Amazon ES takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions of Elasticsearch, Amazon ES takes daily automated snapshots.
- Map<String>
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- vpcOptions Property Map
- Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Domain resource produces the following output properties:
- Arn string
- ARN of the domain.
- DomainId string
- Unique identifier for the domain.
- Endpoint string
- Domain-specific endpoint used to submit index, search, and data upload requests.
- Id string
- The provider-assigned unique ID for this managed resource.
- KibanaEndpoint string
- Domain-specific endpoint for kibana without https scheme.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- Arn string
- ARN of the domain.
- DomainId string
- Unique identifier for the domain.
- Endpoint string
- Domain-specific endpoint used to submit index, search, and data upload requests.
- Id string
- The provider-assigned unique ID for this managed resource.
- KibanaEndpoint string
- Domain-specific endpoint for kibana without https scheme.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn String
- ARN of the domain.
- domainId String
- Unique identifier for the domain.
- endpoint String
- Domain-specific endpoint used to submit index, search, and data upload requests.
- id String
- The provider-assigned unique ID for this managed resource.
- kibanaEndpoint String
- Domain-specific endpoint for kibana without https scheme.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn string
- ARN of the domain.
- domainId string
- Unique identifier for the domain.
- endpoint string
- Domain-specific endpoint used to submit index, search, and data upload requests.
- id string
- The provider-assigned unique ID for this managed resource.
- kibanaEndpoint string
- Domain-specific endpoint for kibana without https scheme.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn str
- ARN of the domain.
- domain_id str
- Unique identifier for the domain.
- endpoint str
- Domain-specific endpoint used to submit index, search, and data upload requests.
- id str
- The provider-assigned unique ID for this managed resource.
- kibana_endpoint str
- Domain-specific endpoint for kibana without https scheme.
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn String
- ARN of the domain.
- domainId String
- Unique identifier for the domain.
- endpoint String
- Domain-specific endpoint used to submit index, search, and data upload requests.
- id String
- The provider-assigned unique ID for this managed resource.
- kibanaEndpoint String
- Domain-specific endpoint for kibana without https scheme.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
Look up Existing Domain Resource
Get an existing Domain 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?: DomainState, opts?: CustomResourceOptions): Domain@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        access_policies: Optional[str] = None,
        advanced_options: Optional[Mapping[str, str]] = None,
        advanced_security_options: Optional[DomainAdvancedSecurityOptionsArgs] = None,
        arn: Optional[str] = None,
        auto_tune_options: Optional[DomainAutoTuneOptionsArgs] = None,
        cluster_config: Optional[DomainClusterConfigArgs] = None,
        cognito_options: Optional[DomainCognitoOptionsArgs] = None,
        domain_endpoint_options: Optional[DomainDomainEndpointOptionsArgs] = None,
        domain_id: Optional[str] = None,
        domain_name: Optional[str] = None,
        ebs_options: Optional[DomainEbsOptionsArgs] = None,
        elasticsearch_version: Optional[str] = None,
        encrypt_at_rest: Optional[DomainEncryptAtRestArgs] = None,
        endpoint: Optional[str] = None,
        kibana_endpoint: Optional[str] = None,
        log_publishing_options: Optional[Sequence[DomainLogPublishingOptionArgs]] = None,
        node_to_node_encryption: Optional[DomainNodeToNodeEncryptionArgs] = None,
        snapshot_options: Optional[DomainSnapshotOptionsArgs] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        vpc_options: Optional[DomainVpcOptionsArgs] = None) -> Domainfunc GetDomain(ctx *Context, name string, id IDInput, state *DomainState, opts ...ResourceOption) (*Domain, error)public static Domain Get(string name, Input<string> id, DomainState? state, CustomResourceOptions? opts = null)public static Domain get(String name, Output<String> id, DomainState state, CustomResourceOptions options)resources:  _:    type: aws:elasticsearch:Domain    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- AccessPolicies string | string
- IAM policy document specifying the access policies for the domain.
- AdvancedOptions Dictionary<string, string>
- Key-value string pairs to specify advanced configuration options. Note that the values for these configuration options must be strings (wrapped in quotes) or they may be wrong and cause a perpetual diff, causing the provider to want to recreate your Elasticsearch domain on every apply.
- AdvancedSecurity DomainOptions Advanced Security Options 
- Configuration block for fine-grained access control. Detailed below.
- Arn string
- ARN of the domain.
- AutoTune DomainOptions Auto Tune Options 
- Configuration block for the Auto-Tune options of the domain. Detailed below.
- ClusterConfig DomainCluster Config 
- Configuration block for the cluster of the domain. Detailed below.
- CognitoOptions DomainCognito Options 
- Configuration block for authenticating Kibana with Cognito. Detailed below.
- DomainEndpoint DomainOptions Domain Endpoint Options 
- Configuration block for domain endpoint HTTP(S) related options. Detailed below.
- DomainId string
- Unique identifier for the domain.
- DomainName string
- Name of the domain. - The following arguments are optional: 
- EbsOptions DomainEbs Options 
- Configuration block for EBS related options, may be required based on chosen instance size. Detailed below.
- ElasticsearchVersion string
- Version of Elasticsearch to deploy. Defaults to 1.5.
- EncryptAt DomainRest Encrypt At Rest 
- Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below.
- Endpoint string
- Domain-specific endpoint used to submit index, search, and data upload requests.
- KibanaEndpoint string
- Domain-specific endpoint for kibana without https scheme.
- LogPublishing List<DomainOptions Log Publishing Option> 
- Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below.
- NodeTo DomainNode Encryption Node To Node Encryption 
- Configuration block for node-to-node encryption options. Detailed below.
- SnapshotOptions DomainSnapshot Options 
- Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running Elasticsearch 5.3 and later, Amazon ES takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions of Elasticsearch, Amazon ES takes daily automated snapshots.
- Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- VpcOptions DomainVpc Options 
- Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below.
- AccessPolicies string | string
- IAM policy document specifying the access policies for the domain.
- AdvancedOptions map[string]string
- Key-value string pairs to specify advanced configuration options. Note that the values for these configuration options must be strings (wrapped in quotes) or they may be wrong and cause a perpetual diff, causing the provider to want to recreate your Elasticsearch domain on every apply.
- AdvancedSecurity DomainOptions Advanced Security Options Args 
- Configuration block for fine-grained access control. Detailed below.
- Arn string
- ARN of the domain.
- AutoTune DomainOptions Auto Tune Options Args 
- Configuration block for the Auto-Tune options of the domain. Detailed below.
- ClusterConfig DomainCluster Config Args 
- Configuration block for the cluster of the domain. Detailed below.
- CognitoOptions DomainCognito Options Args 
- Configuration block for authenticating Kibana with Cognito. Detailed below.
- DomainEndpoint DomainOptions Domain Endpoint Options Args 
- Configuration block for domain endpoint HTTP(S) related options. Detailed below.
- DomainId string
- Unique identifier for the domain.
- DomainName string
- Name of the domain. - The following arguments are optional: 
- EbsOptions DomainEbs Options Args 
- Configuration block for EBS related options, may be required based on chosen instance size. Detailed below.
- ElasticsearchVersion string
- Version of Elasticsearch to deploy. Defaults to 1.5.
- EncryptAt DomainRest Encrypt At Rest Args 
- Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below.
- Endpoint string
- Domain-specific endpoint used to submit index, search, and data upload requests.
- KibanaEndpoint string
- Domain-specific endpoint for kibana without https scheme.
- LogPublishing []DomainOptions Log Publishing Option Args 
- Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below.
- NodeTo DomainNode Encryption Node To Node Encryption Args 
- Configuration block for node-to-node encryption options. Detailed below.
- SnapshotOptions DomainSnapshot Options Args 
- Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running Elasticsearch 5.3 and later, Amazon ES takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions of Elasticsearch, Amazon ES takes daily automated snapshots.
- map[string]string
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- VpcOptions DomainVpc Options Args 
- Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below.
- accessPolicies String | String
- IAM policy document specifying the access policies for the domain.
- advancedOptions Map<String,String>
- Key-value string pairs to specify advanced configuration options. Note that the values for these configuration options must be strings (wrapped in quotes) or they may be wrong and cause a perpetual diff, causing the provider to want to recreate your Elasticsearch domain on every apply.
- advancedSecurity DomainOptions Advanced Security Options 
- Configuration block for fine-grained access control. Detailed below.
- arn String
- ARN of the domain.
- autoTune DomainOptions Auto Tune Options 
- Configuration block for the Auto-Tune options of the domain. Detailed below.
- clusterConfig DomainCluster Config 
- Configuration block for the cluster of the domain. Detailed below.
- cognitoOptions DomainCognito Options 
- Configuration block for authenticating Kibana with Cognito. Detailed below.
- domainEndpoint DomainOptions Domain Endpoint Options 
- Configuration block for domain endpoint HTTP(S) related options. Detailed below.
- domainId String
- Unique identifier for the domain.
- domainName String
- Name of the domain. - The following arguments are optional: 
- ebsOptions DomainEbs Options 
- Configuration block for EBS related options, may be required based on chosen instance size. Detailed below.
- elasticsearchVersion String
- Version of Elasticsearch to deploy. Defaults to 1.5.
- encryptAt DomainRest Encrypt At Rest 
- Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below.
- endpoint String
- Domain-specific endpoint used to submit index, search, and data upload requests.
- kibanaEndpoint String
- Domain-specific endpoint for kibana without https scheme.
- logPublishing List<DomainOptions Log Publishing Option> 
- Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below.
- nodeTo DomainNode Encryption Node To Node Encryption 
- Configuration block for node-to-node encryption options. Detailed below.
- snapshotOptions DomainSnapshot Options 
- Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running Elasticsearch 5.3 and later, Amazon ES takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions of Elasticsearch, Amazon ES takes daily automated snapshots.
- Map<String,String>
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- vpcOptions DomainVpc Options 
- Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below.
- accessPolicies string | PolicyDocument 
- IAM policy document specifying the access policies for the domain.
- advancedOptions {[key: string]: string}
- Key-value string pairs to specify advanced configuration options. Note that the values for these configuration options must be strings (wrapped in quotes) or they may be wrong and cause a perpetual diff, causing the provider to want to recreate your Elasticsearch domain on every apply.
- advancedSecurity DomainOptions Advanced Security Options 
- Configuration block for fine-grained access control. Detailed below.
- arn string
- ARN of the domain.
- autoTune DomainOptions Auto Tune Options 
- Configuration block for the Auto-Tune options of the domain. Detailed below.
- clusterConfig DomainCluster Config 
- Configuration block for the cluster of the domain. Detailed below.
- cognitoOptions DomainCognito Options 
- Configuration block for authenticating Kibana with Cognito. Detailed below.
- domainEndpoint DomainOptions Domain Endpoint Options 
- Configuration block for domain endpoint HTTP(S) related options. Detailed below.
- domainId string
- Unique identifier for the domain.
- domainName string
- Name of the domain. - The following arguments are optional: 
- ebsOptions DomainEbs Options 
- Configuration block for EBS related options, may be required based on chosen instance size. Detailed below.
- elasticsearchVersion string
- Version of Elasticsearch to deploy. Defaults to 1.5.
- encryptAt DomainRest Encrypt At Rest 
- Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below.
- endpoint string
- Domain-specific endpoint used to submit index, search, and data upload requests.
- kibanaEndpoint string
- Domain-specific endpoint for kibana without https scheme.
- logPublishing DomainOptions Log Publishing Option[] 
- Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below.
- nodeTo DomainNode Encryption Node To Node Encryption 
- Configuration block for node-to-node encryption options. Detailed below.
- snapshotOptions DomainSnapshot Options 
- Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running Elasticsearch 5.3 and later, Amazon ES takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions of Elasticsearch, Amazon ES takes daily automated snapshots.
- {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- vpcOptions DomainVpc Options 
- Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below.
- access_policies str | str
- IAM policy document specifying the access policies for the domain.
- advanced_options Mapping[str, str]
- Key-value string pairs to specify advanced configuration options. Note that the values for these configuration options must be strings (wrapped in quotes) or they may be wrong and cause a perpetual diff, causing the provider to want to recreate your Elasticsearch domain on every apply.
- advanced_security_ Domainoptions Advanced Security Options Args 
- Configuration block for fine-grained access control. Detailed below.
- arn str
- ARN of the domain.
- auto_tune_ Domainoptions Auto Tune Options Args 
- Configuration block for the Auto-Tune options of the domain. Detailed below.
- cluster_config DomainCluster Config Args 
- Configuration block for the cluster of the domain. Detailed below.
- cognito_options DomainCognito Options Args 
- Configuration block for authenticating Kibana with Cognito. Detailed below.
- domain_endpoint_ Domainoptions Domain Endpoint Options Args 
- Configuration block for domain endpoint HTTP(S) related options. Detailed below.
- domain_id str
- Unique identifier for the domain.
- domain_name str
- Name of the domain. - The following arguments are optional: 
- ebs_options DomainEbs Options Args 
- Configuration block for EBS related options, may be required based on chosen instance size. Detailed below.
- elasticsearch_version str
- Version of Elasticsearch to deploy. Defaults to 1.5.
- encrypt_at_ Domainrest Encrypt At Rest Args 
- Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below.
- endpoint str
- Domain-specific endpoint used to submit index, search, and data upload requests.
- kibana_endpoint str
- Domain-specific endpoint for kibana without https scheme.
- log_publishing_ Sequence[Domainoptions Log Publishing Option Args] 
- Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below.
- node_to_ Domainnode_ encryption Node To Node Encryption Args 
- Configuration block for node-to-node encryption options. Detailed below.
- snapshot_options DomainSnapshot Options Args 
- Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running Elasticsearch 5.3 and later, Amazon ES takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions of Elasticsearch, Amazon ES takes daily automated snapshots.
- Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- vpc_options DomainVpc Options Args 
- Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below.
- accessPolicies String |
- IAM policy document specifying the access policies for the domain.
- advancedOptions Map<String>
- Key-value string pairs to specify advanced configuration options. Note that the values for these configuration options must be strings (wrapped in quotes) or they may be wrong and cause a perpetual diff, causing the provider to want to recreate your Elasticsearch domain on every apply.
- advancedSecurity Property MapOptions 
- Configuration block for fine-grained access control. Detailed below.
- arn String
- ARN of the domain.
- autoTune Property MapOptions 
- Configuration block for the Auto-Tune options of the domain. Detailed below.
- clusterConfig Property Map
- Configuration block for the cluster of the domain. Detailed below.
- cognitoOptions Property Map
- Configuration block for authenticating Kibana with Cognito. Detailed below.
- domainEndpoint Property MapOptions 
- Configuration block for domain endpoint HTTP(S) related options. Detailed below.
- domainId String
- Unique identifier for the domain.
- domainName String
- Name of the domain. - The following arguments are optional: 
- ebsOptions Property Map
- Configuration block for EBS related options, may be required based on chosen instance size. Detailed below.
- elasticsearchVersion String
- Version of Elasticsearch to deploy. Defaults to 1.5.
- encryptAt Property MapRest 
- Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below.
- endpoint String
- Domain-specific endpoint used to submit index, search, and data upload requests.
- kibanaEndpoint String
- Domain-specific endpoint for kibana without https scheme.
- logPublishing List<Property Map>Options 
- Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below.
- nodeTo Property MapNode Encryption 
- Configuration block for node-to-node encryption options. Detailed below.
- snapshotOptions Property Map
- Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running Elasticsearch 5.3 and later, Amazon ES takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions of Elasticsearch, Amazon ES takes daily automated snapshots.
- Map<String>
- Map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- vpcOptions Property Map
- Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below.
Supporting Types
DomainAdvancedSecurityOptions, DomainAdvancedSecurityOptionsArgs        
- Enabled bool
- Whether advanced security is enabled.
- InternalUser boolDatabase Enabled 
- Whether the internal user database is enabled. If not set, defaults to falseby the AWS API.
- MasterUser DomainOptions Advanced Security Options Master User Options 
- Configuration block for the main user. Detailed below.
- Enabled bool
- Whether advanced security is enabled.
- InternalUser boolDatabase Enabled 
- Whether the internal user database is enabled. If not set, defaults to falseby the AWS API.
- MasterUser DomainOptions Advanced Security Options Master User Options 
- Configuration block for the main user. Detailed below.
- enabled Boolean
- Whether advanced security is enabled.
- internalUser BooleanDatabase Enabled 
- Whether the internal user database is enabled. If not set, defaults to falseby the AWS API.
- masterUser DomainOptions Advanced Security Options Master User Options 
- Configuration block for the main user. Detailed below.
- enabled boolean
- Whether advanced security is enabled.
- internalUser booleanDatabase Enabled 
- Whether the internal user database is enabled. If not set, defaults to falseby the AWS API.
- masterUser DomainOptions Advanced Security Options Master User Options 
- Configuration block for the main user. Detailed below.
- enabled bool
- Whether advanced security is enabled.
- internal_user_ booldatabase_ enabled 
- Whether the internal user database is enabled. If not set, defaults to falseby the AWS API.
- master_user_ Domainoptions Advanced Security Options Master User Options 
- Configuration block for the main user. Detailed below.
- enabled Boolean
- Whether advanced security is enabled.
- internalUser BooleanDatabase Enabled 
- Whether the internal user database is enabled. If not set, defaults to falseby the AWS API.
- masterUser Property MapOptions 
- Configuration block for the main user. Detailed below.
DomainAdvancedSecurityOptionsMasterUserOptions, DomainAdvancedSecurityOptionsMasterUserOptionsArgs              
- MasterUser stringArn 
- ARN for the main user. Only specify if internal_user_database_enabledis not set or set tofalse.
- MasterUser stringName 
- Main user's username, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if internal_user_database_enabledis set totrue.
- MasterUser stringPassword 
- Main user's password, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if internal_user_database_enabledis set totrue.
- MasterUser stringArn 
- ARN for the main user. Only specify if internal_user_database_enabledis not set or set tofalse.
- MasterUser stringName 
- Main user's username, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if internal_user_database_enabledis set totrue.
- MasterUser stringPassword 
- Main user's password, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if internal_user_database_enabledis set totrue.
- masterUser StringArn 
- ARN for the main user. Only specify if internal_user_database_enabledis not set or set tofalse.
- masterUser StringName 
- Main user's username, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if internal_user_database_enabledis set totrue.
- masterUser StringPassword 
- Main user's password, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if internal_user_database_enabledis set totrue.
- masterUser stringArn 
- ARN for the main user. Only specify if internal_user_database_enabledis not set or set tofalse.
- masterUser stringName 
- Main user's username, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if internal_user_database_enabledis set totrue.
- masterUser stringPassword 
- Main user's password, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if internal_user_database_enabledis set totrue.
- master_user_ strarn 
- ARN for the main user. Only specify if internal_user_database_enabledis not set or set tofalse.
- master_user_ strname 
- Main user's username, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if internal_user_database_enabledis set totrue.
- master_user_ strpassword 
- Main user's password, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if internal_user_database_enabledis set totrue.
- masterUser StringArn 
- ARN for the main user. Only specify if internal_user_database_enabledis not set or set tofalse.
- masterUser StringName 
- Main user's username, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if internal_user_database_enabledis set totrue.
- masterUser StringPassword 
- Main user's password, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if internal_user_database_enabledis set totrue.
DomainAutoTuneOptions, DomainAutoTuneOptionsArgs        
- DesiredState string
- The Auto-Tune desired state for the domain. Valid values: ENABLEDorDISABLED.
- MaintenanceSchedules List<DomainAuto Tune Options Maintenance Schedule> 
- Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below.
- RollbackOn stringDisable 
- Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: DEFAULT_ROLLBACKorNO_ROLLBACK.
- DesiredState string
- The Auto-Tune desired state for the domain. Valid values: ENABLEDorDISABLED.
- MaintenanceSchedules []DomainAuto Tune Options Maintenance Schedule 
- Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below.
- RollbackOn stringDisable 
- Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: DEFAULT_ROLLBACKorNO_ROLLBACK.
- desiredState String
- The Auto-Tune desired state for the domain. Valid values: ENABLEDorDISABLED.
- maintenanceSchedules List<DomainAuto Tune Options Maintenance Schedule> 
- Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below.
- rollbackOn StringDisable 
- Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: DEFAULT_ROLLBACKorNO_ROLLBACK.
- desiredState string
- The Auto-Tune desired state for the domain. Valid values: ENABLEDorDISABLED.
- maintenanceSchedules DomainAuto Tune Options Maintenance Schedule[] 
- Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below.
- rollbackOn stringDisable 
- Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: DEFAULT_ROLLBACKorNO_ROLLBACK.
- desired_state str
- The Auto-Tune desired state for the domain. Valid values: ENABLEDorDISABLED.
- maintenance_schedules Sequence[DomainAuto Tune Options Maintenance Schedule] 
- Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below.
- rollback_on_ strdisable 
- Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: DEFAULT_ROLLBACKorNO_ROLLBACK.
- desiredState String
- The Auto-Tune desired state for the domain. Valid values: ENABLEDorDISABLED.
- maintenanceSchedules List<Property Map>
- Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below.
- rollbackOn StringDisable 
- Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: DEFAULT_ROLLBACKorNO_ROLLBACK.
DomainAutoTuneOptionsMaintenanceSchedule, DomainAutoTuneOptionsMaintenanceScheduleArgs            
- CronExpression stringFor Recurrence 
- A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule.
- Duration
DomainAuto Tune Options Maintenance Schedule Duration 
- Configuration block for the duration of the Auto-Tune maintenance window. Detailed below.
- StartAt string
- Date and time at which to start the Auto-Tune maintenance schedule in RFC3339 format.
- CronExpression stringFor Recurrence 
- A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule.
- Duration
DomainAuto Tune Options Maintenance Schedule Duration 
- Configuration block for the duration of the Auto-Tune maintenance window. Detailed below.
- StartAt string
- Date and time at which to start the Auto-Tune maintenance schedule in RFC3339 format.
- cronExpression StringFor Recurrence 
- A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule.
- duration
DomainAuto Tune Options Maintenance Schedule Duration 
- Configuration block for the duration of the Auto-Tune maintenance window. Detailed below.
- startAt String
- Date and time at which to start the Auto-Tune maintenance schedule in RFC3339 format.
- cronExpression stringFor Recurrence 
- A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule.
- duration
DomainAuto Tune Options Maintenance Schedule Duration 
- Configuration block for the duration of the Auto-Tune maintenance window. Detailed below.
- startAt string
- Date and time at which to start the Auto-Tune maintenance schedule in RFC3339 format.
- cron_expression_ strfor_ recurrence 
- A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule.
- duration
DomainAuto Tune Options Maintenance Schedule Duration 
- Configuration block for the duration of the Auto-Tune maintenance window. Detailed below.
- start_at str
- Date and time at which to start the Auto-Tune maintenance schedule in RFC3339 format.
- cronExpression StringFor Recurrence 
- A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule.
- duration Property Map
- Configuration block for the duration of the Auto-Tune maintenance window. Detailed below.
- startAt String
- Date and time at which to start the Auto-Tune maintenance schedule in RFC3339 format.
DomainAutoTuneOptionsMaintenanceScheduleDuration, DomainAutoTuneOptionsMaintenanceScheduleDurationArgs              
DomainClusterConfig, DomainClusterConfigArgs      
- ColdStorage DomainOptions Cluster Config Cold Storage Options 
- Configuration block containing cold storage configuration. Detailed below.
- DedicatedMaster intCount 
- Number of dedicated main nodes in the cluster.
- DedicatedMaster boolEnabled 
- Whether dedicated main nodes are enabled for the cluster.
- DedicatedMaster stringType 
- Instance type of the dedicated main nodes in the cluster.
- InstanceCount int
- Number of instances in the cluster.
- InstanceType string
- Instance type of data nodes in the cluster.
- WarmCount int
- Number of warm nodes in the cluster. Valid values are between 2and150.warm_countcan be only and must be set whenwarm_enabledis set totrue.
- WarmEnabled bool
- Whether to enable warm storage.
- WarmType string
- Instance type for the Elasticsearch cluster's warm nodes. Valid values are ultrawarm1.medium.elasticsearch,ultrawarm1.large.elasticsearchandultrawarm1.xlarge.elasticsearch.warm_typecan be only and must be set whenwarm_enabledis set totrue.
- ZoneAwareness DomainConfig Cluster Config Zone Awareness Config 
- Configuration block containing zone awareness settings. Detailed below.
- ZoneAwareness boolEnabled 
- Whether zone awareness is enabled, set to truefor multi-az deployment. To enable awareness with three Availability Zones, theavailability_zone_countwithin thezone_awareness_configmust be set to3.
- ColdStorage DomainOptions Cluster Config Cold Storage Options 
- Configuration block containing cold storage configuration. Detailed below.
- DedicatedMaster intCount 
- Number of dedicated main nodes in the cluster.
- DedicatedMaster boolEnabled 
- Whether dedicated main nodes are enabled for the cluster.
- DedicatedMaster stringType 
- Instance type of the dedicated main nodes in the cluster.
- InstanceCount int
- Number of instances in the cluster.
- InstanceType string
- Instance type of data nodes in the cluster.
- WarmCount int
- Number of warm nodes in the cluster. Valid values are between 2and150.warm_countcan be only and must be set whenwarm_enabledis set totrue.
- WarmEnabled bool
- Whether to enable warm storage.
- WarmType string
- Instance type for the Elasticsearch cluster's warm nodes. Valid values are ultrawarm1.medium.elasticsearch,ultrawarm1.large.elasticsearchandultrawarm1.xlarge.elasticsearch.warm_typecan be only and must be set whenwarm_enabledis set totrue.
- ZoneAwareness DomainConfig Cluster Config Zone Awareness Config 
- Configuration block containing zone awareness settings. Detailed below.
- ZoneAwareness boolEnabled 
- Whether zone awareness is enabled, set to truefor multi-az deployment. To enable awareness with three Availability Zones, theavailability_zone_countwithin thezone_awareness_configmust be set to3.
- coldStorage DomainOptions Cluster Config Cold Storage Options 
- Configuration block containing cold storage configuration. Detailed below.
- dedicatedMaster IntegerCount 
- Number of dedicated main nodes in the cluster.
- dedicatedMaster BooleanEnabled 
- Whether dedicated main nodes are enabled for the cluster.
- dedicatedMaster StringType 
- Instance type of the dedicated main nodes in the cluster.
- instanceCount Integer
- Number of instances in the cluster.
- instanceType String
- Instance type of data nodes in the cluster.
- warmCount Integer
- Number of warm nodes in the cluster. Valid values are between 2and150.warm_countcan be only and must be set whenwarm_enabledis set totrue.
- warmEnabled Boolean
- Whether to enable warm storage.
- warmType String
- Instance type for the Elasticsearch cluster's warm nodes. Valid values are ultrawarm1.medium.elasticsearch,ultrawarm1.large.elasticsearchandultrawarm1.xlarge.elasticsearch.warm_typecan be only and must be set whenwarm_enabledis set totrue.
- zoneAwareness DomainConfig Cluster Config Zone Awareness Config 
- Configuration block containing zone awareness settings. Detailed below.
- zoneAwareness BooleanEnabled 
- Whether zone awareness is enabled, set to truefor multi-az deployment. To enable awareness with three Availability Zones, theavailability_zone_countwithin thezone_awareness_configmust be set to3.
- coldStorage DomainOptions Cluster Config Cold Storage Options 
- Configuration block containing cold storage configuration. Detailed below.
- dedicatedMaster numberCount 
- Number of dedicated main nodes in the cluster.
- dedicatedMaster booleanEnabled 
- Whether dedicated main nodes are enabled for the cluster.
- dedicatedMaster stringType 
- Instance type of the dedicated main nodes in the cluster.
- instanceCount number
- Number of instances in the cluster.
- instanceType string
- Instance type of data nodes in the cluster.
- warmCount number
- Number of warm nodes in the cluster. Valid values are between 2and150.warm_countcan be only and must be set whenwarm_enabledis set totrue.
- warmEnabled boolean
- Whether to enable warm storage.
- warmType string
- Instance type for the Elasticsearch cluster's warm nodes. Valid values are ultrawarm1.medium.elasticsearch,ultrawarm1.large.elasticsearchandultrawarm1.xlarge.elasticsearch.warm_typecan be only and must be set whenwarm_enabledis set totrue.
- zoneAwareness DomainConfig Cluster Config Zone Awareness Config 
- Configuration block containing zone awareness settings. Detailed below.
- zoneAwareness booleanEnabled 
- Whether zone awareness is enabled, set to truefor multi-az deployment. To enable awareness with three Availability Zones, theavailability_zone_countwithin thezone_awareness_configmust be set to3.
- cold_storage_ Domainoptions Cluster Config Cold Storage Options 
- Configuration block containing cold storage configuration. Detailed below.
- dedicated_master_ intcount 
- Number of dedicated main nodes in the cluster.
- dedicated_master_ boolenabled 
- Whether dedicated main nodes are enabled for the cluster.
- dedicated_master_ strtype 
- Instance type of the dedicated main nodes in the cluster.
- instance_count int
- Number of instances in the cluster.
- instance_type str
- Instance type of data nodes in the cluster.
- warm_count int
- Number of warm nodes in the cluster. Valid values are between 2and150.warm_countcan be only and must be set whenwarm_enabledis set totrue.
- warm_enabled bool
- Whether to enable warm storage.
- warm_type str
- Instance type for the Elasticsearch cluster's warm nodes. Valid values are ultrawarm1.medium.elasticsearch,ultrawarm1.large.elasticsearchandultrawarm1.xlarge.elasticsearch.warm_typecan be only and must be set whenwarm_enabledis set totrue.
- zone_awareness_ Domainconfig Cluster Config Zone Awareness Config 
- Configuration block containing zone awareness settings. Detailed below.
- zone_awareness_ boolenabled 
- Whether zone awareness is enabled, set to truefor multi-az deployment. To enable awareness with three Availability Zones, theavailability_zone_countwithin thezone_awareness_configmust be set to3.
- coldStorage Property MapOptions 
- Configuration block containing cold storage configuration. Detailed below.
- dedicatedMaster NumberCount 
- Number of dedicated main nodes in the cluster.
- dedicatedMaster BooleanEnabled 
- Whether dedicated main nodes are enabled for the cluster.
- dedicatedMaster StringType 
- Instance type of the dedicated main nodes in the cluster.
- instanceCount Number
- Number of instances in the cluster.
- instanceType String
- Instance type of data nodes in the cluster.
- warmCount Number
- Number of warm nodes in the cluster. Valid values are between 2and150.warm_countcan be only and must be set whenwarm_enabledis set totrue.
- warmEnabled Boolean
- Whether to enable warm storage.
- warmType String
- Instance type for the Elasticsearch cluster's warm nodes. Valid values are ultrawarm1.medium.elasticsearch,ultrawarm1.large.elasticsearchandultrawarm1.xlarge.elasticsearch.warm_typecan be only and must be set whenwarm_enabledis set totrue.
- zoneAwareness Property MapConfig 
- Configuration block containing zone awareness settings. Detailed below.
- zoneAwareness BooleanEnabled 
- Whether zone awareness is enabled, set to truefor multi-az deployment. To enable awareness with three Availability Zones, theavailability_zone_countwithin thezone_awareness_configmust be set to3.
DomainClusterConfigColdStorageOptions, DomainClusterConfigColdStorageOptionsArgs            
- Enabled bool
- Boolean to enable cold storage for an Elasticsearch domain. Defaults to false. Master and ultrawarm nodes must be enabled for cold storage.
- Enabled bool
- Boolean to enable cold storage for an Elasticsearch domain. Defaults to false. Master and ultrawarm nodes must be enabled for cold storage.
- enabled Boolean
- Boolean to enable cold storage for an Elasticsearch domain. Defaults to false. Master and ultrawarm nodes must be enabled for cold storage.
- enabled boolean
- Boolean to enable cold storage for an Elasticsearch domain. Defaults to false. Master and ultrawarm nodes must be enabled for cold storage.
- enabled bool
- Boolean to enable cold storage for an Elasticsearch domain. Defaults to false. Master and ultrawarm nodes must be enabled for cold storage.
- enabled Boolean
- Boolean to enable cold storage for an Elasticsearch domain. Defaults to false. Master and ultrawarm nodes must be enabled for cold storage.
DomainClusterConfigZoneAwarenessConfig, DomainClusterConfigZoneAwarenessConfigArgs            
- AvailabilityZone intCount 
- Number of Availability Zones for the domain to use with zone_awareness_enabled. Defaults to2. Valid values:2or3.
- AvailabilityZone intCount 
- Number of Availability Zones for the domain to use with zone_awareness_enabled. Defaults to2. Valid values:2or3.
- availabilityZone IntegerCount 
- Number of Availability Zones for the domain to use with zone_awareness_enabled. Defaults to2. Valid values:2or3.
- availabilityZone numberCount 
- Number of Availability Zones for the domain to use with zone_awareness_enabled. Defaults to2. Valid values:2or3.
- availability_zone_ intcount 
- Number of Availability Zones for the domain to use with zone_awareness_enabled. Defaults to2. Valid values:2or3.
- availabilityZone NumberCount 
- Number of Availability Zones for the domain to use with zone_awareness_enabled. Defaults to2. Valid values:2or3.
DomainCognitoOptions, DomainCognitoOptionsArgs      
- IdentityPool stringId 
- ID of the Cognito Identity Pool to use.
- RoleArn string
- ARN of the IAM role that has the AmazonESCognitoAccess policy attached.
- UserPool stringId 
- ID of the Cognito User Pool to use.
- Enabled bool
- Whether Amazon Cognito authentication with Kibana is enabled or not.
- IdentityPool stringId 
- ID of the Cognito Identity Pool to use.
- RoleArn string
- ARN of the IAM role that has the AmazonESCognitoAccess policy attached.
- UserPool stringId 
- ID of the Cognito User Pool to use.
- Enabled bool
- Whether Amazon Cognito authentication with Kibana is enabled or not.
- identityPool StringId 
- ID of the Cognito Identity Pool to use.
- roleArn String
- ARN of the IAM role that has the AmazonESCognitoAccess policy attached.
- userPool StringId 
- ID of the Cognito User Pool to use.
- enabled Boolean
- Whether Amazon Cognito authentication with Kibana is enabled or not.
- identityPool stringId 
- ID of the Cognito Identity Pool to use.
- roleArn string
- ARN of the IAM role that has the AmazonESCognitoAccess policy attached.
- userPool stringId 
- ID of the Cognito User Pool to use.
- enabled boolean
- Whether Amazon Cognito authentication with Kibana is enabled or not.
- identity_pool_ strid 
- ID of the Cognito Identity Pool to use.
- role_arn str
- ARN of the IAM role that has the AmazonESCognitoAccess policy attached.
- user_pool_ strid 
- ID of the Cognito User Pool to use.
- enabled bool
- Whether Amazon Cognito authentication with Kibana is enabled or not.
- identityPool StringId 
- ID of the Cognito Identity Pool to use.
- roleArn String
- ARN of the IAM role that has the AmazonESCognitoAccess policy attached.
- userPool StringId 
- ID of the Cognito User Pool to use.
- enabled Boolean
- Whether Amazon Cognito authentication with Kibana is enabled or not.
DomainDomainEndpointOptions, DomainDomainEndpointOptionsArgs        
- CustomEndpoint string
- Fully qualified domain for your custom endpoint.
- CustomEndpoint stringCertificate Arn 
- ACM certificate ARN for your custom endpoint.
- CustomEndpoint boolEnabled 
- Whether to enable custom endpoint for the Elasticsearch domain.
- EnforceHttps bool
- Whether or not to require HTTPS. Defaults to true.
- TlsSecurity stringPolicy 
- Name of the TLS security policy that needs to be applied to the HTTPS endpoint. Valid values: Policy-Min-TLS-1-0-2019-07,Policy-Min-TLS-1-2-2019-07, andPolicy-Min-TLS-1-2-PFS-2023-10. Pulumi will only perform drift detection if a configuration value is provided.
- CustomEndpoint string
- Fully qualified domain for your custom endpoint.
- CustomEndpoint stringCertificate Arn 
- ACM certificate ARN for your custom endpoint.
- CustomEndpoint boolEnabled 
- Whether to enable custom endpoint for the Elasticsearch domain.
- EnforceHttps bool
- Whether or not to require HTTPS. Defaults to true.
- TlsSecurity stringPolicy 
- Name of the TLS security policy that needs to be applied to the HTTPS endpoint. Valid values: Policy-Min-TLS-1-0-2019-07,Policy-Min-TLS-1-2-2019-07, andPolicy-Min-TLS-1-2-PFS-2023-10. Pulumi will only perform drift detection if a configuration value is provided.
- customEndpoint String
- Fully qualified domain for your custom endpoint.
- customEndpoint StringCertificate Arn 
- ACM certificate ARN for your custom endpoint.
- customEndpoint BooleanEnabled 
- Whether to enable custom endpoint for the Elasticsearch domain.
- enforceHttps Boolean
- Whether or not to require HTTPS. Defaults to true.
- tlsSecurity StringPolicy 
- Name of the TLS security policy that needs to be applied to the HTTPS endpoint. Valid values: Policy-Min-TLS-1-0-2019-07,Policy-Min-TLS-1-2-2019-07, andPolicy-Min-TLS-1-2-PFS-2023-10. Pulumi will only perform drift detection if a configuration value is provided.
- customEndpoint string
- Fully qualified domain for your custom endpoint.
- customEndpoint stringCertificate Arn 
- ACM certificate ARN for your custom endpoint.
- customEndpoint booleanEnabled 
- Whether to enable custom endpoint for the Elasticsearch domain.
- enforceHttps boolean
- Whether or not to require HTTPS. Defaults to true.
- tlsSecurity stringPolicy 
- Name of the TLS security policy that needs to be applied to the HTTPS endpoint. Valid values: Policy-Min-TLS-1-0-2019-07,Policy-Min-TLS-1-2-2019-07, andPolicy-Min-TLS-1-2-PFS-2023-10. Pulumi will only perform drift detection if a configuration value is provided.
- custom_endpoint str
- Fully qualified domain for your custom endpoint.
- custom_endpoint_ strcertificate_ arn 
- ACM certificate ARN for your custom endpoint.
- custom_endpoint_ boolenabled 
- Whether to enable custom endpoint for the Elasticsearch domain.
- enforce_https bool
- Whether or not to require HTTPS. Defaults to true.
- tls_security_ strpolicy 
- Name of the TLS security policy that needs to be applied to the HTTPS endpoint. Valid values: Policy-Min-TLS-1-0-2019-07,Policy-Min-TLS-1-2-2019-07, andPolicy-Min-TLS-1-2-PFS-2023-10. Pulumi will only perform drift detection if a configuration value is provided.
- customEndpoint String
- Fully qualified domain for your custom endpoint.
- customEndpoint StringCertificate Arn 
- ACM certificate ARN for your custom endpoint.
- customEndpoint BooleanEnabled 
- Whether to enable custom endpoint for the Elasticsearch domain.
- enforceHttps Boolean
- Whether or not to require HTTPS. Defaults to true.
- tlsSecurity StringPolicy 
- Name of the TLS security policy that needs to be applied to the HTTPS endpoint. Valid values: Policy-Min-TLS-1-0-2019-07,Policy-Min-TLS-1-2-2019-07, andPolicy-Min-TLS-1-2-PFS-2023-10. Pulumi will only perform drift detection if a configuration value is provided.
DomainEbsOptions, DomainEbsOptionsArgs      
- EbsEnabled bool
- Whether EBS volumes are attached to data nodes in the domain.
- Iops int
- Baseline input/output (I/O) performance of EBS volumes attached to data nodes. Applicable only for the GP3 and Provisioned IOPS EBS volume types.
- Throughput int
- Specifies the throughput (in MiB/s) of the EBS volumes attached to data nodes. Applicable only for the gp3 volume type.
- VolumeSize int
- Size of EBS volumes attached to data nodes (in GiB).
- VolumeType string
- Type of EBS volumes attached to data nodes.
- EbsEnabled bool
- Whether EBS volumes are attached to data nodes in the domain.
- Iops int
- Baseline input/output (I/O) performance of EBS volumes attached to data nodes. Applicable only for the GP3 and Provisioned IOPS EBS volume types.
- Throughput int
- Specifies the throughput (in MiB/s) of the EBS volumes attached to data nodes. Applicable only for the gp3 volume type.
- VolumeSize int
- Size of EBS volumes attached to data nodes (in GiB).
- VolumeType string
- Type of EBS volumes attached to data nodes.
- ebsEnabled Boolean
- Whether EBS volumes are attached to data nodes in the domain.
- iops Integer
- Baseline input/output (I/O) performance of EBS volumes attached to data nodes. Applicable only for the GP3 and Provisioned IOPS EBS volume types.
- throughput Integer
- Specifies the throughput (in MiB/s) of the EBS volumes attached to data nodes. Applicable only for the gp3 volume type.
- volumeSize Integer
- Size of EBS volumes attached to data nodes (in GiB).
- volumeType String
- Type of EBS volumes attached to data nodes.
- ebsEnabled boolean
- Whether EBS volumes are attached to data nodes in the domain.
- iops number
- Baseline input/output (I/O) performance of EBS volumes attached to data nodes. Applicable only for the GP3 and Provisioned IOPS EBS volume types.
- throughput number
- Specifies the throughput (in MiB/s) of the EBS volumes attached to data nodes. Applicable only for the gp3 volume type.
- volumeSize number
- Size of EBS volumes attached to data nodes (in GiB).
- volumeType string
- Type of EBS volumes attached to data nodes.
- ebs_enabled bool
- Whether EBS volumes are attached to data nodes in the domain.
- iops int
- Baseline input/output (I/O) performance of EBS volumes attached to data nodes. Applicable only for the GP3 and Provisioned IOPS EBS volume types.
- throughput int
- Specifies the throughput (in MiB/s) of the EBS volumes attached to data nodes. Applicable only for the gp3 volume type.
- volume_size int
- Size of EBS volumes attached to data nodes (in GiB).
- volume_type str
- Type of EBS volumes attached to data nodes.
- ebsEnabled Boolean
- Whether EBS volumes are attached to data nodes in the domain.
- iops Number
- Baseline input/output (I/O) performance of EBS volumes attached to data nodes. Applicable only for the GP3 and Provisioned IOPS EBS volume types.
- throughput Number
- Specifies the throughput (in MiB/s) of the EBS volumes attached to data nodes. Applicable only for the gp3 volume type.
- volumeSize Number
- Size of EBS volumes attached to data nodes (in GiB).
- volumeType String
- Type of EBS volumes attached to data nodes.
DomainEncryptAtRest, DomainEncryptAtRestArgs        
- Enabled bool
- Whether to enable encryption at rest. If the encrypt_at_restblock is not provided then this defaults tofalse. Enabling encryption on new domains requireselasticsearch_version5.1 or greater.
- KmsKey stringId 
- KMS key ARN to encrypt the Elasticsearch domain with. If not specified then it defaults to using the aws/esservice KMS key. Note that KMS will accept a KMS key ID but will return the key ARN. To prevent the provider detecting unwanted changes, use the key ARN instead.
- Enabled bool
- Whether to enable encryption at rest. If the encrypt_at_restblock is not provided then this defaults tofalse. Enabling encryption on new domains requireselasticsearch_version5.1 or greater.
- KmsKey stringId 
- KMS key ARN to encrypt the Elasticsearch domain with. If not specified then it defaults to using the aws/esservice KMS key. Note that KMS will accept a KMS key ID but will return the key ARN. To prevent the provider detecting unwanted changes, use the key ARN instead.
- enabled Boolean
- Whether to enable encryption at rest. If the encrypt_at_restblock is not provided then this defaults tofalse. Enabling encryption on new domains requireselasticsearch_version5.1 or greater.
- kmsKey StringId 
- KMS key ARN to encrypt the Elasticsearch domain with. If not specified then it defaults to using the aws/esservice KMS key. Note that KMS will accept a KMS key ID but will return the key ARN. To prevent the provider detecting unwanted changes, use the key ARN instead.
- enabled boolean
- Whether to enable encryption at rest. If the encrypt_at_restblock is not provided then this defaults tofalse. Enabling encryption on new domains requireselasticsearch_version5.1 or greater.
- kmsKey stringId 
- KMS key ARN to encrypt the Elasticsearch domain with. If not specified then it defaults to using the aws/esservice KMS key. Note that KMS will accept a KMS key ID but will return the key ARN. To prevent the provider detecting unwanted changes, use the key ARN instead.
- enabled bool
- Whether to enable encryption at rest. If the encrypt_at_restblock is not provided then this defaults tofalse. Enabling encryption on new domains requireselasticsearch_version5.1 or greater.
- kms_key_ strid 
- KMS key ARN to encrypt the Elasticsearch domain with. If not specified then it defaults to using the aws/esservice KMS key. Note that KMS will accept a KMS key ID but will return the key ARN. To prevent the provider detecting unwanted changes, use the key ARN instead.
- enabled Boolean
- Whether to enable encryption at rest. If the encrypt_at_restblock is not provided then this defaults tofalse. Enabling encryption on new domains requireselasticsearch_version5.1 or greater.
- kmsKey StringId 
- KMS key ARN to encrypt the Elasticsearch domain with. If not specified then it defaults to using the aws/esservice KMS key. Note that KMS will accept a KMS key ID but will return the key ARN. To prevent the provider detecting unwanted changes, use the key ARN instead.
DomainLogPublishingOption, DomainLogPublishingOptionArgs        
- CloudwatchLog stringGroup Arn 
- ARN of the Cloudwatch log group to which log needs to be published.
- LogType string
- Type of Elasticsearch log. Valid values: INDEX_SLOW_LOGS,SEARCH_SLOW_LOGS,ES_APPLICATION_LOGS,AUDIT_LOGS.
- Enabled bool
- Whether given log publishing option is enabled or not.
- CloudwatchLog stringGroup Arn 
- ARN of the Cloudwatch log group to which log needs to be published.
- LogType string
- Type of Elasticsearch log. Valid values: INDEX_SLOW_LOGS,SEARCH_SLOW_LOGS,ES_APPLICATION_LOGS,AUDIT_LOGS.
- Enabled bool
- Whether given log publishing option is enabled or not.
- cloudwatchLog StringGroup Arn 
- ARN of the Cloudwatch log group to which log needs to be published.
- logType String
- Type of Elasticsearch log. Valid values: INDEX_SLOW_LOGS,SEARCH_SLOW_LOGS,ES_APPLICATION_LOGS,AUDIT_LOGS.
- enabled Boolean
- Whether given log publishing option is enabled or not.
- cloudwatchLog stringGroup Arn 
- ARN of the Cloudwatch log group to which log needs to be published.
- logType string
- Type of Elasticsearch log. Valid values: INDEX_SLOW_LOGS,SEARCH_SLOW_LOGS,ES_APPLICATION_LOGS,AUDIT_LOGS.
- enabled boolean
- Whether given log publishing option is enabled or not.
- cloudwatch_log_ strgroup_ arn 
- ARN of the Cloudwatch log group to which log needs to be published.
- log_type str
- Type of Elasticsearch log. Valid values: INDEX_SLOW_LOGS,SEARCH_SLOW_LOGS,ES_APPLICATION_LOGS,AUDIT_LOGS.
- enabled bool
- Whether given log publishing option is enabled or not.
- cloudwatchLog StringGroup Arn 
- ARN of the Cloudwatch log group to which log needs to be published.
- logType String
- Type of Elasticsearch log. Valid values: INDEX_SLOW_LOGS,SEARCH_SLOW_LOGS,ES_APPLICATION_LOGS,AUDIT_LOGS.
- enabled Boolean
- Whether given log publishing option is enabled or not.
DomainNodeToNodeEncryption, DomainNodeToNodeEncryptionArgs          
- Enabled bool
- Whether to enable node-to-node encryption. If the node_to_node_encryptionblock is not provided then this defaults tofalse. Enabling node-to-node encryption of a new domain requires anelasticsearch_versionof6.0or greater.
- Enabled bool
- Whether to enable node-to-node encryption. If the node_to_node_encryptionblock is not provided then this defaults tofalse. Enabling node-to-node encryption of a new domain requires anelasticsearch_versionof6.0or greater.
- enabled Boolean
- Whether to enable node-to-node encryption. If the node_to_node_encryptionblock is not provided then this defaults tofalse. Enabling node-to-node encryption of a new domain requires anelasticsearch_versionof6.0or greater.
- enabled boolean
- Whether to enable node-to-node encryption. If the node_to_node_encryptionblock is not provided then this defaults tofalse. Enabling node-to-node encryption of a new domain requires anelasticsearch_versionof6.0or greater.
- enabled bool
- Whether to enable node-to-node encryption. If the node_to_node_encryptionblock is not provided then this defaults tofalse. Enabling node-to-node encryption of a new domain requires anelasticsearch_versionof6.0or greater.
- enabled Boolean
- Whether to enable node-to-node encryption. If the node_to_node_encryptionblock is not provided then this defaults tofalse. Enabling node-to-node encryption of a new domain requires anelasticsearch_versionof6.0or greater.
DomainSnapshotOptions, DomainSnapshotOptionsArgs      
- AutomatedSnapshot intStart Hour 
- Hour during which the service takes an automated daily snapshot of the indices in the domain.
- AutomatedSnapshot intStart Hour 
- Hour during which the service takes an automated daily snapshot of the indices in the domain.
- automatedSnapshot IntegerStart Hour 
- Hour during which the service takes an automated daily snapshot of the indices in the domain.
- automatedSnapshot numberStart Hour 
- Hour during which the service takes an automated daily snapshot of the indices in the domain.
- automated_snapshot_ intstart_ hour 
- Hour during which the service takes an automated daily snapshot of the indices in the domain.
- automatedSnapshot NumberStart Hour 
- Hour during which the service takes an automated daily snapshot of the indices in the domain.
DomainVpcOptions, DomainVpcOptionsArgs      
- AvailabilityZones List<string>
- If the domain was created inside a VPC, the names of the availability zones the configured subnet_idswere created inside.
- SecurityGroup List<string>Ids 
- List of VPC Security Group IDs to be applied to the Elasticsearch domain endpoints. If omitted, the default Security Group for the VPC will be used.
- SubnetIds List<string>
- List of VPC Subnet IDs for the Elasticsearch domain endpoints to be created in.
- VpcId string
- If the domain was created inside a VPC, the ID of the VPC.
- AvailabilityZones []string
- If the domain was created inside a VPC, the names of the availability zones the configured subnet_idswere created inside.
- SecurityGroup []stringIds 
- List of VPC Security Group IDs to be applied to the Elasticsearch domain endpoints. If omitted, the default Security Group for the VPC will be used.
- SubnetIds []string
- List of VPC Subnet IDs for the Elasticsearch domain endpoints to be created in.
- VpcId string
- If the domain was created inside a VPC, the ID of the VPC.
- availabilityZones List<String>
- If the domain was created inside a VPC, the names of the availability zones the configured subnet_idswere created inside.
- securityGroup List<String>Ids 
- List of VPC Security Group IDs to be applied to the Elasticsearch domain endpoints. If omitted, the default Security Group for the VPC will be used.
- subnetIds List<String>
- List of VPC Subnet IDs for the Elasticsearch domain endpoints to be created in.
- vpcId String
- If the domain was created inside a VPC, the ID of the VPC.
- availabilityZones string[]
- If the domain was created inside a VPC, the names of the availability zones the configured subnet_idswere created inside.
- securityGroup string[]Ids 
- List of VPC Security Group IDs to be applied to the Elasticsearch domain endpoints. If omitted, the default Security Group for the VPC will be used.
- subnetIds string[]
- List of VPC Subnet IDs for the Elasticsearch domain endpoints to be created in.
- vpcId string
- If the domain was created inside a VPC, the ID of the VPC.
- availability_zones Sequence[str]
- If the domain was created inside a VPC, the names of the availability zones the configured subnet_idswere created inside.
- security_group_ Sequence[str]ids 
- List of VPC Security Group IDs to be applied to the Elasticsearch domain endpoints. If omitted, the default Security Group for the VPC will be used.
- subnet_ids Sequence[str]
- List of VPC Subnet IDs for the Elasticsearch domain endpoints to be created in.
- vpc_id str
- If the domain was created inside a VPC, the ID of the VPC.
- availabilityZones List<String>
- If the domain was created inside a VPC, the names of the availability zones the configured subnet_idswere created inside.
- securityGroup List<String>Ids 
- List of VPC Security Group IDs to be applied to the Elasticsearch domain endpoints. If omitted, the default Security Group for the VPC will be used.
- subnetIds List<String>
- List of VPC Subnet IDs for the Elasticsearch domain endpoints to be created in.
- vpcId String
- If the domain was created inside a VPC, the ID of the VPC.
Import
Using pulumi import, import Elasticsearch domains using the domain_name. For example:
$ pulumi import aws:elasticsearch/domain:Domain example domain_name
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 awsTerraform Provider.