com.pulumi.aws.quicksight.kotlin.FolderArgs.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.FolderArgs.builder
import com.pulumi.aws.quicksight.kotlin.inputs.FolderPermissionArgs
import com.pulumi.aws.quicksight.kotlin.inputs.FolderPermissionArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Resource for managing a QuickSight Folder.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.quicksight.Folder("example", {
* folderId: "example-id",
* name: "example-name",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.quicksight.Folder("example",
* folder_id="example-id",
* name="example-name")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.Quicksight.Folder("example", new()
* {
* FolderId = "example-id",
* Name = "example-name",
* });
* });
* ```
* ```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.NewFolder(ctx, "example", &quicksight.FolderArgs{
* FolderId: pulumi.String("example-id"),
* Name: pulumi.String("example-name"),
* })
* 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.Folder;
* import com.pulumi.aws.quicksight.FolderArgs;
* 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 Folder("example", FolderArgs.builder()
* .folderId("example-id")
* .name("example-name")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:quicksight:Folder
* properties:
* folderId: example-id
* name: example-name
* ```
*
* ### With Permissions
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.quicksight.Folder("example", {
* folderId: "example-id",
* name: "example-name",
* permissions: [{
* actions: [
* "quicksight:CreateFolder",
* "quicksight:DescribeFolder",
* "quicksight:UpdateFolder",
* "quicksight:DeleteFolder",
* "quicksight:CreateFolderMembership",
* "quicksight:DeleteFolderMembership",
* "quicksight:DescribeFolderPermissions",
* "quicksight:UpdateFolderPermissions",
* ],
* principal: exampleAwsQuicksightUser.arn,
* }],
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.quicksight.Folder("example",
* folder_id="example-id",
* name="example-name",
* permissions=[{
* "actions": [
* "quicksight:CreateFolder",
* "quicksight:DescribeFolder",
* "quicksight:UpdateFolder",
* "quicksight:DeleteFolder",
* "quicksight:CreateFolderMembership",
* "quicksight:DeleteFolderMembership",
* "quicksight:DescribeFolderPermissions",
* "quicksight:UpdateFolderPermissions",
* ],
* "principal": example_aws_quicksight_user["arn"],
* }])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.Quicksight.Folder("example", new()
* {
* FolderId = "example-id",
* Name = "example-name",
* Permissions = new[]
* {
* new Aws.Quicksight.Inputs.FolderPermissionArgs
* {
* Actions = new[]
* {
* "quicksight:CreateFolder",
* "quicksight:DescribeFolder",
* "quicksight:UpdateFolder",
* "quicksight:DeleteFolder",
* "quicksight:CreateFolderMembership",
* "quicksight:DeleteFolderMembership",
* "quicksight:DescribeFolderPermissions",
* "quicksight:UpdateFolderPermissions",
* },
* Principal = exampleAwsQuicksightUser.Arn,
* },
* },
* });
* });
* ```
* ```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.NewFolder(ctx, "example", &quicksight.FolderArgs{
* FolderId: pulumi.String("example-id"),
* Name: pulumi.String("example-name"),
* Permissions: quicksight.FolderPermissionArray{
* &quicksight.FolderPermissionArgs{
* Actions: pulumi.StringArray{
* pulumi.String("quicksight:CreateFolder"),
* pulumi.String("quicksight:DescribeFolder"),
* pulumi.String("quicksight:UpdateFolder"),
* pulumi.String("quicksight:DeleteFolder"),
* pulumi.String("quicksight:CreateFolderMembership"),
* pulumi.String("quicksight:DeleteFolderMembership"),
* pulumi.String("quicksight:DescribeFolderPermissions"),
* pulumi.String("quicksight:UpdateFolderPermissions"),
* },
* Principal: pulumi.Any(exampleAwsQuicksightUser.Arn),
* },
* },
* })
* 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.Folder;
* import com.pulumi.aws.quicksight.FolderArgs;
* import com.pulumi.aws.quicksight.inputs.FolderPermissionArgs;
* 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 Folder("example", FolderArgs.builder()
* .folderId("example-id")
* .name("example-name")
* .permissions(FolderPermissionArgs.builder()
* .actions(
* "quicksight:CreateFolder",
* "quicksight:DescribeFolder",
* "quicksight:UpdateFolder",
* "quicksight:DeleteFolder",
* "quicksight:CreateFolderMembership",
* "quicksight:DeleteFolderMembership",
* "quicksight:DescribeFolderPermissions",
* "quicksight:UpdateFolderPermissions")
* .principal(exampleAwsQuicksightUser.arn())
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:quicksight:Folder
* properties:
* folderId: example-id
* name: example-name
* permissions:
* - actions:
* - quicksight:CreateFolder
* - quicksight:DescribeFolder
* - quicksight:UpdateFolder
* - quicksight:DeleteFolder
* - quicksight:CreateFolderMembership
* - quicksight:DeleteFolderMembership
* - quicksight:DescribeFolderPermissions
* - quicksight:UpdateFolderPermissions
* principal: ${exampleAwsQuicksightUser.arn}
* ```
*
* ### With Parent Folder
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const parent = new aws.quicksight.Folder("parent", {
* folderId: "parent-id",
* name: "parent-name",
* });
* const example = new aws.quicksight.Folder("example", {
* folderId: "example-id",
* name: "example-name",
* parentFolderArn: parent.arn,
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* parent = aws.quicksight.Folder("parent",
* folder_id="parent-id",
* name="parent-name")
* example = aws.quicksight.Folder("example",
* folder_id="example-id",
* name="example-name",
* parent_folder_arn=parent.arn)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var parent = new Aws.Quicksight.Folder("parent", new()
* {
* FolderId = "parent-id",
* Name = "parent-name",
* });
* var example = new Aws.Quicksight.Folder("example", new()
* {
* FolderId = "example-id",
* Name = "example-name",
* ParentFolderArn = parent.Arn,
* });
* });
* ```
* ```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 {
* parent, err := quicksight.NewFolder(ctx, "parent", &quicksight.FolderArgs{
* FolderId: pulumi.String("parent-id"),
* Name: pulumi.String("parent-name"),
* })
* if err != nil {
* return err
* }
* _, err = quicksight.NewFolder(ctx, "example", &quicksight.FolderArgs{
* FolderId: pulumi.String("example-id"),
* Name: pulumi.String("example-name"),
* ParentFolderArn: parent.Arn,
* })
* 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.Folder;
* import com.pulumi.aws.quicksight.FolderArgs;
* 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 parent = new Folder("parent", FolderArgs.builder()
* .folderId("parent-id")
* .name("parent-name")
* .build());
* var example = new Folder("example", FolderArgs.builder()
* .folderId("example-id")
* .name("example-name")
* .parentFolderArn(parent.arn())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* parent:
* type: aws:quicksight:Folder
* properties:
* folderId: parent-id
* name: parent-name
* example:
* type: aws:quicksight:Folder
* properties:
* folderId: example-id
* name: example-name
* parentFolderArn: ${parent.arn}
* ```
*
* ## Import
* Using `pulumi import`, import a QuickSight folder using the AWS account ID and folder ID name separated by a comma (`,`). For example:
* ```sh
* $ pulumi import aws:quicksight/folder:Folder example 123456789012,example-id
* ```
* @property awsAccountId AWS account ID.
* @property folderId Identifier for the folder.
* @property folderType The type of folder. By default, it is `SHARED`. Valid values are: `SHARED`.
* @property name Display name for the folder.
* The following arguments are optional:
* @property parentFolderArn The Amazon Resource Name (ARN) for the parent folder. If not set, creates a root-level folder.
* @property permissions A set of resource permissions on the folder. Maximum of 64 items. See permissions.
* @property tags Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*/
public data class FolderArgs(
public val awsAccountId: Output? = null,
public val folderId: Output? = null,
public val folderType: Output? = null,
public val name: Output? = null,
public val parentFolderArn: Output? = null,
public val permissions: Output>? = null,
public val tags: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy