![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.events.kotlin.outputs.RuleRedshiftDataParameters.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.events.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @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 RuleRedshiftDataParameters(
public val database: String,
public val dbUser: String? = null,
public val secretManagerArn: String? = null,
public val sql: String? = null,
public val sqls: List? = null,
public val statementName: String? = null,
public val withEvent: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.events.outputs.RuleRedshiftDataParameters): RuleRedshiftDataParameters = RuleRedshiftDataParameters(
database = javaType.database(),
dbUser = javaType.dbUser().map({ args0 -> args0 }).orElse(null),
secretManagerArn = javaType.secretManagerArn().map({ args0 -> args0 }).orElse(null),
sql = javaType.sql().map({ args0 -> args0 }).orElse(null),
sqls = javaType.sqls().map({ args0 -> args0 }),
statementName = javaType.statementName().map({ args0 -> args0 }).orElse(null),
withEvent = javaType.withEvent().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy