Skip to main content

data_sets

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

Overview

Namedata_sets
TypeResource
Idaws.m2.data_sets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)The timestamp when the data set was created.
data_set_namestringThe name of the data set. (pattern: <code>^\S{1,200}$</code>)
data_set_orgstringThe type of data set. The only supported value is VSAM. (pattern: <code>^\S{1,20}$</code>)
format_stringThe format of the data set. (pattern: <code>^\S{1,20}$</code>)
last_referenced_timestring (date-time)The last time the data set was referenced.
last_updated_timestring (date-time)The last time the data set was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_data_setsselectapplication_id, regionmaxResults, nameFilter, nextToken, prefixLists the data sets imported for a specific application. In Amazon Web Services Mainframe Modernization, data sets are associated with applications deployed on runtime environments. This is known as importing data sets. Currently, Amazon Web Services Mainframe Modernization can import data sets into catalogs using CreateDataSetImportTask.

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
application_idstringThe unique identifier of the application for which you want to list the associated data sets.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of objects to return.
nameFilterstringFilter dataset name matching the specified pattern. Can use * and % as wild cards.
nextTokenstringA pagination token returned from a previous call to this operation. This specifies the next item to return. To return to the beginning of the list, exclude this parameter.
prefixstringThe prefix of the data set name, which you can use to filter the list of data sets.

SELECT examples

Lists the data sets imported for a specific application. In Amazon Web Services Mainframe Modernization, data sets are associated with applications deployed on runtime environments. This is known as importing data sets. Currently, Amazon Web Services Mainframe Modernization can import data sets into catalogs using CreateDataSetImportTask.

SELECT
creation_time,
data_set_name,
data_set_org,
format_,
last_referenced_time,
last_updated_time
FROM aws.m2.data_sets
WHERE application_id = '{{ application_id }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nameFilter = '{{ nameFilter }}'
AND nextToken = '{{ nextToken }}'
AND prefix = '{{ prefix }}'
;