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

com.pulumi.awsnative.quicksight.kotlin.DataSet.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.quicksight.kotlin

import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.quicksight.kotlin.enums.DataSetImportMode
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetColumnGroup
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetColumnLevelPermissionRule
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetDatasetParameter
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetFieldFolder
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetIngestionWaitPolicy
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetLogicalTable
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetOutputColumn
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetPhysicalTable
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetRefreshProperties
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetResourcePermission
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetRowLevelPermissionDataSet
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetRowLevelPermissionTagConfiguration
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetUsageConfiguration
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.Double
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
import com.pulumi.awsnative.quicksight.kotlin.enums.DataSetImportMode.Companion.toKotlin as dataSetImportModeToKotlin
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetColumnGroup.Companion.toKotlin as dataSetColumnGroupToKotlin
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetColumnLevelPermissionRule.Companion.toKotlin as dataSetColumnLevelPermissionRuleToKotlin
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetDatasetParameter.Companion.toKotlin as dataSetDatasetParameterToKotlin
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetFieldFolder.Companion.toKotlin as dataSetFieldFolderToKotlin
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetIngestionWaitPolicy.Companion.toKotlin as dataSetIngestionWaitPolicyToKotlin
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetLogicalTable.Companion.toKotlin as dataSetLogicalTableToKotlin
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetOutputColumn.Companion.toKotlin as dataSetOutputColumnToKotlin
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetPhysicalTable.Companion.toKotlin as dataSetPhysicalTableToKotlin
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetRefreshProperties.Companion.toKotlin as dataSetRefreshPropertiesToKotlin
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetResourcePermission.Companion.toKotlin as dataSetResourcePermissionToKotlin
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetRowLevelPermissionDataSet.Companion.toKotlin as dataSetRowLevelPermissionDataSetToKotlin
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetRowLevelPermissionTagConfiguration.Companion.toKotlin as dataSetRowLevelPermissionTagConfigurationToKotlin
import com.pulumi.awsnative.quicksight.kotlin.outputs.DataSetUsageConfiguration.Companion.toKotlin as dataSetUsageConfigurationToKotlin

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

    public var args: DataSetArgs = DataSetArgs()

    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 DataSetArgsBuilder.() -> Unit) {
        val builder = DataSetArgsBuilder()
        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(): DataSet {
        val builtJavaResource = com.pulumi.awsnative.quicksight.DataSet(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return DataSet(builtJavaResource)
    }
}

/**
 * Definition of the AWS::QuickSight::DataSet Resource Type.
 */
public class DataSet internal constructor(
    override val javaResource: com.pulumi.awsnative.quicksight.DataSet,
) : KotlinCustomResource(javaResource, DataSetMapper) {
    /**
     * 

The Amazon Resource Name (ARN) of the resource.

*/ public val arn: Output get() = javaResource.arn().applyValue({ args0 -> args0 }) /** * The AWS account ID. */ public val awsAccountId: Output? get() = javaResource.awsAccountId().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) }) /** *

Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial hierarchy is supported.

*/ public val columnGroups: Output>? get() = javaResource.columnGroups().applyValue({ args0 -> args0.map({ args0 -> args0.map({ args0 -> args0.let({ args0 -> dataSetColumnGroupToKotlin(args0) }) }) }).orElse(null) }) /** *

A set of one or more definitions of a * ColumnLevelPermissionRule * .

*/ public val columnLevelPermissionRules: Output>? get() = javaResource.columnLevelPermissionRules().applyValue({ args0 -> args0.map({ args0 -> args0.map({ args0 -> args0.let({ args0 -> dataSetColumnLevelPermissionRuleToKotlin(args0) }) }) }).orElse(null) }) /** *

The amount of SPICE capacity used by this dataset. This is 0 if the dataset isn't * imported into SPICE.

*/ public val consumedSpiceCapacityInBytes: Output get() = javaResource.consumedSpiceCapacityInBytes().applyValue({ args0 -> args0 }) /** *

The time that this dataset was created.

*/ public val createdTime: Output get() = javaResource.createdTime().applyValue({ args0 -> args0 }) /** * An ID for the dataset that you want to create. This ID is unique per AWS Region for each AWS account. */ public val dataSetId: Output? get() = javaResource.dataSetId().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) }) /** * The refresh properties of a dataset. */ public val dataSetRefreshProperties: Output? get() = javaResource.dataSetRefreshProperties().applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> dataSetRefreshPropertiesToKotlin(args0) }) }).orElse(null) }) /** * The usage configuration to apply to child datasets that reference this dataset as a source. */ public val dataSetUsageConfiguration: Output? get() = javaResource.dataSetUsageConfiguration().applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> dataSetUsageConfigurationToKotlin(args0) }) }).orElse(null) }) /** *

The parameter declarations of the dataset.

*/ public val datasetParameters: Output>? get() = javaResource.datasetParameters().applyValue({ args0 -> args0.map({ args0 -> args0.map({ args0 -> args0.let({ args0 -> dataSetDatasetParameterToKotlin(args0) }) }) }).orElse(null) }) /** * The folder that contains fields and nested subfolders for your dataset. */ public val fieldFolders: Output>? get() = javaResource.fieldFolders().applyValue({ args0 -> args0.map({ args0 -> args0.map({ args0 -> args0.key.to( args0.value.let({ args0 -> dataSetFieldFolderToKotlin(args0) }), ) }).toMap() }).orElse(null) }) /** * Indicates whether you want to import the data into SPICE. */ public val importMode: Output? get() = javaResource.importMode().applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> dataSetImportModeToKotlin(args0) }) }).orElse(null) }) /** * The wait policy to use when creating or updating a Dataset. The default is to wait for SPICE ingestion to finish with timeout of 36 hours. */ public val ingestionWaitPolicy: Output? get() = javaResource.ingestionWaitPolicy().applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> dataSetIngestionWaitPolicyToKotlin(args0) }) }).orElse(null) }) /** *

The last time that this dataset was updated.

*/ public val lastUpdatedTime: Output get() = javaResource.lastUpdatedTime().applyValue({ args0 -> args0 }) /** * Configures the combination and transformation of the data from the physical tables. */ public val logicalTableMap: Output>? get() = javaResource.logicalTableMap().applyValue({ args0 -> args0.map({ args0 -> args0.map({ args0 -> args0.key.to( args0.value.let({ args0 -> dataSetLogicalTableToKotlin(args0) }), ) }).toMap() }).orElse(null) }) /** *

The display name for the dataset.

*/ public val name: Output? get() = javaResource.name().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) }) /** *

The list of columns after all transforms. These columns are available in templates, * analyses, and dashboards.

*/ public val outputColumns: Output> get() = javaResource.outputColumns().applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> dataSetOutputColumnToKotlin(args0) }) }) }) /** *

A list of resource permissions on the dataset.

*/ public val permissions: Output>? get() = javaResource.permissions().applyValue({ args0 -> args0.map({ args0 -> args0.map({ args0 -> args0.let({ args0 -> dataSetResourcePermissionToKotlin(args0) }) }) }).orElse(null) }) /** * Declares the physical tables that are available in the underlying data sources. */ public val physicalTableMap: Output>? get() = javaResource.physicalTableMap().applyValue({ args0 -> args0.map({ args0 -> args0.map({ args0 -> args0.key.to( args0.value.let({ args0 -> dataSetPhysicalTableToKotlin(args0) }), ) }).toMap() }).orElse(null) }) /** * The row-level security configuration for the data that you want to create. */ public val rowLevelPermissionDataSet: Output? get() = javaResource.rowLevelPermissionDataSet().applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> dataSetRowLevelPermissionDataSetToKotlin(args0) }) }).orElse(null) }) /** * The element you can use to define tags for row-level security. */ public val rowLevelPermissionTagConfiguration: Output? get() = javaResource.rowLevelPermissionTagConfiguration().applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> dataSetRowLevelPermissionTagConfigurationToKotlin(args0) }) }).orElse(null) }) /** *

Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset.

*/ public val tags: Output>? get() = javaResource.tags().applyValue({ args0 -> args0.map({ args0 -> args0.map({ args0 -> args0.let({ args0 -> tagToKotlin(args0) }) }) }).orElse(null) }) } public object DataSetMapper : ResourceMapper { override fun supportsMappingOfType(javaResource: Resource): Boolean = com.pulumi.awsnative.quicksight.DataSet::class == javaResource::class override fun map(javaResource: Resource): DataSet = DataSet( javaResource as com.pulumi.awsnative.quicksight.DataSet, ) } /** * @see [DataSet]. * @param name The _unique_ name of the resulting resource. * @param block Builder for [DataSet]. */ public suspend fun dataSet(name: String, block: suspend DataSetResourceBuilder.() -> Unit): DataSet { val builder = DataSetResourceBuilder() builder.name(name) block(builder) return builder.build() } /** * @see [DataSet]. * @param name The _unique_ name of the resulting resource. */ public fun dataSet(name: String): DataSet { val builder = DataSetResourceBuilder() builder.name(name) return builder.build() }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy