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

The time that this data source was created.

error_infoobject

Error information for the data source creation or update.

last_updated_timestring

The last time that this data source was updated.

folder_arnsarray
namestring
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.

typestring
vpc_connection_propertiesobject

VPC connection properties.

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.

aws_account_idstring
permissionsarray
arnstring

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

ssl_propertiesobject

Secure Socket Layer (SSL) properties that apply when Amazon QuickSight connects to your

underlying data source.

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
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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.quicksight.data_sources
WHERE
Identifier = '{{ aws_account_id }}|{{ data_source_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

quicksight:DescribeDataSource,
quicksight:DescribeDataSourcePermissions,
quicksight:ListTagsForResource