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<p>The time that this dataset was created.</p>
folder_arnsarray<p>When you create the dataset, Amazon QuickSight adds the dataset to these folders.</p>
consumed_spice_capacity_in_bytesnumber<p>The amount of SPICE capacity used by this dataset. This is 0 if the dataset isn't<br />imported into SPICE.</p>
row_level_permission_data_setobject<p>Information about a dataset that contains permissions for row-level security (RLS).<br />The permissions dataset maps fields to users or groups. For more information, see<br /><a href="https://docs.aws.amazon.com/quicksight/latest/user/restrict-access-to-a-data-set-using-row-level-security.html">Using Row-Level Security (RLS) to Restrict Access to a Dataset</a> in the <i>Amazon QuickSight User<br />Guide</i>.</p><br /><p>The option to deny permissions by setting &#95;&#95;CODE&#95;BLOCK&#95;0&#95;&#95; to &#95;&#95;CODE&#95;BLOCK&#95;1&#95;&#95; is<br />not supported for new RLS datasets.</p>
ingestion_wait_policyobject<p>Wait policy to use when creating/updating dataset. Default is to wait for SPICE ingestion to finish with timeout of 36 hours.</p>
column_level_permission_rulesarray<p>A set of one or more definitions of a <code><br /><a href="https://docs.aws.amazon.com/quicksight/latest/APIReference/API&#95;ColumnLevelPermissionRule.html">ColumnLevelPermissionRule</a><br /></code>.</p>
namestring<p>The display name for the dataset.</p>
permissionsarray<p>A list of resource permissions on the dataset.</p>
use_asstring
tagsarray<p>Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset.</p>
physical_table_mapobject
field_foldersobject
last_updated_timestring<p>The last time that this dataset was updated.</p>
data_set_idstring
performance_configurationobject
data_set_refresh_propertiesobject<p>The refresh properties of a dataset.</p>
row_level_permission_tag_configurationobject<p>The configuration of tags on a dataset to set row-level security. </p>
column_groupsarray<p>Groupings of columns that work together in certain Amazon QuickSight features. Currently, only geospatial hierarchy is supported.</p>
import_modestring
dataset_parametersarray<p>The parameter declarations of the dataset.</p>
logical_table_mapobject
aws_account_idstring
data_set_usage_configurationobject<p>The usage configuration to apply to child datasets that reference this dataset as a source.</p>
output_columnsarray<p>The list of columns after all transforms. These columns are available in templates,<br />analyses, and dashboards.</p>
arnstring<p>The Amazon Resource Name (ARN) of the resource.</p>
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 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 = '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 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
'{{ FolderArns }}',
'{{ RowLevelPermissionDataSet }}',
'{{ IngestionWaitPolicy }}',
'{{ ColumnLevelPermissionRules }}',
'{{ Name }}',
'{{ Permissions }}',
'{{ UseAs }}',
'{{ Tags }}',
'{{ PhysicalTableMap }}',
'{{ FieldFolders }}',
'{{ DataSetId }}',
'{{ PerformanceConfiguration }}',
'{{ DataSetRefreshProperties }}',
'{{ RowLevelPermissionTagConfiguration }}',
'{{ ColumnGroups }}',
'{{ ImportMode }}',
'{{ DatasetParameters }}',
'{{ LogicalTableMap }}',
'{{ AwsAccountId }}',
'{{ DataSetUsageConfiguration }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.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