DynamoDBAction

public struct DynamoDBAction : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • The name of the hash key (also called the partition key).

    Declaration

    Swift

    public let hashKeyField: String
  • The data type for the hash key (also called the partition key). You can specify the following values: STRING - The hash key is a string. NUMBER - The hash key is a number. If you don’t specify hashKeyType, the default value is STRING.

    Declaration

    Swift

    public let hashKeyType: String?
  • The value of the hash key (also called the partition key).

    Declaration

    Swift

    public let hashKeyValue: String
  • The type of operation to perform. You can specify the following values: INSERT - Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key. UPDATE - Update an existing item of the DynamoDB table with new data. This item’s partition key must match the specified hash key. If you specified a range key, the range key must match the item’s sort key. DELETE - Delete an existing item of the DynamoDB table. This item’s partition key must match the specified hash key. If you specified a range key, the range key must match the item’s sort key. If you don’t specify this parameter, AWS IoT Events triggers the INSERT operation.

    Declaration

    Swift

    public let operation: String?
  • Undocumented

    Declaration

    Swift

    public let payload: Payload?
  • The name of the DynamoDB column that receives the action payload. If you don’t specify this parameter, the name of the DynamoDB column is payload.

    Declaration

    Swift

    public let payloadField: String?
  • The name of the range key (also called the sort key).

    Declaration

    Swift

    public let rangeKeyField: String?
  • The data type for the range key (also called the sort key), You can specify the following values: STRING - The range key is a string. NUMBER - The range key is number. If you don’t specify rangeKeyField, the default value is STRING.

    Declaration

    Swift

    public let rangeKeyType: String?
  • The value of the range key (also called the sort key).

    Declaration

    Swift

    public let rangeKeyValue: String?
  • The name of the DynamoDB table.

    Declaration

    Swift

    public let tableName: String
  • Undocumented

    Declaration

    Swift

    public init(hashKeyField: String, hashKeyType: String? = nil, hashKeyValue: String, operation: String? = nil, payload: Payload? = nil, payloadField: String? = nil, rangeKeyField: String? = nil, rangeKeyType: String? = nil, rangeKeyValue: String? = nil, tableName: String)
  • Declaration

    Swift

    public func validate(name: String) throws