commonMain.aws.sdk.kotlin.hll.dynamodbmapper.model.ItemSource.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dynamodb-mapper-jvm Show documentation
Show all versions of dynamodb-mapper-jvm Show documentation
High level DynamoDbMapper client
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.sdk.kotlin.hll.dynamodbmapper.model
import aws.sdk.kotlin.hll.dynamodbmapper.operations.ItemSourceOperations
import aws.smithy.kotlin.runtime.ExperimentalApi
/**
* Represents a source of DynamoDB items (such as a table or secondary index)
*/
@ExperimentalApi
public interface ItemSource :
PersistenceSpec,
ItemSourceOperations {
/**
* Represents a source of DynamoDB items (such as a table or secondary index) whose primary key is a single
* partition key
* @param T The type of objects which will be read from and/or written to this item source
* @param PK The type of the partition key property, either [String], [Number], or [ByteArray]
*/
@ExperimentalApi
public interface PartitionKey :
ItemSource,
PersistenceSpec.PartitionKey
/**
* Represents a source of DynamoDB items (such as a table or secondary index) whose primary key is a composite of a
* partition key and a sort key
* @param T The type of objects which will be read from and/or written to this item source
* @param PK The type of the partition key property, either [String], [Number], or [ByteArray]
* @param SK The type of the sort key property, either [String], [Number], or [ByteArray]
*/
@ExperimentalApi
public interface CompositeKey :
ItemSource,
PersistenceSpec.CompositeKey
}