import * as pulumi from "@pulumi/pulumi"; /** * Data source for retrieving a value from an AWS DynamoDB table. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.dynamodb.getTableItem({ * tableName: example.name, * expressionAttributeNames: { * "#P": "Percentile", * }, * projectionExpression: "#P", * key: `{ * \\t\\"hashKey\\": {\\"S\\": \\"example\\"} * } * `, * }); * ``` */ export declare function getTableItem(args: GetTableItemArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getTableItem. */ export interface GetTableItemArgs { /** * One or more substitution tokens for attribute names in an expression. Use the `#` character in an expression to dereference an attribute name. */ expressionAttributeNames?: { [key: string]: string; }; /** * Map of attribute names to AttributeValue objects, representing the primary key of the item to retrieve. For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key. */ key: string; /** * String that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas. */ projectionExpression?: string; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; /** * Name or ARN of the table containing the requested item. * * The following arguments are optional: */ tableName: string; } /** * A collection of values returned by getTableItem. */ export interface GetTableItemResult { readonly expressionAttributeNames?: { [key: string]: string; }; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * JSON representation of a map of attribute names to [AttributeValue](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html) objects, as specified by ProjectionExpression. */ readonly item: string; readonly key: string; readonly projectionExpression?: string; readonly region: string; readonly tableName: string; } /** * Data source for retrieving a value from an AWS DynamoDB table. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.dynamodb.getTableItem({ * tableName: example.name, * expressionAttributeNames: { * "#P": "Percentile", * }, * projectionExpression: "#P", * key: `{ * \\t\\"hashKey\\": {\\"S\\": \\"example\\"} * } * `, * }); * ``` */ export declare function getTableItemOutput(args: GetTableItemOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getTableItem. */ export interface GetTableItemOutputArgs { /** * One or more substitution tokens for attribute names in an expression. Use the `#` character in an expression to dereference an attribute name. */ expressionAttributeNames?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Map of attribute names to AttributeValue objects, representing the primary key of the item to retrieve. For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key. */ key: pulumi.Input; /** * String that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas. */ projectionExpression?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Name or ARN of the table containing the requested item. * * The following arguments are optional: */ tableName: pulumi.Input; } //# sourceMappingURL=getTableItem.d.ts.map