All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.opensearchservice.kotlin.outputs.DomainClusterConfig.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.opensearchservice.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property coldStorageOptions Container for cold storage configuration options.
 * @property dedicatedMasterCount The number of instances to use for the master node. If you specify this property, you must specify `true` for the `DedicatedMasterEnabled` property.
 * @property dedicatedMasterEnabled Indicates whether to use a dedicated master node for the OpenSearch Service domain. 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-dedicatedmasternodes.html) .
 * @property dedicatedMasterType The hardware configuration of the computer that hosts the dedicated master node, such as `m3.medium.search` . If you specify this property, you must specify `true` for the `DedicatedMasterEnabled` property. For valid values, see [Supported instance types in Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/supported-instance-types.html) .
 * @property instanceCount The number of data nodes (instances) to use in the OpenSearch Service domain.
 * @property instanceType The instance type for your data nodes, such as `m3.medium.search` . For valid values, see [Supported instance types in Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/supported-instance-types.html) .
 * @property multiAzWithStandbyEnabled Indicates whether Multi-AZ with Standby deployment option is enabled. For more information, see [Multi-AZ with Standby](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html#managedomains-za-standby) .
 * @property warmCount The number of warm nodes in the cluster.
 * @property warmEnabled Whether to enable UltraWarm storage for the cluster. See [UltraWarm storage for Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/ultrawarm.html) .
 * @property warmType The instance type for the cluster's warm nodes.
 * @property zoneAwarenessConfig Specifies zone awareness configuration options. Only use if `ZoneAwarenessEnabled` is `true` .
 * @property zoneAwarenessEnabled Indicates whether to enable zone awareness for the OpenSearch Service domain. 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html) .
 */
public data class DomainClusterConfig(
    public val coldStorageOptions: DomainColdStorageOptions? = null,
    public val dedicatedMasterCount: Int? = null,
    public val dedicatedMasterEnabled: Boolean? = null,
    public val dedicatedMasterType: String? = null,
    public val instanceCount: Int? = null,
    public val instanceType: String? = null,
    public val multiAzWithStandbyEnabled: Boolean? = null,
    public val warmCount: Int? = null,
    public val warmEnabled: Boolean? = null,
    public val warmType: String? = null,
    public val zoneAwarenessConfig: DomainZoneAwarenessConfig? = null,
    public val zoneAwarenessEnabled: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.opensearchservice.outputs.DomainClusterConfig): DomainClusterConfig = DomainClusterConfig(
            coldStorageOptions = javaType.coldStorageOptions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.opensearchservice.kotlin.outputs.DomainColdStorageOptions.Companion.toKotlin(args0)
                })
            }).orElse(null),
            dedicatedMasterCount = javaType.dedicatedMasterCount().map({ args0 -> args0 }).orElse(null),
            dedicatedMasterEnabled = javaType.dedicatedMasterEnabled().map({ args0 -> args0 }).orElse(null),
            dedicatedMasterType = javaType.dedicatedMasterType().map({ args0 -> args0 }).orElse(null),
            instanceCount = javaType.instanceCount().map({ args0 -> args0 }).orElse(null),
            instanceType = javaType.instanceType().map({ args0 -> args0 }).orElse(null),
            multiAzWithStandbyEnabled = javaType.multiAzWithStandbyEnabled().map({ args0 ->
                args0
            }).orElse(null),
            warmCount = javaType.warmCount().map({ args0 -> args0 }).orElse(null),
            warmEnabled = javaType.warmEnabled().map({ args0 -> args0 }).orElse(null),
            warmType = javaType.warmType().map({ args0 -> args0 }).orElse(null),
            zoneAwarenessConfig = javaType.zoneAwarenessConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.opensearchservice.kotlin.outputs.DomainZoneAwarenessConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            zoneAwarenessEnabled = javaType.zoneAwarenessEnabled().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy