Jump to Content

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 command = new ListNamespacesCommand(input);
const response = await client.send(command);

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.

Hierarchy

Constructors

Properties

middlewareStack: MiddlewareStack<ListNamespacesCommandInput, ListNamespacesCommandOutput>

Methods