com.pulumi.aws.iot.kotlin.inputs.TopicRuleErrorActionS3Args.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.iot.kotlin.inputs
import com.pulumi.aws.iot.inputs.TopicRuleErrorActionS3Args.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property bucketName The Amazon S3 bucket name.
* @property cannedAcl The Amazon S3 canned ACL that controls access to the object identified by the object key. [Valid values](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl).
* @property key The object key.
* @property roleArn The ARN of the IAM role that grants access.
*/
public data class TopicRuleErrorActionS3Args(
public val bucketName: Output,
public val cannedAcl: Output? = null,
public val key: Output,
public val roleArn: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.iot.inputs.TopicRuleErrorActionS3Args =
com.pulumi.aws.iot.inputs.TopicRuleErrorActionS3Args.builder()
.bucketName(bucketName.applyValue({ args0 -> args0 }))
.cannedAcl(cannedAcl?.applyValue({ args0 -> args0 }))
.key(key.applyValue({ args0 -> args0 }))
.roleArn(roleArn.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TopicRuleErrorActionS3Args].
*/
@PulumiTagMarker
public class TopicRuleErrorActionS3ArgsBuilder internal constructor() {
private var bucketName: Output? = null
private var cannedAcl: Output? = null
private var key: Output? = null
private var roleArn: Output? = null
/**
* @param value The Amazon S3 bucket name.
*/
@JvmName("xdfxccpjnkhmdusk")
public suspend fun bucketName(`value`: Output) {
this.bucketName = value
}
/**
* @param value The Amazon S3 canned ACL that controls access to the object identified by the object key. [Valid values](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl).
*/
@JvmName("wjfclbogmgcggene")
public suspend fun cannedAcl(`value`: Output) {
this.cannedAcl = value
}
/**
* @param value The object key.
*/
@JvmName("xjmyfytsbcojapxl")
public suspend fun key(`value`: Output) {
this.key = value
}
/**
* @param value The ARN of the IAM role that grants access.
*/
@JvmName("xhxdlihppkcbdvat")
public suspend fun roleArn(`value`: Output) {
this.roleArn = value
}
/**
* @param value The Amazon S3 bucket name.
*/
@JvmName("fffejagrnjrenjnc")
public suspend fun bucketName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.bucketName = mapped
}
/**
* @param value The Amazon S3 canned ACL that controls access to the object identified by the object key. [Valid values](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl).
*/
@JvmName("hfunnmoejnemprql")
public suspend fun cannedAcl(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cannedAcl = mapped
}
/**
* @param value The object key.
*/
@JvmName("uxpsixqeeampdaif")
public suspend fun key(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.key = mapped
}
/**
* @param value The ARN of the IAM role that grants access.
*/
@JvmName("uqpshopmckgjjhrw")
public suspend fun roleArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.roleArn = mapped
}
internal fun build(): TopicRuleErrorActionS3Args = TopicRuleErrorActionS3Args(
bucketName = bucketName ?: throw PulumiNullFieldException("bucketName"),
cannedAcl = cannedAcl,
key = key ?: throw PulumiNullFieldException("key"),
roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy