Amazon Redshift Redshift Namespace API
The Redshift Namespace API from Amazon Redshift — 7 operation(s) for redshift namespace.
The Redshift Namespace API from Amazon Redshift — 7 operation(s) for redshift namespace.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/amazon-redshift:amazon-redshift-namespace-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.1.0
info:
title: Amazon Redshift Namespace API
version: '2012-12-01'
description: Generated from AWS's published Smithy model for Amazon Redshift. 7 operation(s).
contact:
name: Amazon Web Services
url: https://aws.amazon.com/contact-us/
license:
name: Apache 2.0
identifier: Apache-2.0
url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://redshift-serverless.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4: []
paths:
/?Action=DeregisterNamespace:
post:
operationId: DeregisterNamespace
summary: Deregister Namespace
description: Deregisters a cluster or serverless namespace from the Amazon Web Services Glue Data Catalog.
responses:
'200':
description: Success
content:
text/xml:
schema:
$ref: '#/components/schemas/DeregisterNamespaceOutputMessage'
'404':
description: ClusterNotFoundFault
content:
text/xml:
schema:
$ref: '#/components/schemas/ClusterNotFoundFault'
'400':
description: InvalidClusterStateFault; InvalidNamespaceFault
content:
text/xml:
schema:
$ref: '#/components/schemas/InvalidClusterStateFault'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
allOf:
- type: object
required:
- Action
- Version
properties:
Action:
type: string
const: DeregisterNamespace
Version:
type: string
const: '2012-12-01'
- $ref: '#/components/schemas/DeregisterNamespaceInputMessage'
tags:
- Namespace
servers:
- url: https://redshift.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4_redshift: []
/?Action=RegisterNamespace:
post:
operationId: RegisterNamespace
summary: Register Namespace
description: Registers a cluster or serverless namespace to the Amazon Web Services Glue Data Catalog.
responses:
'200':
description: Success
content:
text/xml:
schema:
$ref: '#/components/schemas/RegisterNamespaceOutputMessage'
'404':
description: ClusterNotFoundFault
content:
text/xml:
schema:
$ref: '#/components/schemas/ClusterNotFoundFault'
'400':
description: InvalidClusterStateFault; InvalidNamespaceFault
content:
text/xml:
schema:
$ref: '#/components/schemas/InvalidClusterStateFault'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
allOf:
- type: object
required:
- Action
- Version
properties:
Action:
type: string
const: RegisterNamespace
Version:
type: string
const: '2012-12-01'
- $ref: '#/components/schemas/RegisterNamespaceInputMessage'
tags:
- Namespace
servers:
- url: https://redshift.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4_redshift: []
/#CreateNamespace:
post:
operationId: CreateNamespace
summary: Create Namespace
description: Creates a namespace in Amazon Redshift Serverless.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/CreateNamespaceResponse'
'409':
description: ConflictException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ConflictException'
'500':
description: InternalServerException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/RedshiftServerlessInternalServerException'
'400':
description: TooManyTagsException; ValidationException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/TooManyTagsException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- RedshiftServerless.CreateNamespace
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/CreateNamespaceRequest'
tags:
- Namespace
/#GetNamespace:
post:
operationId: GetNamespace
summary: Get Namespace
description: Returns information about a namespace in Amazon Redshift Serverless.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/GetNamespaceResponse'
'500':
description: InternalServerException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/RedshiftServerlessInternalServerException'
'404':
description: ResourceNotFoundException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/RedshiftServerlessResourceNotFoundException'
'400':
description: ValidationException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/RedshiftServerlessValidationException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- RedshiftServerless.GetNamespace
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/GetNamespaceRequest'
tags:
- Namespace
/#UpdateNamespace:
post:
operationId: UpdateNamespace
summary: Update Namespace
description: Updates a namespace with the specified settings. Unless required, you can't update multiple parameters
in one request. For example, you must specify both adminUsername and adminUserPassword to update either field, but
you can't update both kmsKeyId and logExports in a single request. Similarly, an S3 Tables log-publishing update (a
request where logDestinationType is s3table) cannot be combined with any other namespace configuration change and
must be submitted as its own request.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/UpdateNamespaceResponse'
'409':
description: ConflictException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ConflictException'
'500':
description: InternalServerException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/RedshiftServerlessInternalServerException'
'404':
description: ResourceNotFoundException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/RedshiftServerlessResourceNotFoundException'
'400':
description: ValidationException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/RedshiftServerlessValidationException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- RedshiftServerless.UpdateNamespace
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/UpdateNamespaceRequest'
tags:
- Namespace
/#DeleteNamespace:
post:
operationId: DeleteNamespace
summary: Delete Namespace
description: Deletes a namespace from Amazon Redshift Serverless. Before you delete the namespace, you can create a
final snapshot that has all of the data within the namespace.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DeleteNamespaceResponse'
'409':
description: ConflictException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ConflictException'
'500':
description: InternalServerException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/RedshiftServerlessInternalServerException'
'404':
description: ResourceNotFoundException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/RedshiftServerlessResourceNotFoundException'
'400':
description: ValidationException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/RedshiftServerlessValidationException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- RedshiftServerless.DeleteNamespace
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DeleteNamespaceRequest'
tags:
- Namespace
/#ListNamespaces:
post:
operationId: ListNamespaces
summary: List Namespaces
description: Returns information about a list of specified namespaces.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ListNamespacesResponse'
'500':
description: InternalServerException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/RedshiftServerlessInternalServerException'
'400':
description: ValidationException
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/RedshiftServerlessValidationException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- RedshiftServerless.ListNamespaces
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ListNamespacesRequest'
tags:
- Namespace
components:
securitySchemes:
sigv4:
type: apiKey
in: header
name: Authorization
description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
x-aws-sigv4:
signingName: redshift-serverless
sigv4_redshift:
type: apiKey
in: header
name: Authorization
description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
x-aws-sigv4:
signingName: redshift
schemas:
ClusterNotFoundFault:
type: object
properties:
message:
type: string
ConflictException:
type: object
properties:
message:
type: string
required:
- message
CreateNamespaceRequest:
type: object
properties:
namespaceName:
type: string
description: The name of the namespace.
adminUsername:
type: string
description: The username of the administrator for the first database created in the namespace.
adminUserPassword:
type: string
description: The password of the administrator for the first database created in the namespace. You can't use adminUserPassword
if manageAdminPassword is true.
dbName:
type: string
description: The name of the first database created in the namespace.
kmsKeyId:
type: string
description: The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
defaultIamRoleArn:
type: string
description: The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
iamRoles:
type: array
items:
type: string
description: A list of IAM roles to associate with the namespace.
logExports:
type: array
items:
type: string
description: The types of logs the namespace can export. Available export types are userlog, connectionlog, and
useractivitylog.
tags:
type: array
items:
$ref: '#/components/schemas/RedshiftServerlessTag'
description: A list of tag instances.
manageAdminPassword:
type: boolean
description: If true, Amazon Redshift uses Secrets Manager to manage the namespace's admin credentials. You can't
use adminUserPassword if manageAdminPassword is true. If manageAdminPassword is false or not set, Amazon Redshift
uses adminUserPassword for the admin user account's password.
adminPasswordSecretKmsKeyId:
type: string
description: The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials
secret. You can only use this parameter if manageAdminPassword is true.
redshiftIdcApplicationArn:
type: string
description: The ARN for the Redshift application that integrates with IAM Identity Center.
required:
- namespaceName
CreateNamespaceResponse:
type: object
properties:
namespace:
$ref: '#/components/schemas/Namespace'
DeleteNamespaceRequest:
type: object
properties:
namespaceName:
type: string
description: The name of the namespace to delete.
finalSnapshotName:
type: string
description: The name of the snapshot to be created before the namespace is deleted.
finalSnapshotRetentionPeriod:
type: integer
description: How long to retain the final snapshot.
required:
- namespaceName
DeleteNamespaceResponse:
type: object
properties:
namespace:
$ref: '#/components/schemas/Namespace'
required:
- namespace
DeregisterNamespaceInputMessage:
type: object
properties:
NamespaceIdentifier:
$ref: '#/components/schemas/NamespaceIdentifierUnion'
ConsumerIdentifiers:
type: array
items:
type: string
description: An array containing the ID of the consumer account that you want to deregister the cluster or serverless
namespace from.
required:
- NamespaceIdentifier
- ConsumerIdentifiers
DeregisterNamespaceOutputMessage:
type: object
properties:
Status:
type: string
enum:
- Registering
- Deregistering
description: The registration status of the cluster or serverless namespace.
GetNamespaceRequest:
type: object
properties:
namespaceName:
type: string
description: The name of the namespace to retrieve information for.
required:
- namespaceName
GetNamespaceResponse:
type: object
properties:
namespace:
$ref: '#/components/schemas/Namespace'
required:
- namespace
InvalidClusterStateFault:
type: object
properties:
message:
type: string
ListNamespacesRequest:
type: object
properties:
nextToken:
type: string
description: If your initial ListNamespaces operation returns a nextToken, you can include the returned nextToken
in following ListNamespaces operations, which returns results in the next page.
maxResults:
type: integer
description: An optional parameter that specifies the maximum number of results to return. You can use nextToken
to display the next page of results.
ListNamespacesResponse:
type: object
properties:
nextToken:
type: string
description: When nextToken is returned, there are more results available. The value of nextToken is a unique pagination
token for each page. Make the call again using the returned token to retrieve the next page.
namespaces:
type: array
items:
$ref: '#/components/schemas/Namespace'
description: The list of returned namespaces.
required:
- namespaces
Namespace:
type: object
properties:
namespaceArn:
type: string
description: The Amazon Resource Name (ARN) associated with a namespace.
namespaceId:
type: string
description: The unique identifier of a namespace.
namespaceName:
type: string
description: The name of the namespace. Must be between 3-64 alphanumeric characters in lowercase, and it cannot
be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer
Guide.
adminUsername:
type: string
description: The username of the administrator for the first database created in the namespace.
dbName:
type: string
description: The name of the first database created in the namespace.
kmsKeyId:
type: string
description: The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
defaultIamRoleArn:
type: string
description: The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
iamRoles:
type: array
items:
type: string
description: A list of IAM roles to associate with the namespace.
logExports:
type: array
items:
type: string
description: The types of logs the namespace can export. Available export types are User log, Connection log, and
User activity log.
status:
type: string
description: The status of the namespace.
creationDate:
type: string
description: The date of when the namespace was created.
adminPasswordSecretArn:
type: string
description: The Amazon Resource Name (ARN) for the namespace's admin user credentials secret.
adminPasswordSecretKmsKeyId:
type: string
description: The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials
secret.
lakehouseRegistrationStatus:
type: string
description: The status of the lakehouse registration for the namespace. Indicates whether the namespace is successfully
registered with Amazon Redshift federated permissions.
catalogArn:
type: string
description: The Amazon Resource Name (ARN) of the Glue Data Catalog associated with the namespace enabled with
Amazon Redshift federated permissions.
s3TablePublishStatus:
$ref: '#/components/schemas/RedshiftServerlessS3TablePublishStatus'
NamespaceIdentifierUnion:
type: object
properties:
ServerlessIdentifier:
$ref: '#/components/schemas/ServerlessIdentifier'
ProvisionedIdentifier:
$ref: '#/components/schemas/ProvisionedIdentifier'
description: Exactly one member is set.
ProvisionedIdentifier:
type: object
properties:
ClusterIdentifier:
type: string
description: The unique identifier for the provisioned cluster.
required:
- ClusterIdentifier
RedshiftServerlessInternalServerException:
type: object
properties:
message:
type: string
required:
- message
RedshiftServerlessResourceNotFoundException:
type: object
properties:
message:
type: string
resourceName:
type: string
description: The name of the resource that could not be found.
required:
- message
RedshiftServerlessS3TablePublishStatus:
type: object
properties:
s3Tables:
type: array
items:
type: string
description: The system tables currently being published.
s3TableNamespace:
type: string
description: The identifier of the namespace in the S3 table bucket that holds the published tables.
s3TableGranularity:
type: string
description: The scope currently in effect. Values are namespace or account.
enabledAll:
type: boolean
description: true when the namespace is enrolled in every current and future system table rather than an explicit
list of tables.
lastIngestionTimes:
type: object
additionalProperties:
type: string
description: A map of system table name to the time that table last received data, as an ISO-8601 timestamp. A table
that has not yet been ingested is absent from the map. Use it to judge data freshness.
RedshiftServerlessTag:
type: object
properties:
key:
type: string
description: The key to use in the tag.
value:
type: string
description: The value of the tag.
required:
- key
- value
RedshiftServerlessValidationException:
type: object
properties:
message:
type: string
required:
- message
RegisterNamespaceInputMessage:
type: object
properties:
NamespaceIdentifier:
$ref: '#/components/schemas/NamespaceIdentifierUnion'
ConsumerIdentifiers:
type: array
items:
type: string
description: An array containing the ID of the consumer account that you want to register the namespace to.
required:
- NamespaceIdentifier
- ConsumerIdentifiers
RegisterNamespaceOutputMessage:
type: object
properties:
Status:
type: string
enum:
- Registering
- Deregistering
description: The registration status of the cluster or serverless namespace.
ServerlessIdentifier:
type: object
properties:
NamespaceIdentifier:
type: string
description: The unique identifier for the serverless namespace.
WorkgroupIdentifier:
type: string
description: The unique identifier for the workgroup associated with the serverless namespace.
required:
- NamespaceIdentifier
- WorkgroupIdentifier
TooManyTagsException:
type: object
properties:
message:
type: string
resourceName:
type: string
description: The name of the resource that exceeded the number of tags allowed for a resource.
UpdateNamespaceRequest:
type: object
properties:
namespaceName:
type: string
description: The name of the namespace to update. You can't update the name of a namespace once it is created.
adminUserPassword:
type: string
description: The password of the administrator for the first database created in the namespace. This parameter must
be updated together with adminUsername. You can't use adminUserPassword if manageAdminPassword is true. If your
admin user account is locked, this operation also unlocks your account and resets the failed-login counter. This
option is available only when account lockout security is enabled for the namespace.
adminUsername:
type: string
description: The username of the administrator for the first database created in the namespace. This parameter must
be updated together with adminUserPassword.
kmsKeyId:
type: string
description: The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
defaultIamRoleArn:
type: string
description: The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. This parameter
must be updated together with iamRoles.
iamRoles:
type: array
items:
type: string
description: A list of IAM roles to associate with the namespace. This parameter must be updated together with defaultIamRoleArn.
logExports:
type: array
items:
type: string
description: The types of logs the namespace can export. The export types are userlog, connectionlog, and useractivitylog.
manageAdminPassword:
type: boolean
description: If true, Amazon Redshift uses Secrets Manager to manage the namespace's admin credentials. You can't
use adminUserPassword if manageAdminPassword is true. If manageAdminPassword is false or not set, Amazon Redshift
uses adminUserPassword for the admin user account's password.
adminPasswordSecretKmsKeyId:
type: string
description: The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials
secret. You can only use this parameter if manageAdminPassword is true.
logDestinationType:
type: string
description: The destination for the log data. Valid values are s3table and cloudwatch. Set this to s3table to manage
Amazon S3 Tables system-table publishing for the namespace.
s3TableAction:
type: string
description: Whether to enable or disable Amazon S3 Tables publishing. Valid values are Enable and Disable, matched
case-insensitively. When omitted, defaults to Enable. Valid only when logDestinationType is s3table.
s3TableNames:
type: array
items:
type: string
description: The system tables to publish (on enable) or to stop publishing (on disable). Each value is either a
system table view name that begins with sys_ or the keyword all. Omitting this parameter, passing an empty list,
or including all each select every current and future system table. Each name must be 1-128 characters, and the
list can contain up to 256 names. Valid only when logDestinationType is s3table.
s3TableKmsKeyId:
type: string
description: The identifier of the Key Management Service key used to encrypt the published Amazon S3 Tables data.
When omitted, the data is encrypted with SSE-S3 (Amazon S3 managed keys). Valid only when logDestinationType is
s3table.
s3TableGranularity:
type: string
description: The scope of the Amazon S3 Tables destination. Valid values are namespace and account, matched case-insensitively.
namespace scopes the published tables to this namespace; account scopes them to the Amazon Web Services account.
Required when enabling. Omitting this parameter or passing a blank value fails with ValidationException. Valid
only when logDestinationType is s3table.
required:
- namespaceName
UpdateNamespaceResponse:
type: object
properties:
namespace:
$ref: '#/components/schemas/Namespace'
required:
- namespace
x-provenance:
method: harvested
publisher: Amazon Web Services
source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/redshift-serverless/service/2021-04-21/redshift-serverless-2021-04-21.json
note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)
sources:
- https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/redshift-serverless/service/2021-04-21/redshift-serverless-2021-04-21.json
- https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/redshift/service/2012-12-01/redshift-2012-12-01.json