Skip to main content

data_sources

Creates, updates, deletes or gets a data_source resource or lists data_sources in a region

Overview

Namedata_sources
TypeResource
DescriptionDefinition of the AWS::QuickSight::DataSource Resource Type.
Idaws.quicksight.data_sources

Fields

NameDatatypeDescription
alternate_data_source_parametersarray

A set of alternate data source parameters that you want to share for the credentials
stored with this data source. The credentials are applied in tandem with the data source
parameters when you copy a data source by using a create or update request. The API
operation compares the DataSourceParameters structure that's in the request
with the structures in the AlternateDataSourceParameters allow list. If the
structures are an exact match, the request is allowed to use the credentials from this
existing data source. If the AlternateDataSourceParameters list is null,
the Credentials originally used with this DataSourceParameters
are automatically allowed.

arnstring

The Amazon Resource Name (ARN) of the data source.

aws_account_idstring
created_timestring

The time that this data source was created.

credentialsobject

Data source credentials. This is a variant type structure. For this structure to be
valid, only one of the attributes can be non-null.

data_source_idstring
data_source_parametersobject

The parameters that Amazon QuickSight uses to connect to your underlying data source.
This is a variant type structure. For this structure to be valid, only one of the
attributes can be non-null.

error_infoobject

Error information for the data source creation or update.

last_updated_timestring

The last time that this data source was updated.

namestring
permissionsarray
ssl_propertiesobject

Secure Socket Layer (SSL) properties that apply when Amazon QuickSight connects to your
underlying data source.

statusstring
tagsarray
typestring
vpc_connection_propertiesobject

VPC connection properties.

regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, Type, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all data_sources in a region.

SELECT
region,
alternate_data_source_parameters,
arn,
aws_account_id,
created_time,
credentials,
data_source_id,
data_source_parameters,
error_info,
last_updated_time,
name,
permissions,
ssl_properties,
status,
tags,
type,
vpc_connection_properties
FROM aws.quicksight.data_sources
WHERE region = 'us-east-1';

Gets all properties from an individual data_source.

SELECT
region,
alternate_data_source_parameters,
arn,
aws_account_id,
created_time,
credentials,
data_source_id,
data_source_parameters,
error_info,
last_updated_time,
name,
permissions,
ssl_properties,
status,
tags,
type,
vpc_connection_properties
FROM aws.quicksight.data_sources
WHERE region = 'us-east-1' AND data__Identifier = '<AwsAccountId>|<DataSourceId>';

INSERT example

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

/*+ create */
INSERT INTO aws.quicksight.data_sources (
Name,
Type,
region
)
SELECT
'{{ Name }}',
'{{ Type }}',
'{{ region }}';

DELETE example

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

Permissions

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

Read

quicksight:DescribeDataSource,
quicksight:DescribeDataSourcePermissions,
quicksight:ListTagsForResource

Create

quicksight:CreateDataSource,
quicksight:DescribeDataSource,
quicksight:DescribeDataSourcePermissions,
quicksight:TagResource,
quicksight:ListTagsForResource

Update

quicksight:DescribeDataSource,
quicksight:DescribeDataSourcePermissions,
quicksight:UpdateDataSource,
quicksight:UpdateDataSourcePermissions,
quicksight:TagResource,
quicksight:UntagResource,
quicksight:ListTagsForResource

Delete

quicksight:DescribeDataSource,
quicksight:DescribeDataSourcePermissions,
quicksight:DeleteDataSource,
quicksight:ListTagsForResource

List

quicksight:DescribeDataSource,
quicksight:ListDataSources