

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::IoTSiteWise::Workspace EncryptionConfiguration
<a name="aws-properties-iotsitewise-workspace-encryptionconfiguration"></a>

Specifies the encryption configuration to apply to the workspace, including whether to use the default AWS IoT SiteWise key or a customer managed AWS KMS key.

## Syntax
<a name="aws-properties-iotsitewise-workspace-encryptionconfiguration-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-iotsitewise-workspace-encryptionconfiguration-syntax.json"></a>

```
{
  "[EncryptionType](#cfn-iotsitewise-workspace-encryptionconfiguration-encryptiontype)" : {{String}}
}
```

### YAML
<a name="aws-properties-iotsitewise-workspace-encryptionconfiguration-syntax.yaml"></a>

```
  [EncryptionType](#cfn-iotsitewise-workspace-encryptionconfiguration-encryptiontype): {{String}}
```

## Properties
<a name="aws-properties-iotsitewise-workspace-encryptionconfiguration-properties"></a>

`EncryptionType`  <a name="cfn-iotsitewise-workspace-encryptionconfiguration-encryptiontype"></a>
The encryption scheme for the workspace. Valid values:  
+ `SITEWISE_DEFAULT_ENCRYPTION` – Encrypts data with the AWS IoT SiteWise default key.
+ `KMS_BASED_ENCRYPTION` – Encrypts data with the customer managed AWS KMS key identified by `KmsKeyId`.
*Required*: Yes  
*Type*: String  
*Allowed values*: `SITEWISE_DEFAULT_ENCRYPTION | KMS_BASED_ENCRYPTION`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)