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.
Idaws.quicksight.data_sets

Fields

NameDatatypeDescription
physical_table_mapobject
created_timestring

The time that this dataset was created.

field_foldersobject
last_updated_timestring

The last time that this dataset was updated.

data_set_idstring
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.

performance_configurationobject
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.

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.

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.

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.

permissionsarray

A list of resource permissions on the dataset.

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.

tagsarray

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

regionstringAWS region.

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

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all data_sets in a region.

SELECT
region,
physical_table_map,
created_time,
field_folders,
last_updated_time,
data_set_id,
folder_arns,
consumed_spice_capacity_in_bytes,
performance_configuration,
row_level_permission_data_set,
data_set_refresh_properties,
row_level_permission_tag_configuration,
ingestion_wait_policy,
column_level_permission_rules,
name,
column_groups,
import_mode,
dataset_parameters,
logical_table_map,
aws_account_id,
data_set_usage_configuration,
permissions,
output_columns,
arn,
tags
FROM aws.quicksight.data_sets
WHERE region = 'us-east-1';

Gets all properties from an individual data_set.

SELECT
region,
physical_table_map,
created_time,
field_folders,
last_updated_time,
data_set_id,
folder_arns,
consumed_spice_capacity_in_bytes,
performance_configuration,
row_level_permission_data_set,
data_set_refresh_properties,
row_level_permission_tag_configuration,
ingestion_wait_policy,
column_level_permission_rules,
name,
column_groups,
import_mode,
dataset_parameters,
logical_table_map,
aws_account_id,
data_set_usage_configuration,
permissions,
output_columns,
arn,
tags
FROM aws.quicksight.data_sets
WHERE region = 'us-east-1' AND data__Identifier = '<AwsAccountId>|<DataSetId>';

INSERT example

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

/*+ create */
INSERT INTO aws.quicksight.data_sets (
PhysicalTableMap,
FieldFolders,
DataSetId,
FolderArns,
PerformanceConfiguration,
RowLevelPermissionDataSet,
DataSetRefreshProperties,
RowLevelPermissionTagConfiguration,
IngestionWaitPolicy,
ColumnLevelPermissionRules,
Name,
ColumnGroups,
ImportMode,
DatasetParameters,
LogicalTableMap,
AwsAccountId,
DataSetUsageConfiguration,
Permissions,
Tags,
region
)
SELECT
'{{ PhysicalTableMap }}',
'{{ FieldFolders }}',
'{{ DataSetId }}',
'{{ FolderArns }}',
'{{ PerformanceConfiguration }}',
'{{ RowLevelPermissionDataSet }}',
'{{ DataSetRefreshProperties }}',
'{{ RowLevelPermissionTagConfiguration }}',
'{{ IngestionWaitPolicy }}',
'{{ ColumnLevelPermissionRules }}',
'{{ Name }}',
'{{ ColumnGroups }}',
'{{ ImportMode }}',
'{{ DatasetParameters }}',
'{{ LogicalTableMap }}',
'{{ AwsAccountId }}',
'{{ DataSetUsageConfiguration }}',
'{{ Permissions }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.quicksight.data_sets
WHERE data__Identifier = '<AwsAccountId|DataSetId>'
AND region = 'us-east-1';

Permissions

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

Read

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

Create

quicksight:DescribeDataSet,
quicksight:DescribeDataSetPermissions,
quicksight:DescribeIngestion,
quicksight:ListIngestions,
quicksight:CreateDataSet,
quicksight:PassDataSource,
quicksight:PassDataSet,
quicksight:TagResource,
quicksight:ListTagsForResource,
quicksight:DescribeDataSetRefreshProperties,
quicksight:PutDataSetRefreshProperties,
quicksight:CreateFolderMembership,
quicksight:DeleteFolderMembership,
quicksight:ListFoldersForResource

Update

quicksight:DescribeDataSet,
quicksight:DescribeDataSetPermissions,
quicksight:PassDataSource,
quicksight:UpdateDataSet,
quicksight:UpdateDataSetPermissions,
quicksight:PassDataSet,
quicksight:DescribeIngestion,
quicksight:ListIngestions,
quicksight:CancelIngestion,
quicksight:CreateFolderMembership,
quicksight:DeleteFolderMembership,
quicksight:ListFoldersForResource,
quicksight:TagResource,
quicksight:UntagResource,
quicksight:ListTagsForResource,
quicksight:PutDataSetRefreshProperties,
quicksight:DescribeDataSetRefreshProperties,
quicksight:DeleteDataSetRefreshProperties

List

quicksight:DescribeDataSet,
quicksight:ListDataSets

Delete

quicksight:DescribeDataSet,
quicksight:DeleteDataSet,
quicksight:ListTagsForResource,
quicksight:DescribeIngestion,
quicksight:DeleteDataSetRefreshProperties,
quicksight:DescribeDataSetRefreshProperties