Skip to main content

data_sets

Creates, updates, deletes or gets a data_set resource or lists data_sets in a region

Overview

Namedata_sets
TypeResource
DescriptionDefinition of the AWS::QuickSight::DataSet Resource Type.
Idawscc.quicksight.data_sets

Fields

NameDatatypeDescription
created_timestring

The time that this dataset was created.

folder_arnsarray

When you create the dataset, Amazon QuickSight adds the dataset to these folders.

consumed_spice_capacity_in_bytesnumber

The amount of SPICE capacity used by this dataset. This is 0 if the dataset isn't

imported into SPICE.

row_level_permission_data_setobject

Information about a dataset that contains permissions for row-level security (RLS).

The permissions dataset maps fields to users or groups. For more information, see
Using Row-Level Security (RLS) to Restrict Access to a Dataset in the Amazon QuickSight User
Guide
.


The option to deny permissions by setting PermissionPolicy to DENY_ACCESS is
not supported for new RLS datasets.

ingestion_wait_policyobject

Wait policy to use when creating/updating dataset. Default is to wait for SPICE ingestion to finish with timeout of 36 hours.

column_level_permission_rulesarray

A set of one or more definitions of a

ColumnLevelPermissionRule
.

namestring

The display name for the dataset.

permissionsarray

A list of resource permissions on the dataset.

use_asstring
tagsarray

Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset.

physical_table_mapobject
field_foldersobject
last_updated_timestring

The last time that this dataset was updated.

data_set_idstring
performance_configurationobject
data_set_refresh_propertiesobject

The refresh properties of a dataset.

row_level_permission_tag_configurationobject

The configuration of tags on a dataset to set row-level security.

column_groupsarray

Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial hierarchy is supported.

import_modestring
dataset_parametersarray

The parameter declarations of the dataset.

logical_table_mapobject
aws_account_idstring
data_set_usage_configurationobject

The usage configuration to apply to child datasets that reference this dataset as a source.

output_columnsarray

The list of columns after all transforms. These columns are available in templates,

analyses, and dashboards.

arnstring

The Amazon Resource Name (ARN) of the resource.

regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcedata_setsINSERTregion
delete_resourcedata_setsDELETEIdentifier, region
update_resourcedata_setsUPDATEIdentifier, PatchDocument, region
list_resourcesdata_sets_list_onlySELECTregion
get_resourcedata_setsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual data_set.

SELECT
region,
created_time,
folder_arns,
consumed_spice_capacity_in_bytes,
row_level_permission_data_set,
ingestion_wait_policy,
column_level_permission_rules,
name,
permissions,
use_as,
tags,
physical_table_map,
field_folders,
last_updated_time,
data_set_id,
performance_configuration,
data_set_refresh_properties,
row_level_permission_tag_configuration,
column_groups,
import_mode,
dataset_parameters,
logical_table_map,
aws_account_id,
data_set_usage_configuration,
output_columns,
arn
FROM awscc.quicksight.data_sets
WHERE
region = '{{ region }}' AND
Identifier = '{{ aws_account_id }}|{{ data_set_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.quicksight.data_sets (
FolderArns,
RowLevelPermissionDataSet,
IngestionWaitPolicy,
ColumnLevelPermissionRules,
Name,
Permissions,
UseAs,
Tags,
PhysicalTableMap,
FieldFolders,
DataSetId,
PerformanceConfiguration,
DataSetRefreshProperties,
RowLevelPermissionTagConfiguration,
ColumnGroups,
ImportMode,
DatasetParameters,
LogicalTableMap,
AwsAccountId,
DataSetUsageConfiguration,
region
)
SELECT
'{{ folder_arns }}',
'{{ row_level_permission_data_set }}',
'{{ ingestion_wait_policy }}',
'{{ column_level_permission_rules }}',
'{{ name }}',
'{{ permissions }}',
'{{ use_as }}',
'{{ tags }}',
'{{ physical_table_map }}',
'{{ field_folders }}',
'{{ data_set_id }}',
'{{ performance_configuration }}',
'{{ data_set_refresh_properties }}',
'{{ row_level_permission_tag_configuration }}',
'{{ column_groups }}',
'{{ import_mode }}',
'{{ dataset_parameters }}',
'{{ logical_table_map }}',
'{{ aws_account_id }}',
'{{ data_set_usage_configuration }}',
'{{ 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 data_set resource, using stack-deploy.

/*+ update */
UPDATE awscc.quicksight.data_sets
SET PatchDocument = string('{{ {
"FolderArns": folder_arns,
"RowLevelPermissionDataSet": row_level_permission_data_set,
"IngestionWaitPolicy": ingestion_wait_policy,
"ColumnLevelPermissionRules": column_level_permission_rules,
"Name": name,
"Permissions": permissions,
"UseAs": use_as,
"Tags": tags,
"PhysicalTableMap": physical_table_map,
"FieldFolders": field_folders,
"PerformanceConfiguration": performance_configuration,
"DataSetRefreshProperties": data_set_refresh_properties,
"RowLevelPermissionTagConfiguration": row_level_permission_tag_configuration,
"ColumnGroups": column_groups,
"ImportMode": import_mode,
"DatasetParameters": dataset_parameters,
"LogicalTableMap": logical_table_map,
"DataSetUsageConfiguration": data_set_usage_configuration
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ aws_account_id }}|{{ data_set_id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.quicksight.data_sets
WHERE
Identifier = '{{ aws_account_id }}|{{ data_set_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 data_sets resource, the following permissions are required:

quicksight:DescribeDataSet,
quicksight:DescribeDataSetPermissions,
quicksight:ListTagsForResource,
quicksight:DescribeDataSetRefreshProperties