com.pulumi.awsnative.quicksight.kotlin.DataSet.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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