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

com.pulumi.awsnative.datasync.kotlin.inputs.LocationS3s3ConfigArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.datasync.kotlin.inputs

import com.pulumi.awsnative.datasync.inputs.LocationS3s3ConfigArgs.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

/**
 * The Amazon Resource Name (ARN) of the AWS IAM role that is used to access an Amazon S3 bucket.
 * @property bucketAccessRoleArn The ARN of the IAM role of the Amazon S3 bucket.
 */
public data class LocationS3s3ConfigArgs(
    public val bucketAccessRoleArn: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datasync.inputs.LocationS3s3ConfigArgs =
        com.pulumi.awsnative.datasync.inputs.LocationS3s3ConfigArgs.builder()
            .bucketAccessRoleArn(bucketAccessRoleArn.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LocationS3s3ConfigArgs].
 */
@PulumiTagMarker
public class LocationS3s3ConfigArgsBuilder internal constructor() {
    private var bucketAccessRoleArn: Output? = null

    /**
     * @param value The ARN of the IAM role of the Amazon S3 bucket.
     */
    @JvmName("jipqrcwvxpnwtkrg")
    public suspend fun bucketAccessRoleArn(`value`: Output) {
        this.bucketAccessRoleArn = value
    }

    /**
     * @param value The ARN of the IAM role of the Amazon S3 bucket.
     */
    @JvmName("hbbuxmwoegskijfy")
    public suspend fun bucketAccessRoleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bucketAccessRoleArn = mapped
    }

    internal fun build(): LocationS3s3ConfigArgs = LocationS3s3ConfigArgs(
        bucketAccessRoleArn = bucketAccessRoleArn ?: throw PulumiNullFieldException("bucketAccessRoleArn"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy