Skip to main content

data_sets

Creates, updates, deletes, gets or lists a data_sets resource.

Overview

Namedata_sets
TypeResource
Idaws.dataexchange.data_sets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe ARN for the data set.
asset_typestringThe type of asset that is added to a data set. (S3_SNAPSHOT, REDSHIFT_DATA_SHARE, API_GATEWAY_API, S3_DATA_ACCESS, LAKE_FORMATION_DATA_PERMISSION)
created_atstring (date-time)The date and time that the data set was created, in ISO 8601 format.
descriptionstringThe description for the data set.
idstringThe unique identifier for the data set. (pattern: <code>[a-zA-Z0-9]{30,40}</code>)
namestringThe name of the data set.
originstringA property that defines the data set as OWNED by the account (for providers) or ENTITLED to the account (for subscribers). (OWNED, ENTITLED)
origin_detailsobjectIf the origin of this data set is ENTITLED, includes the details for the product on AWS Marketplace.
source_idstringThe data set ID of the owned data set corresponding to the entitled data set being viewed. This parameter is returned when a data set owner is viewing the entitled copy of its owned data set. (pattern: <code>[a-zA-Z0-9]{30,40}</code>)
tagsobjectThe tags for the data set.
updated_atstring (date-time)The date and time that the data set was last updated, in ISO 8601 format.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_data_setselectdata_set_id, regionThis operation returns information about a data set.
list_data_setsselectregionmaxResults, nextToken, originThis operation lists your data sets. When listing by origin OWNED, results are sorted by CreatedAt in descending order. When listing by origin ENTITLED, there is no order.
create_data_setinsertregion, AssetTypeThis operation creates a data set.
update_data_setupdatedata_set_id, regionThis operation updates a data set.
delete_data_setdeletedata_set_id, regionThis operation deletes a data set.
send_data_set_notificationexecdata_set_id, region, TypeThe type of event associated with the data set.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
data_set_idstringAffected data set of the notification.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results returned by a single call.
nextTokenstringThe token value retrieved from a previous call to access the next page of results.
originstringA property that defines the data set as OWNED by the account (for providers) or ENTITLED to the account (for subscribers).

SELECT examples

This operation returns information about a data set.

SELECT
arn,
asset_type,
created_at,
description,
id,
name,
origin,
origin_details,
source_id,
tags,
updated_at
FROM aws.dataexchange.data_sets
WHERE data_set_id = '{{ data_set_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

This operation creates a data set.

INSERT INTO aws.dataexchange.data_sets (
AssetType,
Description,
Name,
Tags,
region
)
SELECT
'{{ AssetType }}' /* required */,
'{{ Description }}',
'{{ Name }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
arn,
asset_type,
created_at,
description,
id,
name,
origin,
origin_details,
source_id,
tags,
updated_at
;

UPDATE examples

This operation updates a data set.

UPDATE aws.dataexchange.data_sets
SET
Description = '{{ Description }}',
Name = '{{ Name }}'
WHERE
data_set_id = '{{ data_set_id }}' --required
AND region = '{{ region }}' --required
RETURNING
arn,
asset_type,
created_at,
description,
id,
name,
origin,
origin_details,
source_id,
updated_at;

DELETE examples

This operation deletes a data set.

DELETE FROM aws.dataexchange.data_sets
WHERE data_set_id = '{{ data_set_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

The type of event associated with the data set.

EXEC aws.dataexchange.data_sets.send_data_set_notification
@data_set_id='{{ data_set_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"Scope": "{{ Scope }}",
"ClientToken": "{{ ClientToken }}",
"Comment": "{{ Comment }}",
"Details": "{{ Details }}",
"Type": "{{ Type }}"
}'
;