Skip to main content

dataset_data_segment_relationships

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

Overview​

Namedataset_data_segment_relationships
TypeResource
Idaws.iotsitewise.dataset_data_segment_relationships

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
end_timestampobjectContains a timestamp with optional nanosecond granularity.
source_dataset_idstringThe ID of the source session dataset that contains the data segment. (pattern: <code>^(?!00000000-0000-0000-0000-000000000000)[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$</code>)
start_timestampobjectContains a timestamp with optional nanosecond granularity.
target_dataset_idstringThe ID of the curated dataset that references the data segment. (pattern: <code>^(?!00000000-0000-0000-0000-000000000000)[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$</code>)
time_series_idstringThe ID of the time series.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_dataset_data_segment_relationshipsselectdataset_id, workspaceName, regionmaxResults, nextTokenRetrieves a paginated list of data segment relationships for a session dataset. Use this operation to find the curated datasets that reference data segments of the specified session dataset. Use the nextToken parameter to retrieve additional results.

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
dataset_idstringThe ID of the session dataset to list data segment relationships for.
regionstringAWS region (default: us-east-1)
workspaceNamestringThe name of the workspace that contains the dataset.
maxResultsintegerThe maximum number of results to return for each paginated request. Default: 50.
nextTokenstringThe token to be used for the next set of paginated results.

SELECT examples​

Retrieves a paginated list of data segment relationships for a session dataset. Use this operation to find the curated datasets that reference data segments of the specified session dataset. Use the nextToken parameter to retrieve additional results.

SELECT
end_timestamp,
source_dataset_id,
start_timestamp,
target_dataset_id,
time_series_id
FROM aws.iotsitewise.dataset_data_segment_relationships
WHERE dataset_id = '{{ dataset_id }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;