com.pulumi.awsnative.s3outposts.kotlin.BucketArgs.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.s3outposts.kotlin
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.s3outposts.BucketArgs.builder
import com.pulumi.awsnative.s3outposts.kotlin.inputs.BucketLifecycleConfigurationArgs
import com.pulumi.awsnative.s3outposts.kotlin.inputs.BucketLifecycleConfigurationArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Resource Type Definition for AWS::S3Outposts::Bucket
* @property bucketName A name for the bucket.
* @property lifecycleConfiguration Rules that define how Amazon S3Outposts manages objects during their lifetime.
* @property outpostId The id of the customer outpost on which the bucket resides.
* @property tags An arbitrary set of tags (key-value pairs) for this S3Outposts bucket.
*/
public data class BucketArgs(
public val bucketName: Output? = null,
public val lifecycleConfiguration: Output? = null,
public val outpostId: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.s3outposts.BucketArgs =
com.pulumi.awsnative.s3outposts.BucketArgs.builder()
.bucketName(bucketName?.applyValue({ args0 -> args0 }))
.lifecycleConfiguration(
lifecycleConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.outpostId(outpostId?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [BucketArgs].
*/
@PulumiTagMarker
public class BucketArgsBuilder internal constructor() {
private var bucketName: Output? = null
private var lifecycleConfiguration: Output? = null
private var outpostId: Output? = null
private var tags: Output>? = null
/**
* @param value A name for the bucket.
*/
@JvmName("pwxlvsmchrybmxxo")
public suspend fun bucketName(`value`: Output) {
this.bucketName = value
}
/**
* @param value Rules that define how Amazon S3Outposts manages objects during their lifetime.
*/
@JvmName("ypmvbwptrmvmjjwx")
public suspend fun lifecycleConfiguration(`value`: Output) {
this.lifecycleConfiguration = value
}
/**
* @param value The id of the customer outpost on which the bucket resides.
*/
@JvmName("gisololfdpijkmys")
public suspend fun outpostId(`value`: Output) {
this.outpostId = value
}
/**
* @param value An arbitrary set of tags (key-value pairs) for this S3Outposts bucket.
*/
@JvmName("yujeaajnljjduusa")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("ngwyybmyixbblfgp")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values An arbitrary set of tags (key-value pairs) for this S3Outposts bucket.
*/
@JvmName("dibdbemttbxbfkas")
public suspend fun tags(values: List