IoTAnalytics / Paginator / ListDatastores

ListDatastores#

class IoTAnalytics.Paginator.ListDatastores#
paginator = client.get_paginator('list_datastores')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from IoTAnalytics.Client.list_datastores().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:

PaginationConfig (dict) –

A dictionary that provides parameters to control pagination.

  • MaxItems (integer) –

    The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

  • PageSize (integer) –

    The size of each page.

  • StartingToken (string) –

    A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'datastoreSummaries': [
        {
            'datastoreName': 'string',
            'datastoreStorage': {
                'serviceManagedS3': {},
                'customerManagedS3': {
                    'bucket': 'string',
                    'keyPrefix': 'string',
                    'roleArn': 'string'
                },
                'iotSiteWiseMultiLayerStorage': {
                    'customerManagedS3Storage': {
                        'bucket': 'string',
                        'keyPrefix': 'string'
                    }
                }
            },
            'status': 'CREATING'|'ACTIVE'|'DELETING',
            'creationTime': datetime(2015, 1, 1),
            'lastUpdateTime': datetime(2015, 1, 1),
            'lastMessageArrivalTime': datetime(2015, 1, 1),
            'fileFormatType': 'JSON'|'PARQUET',
            'datastorePartitions': {
                'partitions': [
                    {
                        'attributePartition': {
                            'attributeName': 'string'
                        },
                        'timestampPartition': {
                            'attributeName': 'string',
                            'timestampFormat': 'string'
                        }
                    },
                ]
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • datastoreSummaries (list) –

      A list of DatastoreSummary objects.

      • (dict) –

        A summary of information about a data store.

        • datastoreName (string) –

          The name of the data store.

        • datastoreStorage (dict) –

          Where data in a data store is stored.

          • serviceManagedS3 (dict) –

            Used to store data in an Amazon S3 bucket managed by IoT Analytics.

          • customerManagedS3 (dict) –

            Used to store data in an Amazon S3 bucket managed by IoT Analytics.

            • bucket (string) –

              The name of the Amazon S3 bucket where your data is stored.

            • keyPrefix (string) –

              (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 (/).

            • roleArn (string) –

              The ARN of the role that grants IoT Analytics permission to interact with your Amazon S3 resources.

          • iotSiteWiseMultiLayerStorage (dict) –

            Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage.

            • customerManagedS3Storage (dict) –

              Used to store data used by IoT SiteWise in an Amazon S3 bucket that you manage.

              • bucket (string) –

                The name of the Amazon S3 bucket where your data is stored.

              • keyPrefix (string) –

                (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 (/).

        • status (string) –

          The status of the data store.

        • creationTime (datetime) –

          When the data store was created.

        • lastUpdateTime (datetime) –

          The last time the data store was updated.

        • lastMessageArrivalTime (datetime) –

          The last time when a new message arrived in the data store.

          IoT Analytics updates this value at most once per minute for Amazon Simple Storage Service one data store. Hence, the lastMessageArrivalTime value is an approximation.

          This feature only applies to messages that arrived in the data store after October 23, 2020.

        • fileFormatType (string) –

          The file format of the data in the data store.

        • datastorePartitions (dict) –

          Contains information about the partition dimensions in a data store.

          • partitions (list) –

            A list of partition dimensions in a data store.

            • (dict) –

              A single dimension to partition a data store. The dimension must be an AttributePartition or a TimestampPartition.

              • attributePartition (dict) –

                A partition dimension defined by an attributeName.

                • attributeName (string) –

                  The name of the attribute that defines a partition dimension.

              • timestampPartition (dict) –

                A partition dimension defined by a timestamp attribute.

                • attributeName (string) –

                  The attribute name of the partition defined by a timestamp.

                • timestampFormat (string) –

                  The timestamp format of a partition defined by a timestamp. The default format is seconds since epoch (January 1, 1970 at midnight UTC time).

    • NextToken (string) –

      A token to resume pagination.