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

com.pulumi.gcp.storage.kotlin.inputs.TransferJobTransferSpecAwsS3DataSourceArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.storage.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.storage.inputs.TransferJobTransferSpecAwsS3DataSourceArgs.builder
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 awsAccessKey AWS credentials block.
 * @property bucketName S3 Bucket name.
 * @property path S3 Bucket path in bucket to transfer.
 * @property roleArn The Amazon Resource Name (ARN) of the role to support temporary credentials via 'AssumeRoleWithWebIdentity'. For more information about ARNs, see [IAM ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns). When a role ARN is provided, Transfer Service fetches temporary credentials for the session using a 'AssumeRoleWithWebIdentity' call for the provided role using the [GoogleServiceAccount][] for this project.
 */
public data class TransferJobTransferSpecAwsS3DataSourceArgs(
    public val awsAccessKey: Output? = null,
    public val bucketName: Output,
    public val path: Output? = null,
    public val roleArn: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.storage.inputs.TransferJobTransferSpecAwsS3DataSourceArgs =
        com.pulumi.gcp.storage.inputs.TransferJobTransferSpecAwsS3DataSourceArgs.builder()
            .awsAccessKey(awsAccessKey?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .bucketName(bucketName.applyValue({ args0 -> args0 }))
            .path(path?.applyValue({ args0 -> args0 }))
            .roleArn(roleArn?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TransferJobTransferSpecAwsS3DataSourceArgs].
 */
@PulumiTagMarker
public class TransferJobTransferSpecAwsS3DataSourceArgsBuilder internal constructor() {
    private var awsAccessKey: Output? = null

    private var bucketName: Output? = null

    private var path: Output? = null

    private var roleArn: Output? = null

    /**
     * @param value AWS credentials block.
     */
    @JvmName("vlfoplmkvuwelxps")
    public suspend fun awsAccessKey(`value`: Output) {
        this.awsAccessKey = value
    }

    /**
     * @param value S3 Bucket name.
     */
    @JvmName("xltgpckphdvgdwac")
    public suspend fun bucketName(`value`: Output) {
        this.bucketName = value
    }

    /**
     * @param value S3 Bucket path in bucket to transfer.
     */
    @JvmName("twficxpvcbrqqaar")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the role to support temporary credentials via 'AssumeRoleWithWebIdentity'. For more information about ARNs, see [IAM ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns). When a role ARN is provided, Transfer Service fetches temporary credentials for the session using a 'AssumeRoleWithWebIdentity' call for the provided role using the [GoogleServiceAccount][] for this project.
     */
    @JvmName("uawtfgnsvcpwpdpr")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value AWS credentials block.
     */
    @JvmName("undkigmluejruhrc")
    public suspend fun awsAccessKey(`value`: TransferJobTransferSpecAwsS3DataSourceAwsAccessKeyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.awsAccessKey = mapped
    }

    /**
     * @param argument AWS credentials block.
     */
    @JvmName("icbeeimboghiwyyj")
    public suspend fun awsAccessKey(argument: suspend TransferJobTransferSpecAwsS3DataSourceAwsAccessKeyArgsBuilder.() -> Unit) {
        val toBeMapped = TransferJobTransferSpecAwsS3DataSourceAwsAccessKeyArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.awsAccessKey = mapped
    }

    /**
     * @param value S3 Bucket name.
     */
    @JvmName("stghpnngfemlpsmo")
    public suspend fun bucketName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bucketName = mapped
    }

    /**
     * @param value S3 Bucket path in bucket to transfer.
     */
    @JvmName("wrkpweqlxjqwxujm")
    public suspend fun path(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.path = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the role to support temporary credentials via 'AssumeRoleWithWebIdentity'. For more information about ARNs, see [IAM ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns). When a role ARN is provided, Transfer Service fetches temporary credentials for the session using a 'AssumeRoleWithWebIdentity' call for the provided role using the [GoogleServiceAccount][] for this project.
     */
    @JvmName("kwfbxrsjnapinoqa")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    internal fun build(): TransferJobTransferSpecAwsS3DataSourceArgs =
        TransferJobTransferSpecAwsS3DataSourceArgs(
            awsAccessKey = awsAccessKey,
            bucketName = bucketName ?: throw PulumiNullFieldException("bucketName"),
            path = path,
            roleArn = roleArn,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy