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.
Idawscc.quicksight.data_sources

Fields

NameDatatypeDescription
statusstring
created_timestring<p>The time that this data source was created.</p>
error_infoobject<p>Error information for the data source creation or update.</p>
last_updated_timestring<p>The last time that this data source was updated.</p>
folder_arnsarray
namestring
data_source_parametersobject<p>The parameters that Amazon QuickSight uses to connect to your underlying data source.<br />This is a variant type structure. For this structure to be valid, only one of the<br />attributes can be non-null.</p>
typestring
vpc_connection_propertiesobject<p>VPC connection properties.</p>
alternate_data_source_parametersarray<p>A set of alternate data source parameters that you want to share for the credentials<br />stored with this data source. The credentials are applied in tandem with the data source<br />parameters when you copy a data source by using a create or update request. The API<br />operation compares the &#95;&#95;CODE&#95;BLOCK&#95;0&#95;&#95; structure that's in the request<br />with the structures in the &#95;&#95;CODE&#95;BLOCK&#95;1&#95;&#95; allow list. If the<br />structures are an exact match, the request is allowed to use the credentials from this<br />existing data source. If the &#95;&#95;CODE&#95;BLOCK&#95;2&#95;&#95; list is null,<br />the &#95;&#95;CODE&#95;BLOCK&#95;3&#95;&#95; originally used with this &#95;&#95;CODE&#95;BLOCK&#95;4&#95;&#95;<br />are automatically allowed.</p>
aws_account_idstring
permissionsarray
arnstring<p>The Amazon Resource Name (ARN) of the data source.</p>
ssl_propertiesobject<p>Secure Socket Layer (SSL) properties that apply when Amazon QuickSight connects to your<br />underlying data source.</p>
credentialsobject<p>Data source credentials. This is a variant type structure. For this structure to be<br />valid, only one of the attributes can be non-null.</p>
data_source_idstring
tagsarray
regionstringAWS region.

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

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 properties from an individual data_source.

SELECT
region,
status,
created_time,
error_info,
last_updated_time,
folder_arns,
name,
data_source_parameters,
type,
vpc_connection_properties,
alternate_data_source_parameters,
aws_account_id,
permissions,
arn,
ssl_properties,
credentials,
data_source_id,
tags
FROM awscc.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 awscc.quicksight.data_sources (
Name,
Type,
region
)
SELECT
'{{ Name }}',
'{{ Type }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.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,
quicksight:CreateFolderMembership,
quicksight:DeleteFolderMembership,
quicksight:ListFoldersForResource

Update

quicksight:DescribeDataSource,
quicksight:DescribeDataSourcePermissions,
quicksight:UpdateDataSource,
quicksight:UpdateDataSourcePermissions,
quicksight:CreateFolderMembership,
quicksight:DeleteFolderMembership,
quicksight:ListFoldersForResource,
quicksight:TagResource,
quicksight:UntagResource,
quicksight:ListTagsForResource

List

quicksight:DescribeDataSource,
quicksight:ListDataSources

Delete

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