aws-cdk-lib.aws_elasticsearch.CfnDomain.ZoneAwarenessConfigProperty

interface ZoneAwarenessConfigProperty

LanguageType name
.NETAmazon.CDK.AWS.Elasticsearch.CfnDomain.ZoneAwarenessConfigProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awselasticsearch#CfnDomain_ZoneAwarenessConfigProperty
Javasoftware.amazon.awscdk.services.elasticsearch.CfnDomain.ZoneAwarenessConfigProperty
Pythonaws_cdk.aws_elasticsearch.CfnDomain.ZoneAwarenessConfigProperty
TypeScript aws-cdk-lib » aws_elasticsearch » CfnDomain » ZoneAwarenessConfigProperty

Specifies zone awareness configuration options. Only use if ZoneAwarenessEnabled is true .

The AWS::Elasticsearch::Domain resource 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 zoneAwarenessConfigProperty: elasticsearch.CfnDomain.ZoneAwarenessConfigProperty = {
  availabilityZoneCount: 123,
};

Properties

NameTypeDescription
availabilityZoneCount?numberIf you enabled multiple Availability Zones (AZs), the number of AZs that you want the domain to use.

availabilityZoneCount?

Type: number (optional)

If you enabled multiple Availability Zones (AZs), the number of AZs that you want the domain to use.

Valid values are 2 and 3 . Default is 2.