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

com.pulumi.awsnative.securitylake.kotlin.DataLake.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.securitylake.kotlin

import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.securitylake.kotlin.outputs.DataLakeEncryptionConfiguration
import com.pulumi.awsnative.securitylake.kotlin.outputs.DataLakeLifecycleConfiguration
import com.pulumi.awsnative.securitylake.kotlin.outputs.DataLakeReplicationConfiguration
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
import com.pulumi.awsnative.securitylake.kotlin.outputs.DataLakeEncryptionConfiguration.Companion.toKotlin as dataLakeEncryptionConfigurationToKotlin
import com.pulumi.awsnative.securitylake.kotlin.outputs.DataLakeLifecycleConfiguration.Companion.toKotlin as dataLakeLifecycleConfigurationToKotlin
import com.pulumi.awsnative.securitylake.kotlin.outputs.DataLakeReplicationConfiguration.Companion.toKotlin as dataLakeReplicationConfigurationToKotlin

/**
 * Builder for [DataLake].
 */
@PulumiTagMarker
public class DataLakeResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: DataLakeArgs = DataLakeArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend DataLakeArgsBuilder.() -> Unit) {
        val builder = DataLakeArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): DataLake {
        val builtJavaResource = com.pulumi.awsnative.securitylake.DataLake(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return DataLake(builtJavaResource)
    }
}

/**
 * Resource Type definition for AWS::SecurityLake::DataLake
 */
public class DataLake internal constructor(
    override val javaResource: com.pulumi.awsnative.securitylake.DataLake,
) : KotlinCustomResource(javaResource, DataLakeMapper) {
    /**
     * The Amazon Resource Name (ARN) created by you to provide to the subscriber.
     */
    public val arn: Output
        get() = javaResource.arn().applyValue({ args0 -> args0 })

    /**
     * Provides encryption details of the Amazon Security Lake object.
     */
    public val encryptionConfiguration: Output?
        get() = javaResource.encryptionConfiguration().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> dataLakeEncryptionConfigurationToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * You can customize Security Lake to store data in your preferred AWS Regions for your preferred amount of time. Lifecycle management can help you comply with different compliance requirements. For more details, see [Lifecycle management](https://docs.aws.amazon.com//security-lake/latest/userguide/lifecycle-management.html) in the Amazon Security Lake User Guide.
     */
    public val lifecycleConfiguration: Output?
        get() = javaResource.lifecycleConfiguration().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> dataLakeLifecycleConfigurationToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * The Amazon Resource Name (ARN) used to index AWS Glue table partitions that are generated by the ingestion and normalization of AWS log sources and custom sources.
     */
    public val metaStoreManagerRoleArn: Output?
        get() = javaResource.metaStoreManagerRoleArn().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * Provides replication details of Amazon Security Lake object.
     */
    public val replicationConfiguration: Output?
        get() = javaResource.replicationConfiguration().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> dataLakeReplicationConfigurationToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * The ARN for the Amazon Security Lake Amazon S3 bucket.
     */
    public val s3BucketArn: Output
        get() = javaResource.s3BucketArn().applyValue({ args0 -> args0 })

    /**
     * An array of objects, one for each tag to associate with the data lake configuration. For each tag, you must specify both a tag key and a tag value. A tag value cannot be null, but it can be an empty string.
     */
    public val tags: Output>?
        get() = javaResource.tags().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 -> tagToKotlin(args0) })
                })
            }).orElse(null)
        })
}

public object DataLakeMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.awsnative.securitylake.DataLake::class == javaResource::class

    override fun map(javaResource: Resource): DataLake = DataLake(
        javaResource as
            com.pulumi.awsnative.securitylake.DataLake,
    )
}

/**
 * @see [DataLake].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [DataLake].
 */
public suspend fun dataLake(name: String, block: suspend DataLakeResourceBuilder.() -> Unit): DataLake {
    val builder = DataLakeResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [DataLake].
 * @param name The _unique_ name of the resulting resource.
 */
public fun dataLake(name: String): DataLake {
    val builder = DataLakeResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy