Skip to main content

folders

Creates, updates, deletes or gets a folder resource or lists folders in a region

Overview

Namefolders
TypeResource
DescriptionDefinition of the AWS::QuickSight::Folder Resource Type.
Idawscc.quicksight.folders

Fields

NameDatatypeDescription
arnstring<p>The Amazon Resource Name (ARN) for the folder.</p>
aws_account_idstring
created_timestring<p>The time that the folder was created.</p>
folder_idstring
folder_typestring
last_updated_timestring<p>The time that the folder was last updated.</p>
namestring
parent_folder_arnstring
permissionsarray
sharing_modelstring
tagsarray
regionstringAWS region.

For more information, see AWS::QuickSight::Folder.

Methods

NameResourceAccessible byRequired Params
create_resourcefoldersINSERTregion
delete_resourcefoldersDELETEIdentifier, region
update_resourcefoldersUPDATEIdentifier, PatchDocument, region
list_resourcesfolders_list_onlySELECTregion
get_resourcefoldersSELECTIdentifier, region

SELECT examples

Gets all properties from an individual folder.

SELECT
region,
arn,
aws_account_id,
created_time,
folder_id,
folder_type,
last_updated_time,
name,
parent_folder_arn,
permissions,
sharing_model,
tags
FROM awscc.quicksight.folders
WHERE
region = 'us-east-1' AND
Identifier = '{{ aws_account_id }}|{{ folder_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new folder resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.quicksight.folders (
AwsAccountId,
FolderId,
FolderType,
Name,
ParentFolderArn,
Permissions,
SharingModel,
Tags,
region
)
SELECT
'{{ aws_account_id }}',
'{{ folder_id }}',
'{{ folder_type }}',
'{{ name }}',
'{{ parent_folder_arn }}',
'{{ permissions }}',
'{{ sharing_model }}',
'{{ tags }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a folder resource, using stack-deploy.

/*+ update */
UPDATE awscc.quicksight.folders
SET PatchDocument = string('{{ {
"Name": name,
"Permissions": permissions,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ aws_account_id }}|{{ folder_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.quicksight.folders
WHERE
Identifier = '{{ aws_account_id }}|{{ folder_id }}' AND
region = 'us-east-1';

Permissions

To operate on the folders resource, the following permissions are required:

quicksight:DescribeFolder,
quicksight:DescribeFolderPermissions,
quicksight:ListTagsForResource