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

com.pulumi.awsnative.datasync.kotlin.LocationS3Args.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.datasync.kotlin

import com.pulumi.awsnative.datasync.LocationS3Args.builder
import com.pulumi.awsnative.datasync.kotlin.enums.LocationS3S3StorageClass
import com.pulumi.awsnative.datasync.kotlin.inputs.LocationS3s3ConfigArgs
import com.pulumi.awsnative.datasync.kotlin.inputs.LocationS3s3ConfigArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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 schema for AWS::DataSync::LocationS3
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property s3BucketArn The Amazon Resource Name (ARN) of the Amazon S3 bucket.
 * @property s3Config The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.
 * For detailed information about using such a role, see [Creating a Location for Amazon S3](https://docs.aws.amazon.com/datasync/latest/userguide/working-with-locations.html#create-s3-location) in the *AWS DataSync User Guide* .
 * @property s3StorageClass The Amazon S3 storage class you want to store your files in when this location is used as a task destination.
 * @property subdirectory A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class LocationS3Args(
    public val s3BucketArn: Output? = null,
    public val s3Config: Output? = null,
    public val s3StorageClass: Output? = null,
    public val subdirectory: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datasync.LocationS3Args =
        com.pulumi.awsnative.datasync.LocationS3Args.builder()
            .s3BucketArn(s3BucketArn?.applyValue({ args0 -> args0 }))
            .s3Config(s3Config?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .s3StorageClass(s3StorageClass?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .subdirectory(subdirectory?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [LocationS3Args].
 */
@PulumiTagMarker
public class LocationS3ArgsBuilder internal constructor() {
    private var s3BucketArn: Output? = null

    private var s3Config: Output? = null

    private var s3StorageClass: Output? = null

    private var subdirectory: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The Amazon Resource Name (ARN) of the Amazon S3 bucket.
     */
    @JvmName("wpcejborrayivekb")
    public suspend fun s3BucketArn(`value`: Output) {
        this.s3BucketArn = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.
     * For detailed information about using such a role, see [Creating a Location for Amazon S3](https://docs.aws.amazon.com/datasync/latest/userguide/working-with-locations.html#create-s3-location) in the *AWS DataSync User Guide* .
     */
    @JvmName("ytbwqumlbfbwdfid")
    public suspend fun s3Config(`value`: Output) {
        this.s3Config = value
    }

    /**
     * @param value The Amazon S3 storage class you want to store your files in when this location is used as a task destination.
     */
    @JvmName("nexowevrkyhybiry")
    public suspend fun s3StorageClass(`value`: Output) {
        this.s3StorageClass = value
    }

    /**
     * @param value A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.
     */
    @JvmName("oapjngwdcknkwspv")
    public suspend fun subdirectory(`value`: Output) {
        this.subdirectory = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("sytnwhjbcmqhleol")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("atgmxbmmbyoxbpme")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("ymuectjqxdseojye")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the Amazon S3 bucket.
     */
    @JvmName("wqqldowhngjhfhar")
    public suspend fun s3BucketArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.s3BucketArn = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.
     * For detailed information about using such a role, see [Creating a Location for Amazon S3](https://docs.aws.amazon.com/datasync/latest/userguide/working-with-locations.html#create-s3-location) in the *AWS DataSync User Guide* .
     */
    @JvmName("bvwychpjsgxvfied")
    public suspend fun s3Config(`value`: LocationS3s3ConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.s3Config = mapped
    }

    /**
     * @param argument The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.
     * For detailed information about using such a role, see [Creating a Location for Amazon S3](https://docs.aws.amazon.com/datasync/latest/userguide/working-with-locations.html#create-s3-location) in the *AWS DataSync User Guide* .
     */
    @JvmName("dwanrwslsvhlelnf")
    public suspend fun s3Config(argument: suspend LocationS3s3ConfigArgsBuilder.() -> Unit) {
        val toBeMapped = LocationS3s3ConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.s3Config = mapped
    }

    /**
     * @param value The Amazon S3 storage class you want to store your files in when this location is used as a task destination.
     */
    @JvmName("axqamulgmksdqdfw")
    public suspend fun s3StorageClass(`value`: LocationS3S3StorageClass?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.s3StorageClass = mapped
    }

    /**
     * @param value A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.
     */
    @JvmName("jkcutghjqjnreuyr")
    public suspend fun subdirectory(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subdirectory = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("aqsewmmmmtumycws")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("nttprehkhbcvjkcq")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("xkhblquigwrwnyhh")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("agougqsrhtgjrrgo")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("llwuedhsxkmkajut")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): LocationS3Args = LocationS3Args(
        s3BucketArn = s3BucketArn,
        s3Config = s3Config,
        s3StorageClass = s3StorageClass,
        subdirectory = subdirectory,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy