amazonka-dynamodb-2.0: Amazon DynamoDB SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
FromJSON AttributeDefinition Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeDefinition

ToJSON 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 #

Read AttributeDefinition Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeDefinition

Show AttributeDefinition Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeDefinition

NFData AttributeDefinition Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeDefinition

Methods

rnf :: AttributeDefinition -> () #

Eq AttributeDefinition Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeDefinition

Hashable 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" "amazonka-dynamodb-2.0-GNxlseyeFiu302JKQwQrUS" '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