Protected
Creates a namespace in Amazon Redshift Serverless.
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 importconst 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);
CreateNamespaceCommandInput
CreateNamespaceCommandOutput
input
response
config
ConflictException (client fault)
The submitted action has conflicts.
InternalServerException (server fault)
The request processing has failed because of an unknown error, exception or failure.
TooManyTagsException (client fault)
The request exceeded the number of tags allowed for a resource.
ValidationException (client fault)
The input failed to satisfy the constraints specified by an AWS service.
Readonly
Static
Creates a namespace in Amazon Redshift Serverless.
Example
Use a bare-bones client and the command you need to make an API call.
Param
CreateNamespaceCommandInput
Returns
CreateNamespaceCommandOutput
See
input
shape.response
shape.config
shape.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.