We are excited to announce our new API Documentation.
Protected
Creates a new AMP workspace.
Use a bare-bones client and the command you need to make an API call.
import { AmpClient, CreateWorkspaceCommand } from "@aws-sdk/client-amp"; // ES Modules import// const { AmpClient, CreateWorkspaceCommand } = require("@aws-sdk/client-amp"); // CommonJS importconst client = new AmpClient(config);const input = { // CreateWorkspaceRequest alias: "STRING_VALUE", clientToken: "STRING_VALUE", tags: { // TagMap "<keys>": "STRING_VALUE", },};const command = new CreateWorkspaceCommand(input);const response = await client.send(command);// { // CreateWorkspaceResponse// workspaceId: "STRING_VALUE", // required// arn: "STRING_VALUE", // required// status: { // WorkspaceStatus// statusCode: "STRING_VALUE", // required// },// tags: { // TagMap// "<keys>": "STRING_VALUE",// },// };
CreateWorkspaceCommandInput
CreateWorkspaceCommandOutput
input
response
config
AccessDeniedException (client fault) User does not have sufficient access to perform this action.
ConflictException (client fault) Updating or deleting a resource can cause an inconsistent state.
InternalServerException (server fault) Unexpected error during processing of request.
ServiceQuotaExceededException (client fault) Request would cause a service quota to be exceeded.
ThrottlingException (client fault) Request was denied due to request throttling.
ValidationException (client fault) The input fails to satisfy the constraints specified by an AWS service.
AmpServiceException
Base exception class for all service exceptions from Amp service.
Readonly
Static
Creates a new AMP workspace.
Example
Use a bare-bones client and the command you need to make an API call.
Param
CreateWorkspaceCommandInput
Returns
CreateWorkspaceCommandOutput
See
input
shape.response
shape.config
shape.Throws
AccessDeniedException (client fault) User does not have sufficient access to perform this action.
Throws
ConflictException (client fault) Updating or deleting a resource can cause an inconsistent state.
Throws
InternalServerException (server fault) Unexpected error during processing of request.
Throws
ServiceQuotaExceededException (client fault) Request would cause a service quota to be exceeded.
Throws
ThrottlingException (client fault) Request was denied due to request throttling.
Throws
ValidationException (client fault) The input fails to satisfy the constraints specified by an AWS service.
Throws
AmpServiceException
Base exception class for all service exceptions from Amp service.