All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.s3control.kotlin.inputs.BucketLifecycleConfigurationRuleArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.s3control.kotlin.inputs

import com.pulumi.aws.s3control.inputs.BucketLifecycleConfigurationRuleArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property abortIncompleteMultipartUpload Configuration block containing settings for abort incomplete multipart upload.
 * @property expiration Configuration block containing settings for expiration of objects.
 * @property filter Configuration block containing settings for filtering.
 * @property id Unique identifier for the rule.
 * @property status Status of the rule. Valid values: `Enabled` and `Disabled`. Defaults to `Enabled`.
 */
public data class BucketLifecycleConfigurationRuleArgs(
    public val abortIncompleteMultipartUpload: Output? = null,
    public val expiration: Output? = null,
    public val filter: Output? = null,
    public val id: Output,
    public val status: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.s3control.inputs.BucketLifecycleConfigurationRuleArgs =
        com.pulumi.aws.s3control.inputs.BucketLifecycleConfigurationRuleArgs.builder()
            .abortIncompleteMultipartUpload(
                abortIncompleteMultipartUpload?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .expiration(expiration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .filter(filter?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .id(id.applyValue({ args0 -> args0 }))
            .status(status?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BucketLifecycleConfigurationRuleArgs].
 */
@PulumiTagMarker
public class BucketLifecycleConfigurationRuleArgsBuilder internal constructor() {
    private var abortIncompleteMultipartUpload:
        Output? = null

    private var expiration: Output? = null

    private var filter: Output? = null

    private var id: Output? = null

    private var status: Output? = null

    /**
     * @param value Configuration block containing settings for abort incomplete multipart upload.
     */
    @JvmName("kotkglyhgwrobjej")
    public suspend fun abortIncompleteMultipartUpload(`value`: Output) {
        this.abortIncompleteMultipartUpload = value
    }

    /**
     * @param value Configuration block containing settings for expiration of objects.
     */
    @JvmName("sblssakedonwlbkn")
    public suspend fun expiration(`value`: Output) {
        this.expiration = value
    }

    /**
     * @param value Configuration block containing settings for filtering.
     */
    @JvmName("foasrcsyaacivoga")
    public suspend fun filter(`value`: Output) {
        this.filter = value
    }

    /**
     * @param value Unique identifier for the rule.
     */
    @JvmName("xwlywclmldtwkuwj")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value Status of the rule. Valid values: `Enabled` and `Disabled`. Defaults to `Enabled`.
     */
    @JvmName("kkneghwtlglxepch")
    public suspend fun status(`value`: Output) {
        this.status = value
    }

    /**
     * @param value Configuration block containing settings for abort incomplete multipart upload.
     */
    @JvmName("dqjyadgrnrirqses")
    public suspend fun abortIncompleteMultipartUpload(`value`: BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.abortIncompleteMultipartUpload = mapped
    }

    /**
     * @param argument Configuration block containing settings for abort incomplete multipart upload.
     */
    @JvmName("okimydnlyheecliq")
    public suspend fun abortIncompleteMultipartUpload(argument: suspend BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgsBuilder.() -> Unit) {
        val toBeMapped =
            BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploadArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.abortIncompleteMultipartUpload = mapped
    }

    /**
     * @param value Configuration block containing settings for expiration of objects.
     */
    @JvmName("urtaschngpvhdxaa")
    public suspend fun expiration(`value`: BucketLifecycleConfigurationRuleExpirationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.expiration = mapped
    }

    /**
     * @param argument Configuration block containing settings for expiration of objects.
     */
    @JvmName("adenhmdmqttarcss")
    public suspend fun expiration(argument: suspend BucketLifecycleConfigurationRuleExpirationArgsBuilder.() -> Unit) {
        val toBeMapped = BucketLifecycleConfigurationRuleExpirationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.expiration = mapped
    }

    /**
     * @param value Configuration block containing settings for filtering.
     */
    @JvmName("weadbjwkgmhevdis")
    public suspend fun filter(`value`: BucketLifecycleConfigurationRuleFilterArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filter = mapped
    }

    /**
     * @param argument Configuration block containing settings for filtering.
     */
    @JvmName("bcfsrjhdvfawpqkv")
    public suspend fun filter(argument: suspend BucketLifecycleConfigurationRuleFilterArgsBuilder.() -> Unit) {
        val toBeMapped = BucketLifecycleConfigurationRuleFilterArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.filter = mapped
    }

    /**
     * @param value Unique identifier for the rule.
     */
    @JvmName("kqoauntwfgkgxfno")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value Status of the rule. Valid values: `Enabled` and `Disabled`. Defaults to `Enabled`.
     */
    @JvmName("gfxnxrrnxhsaprvb")
    public suspend fun status(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    internal fun build(): BucketLifecycleConfigurationRuleArgs = BucketLifecycleConfigurationRuleArgs(
        abortIncompleteMultipartUpload = abortIncompleteMultipartUpload,
        expiration = expiration,
        filter = filter,
        id = id ?: throw PulumiNullFieldException("id"),
        status = status,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy