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.AttributeDefinition

Description

 
Synopsis

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

Instances details
Eq AttributeDefinition Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeDefinition

Read AttributeDefinition Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeDefinition

Show AttributeDefinition Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeDefinition

Generic AttributeDefinition Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeDefinition

Associated Types

type Rep AttributeDefinition :: Type -> Type #

NFData AttributeDefinition Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeDefinition

Methods

rnf :: AttributeDefinition -> () #

Hashable AttributeDefinition Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeDefinition

ToJSON AttributeDefinition Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeDefinition

FromJSON AttributeDefinition Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeDefinition

type Rep AttributeDefinition Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeDefinition

type Rep AttributeDefinition = D1 ('MetaData "AttributeDefinition" "Amazonka.DynamoDB.Types.AttributeDefinition" "libZSservicesZSamazonka-dynamodbZSamazonka-dynamodb" 'False) (C1 ('MetaCons "AttributeDefinition'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attributeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "attributeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ScalarAttributeType)))

newAttributeDefinition Source #

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 String
  • N - the attribute is of type Number
  • B - the attribute is of type Binary

attributeDefinition_attributeType :: Lens' AttributeDefinition ScalarAttributeType Source #

The data type for the attribute, where:

  • S - the attribute is of type String
  • N - the attribute is of type Number
  • B - the attribute is of type Binary