

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::IoTAnalytics::Datastore DatastoreStorage
<a name="aws-properties-iotanalytics-datastore-datastorestorage"></a>

Where data store data is stored.

## Syntax
<a name="aws-properties-iotanalytics-datastore-datastorestorage-syntax"></a>

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

### JSON
<a name="aws-properties-iotanalytics-datastore-datastorestorage-syntax.json"></a>

```
{
  "[CustomerManagedS3](#cfn-iotanalytics-datastore-datastorestorage-customermanageds3)" : CustomerManagedS3,
  "[IotSiteWiseMultiLayerStorage](#cfn-iotanalytics-datastore-datastorestorage-iotsitewisemultilayerstorage)" : IotSiteWiseMultiLayerStorage,
  "[ServiceManagedS3](#cfn-iotanalytics-datastore-datastorestorage-servicemanageds3)" : Json
}
```

### YAML
<a name="aws-properties-iotanalytics-datastore-datastorestorage-syntax.yaml"></a>

```
  [CustomerManagedS3](#cfn-iotanalytics-datastore-datastorestorage-customermanageds3): 
    CustomerManagedS3
  [IotSiteWiseMultiLayerStorage](#cfn-iotanalytics-datastore-datastorestorage-iotsitewisemultilayerstorage): 
    IotSiteWiseMultiLayerStorage
  [ServiceManagedS3](#cfn-iotanalytics-datastore-datastorestorage-servicemanageds3): Json
```

## Properties
<a name="aws-properties-iotanalytics-datastore-datastorestorage-properties"></a>

`CustomerManagedS3`  <a name="cfn-iotanalytics-datastore-datastorestorage-customermanageds3"></a>
Use this to store data store data in an S3 bucket that you manage. The choice of service-managed or customer-managed S3 storage cannot be changed after creation of the data store.  
*Required*: No  
*Type*: [CustomerManagedS3](aws-properties-iotanalytics-datastore-customermanageds3.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`IotSiteWiseMultiLayerStorage`  <a name="cfn-iotanalytics-datastore-datastorestorage-iotsitewisemultilayerstorage"></a>
Use this to store data used by AWS IoT SiteWise in an Amazon S3 bucket that you manage. You can't change the choice of Amazon S3 storage after your data store is created.  
*Required*: No  
*Type*: [IotSiteWiseMultiLayerStorage](aws-properties-iotanalytics-datastore-iotsitewisemultilayerstorage.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ServiceManagedS3`  <a name="cfn-iotanalytics-datastore-datastorestorage-servicemanageds3"></a>
Use this to store data store data in an S3 bucket managed by the AWS IoT Analytics service. The choice of service-managed or customer-managed S3 storage cannot be changed after creation of the data store.  
*Required*: No  
*Type*: Json  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)