Skip to main content

data_lake_namespaces

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

Overview​

Namedata_lake_namespaces
TypeResource
Idaws.supplychain.data_lake_namespaces

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the namespace. (pattern: <code>[a-z0-9_]+</code>)
arnstringThe arn of the namespace. (pattern: <code>arn:aws:scn(?::([a-z0-9-]+):([0-9]+):instance)?/([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})[-_./A-Za-z0-9]*</code>)
created_timestring (date-time)The creation time of the namespace.
descriptionstringThe description of the namespace.
instance_idstringThe Amazon Web Services Supply Chain instance identifier. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
last_modified_timestring (date-time)The last modified time of the namespace.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_data_lake_namespaceselectinstance_id, name, regionEnables you to programmatically view an Amazon Web Services Supply Chain data lake namespace. Developers can view the data lake namespace information such as description for a given instance ID and namespace name.
list_data_lake_namespacesselectinstance_id, regionnextToken, maxResultsEnables you to programmatically view the list of Amazon Web Services Supply Chain data lake namespaces. Developers can view the namespaces and the corresponding information such as description for a given instance ID. Note that this API only return custom namespaces, instance pre-defined namespaces are not included.
create_data_lake_namespaceinsertinstance_id, name, regionEnables you to programmatically create an Amazon Web Services Supply Chain data lake namespace. Developers can create the namespaces for a given instance ID.
update_data_lake_namespaceupdateinstance_id, name, regionEnables you to programmatically update an Amazon Web Services Supply Chain data lake namespace. Developers can update the description of a data lake namespace for a given instance ID and namespace name.
delete_data_lake_namespacedeleteinstance_id, name, regionEnables you to programmatically delete an Amazon Web Services Supply Chain data lake namespace and its underling datasets. Developers can delete the existing namespaces for a given instance ID and namespace name.

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
instance_idstringThe AWS Supply Chain instance identifier.
namestringThe name of the namespace. Noted you cannot delete pre-defined namespace like asc, default which are only deleted through instance deletion.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe max number of namespaces to fetch in this paginated request.
nextTokenstringThe pagination token to fetch next page of namespaces.

SELECT examples​

Enables you to programmatically view an Amazon Web Services Supply Chain data lake namespace. Developers can view the data lake namespace information such as description for a given instance ID and namespace name.

SELECT
name,
arn,
created_time,
description,
instance_id,
last_modified_time
FROM aws.supplychain.data_lake_namespaces
WHERE instance_id = '{{ instance_id }}' -- required
AND name = '{{ name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

Enables you to programmatically create an Amazon Web Services Supply Chain data lake namespace. Developers can create the namespaces for a given instance ID.

INSERT INTO aws.supplychain.data_lake_namespaces (
description,
tags,
instance_id,
name,
region
)
SELECT
'{{ description }}',
'{{ tags }}',
'{{ instance_id }}',
'{{ name }}',
'{{ region }}'
RETURNING
namespace
;

UPDATE examples​

Enables you to programmatically update an Amazon Web Services Supply Chain data lake namespace. Developers can update the description of a data lake namespace for a given instance ID and namespace name.

UPDATE aws.supplychain.data_lake_namespaces
SET
description = '{{ description }}'
WHERE
instance_id = '{{ instance_id }}' --required
AND name = '{{ name }}' --required
AND region = '{{ region }}' --required
RETURNING
namespace;

DELETE examples​

Enables you to programmatically delete an Amazon Web Services Supply Chain data lake namespace and its underling datasets. Developers can delete the existing namespaces for a given instance ID and namespace name.

DELETE FROM aws.supplychain.data_lake_namespaces
WHERE instance_id = '{{ instance_id }}' --required
AND name = '{{ name }}' --required
AND region = '{{ region }}' --required
;