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

The Amazon Resource Name (ARN) for the folder.

aws_account_idstring
created_timestring

The time that the folder was created.

folder_idstring
folder_typestring
last_updated_timestring

The time that the folder was last updated.

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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.quicksight.folders
WHERE
Identifier = '{{ aws_account_id }}|{{ folder_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

quicksight:DescribeFolder,
quicksight:DescribeFolderPermissions,
quicksight:ListTagsForResource