Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.KeySpaces.Types.SchemaDefinition
Description
Synopsis
- data SchemaDefinition = SchemaDefinition' {}
- newSchemaDefinition :: NonEmpty ColumnDefinition -> NonEmpty PartitionKey -> SchemaDefinition
- schemaDefinition_clusteringKeys :: Lens' SchemaDefinition (Maybe [ClusteringKey])
- schemaDefinition_staticColumns :: Lens' SchemaDefinition (Maybe [StaticColumn])
- schemaDefinition_allColumns :: Lens' SchemaDefinition (NonEmpty ColumnDefinition)
- schemaDefinition_partitionKeys :: Lens' SchemaDefinition (NonEmpty PartitionKey)
Documentation
data SchemaDefinition Source #
Describes the schema of the table.
See: newSchemaDefinition
smart constructor.
Constructors
SchemaDefinition' | |
Fields
|
Instances
Arguments
:: NonEmpty ColumnDefinition | |
-> NonEmpty PartitionKey | |
-> SchemaDefinition |
Create a value of SchemaDefinition
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:clusteringKeys:SchemaDefinition'
, schemaDefinition_clusteringKeys
- The columns that are part of the clustering key of the table.
$sel:staticColumns:SchemaDefinition'
, schemaDefinition_staticColumns
- The columns that have been defined as STATIC
. Static columns store
values that are shared by all rows in the same partition.
$sel:allColumns:SchemaDefinition'
, schemaDefinition_allColumns
- The regular columns of the table.
$sel:partitionKeys:SchemaDefinition'
, schemaDefinition_partitionKeys
- The columns that are part of the partition key of the table .
schemaDefinition_clusteringKeys :: Lens' SchemaDefinition (Maybe [ClusteringKey]) Source #
The columns that are part of the clustering key of the table.
schemaDefinition_staticColumns :: Lens' SchemaDefinition (Maybe [StaticColumn]) Source #
The columns that have been defined as STATIC
. Static columns store
values that are shared by all rows in the same partition.
schemaDefinition_allColumns :: Lens' SchemaDefinition (NonEmpty ColumnDefinition) Source #
The regular columns of the table.
schemaDefinition_partitionKeys :: Lens' SchemaDefinition (NonEmpty PartitionKey) Source #
The columns that are part of the partition key of the table .