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

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

import com.pulumi.awsnative.quicksight.inputs.TemplateResourcePermissionArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 * 

Permission for the resource.

* @property actions

The IAM action to grant or revoke permissions on.

* @property principal

The Amazon Resource Name (ARN) of the principal. This can be one of the * following:

*
    *
  • *

    The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.)

    *
  • *
  • *

    The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)

    *
  • *
  • *

    The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight * ARN. Use this option only to share resources (templates) across Amazon Web Services accounts. * (This is less common.)

    *
  • *
*/ public data class TemplateResourcePermissionArgs( public val actions: Output>, public val principal: Output, ) : ConvertibleToJava { override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateResourcePermissionArgs = com.pulumi.awsnative.quicksight.inputs.TemplateResourcePermissionArgs.builder() .actions(actions.applyValue({ args0 -> args0.map({ args0 -> args0 }) })) .principal(principal.applyValue({ args0 -> args0 })).build() } /** * Builder for [TemplateResourcePermissionArgs]. */ @PulumiTagMarker public class TemplateResourcePermissionArgsBuilder internal constructor() { private var actions: Output>? = null private var principal: Output? = null /** * @param value

The IAM action to grant or revoke permissions on.

*/ @JvmName("fufxfnfyvjbdynjh") public suspend fun actions(`value`: Output>) { this.actions = value } @JvmName("xveicatyvbbkvpwa") public suspend fun actions(vararg values: Output) { this.actions = Output.all(values.asList()) } /** * @param values

The IAM action to grant or revoke permissions on.

*/ @JvmName("kuemxvtisdpdhxcl") public suspend fun actions(values: List>) { this.actions = Output.all(values) } /** * @param value

The Amazon Resource Name (ARN) of the principal. This can be one of the * following:

*
    *
  • *

    The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.)

    *
  • *
  • *

    The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)

    *
  • *
  • *

    The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight * ARN. Use this option only to share resources (templates) across Amazon Web Services accounts. * (This is less common.)

    *
  • *
*/ @JvmName("nmrnwdlywefylyhn") public suspend fun principal(`value`: Output) { this.principal = value } /** * @param value

The IAM action to grant or revoke permissions on.

*/ @JvmName("gowigyxmhdprydqn") public suspend fun actions(`value`: List) { val toBeMapped = value val mapped = toBeMapped.let({ args0 -> of(args0) }) this.actions = mapped } /** * @param values

The IAM action to grant or revoke permissions on.

*/ @JvmName("vwdagptnlqncusfk") public suspend fun actions(vararg values: String) { val toBeMapped = values.toList() val mapped = toBeMapped.let({ args0 -> of(args0) }) this.actions = mapped } /** * @param value

The Amazon Resource Name (ARN) of the principal. This can be one of the * following:

*
    *
  • *

    The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.)

    *
  • *
  • *

    The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)

    *
  • *
  • *

    The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight * ARN. Use this option only to share resources (templates) across Amazon Web Services accounts. * (This is less common.)

    *
  • *
*/ @JvmName("aphwnkeatpwojayg") public suspend fun principal(`value`: String) { val toBeMapped = value val mapped = toBeMapped.let({ args0 -> of(args0) }) this.principal = mapped } internal fun build(): TemplateResourcePermissionArgs = TemplateResourcePermissionArgs( actions = actions ?: throw PulumiNullFieldException("actions"), principal = principal ?: throw PulumiNullFieldException("principal"), ) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy