# CfnWorkspaceProps

Properties for defining a `CfnWorkspace`.

Extends: CfnWorkspaceProps
Used as props by: CfnWorkspace

- Source: Generated code

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_workspaces as workspaces } from 'aws-cdk-lib';
const cfnWorkspaceProps: workspaces.CfnWorkspaceProps = {
  bundleId: 'bundleId',
  directoryId: 'directoryId',
  userName: 'userName',

  // the properties below are optional
  rootVolumeEncryptionEnabled: false,
  tags: [{
    key: 'key',
    value: 'value',
  }],
  userVolumeEncryptionEnabled: false,
  volumeEncryptionKey: 'volumeEncryptionKey',
  workspaceProperties: {
    computeTypeName: 'computeTypeName',
    rootVolumeSizeGib: 123,
    runningMode: 'runningMode',
    runningModeAutoStopTimeoutInMinutes: 123,
    userVolumeSizeGib: 123,
  },
};
```

## Properties

- `bundleId`: string (required) — The identifier of the bundle for the WorkSpace.

- `directoryId`: string (required) — The identifier of the Directory Service directory for the WorkSpace.

- `rootVolumeEncryptionEnabled`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether the data stored on the root volume is encrypted.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags for the WorkSpace.

- `userName`: string (required) — The user name of the user for the WorkSpace.

  This user name must exist in the Directory Service directory for the WorkSpace.

- `userVolumeEncryptionEnabled`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether the data stored on the user volume is encrypted.

- `volumeEncryptionKey`: string — The symmetric AWS KMS key used to encrypt data stored on your WorkSpace.

  Amazon WorkSpaces does not support asymmetric KMS keys.

- `workspaceProperties`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWorkspace.WorkspacePropertiesProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_workspaces.CfnWorkspace.WorkspacePropertiesProperty.html) — The WorkSpace properties.
