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

com.pulumi.awsnative.iotanalytics.kotlin.inputs.DatastoreCustomerManagedS3Args.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.iotanalytics.kotlin.inputs

import com.pulumi.awsnative.iotanalytics.inputs.DatastoreCustomerManagedS3Args.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

/**
 *
 * @property bucket The name of the Amazon S3 bucket where your data is stored.
 * @property keyPrefix (Optional) The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket has exactly one key. The prefix must end with a forward slash (/).
 * @property roleArn The ARN of the role that grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
 */
public data class DatastoreCustomerManagedS3Args(
    public val bucket: Output,
    public val keyPrefix: Output? = null,
    public val roleArn: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotanalytics.inputs.DatastoreCustomerManagedS3Args =
        com.pulumi.awsnative.iotanalytics.inputs.DatastoreCustomerManagedS3Args.builder()
            .bucket(bucket.applyValue({ args0 -> args0 }))
            .keyPrefix(keyPrefix?.applyValue({ args0 -> args0 }))
            .roleArn(roleArn.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DatastoreCustomerManagedS3Args].
 */
@PulumiTagMarker
public class DatastoreCustomerManagedS3ArgsBuilder internal constructor() {
    private var bucket: Output? = null

    private var keyPrefix: Output? = null

    private var roleArn: Output? = null

    /**
     * @param value The name of the Amazon S3 bucket where your data is stored.
     */
    @JvmName("jaqwmkotidbtpufm")
    public suspend fun bucket(`value`: Output) {
        this.bucket = value
    }

    /**
     * @param value (Optional) The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket has exactly one key. The prefix must end with a forward slash (/).
     */
    @JvmName("fnoagyromcdxqaoq")
    public suspend fun keyPrefix(`value`: Output) {
        this.keyPrefix = value
    }

    /**
     * @param value The ARN of the role that grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
     */
    @JvmName("csnqqdmuyjcbfggd")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The name of the Amazon S3 bucket where your data is stored.
     */
    @JvmName("nrxornlypamfjiuj")
    public suspend fun bucket(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bucket = mapped
    }

    /**
     * @param value (Optional) The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket has exactly one key. The prefix must end with a forward slash (/).
     */
    @JvmName("dpsewtqqkiasewor")
    public suspend fun keyPrefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyPrefix = mapped
    }

    /**
     * @param value The ARN of the role that grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
     */
    @JvmName("ajglgavyvaigbcrk")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    internal fun build(): DatastoreCustomerManagedS3Args = DatastoreCustomerManagedS3Args(
        bucket = bucket ?: throw PulumiNullFieldException("bucket"),
        keyPrefix = keyPrefix,
        roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy