package awselasticsearch // Specifies zone awareness configuration options. // // Example: // prodDomain := es.NewDomain(this, jsii.String("Domain"), &DomainProps{ // Version: es.ElasticsearchVersion_V7_1(), // Capacity: &CapacityConfig{ // MasterNodes: jsii.Number(5), // DataNodes: jsii.Number(20), // }, // Ebs: &EbsOptions{ // VolumeSize: jsii.Number(20), // }, // ZoneAwareness: &ZoneAwarenessConfig{ // AvailabilityZoneCount: jsii.Number(3), // }, // Logging: &LoggingOptions{ // SlowSearchLogEnabled: jsii.Boolean(true), // AppLogEnabled: jsii.Boolean(true), // SlowIndexLogEnabled: jsii.Boolean(true), // }, // }) // // Deprecated: use opensearchservice module instead. type ZoneAwarenessConfig struct { // If you enabled multiple Availability Zones (AZs), the number of AZs that you want the domain to use. // // Valid values are 2 and 3. // Deprecated: use opensearchservice module instead. AvailabilityZoneCount *float64 `field:"optional" json:"availabilityZoneCount" yaml:"availabilityZoneCount"` // Indicates whether to enable zone awareness for the Amazon ES domain. // // When you enable zone awareness, Amazon ES 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] // (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-managedomains-multiaz) // in the Amazon Elasticsearch Service Developer Guide. // Deprecated: use opensearchservice module instead. Enabled *bool `field:"optional" json:"enabled" yaml:"enabled"` }