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

com.pulumi.awsnative.lookoutmetrics.kotlin.inputs.AnomalyDetectorRdsSourceConfigArgs.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.lookoutmetrics.kotlin.inputs

import com.pulumi.awsnative.lookoutmetrics.inputs.AnomalyDetectorRdsSourceConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property databaseHost The host name of the database.
 * @property databaseName The name of the RDS database.
 * @property databasePort The port number where the database can be accessed.
 * @property dbInstanceIdentifier A string identifying the database instance.
 * @property roleArn The Amazon Resource Name (ARN) of the role.
 * @property secretManagerArn The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
 * @property tableName The name of the table in the database.
 * @property vpcConfiguration An object containing information about the Amazon Virtual Private Cloud (VPC) configuration.
 */
public data class AnomalyDetectorRdsSourceConfigArgs(
    public val databaseHost: Output,
    public val databaseName: Output,
    public val databasePort: Output,
    public val dbInstanceIdentifier: Output,
    public val roleArn: Output,
    public val secretManagerArn: Output,
    public val tableName: Output,
    public val vpcConfiguration: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lookoutmetrics.inputs.AnomalyDetectorRdsSourceConfigArgs =
        com.pulumi.awsnative.lookoutmetrics.inputs.AnomalyDetectorRdsSourceConfigArgs.builder()
            .databaseHost(databaseHost.applyValue({ args0 -> args0 }))
            .databaseName(databaseName.applyValue({ args0 -> args0 }))
            .databasePort(databasePort.applyValue({ args0 -> args0 }))
            .dbInstanceIdentifier(dbInstanceIdentifier.applyValue({ args0 -> args0 }))
            .roleArn(roleArn.applyValue({ args0 -> args0 }))
            .secretManagerArn(secretManagerArn.applyValue({ args0 -> args0 }))
            .tableName(tableName.applyValue({ args0 -> args0 }))
            .vpcConfiguration(
                vpcConfiguration.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [AnomalyDetectorRdsSourceConfigArgs].
 */
@PulumiTagMarker
public class AnomalyDetectorRdsSourceConfigArgsBuilder internal constructor() {
    private var databaseHost: Output? = null

    private var databaseName: Output? = null

    private var databasePort: Output? = null

    private var dbInstanceIdentifier: Output? = null

    private var roleArn: Output? = null

    private var secretManagerArn: Output? = null

    private var tableName: Output? = null

    private var vpcConfiguration: Output? = null

    /**
     * @param value The host name of the database.
     */
    @JvmName("krbipdnrbqktlrma")
    public suspend fun databaseHost(`value`: Output) {
        this.databaseHost = value
    }

    /**
     * @param value The name of the RDS database.
     */
    @JvmName("ovaocueolusfofyf")
    public suspend fun databaseName(`value`: Output) {
        this.databaseName = value
    }

    /**
     * @param value The port number where the database can be accessed.
     */
    @JvmName("dtagnqlhnlivudyh")
    public suspend fun databasePort(`value`: Output) {
        this.databasePort = value
    }

    /**
     * @param value A string identifying the database instance.
     */
    @JvmName("aaqlxkkcxamjwmlr")
    public suspend fun dbInstanceIdentifier(`value`: Output) {
        this.dbInstanceIdentifier = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the role.
     */
    @JvmName("rwbjrilgrictyqef")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
     */
    @JvmName("ovtogkalbfsiiahh")
    public suspend fun secretManagerArn(`value`: Output) {
        this.secretManagerArn = value
    }

    /**
     * @param value The name of the table in the database.
     */
    @JvmName("svtsxxyuflphmfpq")
    public suspend fun tableName(`value`: Output) {
        this.tableName = value
    }

    /**
     * @param value An object containing information about the Amazon Virtual Private Cloud (VPC) configuration.
     */
    @JvmName("uupriawmuvenfnsm")
    public suspend fun vpcConfiguration(`value`: Output) {
        this.vpcConfiguration = value
    }

    /**
     * @param value The host name of the database.
     */
    @JvmName("xurvnjldgxblxpqu")
    public suspend fun databaseHost(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.databaseHost = mapped
    }

    /**
     * @param value The name of the RDS database.
     */
    @JvmName("eglscmbpeujmisnk")
    public suspend fun databaseName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.databaseName = mapped
    }

    /**
     * @param value The port number where the database can be accessed.
     */
    @JvmName("twxkfgeyfgkukvhu")
    public suspend fun databasePort(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.databasePort = mapped
    }

    /**
     * @param value A string identifying the database instance.
     */
    @JvmName("ywfsbpwxocsoltxo")
    public suspend fun dbInstanceIdentifier(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dbInstanceIdentifier = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the role.
     */
    @JvmName("xbkywqpvmfwjxkme")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
     */
    @JvmName("bupmkerhocjweolo")
    public suspend fun secretManagerArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secretManagerArn = mapped
    }

    /**
     * @param value The name of the table in the database.
     */
    @JvmName("jgexjciufgiljgwg")
    public suspend fun tableName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tableName = mapped
    }

    /**
     * @param value An object containing information about the Amazon Virtual Private Cloud (VPC) configuration.
     */
    @JvmName("wukqkekmnhcpvxag")
    public suspend fun vpcConfiguration(`value`: AnomalyDetectorVpcConfigurationArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vpcConfiguration = mapped
    }

    /**
     * @param argument An object containing information about the Amazon Virtual Private Cloud (VPC) configuration.
     */
    @JvmName("twmlieyqadwrwirb")
    public suspend fun vpcConfiguration(argument: suspend AnomalyDetectorVpcConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = AnomalyDetectorVpcConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.vpcConfiguration = mapped
    }

    internal fun build(): AnomalyDetectorRdsSourceConfigArgs = AnomalyDetectorRdsSourceConfigArgs(
        databaseHost = databaseHost ?: throw PulumiNullFieldException("databaseHost"),
        databaseName = databaseName ?: throw PulumiNullFieldException("databaseName"),
        databasePort = databasePort ?: throw PulumiNullFieldException("databasePort"),
        dbInstanceIdentifier = dbInstanceIdentifier ?: throw
            PulumiNullFieldException("dbInstanceIdentifier"),
        roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
        secretManagerArn = secretManagerArn ?: throw PulumiNullFieldException("secretManagerArn"),
        tableName = tableName ?: throw PulumiNullFieldException("tableName"),
        vpcConfiguration = vpcConfiguration ?: throw PulumiNullFieldException("vpcConfiguration"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy