| 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.DynamoDB.Types.AttributeDefinition
Description
Documentation
data AttributeDefinition Source #
Represents an attribute for describing the key schema for the table and indexes.
See: newAttributeDefinition smart constructor.
Constructors
| AttributeDefinition' | |
Fields
| |
Instances
newAttributeDefinition Source #
Arguments
| :: Text | |
| -> ScalarAttributeType | |
| -> AttributeDefinition |
Create a value of AttributeDefinition 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:attributeName:AttributeDefinition', attributeDefinition_attributeName - A name for the attribute.
$sel:attributeType:AttributeDefinition', attributeDefinition_attributeType - The data type for the attribute, where:
S- the attribute is of type StringN- the attribute is of type NumberB- the attribute is of type Binary
attributeDefinition_attributeName :: Lens' AttributeDefinition Text Source #
A name for the attribute.
attributeDefinition_attributeType :: Lens' AttributeDefinition ScalarAttributeType Source #
The data type for the attribute, where:
S- the attribute is of type StringN- the attribute is of type NumberB- the attribute is of type Binary