AWS::WorkSpaces::WorkspaceThe `AWS::WorkSpaces::Workspace` resource specifies a WorkSpace. Updates are not supported for the `BundleId` , `RootVolumeEncryptionEnabled` , `UserVolumeEncryptionEnabled` , or `VolumeEncryptionKey` properties. To update these properties, you must also update a property that triggers a replacement, such as the `UserName` property.
import { CfnWorkspace } from 'aws-cdk-lib/aws-workspaces';Or use the module namespace:
import * as workspaces from 'aws-cdk-lib/aws-workspaces';
// workspaces.CfnWorkspaceConfiguration passed to the constructor as CfnWorkspaceProps.
bundleIdRequiredstringThe identifier of the bundle for the WorkSpace.
directoryIdRequiredstringThe identifier of the Directory Service directory for the WorkSpace.
userNameRequiredstringThe user name of the user for the WorkSpace. This user name must exist in the Directory Service directory for the WorkSpace.
rootVolumeEncryptionEnabledOptionalboolean | IResolvableIndicates whether the data stored on the root volume is encrypted.
tagsOptionalCfnTag[]The tags for the WorkSpace.
userVolumeEncryptionEnabledOptionalboolean | IResolvableIndicates whether the data stored on the user volume is encrypted.
volumeEncryptionKeyOptionalstringThe symmetric AWS KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys.
workspacePropertiesOptionalIResolvable | WorkspacePropertiesPropertyThe WorkSpace properties.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-workspacesAWS::WorkSpaces::Workspace