update_datastore
(**kwargs)¶Used to update the settings of a data store.
See also: AWS API Documentation
Request Syntax
response = client.update_datastore(
datastoreName='string',
retentionPeriod={
'unlimited': True|False,
'numberOfDays': 123
},
datastoreStorage={
'serviceManagedS3': {}
,
'customerManagedS3': {
'bucket': 'string',
'keyPrefix': 'string',
'roleArn': 'string'
},
'iotSiteWiseMultiLayerStorage': {
'customerManagedS3Storage': {
'bucket': 'string',
'keyPrefix': 'string'
}
}
},
fileFormatConfiguration={
'jsonConfiguration': {}
,
'parquetConfiguration': {
'schemaDefinition': {
'columns': [
{
'name': 'string',
'type': 'string'
},
]
}
}
}
)
[REQUIRED]
The name of the data store to be updated.
How long, in days, message data is kept for the data store. The retention period can't be updated if the data store's Amazon S3 storage is customer-managed.
If true, message data is kept indefinitely.
The number of days that message data is kept. The unlimited
parameter must be false.
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.
Used to store data in an Amazon S3 bucket managed by IoT Analytics. You can't change the choice of Amazon S3 storage after your data store is created.
S3-customer-managed; When you choose customer-managed storage, the retentionPeriod
parameter is ignored. You can't change the choice of Amazon S3 storage after your data store is created.
The name of the Amazon S3 bucket where your data is stored.
(Optional) The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket has exactly one key. The prefix must end with a forward slash (/).
The ARN of the role that grants IoT Analytics permission to interact with your Amazon S3 resources.
Used to store data used by 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.
Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage.
The name of the Amazon S3 bucket where your data is stored.
(Optional) The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket has exactly one key. The prefix must end with a forward slash (/).
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.
Contains the configuration information of the JSON format.
Contains the configuration information of the Parquet format.
Information needed to define a schema.
Specifies one or more columns that store your data.
Each schema can have up to 100 columns. Each column can have up to 100 nested types.
Contains information about a column that stores your data.
The name of the column.
The type of data. For more information about the supported data types, see Common data types in the Glue Developer Guide .
None
Exceptions
IoTAnalytics.Client.exceptions.InvalidRequestException
IoTAnalytics.Client.exceptions.ResourceNotFoundException
IoTAnalytics.Client.exceptions.InternalFailureException
IoTAnalytics.Client.exceptions.ServiceUnavailableException
IoTAnalytics.Client.exceptions.ThrottlingException