GetDomain
Use this data source to get information about an Elasticsearch Domain
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var myDomain = Output.Create(Aws.ElasticSearch.GetDomain.InvokeAsync(new Aws.ElasticSearch.GetDomainArgs
{
DomainName = "my-domain-name",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elasticsearch"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := elasticsearch.LookupDomain(ctx, &elasticsearch.LookupDomainArgs{
DomainName: "my-domain-name",
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
my_domain = aws.elasticsearch.get_domain(domain_name="my-domain-name")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const myDomain = pulumi.output(aws.elasticsearch.getDomain({
domainName: "my-domain-name",
}, { async: true }));Using GetDomain
function getDomain(args: GetDomainArgs, opts?: InvokeOptions): Promise<GetDomainResult>function get_domain(domain_name=None, tags=None, opts=None)func LookupDomain(ctx *Context, args *LookupDomainArgs, opts ...InvokeOption) (*LookupDomainResult, error)Note: This function is named
LookupDomainin the Go SDK.
public static class GetDomain {
public static Task<GetDomainResult> InvokeAsync(GetDomainArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Domain
Name string Name of the domain.
- Dictionary<string, string>
The tags assigned to the domain.
- Domain
Name string Name of the domain.
- map[string]string
The tags assigned to the domain.
- domain
Name string Name of the domain.
- {[key: string]: string}
The tags assigned to the domain.
- domain_
name str Name of the domain.
- Dict[str, str]
The tags assigned to the domain.
GetDomain Result
The following output properties are available:
- Access
Policies string The policy document attached to the domain.
- Advanced
Options Dictionary<string, string> Key-value string pairs to specify advanced configuration options.
- Advanced
Security List<GetOptions Domain Advanced Security Option> Status of the Elasticsearch domain’s advanced security options. The block consists of the following attributes:
- Arn string
The Amazon Resource Name (ARN) of the domain.
- Cluster
Configs List<GetDomain Cluster Config> Cluster configuration of the domain.
- Cognito
Options List<GetDomain Cognito Option> Domain Amazon Cognito Authentication options for Kibana.
- Created bool
Status of the creation of the domain.
- Deleted bool
Status of the deletion of the domain.
- Domain
Id string Unique identifier for the domain.
- Domain
Name string - Ebs
Options List<GetDomain Ebs Option> EBS Options for the instances in the domain.
- Elasticsearch
Version string ElasticSearch version for the domain.
- Encryption
At List<GetRests Domain Encryption At Rest> Domain encryption at rest related options.
- 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.
- Kibana
Endpoint string Domain-specific endpoint used to access the Kibana application.
- Log
Publishing List<GetOptions Domain Log Publishing Option> Domain log publishing related options.
- Node
To List<GetNode Encryptions Domain Node To Node Encryption> Domain in transit encryption related options.
- Processing bool
Status of a configuration change in the domain. *
snapshot_options– Domain snapshot related options.- Snapshot
Options List<GetDomain Snapshot Option> - Dictionary<string, string>
The tags assigned to the domain.
- Vpc
Options List<GetDomain Vpc Option> VPC Options for private Elasticsearch domains.
- Access
Policies string The policy document attached to the domain.
- Advanced
Options map[string]string Key-value string pairs to specify advanced configuration options.
- Advanced
Security []GetOptions Domain Advanced Security Option Status of the Elasticsearch domain’s advanced security options. The block consists of the following attributes:
- Arn string
The Amazon Resource Name (ARN) of the domain.
- Cluster
Configs []GetDomain Cluster Config Cluster configuration of the domain.
- Cognito
Options []GetDomain Cognito Option Domain Amazon Cognito Authentication options for Kibana.
- Created bool
Status of the creation of the domain.
- Deleted bool
Status of the deletion of the domain.
- Domain
Id string Unique identifier for the domain.
- Domain
Name string - Ebs
Options []GetDomain Ebs Option EBS Options for the instances in the domain.
- Elasticsearch
Version string ElasticSearch version for the domain.
- Encryption
At []GetRests Domain Encryption At Rest Domain encryption at rest related options.
- 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.
- Kibana
Endpoint string Domain-specific endpoint used to access the Kibana application.
- Log
Publishing []GetOptions Domain Log Publishing Option Domain log publishing related options.
- Node
To []GetNode Encryptions Domain Node To Node Encryption Domain in transit encryption related options.
- Processing bool
Status of a configuration change in the domain. *
snapshot_options– Domain snapshot related options.- Snapshot
Options []GetDomain Snapshot Option - map[string]string
The tags assigned to the domain.
- Vpc
Options []GetDomain Vpc Option VPC Options for private Elasticsearch domains.
- access
Policies string The policy document attached to the domain.
- advanced
Options {[key: string]: string} Key-value string pairs to specify advanced configuration options.
- advanced
Security GetOptions Domain Advanced Security Option[] Status of the Elasticsearch domain’s advanced security options. The block consists of the following attributes:
- arn string
The Amazon Resource Name (ARN) of the domain.
- cluster
Configs GetDomain Cluster Config[] Cluster configuration of the domain.
- cognito
Options GetDomain Cognito Option[] Domain Amazon Cognito Authentication options for Kibana.
- created boolean
Status of the creation of the domain.
- deleted boolean
Status of the deletion of the domain.
- domain
Id string Unique identifier for the domain.
- domain
Name string - ebs
Options GetDomain Ebs Option[] EBS Options for the instances in the domain.
- elasticsearch
Version string ElasticSearch version for the domain.
- encryption
At GetRests Domain Encryption At Rest[] Domain encryption at rest related options.
- 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.
- kibana
Endpoint string Domain-specific endpoint used to access the Kibana application.
- log
Publishing GetOptions Domain Log Publishing Option[] Domain log publishing related options.
- node
To GetNode Encryptions Domain Node To Node Encryption[] Domain in transit encryption related options.
- processing boolean
Status of a configuration change in the domain. *
snapshot_options– Domain snapshot related options.- snapshot
Options GetDomain Snapshot Option[] - {[key: string]: string}
The tags assigned to the domain.
- vpc
Options GetDomain Vpc Option[] VPC Options for private Elasticsearch domains.
- access_
policies str The policy document attached to the domain.
- advanced_
options Dict[str, str] Key-value string pairs to specify advanced configuration options.
- advanced_
security_ List[Getoptions Domain Advanced Security Option] Status of the Elasticsearch domain’s advanced security options. The block consists of the following attributes:
- arn str
The Amazon Resource Name (ARN) of the domain.
- cluster_
configs List[GetDomain Cluster Config] Cluster configuration of the domain.
- cognito_
options List[GetDomain Cognito Option] Domain Amazon Cognito Authentication options for Kibana.
- created bool
Status of the creation of the domain.
- deleted bool
Status of the deletion of the domain.
- domain_
id str Unique identifier for the domain.
- domain_
name str - ebs_
options List[GetDomain Ebs Option] EBS Options for the instances in the domain.
- elasticsearch_
version str ElasticSearch version for the domain.
- encryption_
at_ List[Getrests Domain Encryption At Rest] Domain encryption at rest related options.
- 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 used to access the Kibana application.
- log_
publishing_ List[Getoptions Domain Log Publishing Option] Domain log publishing related options.
- node_
to_ List[Getnode_ encryptions Domain Node To Node Encryption] Domain in transit encryption related options.
- processing bool
Status of a configuration change in the domain. *
snapshot_options– Domain snapshot related options.- snapshot_
options List[GetDomain Snapshot Option] - Dict[str, str]
The tags assigned to the domain.
- vpc_
options List[GetDomain Vpc Option] VPC Options for private Elasticsearch domains.
Supporting Types
GetDomainAdvancedSecurityOption
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Enabled bool
Whether node to node encryption is enabled.
- Internal
User boolDatabase Enabled Whether the internal user database is enabled.
- Enabled bool
Whether node to node encryption is enabled.
- Internal
User boolDatabase Enabled Whether the internal user database is enabled.
- enabled boolean
Whether node to node encryption is enabled.
- internal
User booleanDatabase Enabled Whether the internal user database is enabled.
- enabled bool
Whether node to node encryption is enabled.
- internal
User boolDatabase Enabled Whether the internal user database is enabled.
GetDomainClusterConfig
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Dedicated
Master intCount Number of dedicated master nodes in the cluster.
- Dedicated
Master boolEnabled Indicates whether dedicated master nodes are enabled for the cluster.
- Dedicated
Master stringType Instance type of the dedicated master nodes in the cluster.
- Instance
Count int Number of instances in the cluster.
- Instance
Type string Instance type of data nodes in the cluster.
- Warm
Count int The number of warm nodes in the cluster.
- Warm
Type string The instance type for the Elasticsearch cluster’s warm nodes.
- Zone
Awareness List<GetConfigs Domain Cluster Config Zone Awareness Config Args> Configuration block containing zone awareness settings.
- Zone
Awareness boolEnabled Indicates whether zone awareness is enabled.
- Warm
Enabled bool Indicates warm storage is enabled.
- Dedicated
Master intCount Number of dedicated master nodes in the cluster.
- Dedicated
Master boolEnabled Indicates whether dedicated master nodes are enabled for the cluster.
- Dedicated
Master stringType Instance type of the dedicated master nodes in the cluster.
- Instance
Count int Number of instances in the cluster.
- Instance
Type string Instance type of data nodes in the cluster.
- Warm
Count int The number of warm nodes in the cluster.
- Warm
Type string The instance type for the Elasticsearch cluster’s warm nodes.
- Zone
Awareness []GetConfigs Domain Cluster Config Zone Awareness Config Configuration block containing zone awareness settings.
- Zone
Awareness boolEnabled Indicates whether zone awareness is enabled.
- Warm
Enabled bool Indicates warm storage is enabled.
- dedicated
Master numberCount Number of dedicated master nodes in the cluster.
- dedicated
Master booleanEnabled Indicates whether dedicated master nodes are enabled for the cluster.
- dedicated
Master stringType Instance type of the dedicated master nodes in the cluster.
- instance
Count number Number of instances in the cluster.
- instance
Type string Instance type of data nodes in the cluster.
- warm
Count number The number of warm nodes in the cluster.
- warm
Type string The instance type for the Elasticsearch cluster’s warm nodes.
- zone
Awareness GetConfigs Domain Cluster Config Zone Awareness Config[] Configuration block containing zone awareness settings.
- zone
Awareness booleanEnabled Indicates whether zone awareness is enabled.
- warm
Enabled boolean Indicates warm storage is enabled.
- dedicated
Master floatCount Number of dedicated master nodes in the cluster.
- dedicated
Master boolEnabled Indicates whether dedicated master nodes are enabled for the cluster.
- dedicated
Master strType Instance type of the dedicated master nodes in the cluster.
- instance_
count float Number of instances in the cluster.
- instance_
type str Instance type of data nodes in the cluster.
- warm
Count float The number of warm nodes in the cluster.
- warm
Type str The instance type for the Elasticsearch cluster’s warm nodes.
- zone
Awareness List[GetConfigs Domain Cluster Config Zone Awareness Config] Configuration block containing zone awareness settings.
- zone
Awareness boolEnabled Indicates whether zone awareness is enabled.
- warm
Enabled bool Indicates warm storage is enabled.
GetDomainClusterConfigZoneAwarenessConfig
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Availability
Zone intCount Number of availability zones used.
- Availability
Zone intCount Number of availability zones used.
- availability
Zone numberCount Number of availability zones used.
- availability
Zone floatCount Number of availability zones used.
GetDomainCognitoOption
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Enabled bool
Whether node to node encryption is enabled.
- Identity
Pool stringId The Cognito Identity pool used by the domain.
- Role
Arn string The IAM Role with the AmazonESCognitoAccess policy attached.
- User
Pool stringId The Cognito User pool used by the domain.
- Enabled bool
Whether node to node encryption is enabled.
- Identity
Pool stringId The Cognito Identity pool used by the domain.
- Role
Arn string The IAM Role with the AmazonESCognitoAccess policy attached.
- User
Pool stringId The Cognito User pool used by the domain.
- enabled boolean
Whether node to node encryption is enabled.
- identity
Pool stringId The Cognito Identity pool used by the domain.
- role
Arn string The IAM Role with the AmazonESCognitoAccess policy attached.
- user
Pool stringId The Cognito User pool used by the domain.
- enabled bool
Whether node to node encryption is enabled.
- identity_
pool_ strid The Cognito Identity pool used by the domain.
- role_
arn str The IAM Role with the AmazonESCognitoAccess policy attached.
- user_
pool_ strid The Cognito User pool used by the domain.
GetDomainEbsOption
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Ebs
Enabled bool Whether EBS volumes are attached to data nodes in the domain.
- Iops int
The baseline input/output (I/O) performance of EBS volumes attached to data nodes.
- Volume
Size int The size of EBS volumes attached to data nodes (in GB).
- Volume
Type string The type of EBS volumes attached to data nodes.
- Ebs
Enabled bool Whether EBS volumes are attached to data nodes in the domain.
- Iops int
The baseline input/output (I/O) performance of EBS volumes attached to data nodes.
- Volume
Size int The size of EBS volumes attached to data nodes (in GB).
- Volume
Type string The type of EBS volumes attached to data nodes.
- ebs
Enabled boolean Whether EBS volumes are attached to data nodes in the domain.
- iops number
The baseline input/output (I/O) performance of EBS volumes attached to data nodes.
- volume
Size number The size of EBS volumes attached to data nodes (in GB).
- volume
Type string The type of EBS volumes attached to data nodes.
- ebs
Enabled bool Whether EBS volumes are attached to data nodes in the domain.
- iops float
The baseline input/output (I/O) performance of EBS volumes attached to data nodes.
- volume
Type str The type of EBS volumes attached to data nodes.
- volume_
size float The size of EBS volumes attached to data nodes (in GB).
GetDomainEncryptionAtRest
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- enabled bool
Whether node to node encryption is enabled.
- kms_
key_ strid The KMS key id used to encrypt data at rest.
GetDomainLogPublishingOption
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetDomainNodeToNodeEncryption
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetDomainSnapshotOption
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Automated
Snapshot intStart 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.
- automated
Snapshot numberStart Hour Hour during which the service takes an automated daily snapshot of the indices in the domain.
- automated
Snapshot floatStart Hour Hour during which the service takes an automated daily snapshot of the indices in the domain.
GetDomainVpcOption
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Availability
Zones List<string> The availability zones used by the domain.
- Security
Group List<string>Ids The security groups used by the domain.
- Subnet
Ids List<string> The subnets used by the domain.
- Vpc
Id string The VPC used by the domain.
- Availability
Zones []string The availability zones used by the domain.
- Security
Group []stringIds The security groups used by the domain.
- Subnet
Ids []string The subnets used by the domain.
- Vpc
Id string The VPC used by the domain.
- availability
Zones string[] The availability zones used by the domain.
- security
Group string[]Ids The security groups used by the domain.
- subnet
Ids string[] The subnets used by the domain.
- vpc
Id string The VPC used by the domain.
- availability_
zones List[str] The availability zones used by the domain.
- security_
group_ List[str]ids The security groups used by the domain.
- subnet_
ids List[str] The subnets used by the domain.
- vpc_
id str The VPC used by the domain.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.