Skip to content
v2.278.0

CfnFolderProps ​

Struct External

Properties for defining a CfnFolder.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const cfnFolderProps: quicksight.CfnFolderProps = {
  awsAccountId: 'awsAccountId',
  folderId: 'folderId',
  folderType: 'folderType',
  name: 'name',
  parentFolderArn: 'parentFolderArn',
  permissions: [{
    actions: ['actions'],
    principal: 'principal',
  }],
  sharingModel: 'sharingModel',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_quicksight as quicksight

cfn_folder_props = quicksight.CfnFolderProps(
    aws_account_id="awsAccountId",
    folder_id="folderId",
    folder_type="folderType",
    name="name",
    parent_folder_arn="parentFolderArn",
    permissions=[quicksight.CfnFolder.ResourcePermissionProperty(
        actions=["actions"],
        principal="principal"
    )],
    sharing_model="sharingModel",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.quicksight.*;

CfnFolderProps cfnFolderProps = CfnFolderProps.builder()
        .awsAccountId("awsAccountId")
        .folderId("folderId")
        .folderType("folderType")
        .name("name")
        .parentFolderArn("parentFolderArn")
        .permissions(List.of(ResourcePermissionProperty.builder()
                .actions(List.of("actions"))
                .principal("principal")
                .build()))
        .sharingModel("sharingModel")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.QuickSight;

var cfnFolderProps = new CfnFolderProps {
    AwsAccountId = "awsAccountId",
    FolderId = "folderId",
    FolderType = "folderType",
    Name = "name",
    ParentFolderArn = "parentFolderArn",
    Permissions = new [] { new ResourcePermissionProperty {
        Actions = new [] { "actions" },
        Principal = "principal"
    } },
    SharingModel = "sharingModel",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnFolderProps := &CfnFolderProps{
	AwsAccountId: jsii.String("awsAccountId"),
	FolderId: jsii.String("folderId"),
	FolderType: jsii.String("folderType"),
	Name: jsii.String("name"),
	ParentFolderArn: jsii.String("parentFolderArn"),
	Permissions: []interface{}{
		&ResourcePermissionProperty{
			Actions: []*string{
				jsii.String("actions"),
			},
			Principal: jsii.String("principal"),
		},
	},
	SharingModel: jsii.String("sharingModel"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

awsAccountIdoptionalstringaws_account_idoptionalstrawsAccountIdoptionalStringAwsAccountIdoptionalstringAwsAccountIdoptional*string #
The ID for the AWS account where you want to create the folder.
folderIdoptionalstringfolder_idoptionalstrfolderIdoptionalStringFolderIdoptionalstringFolderIdoptional*string #
The ID of the folder.
folderTypeoptionalstringfolder_typeoptionalstrfolderTypeoptionalStringFolderTypeoptionalstringFolderTypeoptional*string #
The type of folder it is.
nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string #
A display name for the folder.
parentFolderArnoptionalstringparent_folder_arnoptionalstrparentFolderArnoptionalStringParentFolderArnoptionalstringParentFolderArnoptional*string #
The Amazon Resource Name (ARN) for the folder.
permissionsoptionalIResolvable | IResolvable | CfnFolder.ResourcePermissionProperty[]permissionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ResourcePermissionProperty]]]permissionsoptionalIResolvablePermissionsoptionalIResolvablePermissionsoptionalinterface{} #
A structure that describes the principals and the resource-level permissions of a folder.

To specify no permissions, omit Permissions .

sharingModeloptionalstringsharing_modeloptionalstrsharingModeloptionalStringSharingModeloptionalstringSharingModeloptional*string #
The sharing scope of the folder.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A list of tags for the folders that you want to apply overrides to.