Skip to main content

namespaces

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

Overview

Namenamespaces
TypeResource
Idaws.redshift.namespaces

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
register_namespaceinsertNamespaceIdentifier, ConsumerIdentifiers, regionRegisters a cluster or serverless namespace to the Amazon Web Services Glue Data Catalog.
deregister_namespacedeleteNamespaceIdentifier, ConsumerIdentifiers, regionDeregisters a cluster or serverless namespace from the Amazon Web Services Glue Data Catalog.

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
ConsumerIdentifiersarrayAn array containing the ID of the consumer account that you want to deregister the cluster or serverless namespace from.
NamespaceIdentifierobjectThe unique identifier of the cluster or serverless namespace that you want to deregister.
regionstringAWS region (default: us-east-1)

INSERT examples

Registers a cluster or serverless namespace to the Amazon Web Services Glue Data Catalog.

INSERT INTO aws.redshift.namespaces (
NamespaceIdentifier,
ConsumerIdentifiers,
region
)
SELECT
'{{ NamespaceIdentifier }}',
'{{ ConsumerIdentifiers }}',
'{{ region }}'
RETURNING
status
;

DELETE examples

Deregisters a cluster or serverless namespace from the Amazon Web Services Glue Data Catalog.

DELETE FROM aws.redshift.namespaces
WHERE NamespaceIdentifier = '{{ NamespaceIdentifier }}' --required
AND ConsumerIdentifiers = '{{ ConsumerIdentifiers }}' --required
AND region = '{{ region }}' --required
;