@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
78 lines • 2.34 kB
JavaScript
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTableItemOutput = exports.getTableItem = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* 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: `{
* \x09"hashKey": {"S": "example"}
* }
* `,
* });
* ```
*/
function getTableItem(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:dynamodb/getTableItem:getTableItem", {
"expressionAttributeNames": args.expressionAttributeNames,
"key": args.key,
"projectionExpression": args.projectionExpression,
"region": args.region,
"tableName": args.tableName,
}, opts);
}
exports.getTableItem = getTableItem;
/**
* 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: `{
* \x09"hashKey": {"S": "example"}
* }
* `,
* });
* ```
*/
function getTableItemOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:dynamodb/getTableItem:getTableItem", {
"expressionAttributeNames": args.expressionAttributeNames,
"key": args.key,
"projectionExpression": args.projectionExpression,
"region": args.region,
"tableName": args.tableName,
}, opts);
}
exports.getTableItemOutput = getTableItemOutput;
//# sourceMappingURL=getTableItem.js.map
;