com.pulumi.aws.iot.kotlin.inputs.TopicRuleS3Args.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.TopicRuleS3Args.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 TopicRuleS3Args(
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.TopicRuleS3Args =
com.pulumi.aws.iot.inputs.TopicRuleS3Args.builder()
.bucketName(bucketName.applyValue({ args0 -> args0 }))
.cannedAcl(cannedAcl?.applyValue({ args0 -> args0 }))
.key(key.applyValue({ args0 -> args0 }))
.roleArn(roleArn.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TopicRuleS3Args].
*/
@PulumiTagMarker
public class TopicRuleS3ArgsBuilder 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("tiifajrxbktpoaoi")
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("jngtnrmlesbpmdhd")
public suspend fun cannedAcl(`value`: Output) {
this.cannedAcl = value
}
/**
* @param value The object key.
*/
@JvmName("vxrqoddqspirdffd")
public suspend fun key(`value`: Output) {
this.key = value
}
/**
* @param value The ARN of the IAM role that grants access.
*/
@JvmName("tbxrlubfvxdkcuor")
public suspend fun roleArn(`value`: Output) {
this.roleArn = value
}
/**
* @param value The Amazon S3 bucket name.
*/
@JvmName("ldgdymbbooljklnw")
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("gxnaqprgjjcfgegb")
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("mvvedotljmxrwswr")
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("badvimkaegxpvenk")
public suspend fun roleArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.roleArn = mapped
}
internal fun build(): TopicRuleS3Args = TopicRuleS3Args(
bucketName = bucketName ?: throw PulumiNullFieldException("bucketName"),
cannedAcl = cannedAcl,
key = key ?: throw PulumiNullFieldException("key"),
roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy