UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

54 lines 1.78 kB
"use strict"; // *** 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.getTablesOutput = exports.getTables = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Returns a list of all AWS DynamoDB table names in a region. * * ## Example Usage * * The following example retrieves a list of all DynamoDB table names in a region. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const all = aws.dynamodb.getTables({}); * export const tableNames = all.then(all => all.names); * ``` */ function getTables(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:dynamodb/getTables:getTables", { "region": args.region, }, opts); } exports.getTables = getTables; /** * Returns a list of all AWS DynamoDB table names in a region. * * ## Example Usage * * The following example retrieves a list of all DynamoDB table names in a region. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const all = aws.dynamodb.getTables({}); * export const tableNames = all.then(all => all.names); * ``` */ function getTablesOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:dynamodb/getTables:getTables", { "region": args.region, }, opts); } exports.getTablesOutput = getTablesOutput; //# sourceMappingURL=getTables.js.map