
com.pulumi.awsnative.datasync.kotlin.LocationS3Args.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.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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy