libZSservicesZSamazonka-dynamodbZSamazonka-dynamodb
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.DynamoDB.Types.GlobalSecondaryIndexDescription

Description

 
Synopsis

Documentation

data GlobalSecondaryIndexDescription Source #

Represents the properties of a global secondary index.

See: newGlobalSecondaryIndexDescription smart constructor.

Constructors

GlobalSecondaryIndexDescription' 

Fields

  • backfilling :: Maybe Bool

    Indicates whether the index is currently backfilling. Backfilling is the process of reading items from the table and determining whether they can be added to the index. (Not all items will qualify: For example, a partition key cannot have any duplicate values.) If an item can be added to the index, DynamoDB will do so. After all items have been processed, the backfilling operation is complete and Backfilling is false.

    You can delete an index that is being created during the Backfilling phase when IndexStatus is set to CREATING and Backfilling is true. You can't delete the index that is being created when IndexStatus is set to CREATING and Backfilling is false.

    For indexes that were created during a CreateTable operation, the Backfilling attribute does not appear in the DescribeTable output.

  • indexSizeBytes :: Maybe Integer

    The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

  • indexStatus :: Maybe IndexStatus

    The current state of the global secondary index:

    • CREATING - The index is being created.
    • UPDATING - The index is being updated.
    • DELETING - The index is being deleted.
    • ACTIVE - The index is ready for use.
  • provisionedThroughput :: Maybe ProvisionedThroughputDescription

    Represents the provisioned throughput settings for the specified global secondary index.

    For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

  • indexArn :: Maybe Text

    The Amazon Resource Name (ARN) that uniquely identifies the index.

  • keySchema :: Maybe (NonEmpty KeySchemaElement)

    The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:

    • HASH - partition key
    • RANGE - sort key

    The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.

    The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.

  • projection :: Maybe Projection

    Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.

  • itemCount :: Maybe Integer

    The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

  • indexName :: Maybe Text

    The name of the global secondary index.

Instances

Instances details
Eq GlobalSecondaryIndexDescription Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.GlobalSecondaryIndexDescription

Read GlobalSecondaryIndexDescription Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.GlobalSecondaryIndexDescription

Show GlobalSecondaryIndexDescription Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.GlobalSecondaryIndexDescription

Generic GlobalSecondaryIndexDescription Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.GlobalSecondaryIndexDescription

Associated Types

type Rep GlobalSecondaryIndexDescription :: Type -> Type #

NFData GlobalSecondaryIndexDescription Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.GlobalSecondaryIndexDescription

Hashable GlobalSecondaryIndexDescription Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.GlobalSecondaryIndexDescription

FromJSON GlobalSecondaryIndexDescription Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.GlobalSecondaryIndexDescription

type Rep GlobalSecondaryIndexDescription Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.GlobalSecondaryIndexDescription

newGlobalSecondaryIndexDescription :: GlobalSecondaryIndexDescription Source #

Create a value of GlobalSecondaryIndexDescription 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:backfilling:GlobalSecondaryIndexDescription', globalSecondaryIndexDescription_backfilling - Indicates whether the index is currently backfilling. Backfilling is the process of reading items from the table and determining whether they can be added to the index. (Not all items will qualify: For example, a partition key cannot have any duplicate values.) If an item can be added to the index, DynamoDB will do so. After all items have been processed, the backfilling operation is complete and Backfilling is false.

You can delete an index that is being created during the Backfilling phase when IndexStatus is set to CREATING and Backfilling is true. You can't delete the index that is being created when IndexStatus is set to CREATING and Backfilling is false.

For indexes that were created during a CreateTable operation, the Backfilling attribute does not appear in the DescribeTable output.

$sel:indexSizeBytes:GlobalSecondaryIndexDescription', globalSecondaryIndexDescription_indexSizeBytes - The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

$sel:indexStatus:GlobalSecondaryIndexDescription', globalSecondaryIndexDescription_indexStatus - The current state of the global secondary index:

  • CREATING - The index is being created.
  • UPDATING - The index is being updated.
  • DELETING - The index is being deleted.
  • ACTIVE - The index is ready for use.

$sel:provisionedThroughput:GlobalSecondaryIndexDescription', globalSecondaryIndexDescription_provisionedThroughput - Represents the provisioned throughput settings for the specified global secondary index.

For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

$sel:indexArn:GlobalSecondaryIndexDescription', globalSecondaryIndexDescription_indexArn - The Amazon Resource Name (ARN) that uniquely identifies the index.

$sel:keySchema:GlobalSecondaryIndexDescription', globalSecondaryIndexDescription_keySchema - The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:

  • HASH - partition key
  • RANGE - sort key

The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.

The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.

$sel:projection:GlobalSecondaryIndexDescription', globalSecondaryIndexDescription_projection - Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.

$sel:itemCount:GlobalSecondaryIndexDescription', globalSecondaryIndexDescription_itemCount - The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

$sel:indexName:GlobalSecondaryIndexDescription', globalSecondaryIndexDescription_indexName - The name of the global secondary index.

globalSecondaryIndexDescription_backfilling :: Lens' GlobalSecondaryIndexDescription (Maybe Bool) Source #

Indicates whether the index is currently backfilling. Backfilling is the process of reading items from the table and determining whether they can be added to the index. (Not all items will qualify: For example, a partition key cannot have any duplicate values.) If an item can be added to the index, DynamoDB will do so. After all items have been processed, the backfilling operation is complete and Backfilling is false.

You can delete an index that is being created during the Backfilling phase when IndexStatus is set to CREATING and Backfilling is true. You can't delete the index that is being created when IndexStatus is set to CREATING and Backfilling is false.

For indexes that were created during a CreateTable operation, the Backfilling attribute does not appear in the DescribeTable output.

globalSecondaryIndexDescription_indexSizeBytes :: Lens' GlobalSecondaryIndexDescription (Maybe Integer) Source #

The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

globalSecondaryIndexDescription_indexStatus :: Lens' GlobalSecondaryIndexDescription (Maybe IndexStatus) Source #

The current state of the global secondary index:

  • CREATING - The index is being created.
  • UPDATING - The index is being updated.
  • DELETING - The index is being deleted.
  • ACTIVE - The index is ready for use.

globalSecondaryIndexDescription_provisionedThroughput :: Lens' GlobalSecondaryIndexDescription (Maybe ProvisionedThroughputDescription) Source #

Represents the provisioned throughput settings for the specified global secondary index.

For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

globalSecondaryIndexDescription_indexArn :: Lens' GlobalSecondaryIndexDescription (Maybe Text) Source #

The Amazon Resource Name (ARN) that uniquely identifies the index.

globalSecondaryIndexDescription_keySchema :: Lens' GlobalSecondaryIndexDescription (Maybe (NonEmpty KeySchemaElement)) Source #

The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:

  • HASH - partition key
  • RANGE - sort key

The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.

The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.

globalSecondaryIndexDescription_projection :: Lens' GlobalSecondaryIndexDescription (Maybe Projection) Source #

Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.

globalSecondaryIndexDescription_itemCount :: Lens' GlobalSecondaryIndexDescription (Maybe Integer) Source #

The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.