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 <code>DataSourceParameters</code> structure that's in the request<br />with the structures in the <code>AlternateDataSourceParameters</code> 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 <code>AlternateDataSourceParameters</code> list is null,<br />the <code>Credentials</code> originally used with this <code>DataSourceParameters</code><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

NameResourceAccessible byRequired Params
create_resourcedata_sourcesINSERTName, Type, region
delete_resourcedata_sourcesDELETEIdentifier, region
update_resourcedata_sourcesUPDATEIdentifier, PatchDocument, region
list_resourcesdata_sources_list_onlySELECTregion
get_resourcedata_sourcesSELECTIdentifier, 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
Identifier = '{{ aws_account_id }}|{{ data_source_id }}';

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 }}';

UPDATE example

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

/*+ update */
UPDATE awscc.quicksight.data_sources
SET PatchDocument = string('{{ {
"ErrorInfo": error_info,
"FolderArns": folder_arns,
"Name": name,
"DataSourceParameters": data_source_parameters,
"VpcConnectionProperties": vpc_connection_properties,
"AlternateDataSourceParameters": alternate_data_source_parameters,
"Permissions": permissions,
"SslProperties": ssl_properties,
"Credentials": credentials,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ aws_account_id }}|{{ data_source_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.quicksight.data_sources
WHERE
Identifier = '{{ aws_account_id }}|{{ data_source_id }}' AND
region = 'us-east-1';

Permissions

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

quicksight:DescribeDataSource,
quicksight:DescribeDataSourcePermissions,
quicksight:ListTagsForResource