com.pulumi.aws.quicksight.kotlin.FolderMembershipArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.quicksight.kotlin
import com.pulumi.aws.quicksight.FolderMembershipArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Resource for managing an AWS QuickSight Folder Membership.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.quicksight.FolderMembership("example", {
* folderId: exampleAwsQuicksightFolder.folderId,
* memberType: "DATASET",
* memberId: exampleAwsQuicksightDataSet.dataSetId,
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.quicksight.FolderMembership("example",
* folder_id=example_aws_quicksight_folder["folderId"],
* member_type="DATASET",
* member_id=example_aws_quicksight_data_set["dataSetId"])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.Quicksight.FolderMembership("example", new()
* {
* FolderId = exampleAwsQuicksightFolder.FolderId,
* MemberType = "DATASET",
* MemberId = exampleAwsQuicksightDataSet.DataSetId,
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/quicksight"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := quicksight.NewFolderMembership(ctx, "example", &quicksight.FolderMembershipArgs{
* FolderId: pulumi.Any(exampleAwsQuicksightFolder.FolderId),
* MemberType: pulumi.String("DATASET"),
* MemberId: pulumi.Any(exampleAwsQuicksightDataSet.DataSetId),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.quicksight.FolderMembership;
* import com.pulumi.aws.quicksight.FolderMembershipArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var example = new FolderMembership("example", FolderMembershipArgs.builder()
* .folderId(exampleAwsQuicksightFolder.folderId())
* .memberType("DATASET")
* .memberId(exampleAwsQuicksightDataSet.dataSetId())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:quicksight:FolderMembership
* properties:
* folderId: ${exampleAwsQuicksightFolder.folderId}
* memberType: DATASET
* memberId: ${exampleAwsQuicksightDataSet.dataSetId}
* ```
*
* ## Import
* Using `pulumi import`, import QuickSight Folder Membership using the AWS account ID, folder ID, member type, and member ID separated by commas (`,`). For example:
* ```sh
* $ pulumi import aws:quicksight/folderMembership:FolderMembership example 123456789012,example-folder,DATASET,example-dataset
* ```
* @property awsAccountId AWS account ID.
* @property folderId Identifier for the folder.
* @property memberId ID of the asset (the dashboard, analysis, or dataset).
* @property memberType Type of the member. Valid values are `ANALYSIS`, `DASHBOARD`, and `DATASET`.
* The following arguments are optional:
*/
public data class FolderMembershipArgs(
public val awsAccountId: Output? = null,
public val folderId: Output? = null,
public val memberId: Output? = null,
public val memberType: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.quicksight.FolderMembershipArgs =
com.pulumi.aws.quicksight.FolderMembershipArgs.builder()
.awsAccountId(awsAccountId?.applyValue({ args0 -> args0 }))
.folderId(folderId?.applyValue({ args0 -> args0 }))
.memberId(memberId?.applyValue({ args0 -> args0 }))
.memberType(memberType?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FolderMembershipArgs].
*/
@PulumiTagMarker
public class FolderMembershipArgsBuilder internal constructor() {
private var awsAccountId: Output? = null
private var folderId: Output? = null
private var memberId: Output? = null
private var memberType: Output? = null
/**
* @param value AWS account ID.
*/
@JvmName("wnjqwempfekwjrcc")
public suspend fun awsAccountId(`value`: Output) {
this.awsAccountId = value
}
/**
* @param value Identifier for the folder.
*/
@JvmName("cwdhexbtuiuttjhp")
public suspend fun folderId(`value`: Output) {
this.folderId = value
}
/**
* @param value ID of the asset (the dashboard, analysis, or dataset).
*/
@JvmName("ochjbhlycsekdgdj")
public suspend fun memberId(`value`: Output) {
this.memberId = value
}
/**
* @param value Type of the member. Valid values are `ANALYSIS`, `DASHBOARD`, and `DATASET`.
* The following arguments are optional:
*/
@JvmName("arrakfhreonbgtpf")
public suspend fun memberType(`value`: Output) {
this.memberType = value
}
/**
* @param value AWS account ID.
*/
@JvmName("xpepglcupegpjqov")
public suspend fun awsAccountId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.awsAccountId = mapped
}
/**
* @param value Identifier for the folder.
*/
@JvmName("xguscxrljmnatfwd")
public suspend fun folderId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.folderId = mapped
}
/**
* @param value ID of the asset (the dashboard, analysis, or dataset).
*/
@JvmName("viqmagsfvsvielvn")
public suspend fun memberId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.memberId = mapped
}
/**
* @param value Type of the member. Valid values are `ANALYSIS`, `DASHBOARD`, and `DATASET`.
* The following arguments are optional:
*/
@JvmName("nehrnuomgrwsndvs")
public suspend fun memberType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.memberType = mapped
}
internal fun build(): FolderMembershipArgs = FolderMembershipArgs(
awsAccountId = awsAccountId,
folderId = folderId,
memberId = memberId,
memberType = memberType,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy