com.pulumi.awsnative.lakeformation.kotlin.inputs.PrincipalPermissionsDataLocationResourceArgs.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.lakeformation.kotlin.inputs
import com.pulumi.awsnative.lakeformation.inputs.PrincipalPermissionsDataLocationResourceArgs.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
/**
* A structure for a data location object where permissions are granted or revoked.
* @property catalogId The identifier for the GLUDC where the location is registered with LFlong.
* @property resourceArn The Amazon Resource Name (ARN) that uniquely identifies the data location resource.
*/
public data class PrincipalPermissionsDataLocationResourceArgs(
public val catalogId: Output,
public val resourceArn: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lakeformation.inputs.PrincipalPermissionsDataLocationResourceArgs =
com.pulumi.awsnative.lakeformation.inputs.PrincipalPermissionsDataLocationResourceArgs.builder()
.catalogId(catalogId.applyValue({ args0 -> args0 }))
.resourceArn(resourceArn.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PrincipalPermissionsDataLocationResourceArgs].
*/
@PulumiTagMarker
public class PrincipalPermissionsDataLocationResourceArgsBuilder internal constructor() {
private var catalogId: Output? = null
private var resourceArn: Output? = null
/**
* @param value The identifier for the GLUDC where the location is registered with LFlong.
*/
@JvmName("lhjpdcfbqfwrhsev")
public suspend fun catalogId(`value`: Output) {
this.catalogId = value
}
/**
* @param value The Amazon Resource Name (ARN) that uniquely identifies the data location resource.
*/
@JvmName("afixdlewcrmgdnfc")
public suspend fun resourceArn(`value`: Output) {
this.resourceArn = value
}
/**
* @param value The identifier for the GLUDC where the location is registered with LFlong.
*/
@JvmName("wforppbpwlwcxyas")
public suspend fun catalogId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.catalogId = mapped
}
/**
* @param value The Amazon Resource Name (ARN) that uniquely identifies the data location resource.
*/
@JvmName("qhuxwjnqeoqiiuky")
public suspend fun resourceArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.resourceArn = mapped
}
internal fun build(): PrincipalPermissionsDataLocationResourceArgs =
PrincipalPermissionsDataLocationResourceArgs(
catalogId = catalogId ?: throw PulumiNullFieldException("catalogId"),
resourceArn = resourceArn ?: throw PulumiNullFieldException("resourceArn"),
)
}