com.pulumi.awsnative.events.kotlin.inputs.RuleRedshiftDataParametersArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.events.kotlin.inputs
import com.pulumi.awsnative.events.inputs.RuleRedshiftDataParametersArgs.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 kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property database The name of the database. Required when authenticating using temporary credentials.
* @property dbUser The database user name. Required when authenticating using temporary credentials.
* @property secretManagerArn The name or ARN of the secret that enables access to the database. Required when authenticating using AWS Secrets Manager.
* @property sql The SQL statement text to run.
* @property sqls One or more SQL statements to run. The SQL statements are run as a single transaction. They run serially in the order of the array. Subsequent SQL statements don't start until the previous statement in the array completes. If any SQL statement fails, then because they are run as one transaction, all work is rolled back.
* @property statementName The name of the SQL statement. You can name the SQL statement when you create it to identify the query.
* @property withEvent Indicates whether to send an event back to EventBridge after the SQL statement runs.
*/
public data class RuleRedshiftDataParametersArgs(
public val database: Output,
public val dbUser: Output? = null,
public val secretManagerArn: Output? = null,
public val sql: Output? = null,
public val sqls: Output>? = null,
public val statementName: Output? = null,
public val withEvent: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.events.inputs.RuleRedshiftDataParametersArgs =
com.pulumi.awsnative.events.inputs.RuleRedshiftDataParametersArgs.builder()
.database(database.applyValue({ args0 -> args0 }))
.dbUser(dbUser?.applyValue({ args0 -> args0 }))
.secretManagerArn(secretManagerArn?.applyValue({ args0 -> args0 }))
.sql(sql?.applyValue({ args0 -> args0 }))
.sqls(sqls?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.statementName(statementName?.applyValue({ args0 -> args0 }))
.withEvent(withEvent?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RuleRedshiftDataParametersArgs].
*/
@PulumiTagMarker
public class RuleRedshiftDataParametersArgsBuilder internal constructor() {
private var database: Output? = null
private var dbUser: Output? = null
private var secretManagerArn: Output? = null
private var sql: Output? = null
private var sqls: Output>? = null
private var statementName: Output? = null
private var withEvent: Output? = null
/**
* @param value The name of the database. Required when authenticating using temporary credentials.
*/
@JvmName("bvhflhjwwtbpvgda")
public suspend fun database(`value`: Output) {
this.database = value
}
/**
* @param value The database user name. Required when authenticating using temporary credentials.
*/
@JvmName("hxhcktociofnrmsm")
public suspend fun dbUser(`value`: Output) {
this.dbUser = value
}
/**
* @param value The name or ARN of the secret that enables access to the database. Required when authenticating using AWS Secrets Manager.
*/
@JvmName("egocfipwpqesmcxt")
public suspend fun secretManagerArn(`value`: Output) {
this.secretManagerArn = value
}
/**
* @param value The SQL statement text to run.
*/
@JvmName("gtfxbedqlwjugxpk")
public suspend fun sql(`value`: Output) {
this.sql = value
}
/**
* @param value One or more SQL statements to run. The SQL statements are run as a single transaction. They run serially in the order of the array. Subsequent SQL statements don't start until the previous statement in the array completes. If any SQL statement fails, then because they are run as one transaction, all work is rolled back.
*/
@JvmName("vhoudcuwetcaholp")
public suspend fun sqls(`value`: Output>) {
this.sqls = value
}
@JvmName("rbxevoxfvksgdvpc")
public suspend fun sqls(vararg values: Output) {
this.sqls = Output.all(values.asList())
}
/**
* @param values One or more SQL statements to run. The SQL statements are run as a single transaction. They run serially in the order of the array. Subsequent SQL statements don't start until the previous statement in the array completes. If any SQL statement fails, then because they are run as one transaction, all work is rolled back.
*/
@JvmName("wnrjevcfyhksoemp")
public suspend fun sqls(values: List