We are excited to announce our new API Documentation.
Protected
Returns information about a list of specified namespaces.
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 importconst 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",// },// ],// };
ListNamespacesCommandInput
ListNamespacesCommandOutput
input
response
config
InternalServerException (server fault)
The request processing has failed because of an unknown error, exception or failure.
ValidationException (client fault)
The input failed to satisfy the constraints specified by an AWS service.
RedshiftServerlessServiceException
Base exception class for all service exceptions from RedshiftServerless service.
Readonly
Static
Returns information about a list of specified namespaces.
Example
Use a bare-bones client and the command you need to make an API call.
Param
ListNamespacesCommandInput
Returns
ListNamespacesCommandOutput
See
input
shape.response
shape.config
shape.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.