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
arnstring

The Amazon Resource Name (ARN) of the resource.

aws_account_idstring
column_groupsarray

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

column_level_permission_rulesarray

A set of one or more definitions of a
ColumnLevelPermissionRule
.

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.

created_timestring

The time that this dataset was created.

data_set_idstring
data_set_refresh_propertiesobject

The refresh properties of a dataset.

data_set_usage_configurationobject

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

dataset_parametersarray

The parameter declarations of the dataset.

field_foldersobject
import_modestring
last_updated_timestring

The last time that this dataset was updated.

logical_table_mapobject
namestring

The display name for the dataset.

output_columnsarray

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

permissionsarray

A list of resource permissions on the dataset.

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

row_level_permission_tag_configurationobject

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

tagsarray

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

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.

regionstringAWS region.

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,
arn,
aws_account_id,
column_groups,
column_level_permission_rules,
consumed_spice_capacity_in_bytes,
created_time,
data_set_id,
data_set_refresh_properties,
data_set_usage_configuration,
dataset_parameters,
field_folders,
import_mode,
last_updated_time,
logical_table_map,
name,
output_columns,
permissions,
physical_table_map,
row_level_permission_data_set,
row_level_permission_tag_configuration,
tags,
ingestion_wait_policy
FROM aws.quicksight.data_sets
WHERE region = 'us-east-1';

Gets all properties from an individual data_set.

SELECT
region,
arn,
aws_account_id,
column_groups,
column_level_permission_rules,
consumed_spice_capacity_in_bytes,
created_time,
data_set_id,
data_set_refresh_properties,
data_set_usage_configuration,
dataset_parameters,
field_folders,
import_mode,
last_updated_time,
logical_table_map,
name,
output_columns,
permissions,
physical_table_map,
row_level_permission_data_set,
row_level_permission_tag_configuration,
tags,
ingestion_wait_policy
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 (
AwsAccountId,
ColumnGroups,
ColumnLevelPermissionRules,
DataSetId,
DataSetRefreshProperties,
DataSetUsageConfiguration,
DatasetParameters,
FieldFolders,
ImportMode,
LogicalTableMap,
Name,
Permissions,
PhysicalTableMap,
RowLevelPermissionDataSet,
RowLevelPermissionTagConfiguration,
Tags,
IngestionWaitPolicy,
region
)
SELECT
'{{ AwsAccountId }}',
'{{ ColumnGroups }}',
'{{ ColumnLevelPermissionRules }}',
'{{ DataSetId }}',
'{{ DataSetRefreshProperties }}',
'{{ DataSetUsageConfiguration }}',
'{{ DatasetParameters }}',
'{{ FieldFolders }}',
'{{ ImportMode }}',
'{{ LogicalTableMap }}',
'{{ Name }}',
'{{ Permissions }}',
'{{ PhysicalTableMap }}',
'{{ RowLevelPermissionDataSet }}',
'{{ RowLevelPermissionTagConfiguration }}',
'{{ Tags }}',
'{{ IngestionWaitPolicy }}',
'{{ 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:

Create

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

Read

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

Update

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

Delete

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

List

quicksight:DescribeDataSet,
quicksight:ListDataSets