Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a data store, which is a repository for messages.
Synopsis
- data CreateDatastore = CreateDatastore' {}
- newCreateDatastore :: Text -> CreateDatastore
- createDatastore_fileFormatConfiguration :: Lens' CreateDatastore (Maybe FileFormatConfiguration)
- createDatastore_datastorePartitions :: Lens' CreateDatastore (Maybe DatastorePartitions)
- createDatastore_retentionPeriod :: Lens' CreateDatastore (Maybe RetentionPeriod)
- createDatastore_datastoreStorage :: Lens' CreateDatastore (Maybe DatastoreStorage)
- createDatastore_tags :: Lens' CreateDatastore (Maybe (NonEmpty Tag))
- createDatastore_datastoreName :: Lens' CreateDatastore Text
- data CreateDatastoreResponse = CreateDatastoreResponse' {}
- newCreateDatastoreResponse :: Int -> CreateDatastoreResponse
- createDatastoreResponse_datastoreArn :: Lens' CreateDatastoreResponse (Maybe Text)
- createDatastoreResponse_datastoreName :: Lens' CreateDatastoreResponse (Maybe Text)
- createDatastoreResponse_retentionPeriod :: Lens' CreateDatastoreResponse (Maybe RetentionPeriod)
- createDatastoreResponse_httpStatus :: Lens' CreateDatastoreResponse Int
Creating a Request
data CreateDatastore Source #
See: newCreateDatastore
smart constructor.
CreateDatastore' | |
|
Instances
Create a value of CreateDatastore
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:fileFormatConfiguration:CreateDatastore'
, createDatastore_fileFormatConfiguration
- Contains the configuration information of file formats. IoT Analytics
data stores support JSON and Parquet.
The default file format is JSON. You can specify only one format.
You can't change the file format after you create the data store.
$sel:datastorePartitions:CreateDatastore'
, createDatastore_datastorePartitions
- Contains information about the partition dimensions in a data store.
$sel:retentionPeriod:CreateDatastore'
, createDatastore_retentionPeriod
- How long, in days, message data is kept for the data store. When
customerManagedS3
storage is selected, this parameter is ignored.
$sel:datastoreStorage:CreateDatastore'
, createDatastore_datastoreStorage
- Where data in a data store is stored.. You can choose serviceManagedS3
storage, customerManagedS3
storage, or iotSiteWiseMultiLayerStorage
storage. The default is serviceManagedS3
. You can't change the choice
of Amazon S3 storage after your data store is created.
$sel:tags:CreateDatastore'
, createDatastore_tags
- Metadata which can be used to manage the data store.
$sel:datastoreName:CreateDatastore'
, createDatastore_datastoreName
- The name of the data store.
Request Lenses
createDatastore_fileFormatConfiguration :: Lens' CreateDatastore (Maybe FileFormatConfiguration) Source #
Contains the configuration information of file formats. IoT Analytics data stores support JSON and Parquet.
The default file format is JSON. You can specify only one format.
You can't change the file format after you create the data store.
createDatastore_datastorePartitions :: Lens' CreateDatastore (Maybe DatastorePartitions) Source #
Contains information about the partition dimensions in a data store.
createDatastore_retentionPeriod :: Lens' CreateDatastore (Maybe RetentionPeriod) Source #
How long, in days, message data is kept for the data store. When
customerManagedS3
storage is selected, this parameter is ignored.
createDatastore_datastoreStorage :: Lens' CreateDatastore (Maybe DatastoreStorage) Source #
Where data in a data store is stored.. You can choose serviceManagedS3
storage, customerManagedS3
storage, or iotSiteWiseMultiLayerStorage
storage. The default is serviceManagedS3
. You can't change the choice
of Amazon S3 storage after your data store is created.
createDatastore_tags :: Lens' CreateDatastore (Maybe (NonEmpty Tag)) Source #
Metadata which can be used to manage the data store.
createDatastore_datastoreName :: Lens' CreateDatastore Text Source #
The name of the data store.
Destructuring the Response
data CreateDatastoreResponse Source #
See: newCreateDatastoreResponse
smart constructor.
CreateDatastoreResponse' | |
|
Instances
newCreateDatastoreResponse Source #
Create a value of CreateDatastoreResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:datastoreArn:CreateDatastoreResponse'
, createDatastoreResponse_datastoreArn
- The ARN of the data store.
$sel:datastoreName:CreateDatastore'
, createDatastoreResponse_datastoreName
- The name of the data store.
$sel:retentionPeriod:CreateDatastore'
, createDatastoreResponse_retentionPeriod
- How long, in days, message data is kept for the data store.
$sel:httpStatus:CreateDatastoreResponse'
, createDatastoreResponse_httpStatus
- The response's http status code.
Response Lenses
createDatastoreResponse_datastoreArn :: Lens' CreateDatastoreResponse (Maybe Text) Source #
The ARN of the data store.
createDatastoreResponse_datastoreName :: Lens' CreateDatastoreResponse (Maybe Text) Source #
The name of the data store.
createDatastoreResponse_retentionPeriod :: Lens' CreateDatastoreResponse (Maybe RetentionPeriod) Source #
How long, in days, message data is kept for the data store.
createDatastoreResponse_httpStatus :: Lens' CreateDatastoreResponse Int Source #
The response's http status code.