Class Domain
- All Implemented Interfaces:
IResource
,IConnectable
,IDomain
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
Example:
Domain domain = Domain.Builder.create(this, "Domain") .version(ElasticsearchVersion.V7_4) .ebs(EbsOptions.builder() .volumeSize(100) .volumeType(EbsDeviceVolumeType.GENERAL_PURPOSE_SSD) .build()) .nodeToNodeEncryption(true) .encryptionAtRest(EncryptionAtRestOptions.builder() .enabled(true) .build()) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IConnectable
IConnectable.Jsii$Default, IConnectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.elasticsearch.IDomain
IDomain.Jsii$Default, IDomain.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
Domain
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated.protected
Domain
(software.amazon.jsii.JsiiObjectRef objRef) Deprecated.Domain
(software.constructs.Construct scope, String id, DomainProps props) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAccessPolicies
(@NotNull PolicyStatement... accessPolicyStatements) Deprecated.use opensearchservice module insteadstatic IDomain
fromDomainAttributes
(software.constructs.Construct scope, String id, DomainAttributes attrs) Deprecated.use opensearchservice module insteadstatic IDomain
fromDomainEndpoint
(software.constructs.Construct scope, String id, String domainEndpoint) Deprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadgrantIndexRead
(String index, IGrantable identity) Deprecated.use opensearchservice module insteadgrantIndexReadWrite
(String index, IGrantable identity) Deprecated.use opensearchservice module insteadgrantIndexWrite
(String index, IGrantable identity) Deprecated.use opensearchservice module insteadgrantPathRead
(String path, IGrantable identity) Deprecated.use opensearchservice module insteadgrantPathReadWrite
(String path, IGrantable identity) Deprecated.use opensearchservice module insteadgrantPathWrite
(String path, IGrantable identity) Deprecated.use opensearchservice module insteadgrantRead
(IGrantable identity) Deprecated.use opensearchservice module insteadgrantReadWrite
(IGrantable identity) Deprecated.use opensearchservice module insteadgrantWrite
(IGrantable identity) Deprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadmetric
(String metricName, MetricOptions props) Deprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadmetricKMSKeyError
(MetricOptions props) Deprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadmetricNodes
(MetricOptions props) Deprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadDeprecated.use opensearchservice module insteadmetricSearchLatency
(MetricOptions props) Deprecated.use opensearchservice module insteadMethods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Domain
protected Domain(software.amazon.jsii.JsiiObjectRef objRef) Deprecated. -
Domain
protected Domain(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated. -
Domain
@Stability(Deprecated) @Deprecated public Domain(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DomainProps props) Deprecated.- Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
fromDomainAttributes
@Stability(Deprecated) @Deprecated @NotNull public static IDomain fromDomainAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DomainAttributes attrs) Deprecated.use opensearchservice module instead(deprecated) Creates a Domain construct that represents an external domain.- Parameters:
scope
- The parent creating construct (usuallythis
). This parameter is required.id
- The construct's name. This parameter is required.attrs
- ADomainAttributes
object. This parameter is required.
-
fromDomainEndpoint
@Stability(Deprecated) @Deprecated @NotNull public static IDomain fromDomainEndpoint(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String domainEndpoint) Deprecated.use opensearchservice module instead(deprecated) Creates a Domain construct that represents an external domain via domain endpoint.- Parameters:
scope
- The parent creating construct (usuallythis
). This parameter is required.id
- The construct's name. This parameter is required.domainEndpoint
- The domain's endpoint. This parameter is required.
-
addAccessPolicies
@Stability(Deprecated) @Deprecated public void addAccessPolicies(@NotNull @NotNull PolicyStatement... accessPolicyStatements) Deprecated.use opensearchservice module instead(deprecated) Add policy statements to the domain access policy.- Parameters:
accessPolicyStatements
- This parameter is required.
-
grantIndexRead
@Stability(Deprecated) @Deprecated @NotNull public Grant grantIndexRead(@NotNull String index, @NotNull IGrantable identity) Deprecated.use opensearchservice module instead(deprecated) Grant read permissions for an index in this domain to an IAM principal (Role/Group/User).- Specified by:
grantIndexRead
in interfaceIDomain
- Parameters:
index
- The index to grant permissions for. This parameter is required.identity
- The principal. This parameter is required.
-
grantIndexReadWrite
@Stability(Deprecated) @Deprecated @NotNull public Grant grantIndexReadWrite(@NotNull String index, @NotNull IGrantable identity) Deprecated.use opensearchservice module instead(deprecated) Grant read/write permissions for an index in this domain to an IAM principal (Role/Group/User).- Specified by:
grantIndexReadWrite
in interfaceIDomain
- Parameters:
index
- The index to grant permissions for. This parameter is required.identity
- The principal. This parameter is required.
-
grantIndexWrite
@Stability(Deprecated) @Deprecated @NotNull public Grant grantIndexWrite(@NotNull String index, @NotNull IGrantable identity) Deprecated.use opensearchservice module instead(deprecated) Grant write permissions for an index in this domain to an IAM principal (Role/Group/User).- Specified by:
grantIndexWrite
in interfaceIDomain
- Parameters:
index
- The index to grant permissions for. This parameter is required.identity
- The principal. This parameter is required.
-
grantPathRead
@Stability(Deprecated) @Deprecated @NotNull public Grant grantPathRead(@NotNull String path, @NotNull IGrantable identity) Deprecated.use opensearchservice module instead(deprecated) Grant read permissions for a specific path in this domain to an IAM principal (Role/Group/User).- Specified by:
grantPathRead
in interfaceIDomain
- Parameters:
path
- The path to grant permissions for. This parameter is required.identity
- The principal. This parameter is required.
-
grantPathReadWrite
@Stability(Deprecated) @Deprecated @NotNull public Grant grantPathReadWrite(@NotNull String path, @NotNull IGrantable identity) Deprecated.use opensearchservice module instead(deprecated) Grant read/write permissions for a specific path in this domain to an IAM principal (Role/Group/User).- Specified by:
grantPathReadWrite
in interfaceIDomain
- Parameters:
path
- The path to grant permissions for. This parameter is required.identity
- The principal. This parameter is required.
-
grantPathWrite
@Stability(Deprecated) @Deprecated @NotNull public Grant grantPathWrite(@NotNull String path, @NotNull IGrantable identity) Deprecated.use opensearchservice module instead(deprecated) Grant write permissions for a specific path in this domain to an IAM principal (Role/Group/User).- Specified by:
grantPathWrite
in interfaceIDomain
- Parameters:
path
- The path to grant permissions for. This parameter is required.identity
- The principal. This parameter is required.
-
grantRead
Deprecated.use opensearchservice module instead(deprecated) Grant read permissions for this domain and its contents to an IAM principal (Role/Group/User). -
grantReadWrite
@Stability(Deprecated) @Deprecated @NotNull public Grant grantReadWrite(@NotNull IGrantable identity) Deprecated.use opensearchservice module instead(deprecated) Grant read/write permissions for this domain and its contents to an IAM principal (Role/Group/User).- Specified by:
grantReadWrite
in interfaceIDomain
- Parameters:
identity
- The principal. This parameter is required.
-
grantWrite
Deprecated.use opensearchservice module instead(deprecated) Grant write permissions for this domain and its contents to an IAM principal (Role/Group/User).- Specified by:
grantWrite
in interfaceIDomain
- Parameters:
identity
- The principal. This parameter is required.
-
metric
@Stability(Deprecated) @Deprecated @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Deprecated.use opensearchservice module instead(deprecated) Return the given named metric for this Domain. -
metric
Deprecated.use opensearchservice module instead(deprecated) Return the given named metric for this Domain. -
metricAutomatedSnapshotFailure
@Stability(Deprecated) @Deprecated @NotNull public Metric metricAutomatedSnapshotFailure(@Nullable MetricOptions props) Deprecated.use opensearchservice module instead(deprecated) Metric for automated snapshot failures.Default: maximum over 5 minutes
- Specified by:
metricAutomatedSnapshotFailure
in interfaceIDomain
- Parameters:
props
-
-
metricAutomatedSnapshotFailure
Deprecated.use opensearchservice module instead(deprecated) Metric for automated snapshot failures.Default: maximum over 5 minutes
- Specified by:
metricAutomatedSnapshotFailure
in interfaceIDomain
-
metricClusterIndexWritesBlocked
@Stability(Deprecated) @Deprecated @NotNull public Metric metricClusterIndexWritesBlocked(@Nullable MetricOptions props) Deprecated.use opensearchservice module instead(deprecated) Metric for the cluster blocking index writes.Default: maximum over 1 minute
- Specified by:
metricClusterIndexWritesBlocked
in interfaceIDomain
- Parameters:
props
-
-
metricClusterIndexWritesBlocked
Deprecated.use opensearchservice module instead(deprecated) Metric for the cluster blocking index writes.Default: maximum over 1 minute
- Specified by:
metricClusterIndexWritesBlocked
in interfaceIDomain
-
metricClusterStatusRed
@Stability(Deprecated) @Deprecated @NotNull public Metric metricClusterStatusRed(@Nullable MetricOptions props) Deprecated.use opensearchservice module instead(deprecated) Metric for the time the cluster status is red.Default: maximum over 5 minutes
- Specified by:
metricClusterStatusRed
in interfaceIDomain
- Parameters:
props
-
-
metricClusterStatusRed
Deprecated.use opensearchservice module instead(deprecated) Metric for the time the cluster status is red.Default: maximum over 5 minutes
- Specified by:
metricClusterStatusRed
in interfaceIDomain
-
metricClusterStatusYellow
@Stability(Deprecated) @Deprecated @NotNull public Metric metricClusterStatusYellow(@Nullable MetricOptions props) Deprecated.use opensearchservice module instead(deprecated) Metric for the time the cluster status is yellow.Default: maximum over 5 minutes
- Specified by:
metricClusterStatusYellow
in interfaceIDomain
- Parameters:
props
-
-
metricClusterStatusYellow
Deprecated.use opensearchservice module instead(deprecated) Metric for the time the cluster status is yellow.Default: maximum over 5 minutes
- Specified by:
metricClusterStatusYellow
in interfaceIDomain
-
metricCPUUtilization
@Stability(Deprecated) @Deprecated @NotNull public Metric metricCPUUtilization(@Nullable MetricOptions props) Deprecated.use opensearchservice module instead(deprecated) Metric for CPU utilization.Default: maximum over 5 minutes
- Specified by:
metricCPUUtilization
in interfaceIDomain
- Parameters:
props
-
-
metricCPUUtilization
Deprecated.use opensearchservice module instead(deprecated) Metric for CPU utilization.Default: maximum over 5 minutes
- Specified by:
metricCPUUtilization
in interfaceIDomain
-
metricFreeStorageSpace
@Stability(Deprecated) @Deprecated @NotNull public Metric metricFreeStorageSpace(@Nullable MetricOptions props) Deprecated.use opensearchservice module instead(deprecated) Metric for the storage space of nodes in the cluster.Default: minimum over 5 minutes
- Specified by:
metricFreeStorageSpace
in interfaceIDomain
- Parameters:
props
-
-
metricFreeStorageSpace
Deprecated.use opensearchservice module instead(deprecated) Metric for the storage space of nodes in the cluster.Default: minimum over 5 minutes
- Specified by:
metricFreeStorageSpace
in interfaceIDomain
-
metricIndexingLatency
@Stability(Deprecated) @Deprecated @NotNull public Metric metricIndexingLatency(@Nullable MetricOptions props) Deprecated.use opensearchservice module instead(deprecated) Metric for indexing latency.Default: p99 over 5 minutes
- Specified by:
metricIndexingLatency
in interfaceIDomain
- Parameters:
props
-
-
metricIndexingLatency
Deprecated.use opensearchservice module instead(deprecated) Metric for indexing latency.Default: p99 over 5 minutes
- Specified by:
metricIndexingLatency
in interfaceIDomain
-
metricJVMMemoryPressure
@Stability(Deprecated) @Deprecated @NotNull public Metric metricJVMMemoryPressure(@Nullable MetricOptions props) Deprecated.use opensearchservice module instead(deprecated) Metric for JVM memory pressure.Default: maximum over 5 minutes
- Specified by:
metricJVMMemoryPressure
in interfaceIDomain
- Parameters:
props
-
-
metricJVMMemoryPressure
Deprecated.use opensearchservice module instead(deprecated) Metric for JVM memory pressure.Default: maximum over 5 minutes
- Specified by:
metricJVMMemoryPressure
in interfaceIDomain
-
metricKMSKeyError
@Stability(Deprecated) @Deprecated @NotNull public Metric metricKMSKeyError(@Nullable MetricOptions props) Deprecated.use opensearchservice module instead(deprecated) Metric for KMS key errors.Default: maximum over 5 minutes
- Specified by:
metricKMSKeyError
in interfaceIDomain
- Parameters:
props
-
-
metricKMSKeyError
Deprecated.use opensearchservice module instead(deprecated) Metric for KMS key errors.Default: maximum over 5 minutes
- Specified by:
metricKMSKeyError
in interfaceIDomain
-
metricKMSKeyInaccessible
@Stability(Deprecated) @Deprecated @NotNull public Metric metricKMSKeyInaccessible(@Nullable MetricOptions props) Deprecated.use opensearchservice module instead(deprecated) Metric for KMS key being inaccessible.Default: maximum over 5 minutes
- Specified by:
metricKMSKeyInaccessible
in interfaceIDomain
- Parameters:
props
-
-
metricKMSKeyInaccessible
Deprecated.use opensearchservice module instead(deprecated) Metric for KMS key being inaccessible.Default: maximum over 5 minutes
- Specified by:
metricKMSKeyInaccessible
in interfaceIDomain
-
metricMasterCPUUtilization
@Stability(Deprecated) @Deprecated @NotNull public Metric metricMasterCPUUtilization(@Nullable MetricOptions props) Deprecated.use opensearchservice module instead(deprecated) Metric for master CPU utilization.Default: maximum over 5 minutes
- Specified by:
metricMasterCPUUtilization
in interfaceIDomain
- Parameters:
props
-
-
metricMasterCPUUtilization
Deprecated.use opensearchservice module instead(deprecated) Metric for master CPU utilization.Default: maximum over 5 minutes
- Specified by:
metricMasterCPUUtilization
in interfaceIDomain
-
metricMasterJVMMemoryPressure
@Stability(Deprecated) @Deprecated @NotNull public Metric metricMasterJVMMemoryPressure(@Nullable MetricOptions props) Deprecated.use opensearchservice module instead(deprecated) Metric for master JVM memory pressure.Default: maximum over 5 minutes
- Specified by:
metricMasterJVMMemoryPressure
in interfaceIDomain
- Parameters:
props
-
-
metricMasterJVMMemoryPressure
Deprecated.use opensearchservice module instead(deprecated) Metric for master JVM memory pressure.Default: maximum over 5 minutes
- Specified by:
metricMasterJVMMemoryPressure
in interfaceIDomain
-
metricNodes
@Stability(Deprecated) @Deprecated @NotNull public Metric metricNodes(@Nullable MetricOptions props) Deprecated.use opensearchservice module instead(deprecated) Metric for the number of nodes.Default: minimum over 1 hour
- Specified by:
metricNodes
in interfaceIDomain
- Parameters:
props
-
-
metricNodes
Deprecated.use opensearchservice module instead(deprecated) Metric for the number of nodes.Default: minimum over 1 hour
- Specified by:
metricNodes
in interfaceIDomain
-
metricSearchableDocuments
@Stability(Deprecated) @Deprecated @NotNull public Metric metricSearchableDocuments(@Nullable MetricOptions props) Deprecated.use opensearchservice module instead(deprecated) Metric for number of searchable documents.Default: maximum over 5 minutes
- Specified by:
metricSearchableDocuments
in interfaceIDomain
- Parameters:
props
-
-
metricSearchableDocuments
Deprecated.use opensearchservice module instead(deprecated) Metric for number of searchable documents.Default: maximum over 5 minutes
- Specified by:
metricSearchableDocuments
in interfaceIDomain
-
metricSearchLatency
@Stability(Deprecated) @Deprecated @NotNull public Metric metricSearchLatency(@Nullable MetricOptions props) Deprecated.use opensearchservice module instead(deprecated) Metric for search latency.Default: p99 over 5 minutes
- Specified by:
metricSearchLatency
in interfaceIDomain
- Parameters:
props
-
-
metricSearchLatency
Deprecated.use opensearchservice module instead(deprecated) Metric for search latency.Default: p99 over 5 minutes
- Specified by:
metricSearchLatency
in interfaceIDomain
-
getConnections
Deprecated.use opensearchservice module instead(deprecated) Manages network connections to the domain.This will throw an error in case the domain is not placed inside a VPC.
- Specified by:
getConnections
in interfaceIConnectable
-
getDomainArn
Deprecated.use opensearchservice module instead(deprecated) Arn of the Elasticsearch domain.- Specified by:
getDomainArn
in interfaceIDomain
-
getDomainEndpoint
Deprecated.use opensearchservice module instead(deprecated) Endpoint of the Elasticsearch domain.- Specified by:
getDomainEndpoint
in interfaceIDomain
-
getDomainName
Deprecated.use opensearchservice module instead(deprecated) Domain name of the Elasticsearch domain.- Specified by:
getDomainName
in interfaceIDomain
-
getAppLogGroup
Deprecated.use opensearchservice module instead(deprecated) Log group that application logs are logged to. -
getAuditLogGroup
Deprecated.use opensearchservice module instead(deprecated) Log group that audit logs are logged to. -
getMasterUserPassword
Deprecated.use opensearchservice module instead(deprecated) Master user password if fine grained access control is configured. -
getSlowIndexLogGroup
Deprecated.use opensearchservice module instead(deprecated) Log group that slow indices are logged to. -
getSlowSearchLogGroup
Deprecated.use opensearchservice module instead(deprecated) Log group that slow searches are logged to.
-