All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.hll.dynamodbmapper.model.ItemSource.kt Maven / Gradle / Ivy

There is a newer version: 1.3.73-beta
Show newest version
/*
 * 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy