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

com.pulumi.awsnative.timestream.kotlin.InfluxDbInstanceArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.timestream.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.timestream.InfluxDbInstanceArgs.builder
import com.pulumi.awsnative.timestream.kotlin.enums.InfluxDbInstanceDbInstanceType
import com.pulumi.awsnative.timestream.kotlin.enums.InfluxDbInstanceDbStorageType
import com.pulumi.awsnative.timestream.kotlin.enums.InfluxDbInstanceDeploymentType
import com.pulumi.awsnative.timestream.kotlin.inputs.LogDeliveryConfigurationPropertiesArgs
import com.pulumi.awsnative.timestream.kotlin.inputs.LogDeliveryConfigurationPropertiesArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The AWS::Timestream::InfluxDBInstance resource creates an InfluxDB instance.
 * @property allocatedStorage The allocated storage for the InfluxDB instance.
 * @property bucket The bucket for the InfluxDB instance.
 * @property dbInstanceType The compute instance of the InfluxDB instance.
 * @property dbParameterGroupIdentifier The name of an existing InfluxDB parameter group.
 * @property dbStorageType The storage type of the InfluxDB instance.
 * @property deploymentType Deployment type of the InfluxDB Instance.
 * @property logDeliveryConfiguration Configuration for sending logs to customer account from the InfluxDB instance.
 * @property name The unique name that is associated with the InfluxDB instance.
 * @property organization The organization for the InfluxDB instance.
 * @property password The password for the InfluxDB instance.
 * @property publiclyAccessible Attach a public IP to the customer ENI.
 * @property tags An arbitrary set of tags (key-value pairs) for this DB instance.
 * @property username The username for the InfluxDB instance.
 * @property vpcSecurityGroupIds A list of Amazon EC2 VPC security groups to associate with this InfluxDB instance.
 * @property vpcSubnetIds A list of EC2 subnet IDs for this InfluxDB instance.
 */
