ElasticsearchClusterConfigProperty Struct
The cluster configuration for the OpenSearch Service domain.
You can specify options such as the instance type and the number of instances. For more information, see Creating and managing Amazon OpenSearch Service domains in the Amazon OpenSearch Service Developer Guide .
The
AWS::Elasticsearch::Domainresource is being replaced by the AWS::OpenSearchService::Domain resource. While the legacy Elasticsearch resource and options are still supported, we recommend modifying your existing Cloudformation templates to use the new OpenSearch Service resource, which supports both OpenSearch and Elasticsearch. For more information about the service rename, see New resource types in the Amazon OpenSearch Service Developer Guide .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticsearch as elasticsearch } from 'aws-cdk-lib';
const elasticsearchClusterConfigProperty: elasticsearch.CfnDomain.ElasticsearchClusterConfigProperty = {
coldStorageOptions: {
enabled: false,
},
dedicatedMasterCount: 123,
dedicatedMasterEnabled: false,
dedicatedMasterType: 'dedicatedMasterType',
instanceCount: 123,
instanceType: 'instanceType',
warmCount: 123,
warmEnabled: false,
warmType: 'warmType',
zoneAwarenessConfig: {
availabilityZoneCount: 123,
},
zoneAwarenessEnabled: false,
};
Properties
coldStorageOptionsoptionalIResolvable | CfnDomain.ColdStorageOptionsPropertycold_storage_optionsoptionaltyping.Union[IResolvable, ColdStorageOptionsProperty]coldStorageOptionsoptionalIResolvableColdStorageOptionsoptionalIResolvableColdStorageOptionsoptionalinterface{}#dedicatedMasterCountoptionalnumberdedicated_master_countoptionalint | floatdedicatedMasterCountoptionalNumberDedicatedMasterCountoptionaldoubleDedicatedMasterCountoptional*float64#If you specify this property, you must specify true for the DedicatedMasterEnabled property.
dedicatedMasterEnabledoptionalboolean | IResolvablededicated_master_enabledoptionaltyping.Union[bool, IResolvable]dedicatedMasterEnabledoptionalBooleanDedicatedMasterEnabledoptionalboolDedicatedMasterEnabledoptionalinterface{}#notes
A dedicated master node is a cluster node that performs cluster management tasks, but doesn't hold data or respond to data upload requests. Dedicated master nodes offload cluster management tasks to increase the stability of your search clusters. See Dedicated master nodes in Amazon OpenSearch Service .
dedicatedMasterTypeoptionalstringdedicated_master_typeoptionalstrdedicatedMasterTypeoptionalStringDedicatedMasterTypeoptionalstringDedicatedMasterTypeoptional*string#instanceCountoptionalnumberinstance_countoptionalint | floatinstanceCountoptionalNumberInstanceCountoptionaldoubleInstanceCountoptional*float64#instanceTypeoptionalstringinstance_typeoptionalstrinstanceTypeoptionalStringInstanceTypeoptionalstringInstanceTypeoptional*string#warmCountoptionalnumberwarm_countoptionalint | floatwarmCountoptionalNumberWarmCountoptionaldoubleWarmCountoptional*float64#Required if you enable warm storage.
warmEnabledoptionalboolean | IResolvablewarm_enabledoptionaltyping.Union[bool, IResolvable]warmEnabledoptionalBooleanWarmEnabledoptionalboolWarmEnabledoptionalinterface{}#warmTypeoptionalstringwarm_typeoptionalstrwarmTypeoptionalStringWarmTypeoptionalstringWarmTypeoptional*string#Required if you enable warm storage.
zoneAwarenessConfigoptionalIResolvable | CfnDomain.ZoneAwarenessConfigPropertyzone_awareness_configoptionaltyping.Union[IResolvable, ZoneAwarenessConfigProperty]zoneAwarenessConfigoptionalIResolvableZoneAwarenessConfigoptionalIResolvableZoneAwarenessConfigoptionalinterface{}#Only use if ZoneAwarenessEnabled is true .
zoneAwarenessEnabledoptionalboolean | IResolvablezone_awareness_enabledoptionaltyping.Union[bool, IResolvable]zoneAwarenessEnabledoptionalBooleanZoneAwarenessEnabledoptionalboolZoneAwarenessEnabledoptionalinterface{}#notes
When you enable zone awareness, OpenSearch Service allocates the nodes and replica index shards that belong to a cluster across two Availability Zones (AZs) in the same region to prevent data loss and minimize downtime in the event of node or data center failure. Don't enable zone awareness if your cluster has no replica index shards or is a single-node cluster. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service .