UNPKG

@pulumi/aws

Version:

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

70 lines 2.46 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.getRegionOutput = exports.getRegion = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * `aws.getRegion` provides details about a specific AWS Region. * * As well as validating a given Region name this resource can be used to * discover the name of the Region configured within the provider. The latter * can be useful in a child module which is inheriting an AWS provider * configuration from its parent module. * * ## Example Usage * * The following example shows how the resource might be used to obtain * the name of the AWS Region configured on the provider. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const current = aws.getRegion({}); * ``` */ function getRegion(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:index/getRegion:getRegion", { "endpoint": args.endpoint, "id": args.id, "name": args.name, "region": args.region, }, opts); } exports.getRegion = getRegion; /** * `aws.getRegion` provides details about a specific AWS Region. * * As well as validating a given Region name this resource can be used to * discover the name of the Region configured within the provider. The latter * can be useful in a child module which is inheriting an AWS provider * configuration from its parent module. * * ## Example Usage * * The following example shows how the resource might be used to obtain * the name of the AWS Region configured on the provider. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const current = aws.getRegion({}); * ``` */ function getRegionOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:index/getRegion:getRegion", { "endpoint": args.endpoint, "id": args.id, "name": args.name, "region": args.region, }, opts); } exports.getRegionOutput = getRegionOutput; //# sourceMappingURL=getRegion.js.map