public data class InfluxDbInstanceArgs(
    public val allocatedStorage: Output? = null,
    public val bucket: Output? = null,
    public val dbInstanceType: Output? = null,
    public val dbParameterGroupIdentifier: Output? = null,
    public val dbStorageType: Output? = null,
    public val deploymentType: Output? = null,
    public val logDeliveryConfiguration: Output? = null,
    public val name: Output? = null,
    public val organization: Output? = null,
    public val password: Output? = null,
    public val publiclyAccessible: Output? = null,
    public val tags: Output>? = null,
    public val username: Output? = null,
    public val vpcSecurityGroupIds: Output>? = null,
    public val vpcSubnetIds: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.timestream.InfluxDbInstanceArgs =
        com.pulumi.awsnative.timestream.InfluxDbInstanceArgs.builder()
            .allocatedStorage(allocatedStorage?.applyValue({ args0 -> args0 }))
            .bucket(bucket?.applyValue({ args0 -> args0 }))
            .dbInstanceType(dbInstanceType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .dbParameterGroupIdentifier(dbParameterGroupIdentifier?.applyValue({ args0 -> args0 }))
            .dbStorageType(dbStorageType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .deploymentType(deploymentType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .logDeliveryConfiguration(
                logDeliveryConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .organization(organization?.applyValue({ args0 -> args0 }))
            .password(password?.applyValue({ args0 -> args0 }))
            .publiclyAccessible(publiclyAccessible?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .username(username?.applyValue({ args0 -> args0 }))
            .vpcSecurityGroupIds(vpcSecurityGroupIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .vpcSubnetIds(vpcSubnetIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [InfluxDbInstanceArgs].
 */
@PulumiTagMarker
public class InfluxDbInstanceArgsBuilder internal constructor() {
    private var allocatedStorage: Output? = null

    private var bucket: Output? = null

    private var dbInstanceType: Output? = null

    private var dbParameterGroupIdentifier: Output? = null

    private var dbStorageType: Output? = null

    private var deploymentType: Output? = null

    private var logDeliveryConfiguration: Output? = null

    private var name: Output? = null

    private var organization: Output? = null

    private var password: Output? = null

    private var publiclyAccessible: Output? = null

    private var tags: Output>? = null

    private var username: Output? = null

    private var vpcSecurityGroupIds: Output>? = null

    private var vpcSubnetIds: Output>? = null

    /**
     * @param value The allocated storage for the InfluxDB instance.
     */
    @JvmName("bxgwuhysufppklwi")
    public suspend fun allocatedStorage(`value`: Output) {
        this.allocatedStorage = value
    }

    /**
     * @param value The bucket for the InfluxDB instance.
     */
    @JvmName("ttcixhmotriqqchu")
    public suspend fun bucket(`value`: Output) {
        this.bucket = value
    }

    /**
     * @param value The compute instance of the InfluxDB instance.
     */
    @JvmName("exnigspjgetlshua")
    public suspend fun dbInstanceType(`value`: Output) {
        this.dbInstanceType = value
    }

    /**
     * @param value The name of an existing InfluxDB parameter group.
     */
    @JvmName("bcqcrfehjhralxpa")
    public suspend fun dbParameterGroupIdentifier(`value`: Output) {
        this.dbParameterGroupIdentifier = value
    }

    /**
     * @param value The storage type of the InfluxDB instance.
     */
    @JvmName("kgeanjqwrilorfvg")
    public suspend fun dbStorageType(`value`: Output) {
        this.dbStorageType = value
    }

    /**
     * @param value Deployment type of the InfluxDB Instance.
     */
    @JvmName("xnhqttntybfaxloj")
    public suspend fun deploymentType(`value`: Output) {
        this.deploymentType = value
    }

    /**
     * @param value Configuration for sending logs to customer account from the InfluxDB instance.
     */
    @JvmName("xqbsoeduuqqiwdkl")
    public suspend fun logDeliveryConfiguration(`value`: Output) {
        this.logDeliveryConfiguration = value
    }

    /**
     * @param value The unique name that is associated with the InfluxDB instance.
     */
    @JvmName("xjhyoobntdltahkx")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The organization for the InfluxDB instance.
     */
    @JvmName("rjoubiiwsioxhcgl")
    public suspend fun organization(`value`: Output) {
        this.organization = value
    }

    /**
     * @param value The password for the InfluxDB instance.
     */
    @JvmName("kvjrvakgkthbhlvy")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value Attach a public IP to the customer ENI.
     */
    @JvmName("akxygtbnteuruqim")
    public suspend fun publiclyAccessible(`value`: Output) {
        this.publiclyAccessible = value
    }

    /**
     * @param value An arbitrary set of tags (key-value pairs) for this DB instance.
     */
    @JvmName("gujkqgjvnxnxjpgl")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("auumiipduwfokkoj")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values An arbitrary set of tags (key-value pairs) for this DB instance.
     */
    @JvmName("autraigfuuarfcsl")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The username for the InfluxDB instance.
     */
    @JvmName("wvtmxryjxbpatmwm")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value A list of Amazon EC2 VPC security groups to associate with this InfluxDB instance.
     */
    @JvmName("ndsnpvaugkokcfwr")
    public suspend fun vpcSecurityGroupIds(`value`: Output>) {
        this.vpcSecurityGroupIds = value
    }

    @JvmName("cilnwkmgshaxofiq")
    public suspend fun vpcSecurityGroupIds(vararg values: Output) {
        this.vpcSecurityGroupIds = Output.all(values.asList())
    }

    /**
     * @param values A list of Amazon EC2 VPC security groups to associate with this InfluxDB instance.
     */
    @JvmName("pdxgusqdsmaglcfe")
    public suspend fun vpcSecurityGroupIds(values: List>) {
        this.vpcSecurityGroupIds = Output.all(values)
    }

    /**
     * @param value A list of EC2 subnet IDs for this InfluxDB instance.
     */
    @JvmName("ekalhasetclobgvk")
    public suspend fun vpcSubnetIds(`value`: Output>) {
        this.vpcSubnetIds = value
    }

    @JvmName("lbaorrecgcpvaebx")
    public suspend fun vpcSubnetIds(vararg values: Output) {
        this.vpcSubnetIds = Output.all(values.asList())
    }

    /**
     * @param values A list of EC2 subnet IDs for this InfluxDB instance.
     */
    @JvmName("iowktwipxusipwfb")
    public suspend fun vpcSubnetIds(values: List>) {
        this.vpcSubnetIds = Output.all(values)
    }

    /**
     * @param value The allocated storage for the InfluxDB instance.
     */
    @JvmName("ekprdrrckrpmoqdq")
    public suspend fun allocatedStorage(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allocatedStorage = mapped
    }

    /**
     * @param value The bucket for the InfluxDB instance.
     */
    @JvmName("spfmulmwlqjebwhb")
    public suspend fun bucket(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bucket = mapped
    }

    /**
     * @param value The compute instance of the InfluxDB instance.
     */
    @JvmName("lmaknkcitwwmjbpu")
    public suspend fun dbInstanceType(`value`: InfluxDbInstanceDbInstanceType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbInstanceType = mapped
    }

    /**
     * @param value The name of an existing InfluxDB parameter group.
     */
    @JvmName("pqedhotngfvbawrg")
    public suspend fun dbParameterGroupIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbParameterGroupIdentifier = mapped
    }

    /**
     * @param value The storage type of the InfluxDB instance.
     */
    @JvmName("kpvdlvpukkgiysrb")
    public suspend fun dbStorageType(`value`: InfluxDbInstanceDbStorageType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbStorageType = mapped
    }

    /**
     * @param value Deployment type of the InfluxDB Instance.
     */
    @JvmName("brrkwdttvbfpqnba")
    public suspend fun deploymentType(`value`: InfluxDbInstanceDeploymentType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deploymentType = mapped
    }

    /**
     * @param value Configuration for sending logs to customer account from the InfluxDB instance.
     */
    @JvmName("wfwcsawcdgbcmsvq")
    public suspend fun logDeliveryConfiguration(`value`: LogDeliveryConfigurationPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logDeliveryConfiguration = mapped
    }

    /**
     * @param argument Configuration for sending logs to customer account from the InfluxDB instance.
     */
    @JvmName("rrnueunmreqpxdxh")
    public suspend fun logDeliveryConfiguration(argument: suspend LogDeliveryConfigurationPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = LogDeliveryConfigurationPropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.logDeliveryConfiguration = mapped
    }

    /**
     * @param value The unique name that is associated with the InfluxDB instance.
     */
    @JvmName("xmmsxagibadjrjbl")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The organization for the InfluxDB instance.
     */
    @JvmName("rbldqinyratjekgx")
    public suspend fun organization(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.organization = mapped
    }

    /**
     * @param value The password for the InfluxDB instance.
     */
    @JvmName("wualqoqblkufygfk")
    public suspend fun password(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value Attach a public IP to the customer ENI.
     */
    @JvmName("brltawfvlgassxrd")
    public suspend fun publiclyAccessible(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publiclyAccessible = mapped
    }

    /**
     * @param value An arbitrary set of tags (key-value pairs) for this DB instance.
     */
    @JvmName("ceycglunynsebaik")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An arbitrary set of tags (key-value pairs) for this DB instance.
     */
    @JvmName("qtdlvrjibobsxhcc")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An arbitrary set of tags (key-value pairs) for this DB instance.
     */
    @JvmName("sdvsayjedbedowlq")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An arbitrary set of tags (key-value pairs) for this DB instance.
     */
    @JvmName("nngliylkinrapjoh")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An arbitrary set of tags (key-value pairs) for this DB instance.
     */
    @JvmName("rtehmqdsxfogaldd")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The username for the InfluxDB instance.
     */
    @JvmName("mtjfgtscmusafigb")
    public suspend fun username(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.username = mapped
    }

    /**
     * @param value A list of Amazon EC2 VPC security groups to associate with this InfluxDB instance.
     */
    @JvmName("qctabbjfneshpxau")
    public suspend fun vpcSecurityGroupIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcSecurityGroupIds = mapped
    }

    /**
     * @param values A list of Amazon EC2 VPC security groups to associate with this InfluxDB instance.
     */
    @JvmName("gmyvpintdlrtruib")
    public suspend fun vpcSecurityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vpcSecurityGroupIds = mapped
    }

    /**
     * @param value A list of EC2 subnet IDs for this InfluxDB instance.
     */
    @JvmName("wkjafeavlybwbrsr")
    public suspend fun vpcSubnetIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcSubnetIds = mapped
    }

    /**
     * @param values A list of EC2 subnet IDs for this InfluxDB instance.
     */
    @JvmName("vhmllyjqaiqxxrao")
    public suspend fun vpcSubnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vpcSubnetIds = mapped
    }

    internal fun build(): InfluxDbInstanceArgs = InfluxDbInstanceArgs(
        allocatedStorage = allocatedStorage,
        bucket = bucket,
        dbInstanceType = dbInstanceType,
        dbParameterGroupIdentifier = dbParameterGroupIdentifier,
        dbStorageType = dbStorageType,
        deploymentType = deploymentType,
        logDeliveryConfiguration = logDeliveryConfiguration,
        name = name,
        organization = organization,
        password = password,
        publiclyAccessible = publiclyAccessible,
        tags = tags,
        username = username,
        vpcSecurityGroupIds = vpcSecurityGroupIds,
        vpcSubnetIds = vpcSubnetIds,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy