Jump to Content

Class CreatePortalCommandProtected

Creates a web portal.

Example

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

import { WorkSpacesWebClient, CreatePortalCommand } from "@aws-sdk/client-workspaces-web"; // ES Modules import
// const { WorkSpacesWebClient, CreatePortalCommand } = require("@aws-sdk/client-workspaces-web"); // CommonJS import
const client = new WorkSpacesWebClient(config);
const input = { // CreatePortalRequest
displayName: "STRING_VALUE",
tags: [ // TagList
{ // Tag
Key: "STRING_VALUE", // required
Value: "STRING_VALUE", // required
},
],
customerManagedKey: "STRING_VALUE",
additionalEncryptionContext: { // EncryptionContextMap
"<keys>": "STRING_VALUE",
},
clientToken: "STRING_VALUE",
authenticationType: "STRING_VALUE",
};
const command = new CreatePortalCommand(input);
const response = await client.send(command);

Param

CreatePortalCommandInput

Returns

CreatePortalCommandOutput

See

Throws

AccessDeniedException (client fault)

Access is denied.

Throws

ConflictException (client fault)

There is a conflict.

Throws

InternalServerException (server fault)

There is an internal server error.

Throws

ResourceNotFoundException (client fault)

The resource cannot be found.

Throws

ServiceQuotaExceededException (client fault)

The service quota has been exceeded.

Throws

ThrottlingException (client fault)

There is a throttling error.

Throws

ValidationException (client fault)

There is a validation error.

Hierarchy

Constructors

Properties

middlewareStack: MiddlewareStack<CreatePortalCommandInput, CreatePortalCommandOutput>

Methods