Jump to Content

Class CreateNamespaceCommandProtected

Creates a namespace in Amazon Redshift Serverless.

Example

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

import { RedshiftServerlessClient, CreateNamespaceCommand } from "@aws-sdk/client-redshift-serverless"; // ES Modules import
// const { RedshiftServerlessClient, CreateNamespaceCommand } = require("@aws-sdk/client-redshift-serverless"); // CommonJS import
const client = new RedshiftServerlessClient(config);
const input = { // CreateNamespaceRequest
namespaceName: "STRING_VALUE", // required
adminUsername: "STRING_VALUE",
adminUserPassword: "STRING_VALUE",
dbName: "STRING_VALUE",
kmsKeyId: "STRING_VALUE",
defaultIamRoleArn: "STRING_VALUE",
iamRoles: [ // IamRoleArnList
"STRING_VALUE",
],
logExports: [ // LogExportList
"STRING_VALUE",
],
tags: [ // TagList
{ // Tag
key: "STRING_VALUE", // required
value: "STRING_VALUE", // required
},
],
};
const command = new CreateNamespaceCommand(input);
const response = await client.send(command);

Param

CreateNamespaceCommandInput

Returns

CreateNamespaceCommandOutput

See

Throws

ConflictException (client fault)

The submitted action has conflicts.

Throws

InternalServerException (server fault)

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

Throws

TooManyTagsException (client fault)

The request exceeded the number of tags allowed for a resource.

Throws

ValidationException (client fault)

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

Hierarchy

Constructors

Properties

Methods