Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListNamespacesCommandProtected

Returns information about a list of specified namespaces.

Example

Use a bare-bones client and the command you need to make an API call.

import { RedshiftServerlessClient, ListNamespacesCommand } from "@aws-sdk/client-redshift-serverless"; // ES Modules import
// const { RedshiftServerlessClient, ListNamespacesCommand } = require("@aws-sdk/client-redshift-serverless"); // CommonJS import
const client = new RedshiftServerlessClient(config);
const input = { // ListNamespacesRequest
nextToken: "STRING_VALUE",
maxResults: Number("int"),
};
const command = new ListNamespacesCommand(input);
const response = await client.send(command);
// { // ListNamespacesResponse
// nextToken: "STRING_VALUE",
// namespaces: [ // NamespaceList // required
// { // Namespace
// namespaceArn: "STRING_VALUE",
// namespaceId: "STRING_VALUE",
// namespaceName: "STRING_VALUE",
// adminUsername: "STRING_VALUE",
// dbName: "STRING_VALUE",
// kmsKeyId: "STRING_VALUE",
// defaultIamRoleArn: "STRING_VALUE",
// iamRoles: [ // IamRoleArnList
// "STRING_VALUE",
// ],
// logExports: [ // LogExportList
// "STRING_VALUE",
// ],
// status: "STRING_VALUE",
// creationDate: new Date("TIMESTAMP"),
// adminPasswordSecretArn: "STRING_VALUE",
// adminPasswordSecretKmsKeyId: "STRING_VALUE",
// },
// ],
// };

Param

ListNamespacesCommandInput

Returns

ListNamespacesCommandOutput

See

Throws

InternalServerException (server fault)

The request processing has failed because of an unknown error, exception or failure.

Throws

ValidationException (client fault)

The input failed to satisfy the constraints specified by an AWS service.

Throws

RedshiftServerlessServiceException

Base exception class for all service exceptions from RedshiftServerless service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods