FolderMembershipArgs

data class FolderMembershipArgs(val awsAccountId: Output<String>? = null, val folderId: Output<String>? = null, val memberId: Output<String>? = null, val memberType: Output<String>? = null) : ConvertibleToJava<FolderMembershipArgs>

Resource for managing an AWS QuickSight Folder Membership.

Example Usage

Basic Usage

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,
});
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"])
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,
});
});
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
})
}
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());
}
}
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:

$ pulumi import aws:quicksight/folderMembership:FolderMembership example 123456789012,example-folder,DATASET,example-dataset

Constructors

Link copied to clipboard
constructor(awsAccountId: Output<String>? = null, folderId: Output<String>? = null, memberId: Output<String>? = null, memberType: Output<String>? = null)

Properties

Link copied to clipboard
val awsAccountId: Output<String>? = null

AWS account ID.

Link copied to clipboard
val folderId: Output<String>? = null

Identifier for the folder.

Link copied to clipboard
val memberId: Output<String>? = null

ID of the asset (the dashboard, analysis, or dataset).

Link copied to clipboard
val memberType: Output<String>? = null

Type of the member. Valid values are ANALYSIS, DASHBOARD, and DATASET. The following arguments are optional:

Functions

Link copied to clipboard
open override fun toJava(): FolderMembershipArgs