com.pulumi.awsnative.iot.kotlin.inputs.TopicRuleS3ActionArgs.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.iot.kotlin.inputs
import com.pulumi.awsnative.iot.inputs.TopicRuleS3ActionArgs.builder
import com.pulumi.awsnative.iot.kotlin.enums.TopicRuleCannedAccessControlList
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.
* @property cannedAcl The Amazon S3 canned ACL that controls access to the object identified by the object key. For more information, see [S3 canned ACLs](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) .
* @property key The object key. For more information, see [Actions, resources, and condition keys for Amazon S3](https://docs.aws.amazon.com/AmazonS3/latest/dev/list_amazons3.html) .
* @property roleArn The ARN of the IAM role that grants access.
*/
public data class TopicRuleS3ActionArgs(
public val bucketName: Output,
public val cannedAcl: Output? = null,
public val key: Output,
public val roleArn: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iot.inputs.TopicRuleS3ActionArgs =
com.pulumi.awsnative.iot.inputs.TopicRuleS3ActionArgs.builder()
.bucketName(bucketName.applyValue({ args0 -> args0 }))
.cannedAcl(cannedAcl?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.key(key.applyValue({ args0 -> args0 }))
.roleArn(roleArn.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TopicRuleS3ActionArgs].
*/
@PulumiTagMarker
public class TopicRuleS3ActionArgsBuilder 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.
*/
@JvmName("jnncvainhxubaply")
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. For more information, see [S3 canned ACLs](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) .
*/
@JvmName("bppfoxxlrfxhssil")
public suspend fun cannedAcl(`value`: Output) {
this.cannedAcl = value
}
/**
* @param value The object key. For more information, see [Actions, resources, and condition keys for Amazon S3](https://docs.aws.amazon.com/AmazonS3/latest/dev/list_amazons3.html) .
*/
@JvmName("btaeumhaucufkaft")
public suspend fun key(`value`: Output) {
this.key = value
}
/**
* @param value The ARN of the IAM role that grants access.
*/
@JvmName("fveqiurahfknliqb")
public suspend fun roleArn(`value`: Output) {
this.roleArn = value
}
/**
* @param value The Amazon S3 bucket.
*/
@JvmName("qnscixjloinehhou")
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. For more information, see [S3 canned ACLs](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) .
*/
@JvmName("kcefqwfpbxsetagy")
public suspend fun cannedAcl(`value`: TopicRuleCannedAccessControlList?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cannedAcl = mapped
}
/**
* @param value The object key. For more information, see [Actions, resources, and condition keys for Amazon S3](https://docs.aws.amazon.com/AmazonS3/latest/dev/list_amazons3.html) .
*/
@JvmName("dmwmrxplnoogwccw")
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("eqkajgoxfqqqokmy")
public suspend fun roleArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.roleArn = mapped
}
internal fun build(): TopicRuleS3ActionArgs = TopicRuleS3ActionArgs(
bucketName = bucketName ?: throw PulumiNullFieldException("bucketName"),
cannedAcl = cannedAcl,
key = key ?: throw PulumiNullFieldException("key"),
roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
)
}