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(EngineVersion.OPENSEARCH_1_0)
.ebs(EbsOptions.builder()
.volumeSize(100)
.volumeType(EbsDeviceVolumeType.GENERAL_PURPOSE_SSD)
.build())
.nodeToNodeEncryption(true)
.encryptionAtRest(EncryptionAtRestOptions.builder()
.enabled(true)
.build())
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IConnectable
IConnectable.Jsii$Default, IConnectable.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.opensearchservice.IDomain
IDomain.Jsii$Default, IDomain.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDomain(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedDomain(software.amazon.jsii.JsiiObjectRef objRef) Domain(software.constructs.Construct scope, String id, DomainProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAccessPolicies(PolicyStatement... accessPolicyStatements) Add policy statements to the domain access policy.static IDomainfromDomainAttributes(software.constructs.Construct scope, String id, DomainAttributes attrs) Creates a domain construct that represents an external domain.static IDomainfromDomainEndpoint(software.constructs.Construct scope, String id, String domainEndpoint) Creates a domain construct that represents an external domain via domain endpoint.Log group that application logs are logged to.Log group that audit logs are logged to.Manages network connections to the domain.Arn of the Amazon OpenSearch Service domain.Endpoint of the Amazon OpenSearch Service domain.Identifier of the Amazon OpenSearch Service domain.Domain name of the Amazon OpenSearch Service domain.Master user password if fine grained access control is configured.Log group that slow indices are logged to.Log group that slow searches are logged to.grantIndexRead(String index, IGrantable identity) Grant read permissions for an index in this domain to an IAM principal (Role/Group/User).grantIndexReadWrite(String index, IGrantable identity) Grant read/write permissions for an index in this domain to an IAM principal (Role/Group/User).grantIndexWrite(String index, IGrantable identity) Grant write permissions for an index in this domain to an IAM principal (Role/Group/User).grantPathRead(String path, IGrantable identity) Grant read permissions for a specific path in this domain to an IAM principal (Role/Group/User).grantPathReadWrite(String path, IGrantable identity) Grant read/write permissions for a specific path in this domain to an IAM principal (Role/Group/User).grantPathWrite(String path, IGrantable identity) Grant write permissions for a specific path in this domain to an IAM principal (Role/Group/User).grantRead(IGrantable identity) Grant read permissions for this domain and its contents to an IAM principal (Role/Group/User).grantReadWrite(IGrantable identity) Grant read/write permissions for this domain and its contents to an IAM principal (Role/Group/User).grantWrite(IGrantable identity) Grant write permissions for this domain and its contents to an IAM principal (Role/Group/User).Return the given named metric for this domain.metric(String metricName, MetricOptions props) Return the given named metric for this domain.Metric for automated snapshot failures.Metric for automated snapshot failures.Metric for the cluster blocking index writes.Metric for the cluster blocking index writes.Metric for the time the cluster status is red.Metric for the time the cluster status is red.Metric for the time the cluster status is yellow.Metric for the time the cluster status is yellow.Metric for CPU utilization.Metric for CPU utilization.Metric for the storage space of nodes in the cluster.Metric for the storage space of nodes in the cluster.Metric for indexing latency.Metric for indexing latency.Metric for JVM memory pressure.Metric for JVM memory pressure.Metric for KMS key errors.metricKMSKeyError(MetricOptions props) Metric for KMS key errors.Metric for KMS key being inaccessible.Metric for KMS key being inaccessible.Metric for master CPU utilization.Metric for master CPU utilization.Metric for master JVM memory pressure.Metric for master JVM memory pressure.Metric for the number of nodes.metricNodes(MetricOptions props) Metric for the number of nodes.Metric for number of searchable documents.Metric for number of searchable documents.Metric for search latency.metricSearchLatency(MetricOptions props) Metric for search latency.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
Domain
protected Domain(software.amazon.jsii.JsiiObjectRef objRef) -
Domain
protected Domain(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Domain
@Stability(Stable) public Domain(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DomainProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromDomainAttributes
@Stability(Stable) @NotNull public static IDomain fromDomainAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DomainAttributes attrs) 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- ADomainAttributesobject. This parameter is required.
-
fromDomainEndpoint
@Stability(Stable) @NotNull public static IDomain fromDomainEndpoint(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String domainEndpoint) 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(Stable) public void addAccessPolicies(@NotNull PolicyStatement... accessPolicyStatements) Add policy statements to the domain access policy.- Parameters:
accessPolicyStatements- This parameter is required.
-
grantIndexRead
@Stability(Stable) @NotNull public Grant grantIndexRead(@NotNull String index, @NotNull IGrantable identity) Grant read permissions for an index in this domain to an IAM principal (Role/Group/User).- Specified by:
grantIndexReadin interfaceIDomain- Parameters:
index- The index to grant permissions for. This parameter is required.identity- The principal. This parameter is required.
-
grantIndexReadWrite
@Stability(Stable) @NotNull public Grant grantIndexReadWrite(@NotNull String index, @NotNull IGrantable identity) Grant read/write permissions for an index in this domain to an IAM principal (Role/Group/User).- Specified by:
grantIndexReadWritein interfaceIDomain- Parameters:
index- The index to grant permissions for. This parameter is required.identity- The principal. This parameter is required.
-
grantIndexWrite
@Stability(Stable) @NotNull public Grant grantIndexWrite(@NotNull String index, @NotNull IGrantable identity) Grant write permissions for an index in this domain to an IAM principal (Role/Group/User).- Specified by:
grantIndexWritein interfaceIDomain- Parameters:
index- The index to grant permissions for. This parameter is required.identity- The principal. This parameter is required.
-
grantPathRead
@Stability(Stable) @NotNull public Grant grantPathRead(@NotNull String path, @NotNull IGrantable identity) Grant read permissions for a specific path in this domain to an IAM principal (Role/Group/User).- Specified by:
grantPathReadin interfaceIDomain- Parameters:
path- The path to grant permissions for. This parameter is required.identity- The principal. This parameter is required.
-
grantPathReadWrite
@Stability(Stable) @NotNull public Grant grantPathReadWrite(@NotNull String path, @NotNull IGrantable identity) Grant read/write permissions for a specific path in this domain to an IAM principal (Role/Group/User).- Specified by:
grantPathReadWritein interfaceIDomain- Parameters:
path- The path to grant permissions for. This parameter is required.identity- The principal. This parameter is required.
-
grantPathWrite
@Stability(Stable) @NotNull public Grant grantPathWrite(@NotNull String path, @NotNull IGrantable identity) Grant write permissions for a specific path in this domain to an IAM principal (Role/Group/User).- Specified by:
grantPathWritein interfaceIDomain- Parameters:
path- The path to grant permissions for. This parameter is required.identity- The principal. This parameter is required.
-
grantRead
Grant read permissions for this domain and its contents to an IAM principal (Role/Group/User). -
grantReadWrite
Grant read/write permissions for this domain and its contents to an IAM principal (Role/Group/User).- Specified by:
grantReadWritein interfaceIDomain- Parameters:
identity- The principal. This parameter is required.
-
grantWrite
Grant write permissions for this domain and its contents to an IAM principal (Role/Group/User).- Specified by:
grantWritein interfaceIDomain- Parameters:
identity- The principal. This parameter is required.
-
metric
@Stability(Stable) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this domain. -
metric
Return the given named metric for this domain. -
metricAutomatedSnapshotFailure
@Stability(Stable) @NotNull public Metric metricAutomatedSnapshotFailure(@Nullable MetricOptions props) Metric for automated snapshot failures.Default: maximum over 5 minutes
- Specified by:
metricAutomatedSnapshotFailurein interfaceIDomain- Parameters:
props-
-
metricAutomatedSnapshotFailure
Metric for automated snapshot failures.Default: maximum over 5 minutes
- Specified by:
metricAutomatedSnapshotFailurein interfaceIDomain
-
metricClusterIndexWritesBlocked
@Stability(Stable) @NotNull public Metric metricClusterIndexWritesBlocked(@Nullable MetricOptions props) Metric for the cluster blocking index writes.Default: maximum over 1 minute
- Specified by:
metricClusterIndexWritesBlockedin interfaceIDomain- Parameters:
props-
-
metricClusterIndexWritesBlocked
Metric for the cluster blocking index writes.Default: maximum over 1 minute
- Specified by:
metricClusterIndexWritesBlockedin interfaceIDomain
-
metricClusterStatusRed
Metric for the time the cluster status is red.Default: maximum over 5 minutes
- Specified by:
metricClusterStatusRedin interfaceIDomain- Parameters:
props-
-
metricClusterStatusRed
Metric for the time the cluster status is red.Default: maximum over 5 minutes
- Specified by:
metricClusterStatusRedin interfaceIDomain
-
metricClusterStatusYellow
Metric for the time the cluster status is yellow.Default: maximum over 5 minutes
- Specified by:
metricClusterStatusYellowin interfaceIDomain- Parameters:
props-
-
metricClusterStatusYellow
Metric for the time the cluster status is yellow.Default: maximum over 5 minutes
- Specified by:
metricClusterStatusYellowin interfaceIDomain
-
metricCPUUtilization
Metric for CPU utilization.Default: maximum over 5 minutes
- Specified by:
metricCPUUtilizationin interfaceIDomain- Parameters:
props-
-
metricCPUUtilization
Metric for CPU utilization.Default: maximum over 5 minutes
- Specified by:
metricCPUUtilizationin interfaceIDomain
-
metricFreeStorageSpace
Metric for the storage space of nodes in the cluster.Default: minimum over 5 minutes
- Specified by:
metricFreeStorageSpacein interfaceIDomain- Parameters:
props-
-
metricFreeStorageSpace
Metric for the storage space of nodes in the cluster.Default: minimum over 5 minutes
- Specified by:
metricFreeStorageSpacein interfaceIDomain
-
metricIndexingLatency
Metric for indexing latency.Default: p99 over 5 minutes
- Specified by:
metricIndexingLatencyin interfaceIDomain- Parameters:
props-
-
metricIndexingLatency
Metric for indexing latency.Default: p99 over 5 minutes
- Specified by:
metricIndexingLatencyin interfaceIDomain
-
metricJVMMemoryPressure
Metric for JVM memory pressure.Default: maximum over 5 minutes
- Specified by:
metricJVMMemoryPressurein interfaceIDomain- Parameters:
props-
-
metricJVMMemoryPressure
Metric for JVM memory pressure.Default: maximum over 5 minutes
- Specified by:
metricJVMMemoryPressurein interfaceIDomain
-
metricKMSKeyError
Metric for KMS key errors.Default: maximum over 5 minutes
- Specified by:
metricKMSKeyErrorin interfaceIDomain- Parameters:
props-
-
metricKMSKeyError
Metric for KMS key errors.Default: maximum over 5 minutes
- Specified by:
metricKMSKeyErrorin interfaceIDomain
-
metricKMSKeyInaccessible
Metric for KMS key being inaccessible.Default: maximum over 5 minutes
- Specified by:
metricKMSKeyInaccessiblein interfaceIDomain- Parameters:
props-
-
metricKMSKeyInaccessible
Metric for KMS key being inaccessible.Default: maximum over 5 minutes
- Specified by:
metricKMSKeyInaccessiblein interfaceIDomain
-
metricMasterCPUUtilization
Metric for master CPU utilization.Default: maximum over 5 minutes
- Specified by:
metricMasterCPUUtilizationin interfaceIDomain- Parameters:
props-
-
metricMasterCPUUtilization
Metric for master CPU utilization.Default: maximum over 5 minutes
- Specified by:
metricMasterCPUUtilizationin interfaceIDomain
-
metricMasterJVMMemoryPressure
@Stability(Stable) @NotNull public Metric metricMasterJVMMemoryPressure(@Nullable MetricOptions props) Metric for master JVM memory pressure.Default: maximum over 5 minutes
- Specified by:
metricMasterJVMMemoryPressurein interfaceIDomain- Parameters:
props-
-
metricMasterJVMMemoryPressure
Metric for master JVM memory pressure.Default: maximum over 5 minutes
- Specified by:
metricMasterJVMMemoryPressurein interfaceIDomain
-
metricNodes
Metric for the number of nodes.Default: minimum over 1 hour
- Specified by:
metricNodesin interfaceIDomain- Parameters:
props-
-
metricNodes
Metric for the number of nodes.Default: minimum over 1 hour
- Specified by:
metricNodesin interfaceIDomain
-
metricSearchableDocuments
Metric for number of searchable documents.Default: maximum over 5 minutes
- Specified by:
metricSearchableDocumentsin interfaceIDomain- Parameters:
props-
-
metricSearchableDocuments
Metric for number of searchable documents.Default: maximum over 5 minutes
- Specified by:
metricSearchableDocumentsin interfaceIDomain
-
metricSearchLatency
Metric for search latency.Default: p99 over 5 minutes
- Specified by:
metricSearchLatencyin interfaceIDomain- Parameters:
props-
-
metricSearchLatency
Metric for search latency.Default: p99 over 5 minutes
- Specified by:
metricSearchLatencyin interfaceIDomain
-
getConnections
Manages network connections to the domain.This will throw an error in case the domain is not placed inside a VPC.
- Specified by:
getConnectionsin interfaceIConnectable
-
getDomainArn
Arn of the Amazon OpenSearch Service domain.- Specified by:
getDomainArnin interfaceIDomain
-
getDomainEndpoint
Endpoint of the Amazon OpenSearch Service domain.- Specified by:
getDomainEndpointin interfaceIDomain
-
getDomainId
Identifier of the Amazon OpenSearch Service domain.- Specified by:
getDomainIdin interfaceIDomain
-
getDomainName
Domain name of the Amazon OpenSearch Service domain.- Specified by:
getDomainNamein interfaceIDomain
-
getAppLogGroup
Log group that application logs are logged to. -
getAuditLogGroup
Log group that audit logs are logged to. -
getMasterUserPassword
Master user password if fine grained access control is configured. -
getSlowIndexLogGroup
Log group that slow indices are logged to. -
getSlowSearchLogGroup
Log group that slow searches are logged to.
-