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

com.pulumi.awsnative.iotanalytics.kotlin.outputs.DatasetS3DestinationConfiguration.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.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property bucket The name of the S3 bucket to which dataset contents are delivered.
 * @property glueConfiguration Configuration information for coordination with AWS Glue , a fully managed extract, transform and load (ETL) service.
 * @property key The key of the dataset contents object in an S3 bucket. Each object has a key that is a unique identifier. Each object has exactly one key.
 * You can create a unique key with the following options:
 * - Use `!{iotanalytics:scheduleTime}` to insert the time of a scheduled SQL query run.
 * - Use `!{iotanalytics:versionId}` to insert a unique hash that identifies a dataset content.
 * - Use `!{iotanalytics:creationTime}` to insert the creation time of a dataset content.
 * The following example creates a unique key for a CSV file: `dataset/mydataset/!{iotanalytics:scheduleTime}/!{iotanalytics:versionId}.csv`
 * > If you don't use `!{iotanalytics:versionId}` to specify the key, you might get duplicate keys. For example, you might have two dataset contents with the same `scheduleTime` but different `versionId` s. This means that one dataset content overwrites the other.
 * @property roleArn The ARN of the role that grants AWS IoT Analytics permission to interact with your Amazon S3 and AWS Glue resources.
 */
public data class DatasetS3DestinationConfiguration(
    public val bucket: String,
    public val glueConfiguration: DatasetGlueConfiguration? = null,
    public val key: String,
    public val roleArn: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.iotanalytics.outputs.DatasetS3DestinationConfiguration): DatasetS3DestinationConfiguration = DatasetS3DestinationConfiguration(
            bucket = javaType.bucket(),
            glueConfiguration = javaType.glueConfiguration().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iotanalytics.kotlin.outputs.DatasetGlueConfiguration.Companion.toKotlin(args0)
                })
            }).orElse(null),
            key = javaType.key(),
            roleArn = javaType.roleArn(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy