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

com.pulumi.aws.docdb.kotlin.ClusterInstanceArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.docdb.kotlin

import com.pulumi.aws.docdb.ClusterInstanceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Provides an DocumentDB Cluster Resource Instance. A Cluster Instance Resource defines
 * attributes that are specific to a single instance in a [DocumentDB Cluster][1].
 * You do not designate a primary and subsequent replicas. Instead, you simply add DocumentDB
 * Instances and DocumentDB manages the replication. You can use the [count][3]
 * meta-parameter to make multiple instances and join them all to the same DocumentDB
 * Cluster, or you may specify different Cluster Instance resources with various
 * `instance_class` sizes.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const _default = new aws.docdb.Cluster("default", {
 *     clusterIdentifier: "docdb-cluster-demo",
 *     availabilityZones: [
 *         "us-west-2a",
 *         "us-west-2b",
 *         "us-west-2c",
 *     ],
 *     masterUsername: "foo",
 *     masterPassword: "barbut8chars",
 * });
 * const clusterInstances: aws.docdb.ClusterInstance[] = [];
 * for (const range = {value: 0}; range.value < 2; range.value++) {
 *     clusterInstances.push(new aws.docdb.ClusterInstance(`cluster_instances-${range.value}`, {
 *         identifier: `docdb-cluster-demo-${range.value}`,
 *         clusterIdentifier: _default.id,
 *         instanceClass: "db.r5.large",
 *     }));
 * }
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * default = aws.docdb.Cluster("default",
 *     cluster_identifier="docdb-cluster-demo",
 *     availability_zones=[
 *         "us-west-2a",
 *         "us-west-2b",
 *         "us-west-2c",
 *     ],
 *     master_username="foo",
 *     master_password="barbut8chars")
 * cluster_instances = []
 * for range in [{"value": i} for i in range(0, 2)]:
 *     cluster_instances.append(aws.docdb.ClusterInstance(f"cluster_instances-{range['value']}",
 *         identifier=f"docdb-cluster-demo-{range['value']}",
 *         cluster_identifier=default.id,
 *         instance_class="db.r5.large"))
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var @default = new Aws.DocDB.Cluster("default", new()
 *     {
 *         ClusterIdentifier = "docdb-cluster-demo",
 *         AvailabilityZones = new[]
 *         {
 *             "us-west-2a",
 *             "us-west-2b",
 *             "us-west-2c",
 *         },
 *         MasterUsername = "foo",
 *         MasterPassword = "barbut8chars",
 *     });
 *     var clusterInstances = new List();
 *     for (var rangeIndex = 0; rangeIndex < 2; rangeIndex++)
 *     {
 *         var range = new { Value = rangeIndex };
 *         clusterInstances.Add(new Aws.DocDB.ClusterInstance($"cluster_instances-{range.Value}", new()
 *         {
 *             Identifier = $"docdb-cluster-demo-{range.Value}",
 *             ClusterIdentifier = @default.Id,
 *             InstanceClass = "db.r5.large",
 *         }));
 *     }
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"fmt"
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/docdb"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := docdb.NewCluster(ctx, "default", &docdb.ClusterArgs{
 * 			ClusterIdentifier: pulumi.String("docdb-cluster-demo"),
 * 			AvailabilityZones: pulumi.StringArray{
 * 				pulumi.String("us-west-2a"),
 * 				pulumi.String("us-west-2b"),
 * 				pulumi.String("us-west-2c"),
 * 			},
 * 			MasterUsername: pulumi.String("foo"),
 * 			MasterPassword: pulumi.String("barbut8chars"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		var clusterInstances []*docdb.ClusterInstance
 * 		for index := 0; index < 2; index++ {
 * 			key0 := index
 * 			val0 := index
 * 			__res, err := docdb.NewClusterInstance(ctx, fmt.Sprintf("cluster_instances-%v", key0), &docdb.ClusterInstanceArgs{
 * 				Identifier:        pulumi.Sprintf("docdb-cluster-demo-%v", val0),
 * 				ClusterIdentifier: _default.ID(),
 * 				InstanceClass:     pulumi.String("db.r5.large"),
 * 			})
 * 			if err != nil {
 * 				return err
 * 			}
 * 			clusterInstances = append(clusterInstances, __res)
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.docdb.Cluster;
 * import com.pulumi.aws.docdb.ClusterArgs;
 * import com.pulumi.aws.docdb.ClusterInstance;
 * import com.pulumi.aws.docdb.ClusterInstanceArgs;
 * import com.pulumi.codegen.internal.KeyedValue;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var default_ = new Cluster("default", ClusterArgs.builder()
 *             .clusterIdentifier("docdb-cluster-demo")
 *             .availabilityZones(
 *                 "us-west-2a",
 *                 "us-west-2b",
 *                 "us-west-2c")
 *             .masterUsername("foo")
 *             .masterPassword("barbut8chars")
 *             .build());
 *         for (var i = 0; i < 2; i++) {
 *             new ClusterInstance("clusterInstances-" + i, ClusterInstanceArgs.builder()
 *                 .identifier(String.format("docdb-cluster-demo-%s", range.value()))
 *                 .clusterIdentifier(default_.id())
 *                 .instanceClass("db.r5.large")
 *                 .build());
 * }
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   clusterInstances:
 *     type: aws:docdb:ClusterInstance
 *     name: cluster_instances
 *     properties:
 *       identifier: docdb-cluster-demo-${range.value}
 *       clusterIdentifier: ${default.id}
 *       instanceClass: db.r5.large
 *     options: {}
 *   default:
 *     type: aws:docdb:Cluster
 *     properties:
 *       clusterIdentifier: docdb-cluster-demo
 *       availabilityZones:
 *         - us-west-2a
 *         - us-west-2b
 *         - us-west-2c
 *       masterUsername: foo
 *       masterPassword: barbut8chars
 * ```
 * 
 * ## Import
 * Using `pulumi import`, import DocumentDB Cluster Instances using the `identifier`. For example:
 * ```sh
 * $ pulumi import aws:docdb/clusterInstance:ClusterInstance prod_instance_1 aurora-cluster-instance-1
 * ```
 * @property applyImmediately Specifies whether any database modifications
 * are applied immediately, or during the next maintenance window. Default is`false`.
 * @property autoMinorVersionUpgrade This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see [docs](https://docs.aws.amazon.com/documentdb/latest/developerguide/API_DBInstance.html)). Default `true`.
 * @property availabilityZone The EC2 Availability Zone that the DB instance is created in. See [docs](https://docs.aws.amazon.com/documentdb/latest/developerguide/API_CreateDBInstance.html) about the details.
 * @property caCertIdentifier The identifier of the certificate authority (CA) certificate for the DB instance.
 * @property clusterIdentifier The identifier of the `aws.docdb.Cluster` in which to launch this instance.
 * @property copyTagsToSnapshot Copy all DB instance `tags` to snapshots. Default is `false`.
 * @property enablePerformanceInsights A value that indicates whether to enable Performance Insights for the DB Instance. Default `false`. See [docs] (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details.
 * @property engine The name of the database engine to be used for the DocumentDB instance. Defaults to `docdb`. Valid Values: `docdb`.
 * @property identifier The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
 * @property identifierPrefix Creates a unique identifier beginning with the specified prefix. Conflicts with `identifier`.
 * @property instanceClass The instance class to use. For details on CPU and memory, see [Scaling for DocumentDB Instances](https://docs.aws.amazon.com/documentdb/latest/developerguide/db-cluster-manage-performance.html#db-cluster-manage-scaling-instance).
 * DocumentDB currently supports the below instance classes.
 * Please see [AWS Documentation](https://docs.aws.amazon.com/documentdb/latest/developerguide/db-instance-classes.html#db-instance-class-specs) for complete details.
 * - db.r6g.large
 * - db.r6g.xlarge
 * - db.r6g.2xlarge
 * - db.r6g.4xlarge
 * - db.r6g.8xlarge
 * - db.r6g.12xlarge
 * - db.r6g.16xlarge
 * - db.r5.large
 * - db.r5.xlarge
 * - db.r5.2xlarge
 * - db.r5.4xlarge
 * - db.r5.12xlarge
 * - db.r5.24xlarge
 * - db.r4.large
 * - db.r4.xlarge
 * - db.r4.2xlarge
 * - db.r4.4xlarge
 * - db.r4.8xlarge
 * - db.r4.16xlarge
 * - db.t4g.medium
 * - db.t3.medium
 * @property performanceInsightsKmsKeyId The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. If you do not specify a value for PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key.
 * @property preferredMaintenanceWindow The window to perform maintenance in.
 * Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
 * @property promotionTier Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer.
 * @property tags A map of tags to assign to the instance. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
 */
public data class ClusterInstanceArgs(
    public val applyImmediately: Output? = null,
    public val autoMinorVersionUpgrade: Output? = null,
    public val availabilityZone: Output? = null,
    public val caCertIdentifier: Output? = null,
    public val clusterIdentifier: Output? = null,
    public val copyTagsToSnapshot: Output? = null,
    public val enablePerformanceInsights: Output? = null,
    public val engine: Output? = null,
    public val identifier: Output? = null,
    public val identifierPrefix: Output? = null,
    public val instanceClass: Output? = null,
    public val performanceInsightsKmsKeyId: Output? = null,
    public val preferredMaintenanceWindow: Output? = null,
    public val promotionTier: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.docdb.ClusterInstanceArgs =
        com.pulumi.aws.docdb.ClusterInstanceArgs.builder()
            .applyImmediately(applyImmediately?.applyValue({ args0 -> args0 }))
            .autoMinorVersionUpgrade(autoMinorVersionUpgrade?.applyValue({ args0 -> args0 }))
            .availabilityZone(availabilityZone?.applyValue({ args0 -> args0 }))
            .caCertIdentifier(caCertIdentifier?.applyValue({ args0 -> args0 }))
            .clusterIdentifier(clusterIdentifier?.applyValue({ args0 -> args0 }))
            .copyTagsToSnapshot(copyTagsToSnapshot?.applyValue({ args0 -> args0 }))
            .enablePerformanceInsights(enablePerformanceInsights?.applyValue({ args0 -> args0 }))
            .engine(engine?.applyValue({ args0 -> args0 }))
            .identifier(identifier?.applyValue({ args0 -> args0 }))
            .identifierPrefix(identifierPrefix?.applyValue({ args0 -> args0 }))
            .instanceClass(instanceClass?.applyValue({ args0 -> args0 }))
            .performanceInsightsKmsKeyId(performanceInsightsKmsKeyId?.applyValue({ args0 -> args0 }))
            .preferredMaintenanceWindow(preferredMaintenanceWindow?.applyValue({ args0 -> args0 }))
            .promotionTier(promotionTier?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ClusterInstanceArgs].
 */
@PulumiTagMarker
public class ClusterInstanceArgsBuilder internal constructor() {
    private var applyImmediately: Output? = null

    private var autoMinorVersionUpgrade: Output? = null

    private var availabilityZone: Output? = null

    private var caCertIdentifier: Output? = null

    private var clusterIdentifier: Output? = null

    private var copyTagsToSnapshot: Output? = null

    private var enablePerformanceInsights: Output? = null

    private var engine: Output? = null

    private var identifier: Output? = null

    private var identifierPrefix: Output? = null

    private var instanceClass: Output? = null

    private var performanceInsightsKmsKeyId: Output? = null

    private var preferredMaintenanceWindow: Output? = null

    private var promotionTier: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Specifies whether any database modifications
     * are applied immediately, or during the next maintenance window. Default is`false`.
     */
    @JvmName("cjyhcnospcnbsvba")
    public suspend fun applyImmediately(`value`: Output) {
        this.applyImmediately = value
    }

    /**
     * @param value This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see [docs](https://docs.aws.amazon.com/documentdb/latest/developerguide/API_DBInstance.html)). Default `true`.
     */
    @JvmName("vjdtqylqeoenpylk")
    public suspend fun autoMinorVersionUpgrade(`value`: Output) {
        this.autoMinorVersionUpgrade = value
    }

    /**
     * @param value The EC2 Availability Zone that the DB instance is created in. See [docs](https://docs.aws.amazon.com/documentdb/latest/developerguide/API_CreateDBInstance.html) about the details.
     */
    @JvmName("tvkesyymetrwoppf")
    public suspend fun availabilityZone(`value`: Output) {
        this.availabilityZone = value
    }

    /**
     * @param value The identifier of the certificate authority (CA) certificate for the DB instance.
     */
    @JvmName("wgbhfackykhrrvep")
    public suspend fun caCertIdentifier(`value`: Output) {
        this.caCertIdentifier = value
    }

    /**
     * @param value The identifier of the `aws.docdb.Cluster` in which to launch this instance.
     */
    @JvmName("fqciuxojcldsvvdj")
    public suspend fun clusterIdentifier(`value`: Output) {
        this.clusterIdentifier = value
    }

    /**
     * @param value Copy all DB instance `tags` to snapshots. Default is `false`.
     */
    @JvmName("sqelixjvfyxlqfls")
    public suspend fun copyTagsToSnapshot(`value`: Output) {
        this.copyTagsToSnapshot = value
    }

    /**
     * @param value A value that indicates whether to enable Performance Insights for the DB Instance. Default `false`. See [docs] (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details.
     */
    @JvmName("abocgxpoepbfxcxt")
    public suspend fun enablePerformanceInsights(`value`: Output) {
        this.enablePerformanceInsights = value
    }

    /**
     * @param value The name of the database engine to be used for the DocumentDB instance. Defaults to `docdb`. Valid Values: `docdb`.
     */
    @JvmName("tavbykdqquhwfufg")
    public suspend fun engine(`value`: Output) {
        this.engine = value
    }

    /**
     * @param value The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
     */
    @JvmName("ftgdcevttktnaypq")
    public suspend fun identifier(`value`: Output) {
        this.identifier = value
    }

    /**
     * @param value Creates a unique identifier beginning with the specified prefix. Conflicts with `identifier`.
     */
    @JvmName("vimwitjfetaipmvl")
    public suspend fun identifierPrefix(`value`: Output) {
        this.identifierPrefix = value
    }

    /**
     * @param value The instance class to use. For details on CPU and memory, see [Scaling for DocumentDB Instances](https://docs.aws.amazon.com/documentdb/latest/developerguide/db-cluster-manage-performance.html#db-cluster-manage-scaling-instance).
     * DocumentDB currently supports the below instance classes.
     * Please see [AWS Documentation](https://docs.aws.amazon.com/documentdb/latest/developerguide/db-instance-classes.html#db-instance-class-specs) for complete details.
     * - db.r6g.large
     * - db.r6g.xlarge
     * - db.r6g.2xlarge
     * - db.r6g.4xlarge
     * - db.r6g.8xlarge
     * - db.r6g.12xlarge
     * - db.r6g.16xlarge
     * - db.r5.large
     * - db.r5.xlarge
     * - db.r5.2xlarge
     * - db.r5.4xlarge
     * - db.r5.12xlarge
     * - db.r5.24xlarge
     * - db.r4.large
     * - db.r4.xlarge
     * - db.r4.2xlarge
     * - db.r4.4xlarge
     * - db.r4.8xlarge
     * - db.r4.16xlarge
     * - db.t4g.medium
     * - db.t3.medium
     */
    @JvmName("dcmyybfnbvxcesiw")
    public suspend fun instanceClass(`value`: Output) {
        this.instanceClass = value
    }

    /**
     * @param value The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. If you do not specify a value for PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key.
     */
    @JvmName("bwmsytacejsefqax")
    public suspend fun performanceInsightsKmsKeyId(`value`: Output) {
        this.performanceInsightsKmsKeyId = value
    }

    /**
     * @param value The window to perform maintenance in.
     * Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
     */
    @JvmName("ymifnntxaeqpvuyx")
    public suspend fun preferredMaintenanceWindow(`value`: Output) {
        this.preferredMaintenanceWindow = value
    }

    /**
     * @param value Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer.
     */
    @JvmName("pdmoqcafagcfojav")
    public suspend fun promotionTier(`value`: Output) {
        this.promotionTier = value
    }

    /**
     * @param value A map of tags to assign to the instance. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("gcepkmeuxtugmurd")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Specifies whether any database modifications
     * are applied immediately, or during the next maintenance window. Default is`false`.
     */
    @JvmName("fnwebkqivggyldfo")
    public suspend fun applyImmediately(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applyImmediately = mapped
    }

    /**
     * @param value This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set (see [docs](https://docs.aws.amazon.com/documentdb/latest/developerguide/API_DBInstance.html)). Default `true`.
     */
    @JvmName("brgvdcbdxdbcubop")
    public suspend fun autoMinorVersionUpgrade(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoMinorVersionUpgrade = mapped
    }

    /**
     * @param value The EC2 Availability Zone that the DB instance is created in. See [docs](https://docs.aws.amazon.com/documentdb/latest/developerguide/API_CreateDBInstance.html) about the details.
     */
    @JvmName("vxkejefclrpmvvpu")
    public suspend fun availabilityZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.availabilityZone = mapped
    }

    /**
     * @param value The identifier of the certificate authority (CA) certificate for the DB instance.
     */
    @JvmName("rgsvlvblqbpsvyne")
    public suspend fun caCertIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.caCertIdentifier = mapped
    }

    /**
     * @param value The identifier of the `aws.docdb.Cluster` in which to launch this instance.
     */
    @JvmName("ceqwhtemignuakni")
    public suspend fun clusterIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clusterIdentifier = mapped
    }

    /**
     * @param value Copy all DB instance `tags` to snapshots. Default is `false`.
     */
    @JvmName("ccoqhcjsedemhnqw")
    public suspend fun copyTagsToSnapshot(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.copyTagsToSnapshot = mapped
    }

    /**
     * @param value A value that indicates whether to enable Performance Insights for the DB Instance. Default `false`. See [docs] (https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html) about the details.
     */
    @JvmName("exacnjhyxxypeexn")
    public suspend fun enablePerformanceInsights(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enablePerformanceInsights = mapped
    }

    /**
     * @param value The name of the database engine to be used for the DocumentDB instance. Defaults to `docdb`. Valid Values: `docdb`.
     */
    @JvmName("gwtscuggxknfaeeq")
    public suspend fun engine(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.engine = mapped
    }

    /**
     * @param value The identifier for the DocumentDB instance, if omitted, the provider will assign a random, unique identifier.
     */
    @JvmName("unxujbenyjplrmod")
    public suspend fun identifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identifier = mapped
    }

    /**
     * @param value Creates a unique identifier beginning with the specified prefix. Conflicts with `identifier`.
     */
    @JvmName("bxsynhbfmdkfnrbv")
    public suspend fun identifierPrefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identifierPrefix = mapped
    }

    /**
     * @param value The instance class to use. For details on CPU and memory, see [Scaling for DocumentDB Instances](https://docs.aws.amazon.com/documentdb/latest/developerguide/db-cluster-manage-performance.html#db-cluster-manage-scaling-instance).
     * DocumentDB currently supports the below instance classes.
     * Please see [AWS Documentation](https://docs.aws.amazon.com/documentdb/latest/developerguide/db-instance-classes.html#db-instance-class-specs) for complete details.
     * - db.r6g.large
     * - db.r6g.xlarge
     * - db.r6g.2xlarge
     * - db.r6g.4xlarge
     * - db.r6g.8xlarge
     * - db.r6g.12xlarge
     * - db.r6g.16xlarge
     * - db.r5.large
     * - db.r5.xlarge
     * - db.r5.2xlarge
     * - db.r5.4xlarge
     * - db.r5.12xlarge
     * - db.r5.24xlarge
     * - db.r4.large
     * - db.r4.xlarge
     * - db.r4.2xlarge
     * - db.r4.4xlarge
     * - db.r4.8xlarge
     * - db.r4.16xlarge
     * - db.t4g.medium
     * - db.t3.medium
     */
    @JvmName("whedwjepxifwiqjq")
    public suspend fun instanceClass(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceClass = mapped
    }

    /**
     * @param value The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. If you do not specify a value for PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key.
     */
    @JvmName("rkidhreobnotfxxs")
    public suspend fun performanceInsightsKmsKeyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.performanceInsightsKmsKeyId = mapped
    }

    /**
     * @param value The window to perform maintenance in.
     * Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00".
     */
    @JvmName("hdpsvmgiccyodnut")
    public suspend fun preferredMaintenanceWindow(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preferredMaintenanceWindow = mapped
    }

    /**
     * @param value Default 0. Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoter to writer.
     */
    @JvmName("ujlbqpaffmmtvvyp")
    public suspend fun promotionTier(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.promotionTier = mapped
    }

    /**
     * @param value A map of tags to assign to the instance. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("asfrmpctgdayfvml")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A map of tags to assign to the instance. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("wrutisywyukedbtm")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ClusterInstanceArgs = ClusterInstanceArgs(
        applyImmediately = applyImmediately,
        autoMinorVersionUpgrade = autoMinorVersionUpgrade,
        availabilityZone = availabilityZone,
        caCertIdentifier = caCertIdentifier,
        clusterIdentifier = clusterIdentifier,
        copyTagsToSnapshot = copyTagsToSnapshot,
        enablePerformanceInsights = enablePerformanceInsights,
        engine = engine,
        identifier = identifier,
        identifierPrefix = identifierPrefix,
        instanceClass = instanceClass,
        performanceInsightsKmsKeyId = performanceInsightsKmsKeyId,
        preferredMaintenanceWindow = preferredMaintenanceWindow,
        promotionTier = promotionTier,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy