AWSDynamoDBModeling

Objective-C

@protocol AWSDynamoDBModeling <NSObject>

Swift

protocol AWSDynamoDBModeling : NSObjectProtocol

A DynamoDB Modeling protocol. All objects mapped to an Amazon DynamoDB table row need to conform to this protocol.

  • Returns the Amazon DynamoDB table name.

    Declaration

    Objective-C

    + (nonnull NSString *)dynamoDBTableName;

    Swift

    static func dynamoDBTableName() -> String

    Return Value

    A table name.

  • Returns the hash key attribute name.

    Declaration

    Objective-C

    + (nonnull NSString *)hashKeyAttribute;

    Swift

    static func hashKeyAttribute() -> String

    Return Value

    A hash key attribute name.

  • Returns the range key attribute name.

    Declaration

    Objective-C

    + (nonnull NSString *)rangeKeyAttribute;

    Swift

    optional static func rangeKeyAttribute() -> String

    Return Value

    A range key attribute name.

  • Returns the names of attributes that need to be ignored.

    Declaration

    Objective-C

    + (nonnull NSArray<NSString *> *)ignoreAttributes;

    Swift

    optional static func ignoreAttributes() -> [String]

    Return Value

    An array of attribute names.