@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
54 lines • 2.33 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.getLocationsOutput = exports.getLocations = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Retrieve information about the AWS Direct Connect locations in the current AWS Region.
* These are the locations that can be specified when configuring `aws.directconnect.Connection` or `aws.directconnect.LinkAggregationGroup` resources.
*
* > **Note:** This data source is different from the `aws.directconnect.getLocation` data source which retrieves information about a specific AWS Direct Connect location in the current AWS Region.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const available = aws.directconnect.getLocations({});
* ```
*/
function getLocations(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:directconnect/getLocations:getLocations", {
"region": args.region,
}, opts);
}
exports.getLocations = getLocations;
/**
* Retrieve information about the AWS Direct Connect locations in the current AWS Region.
* These are the locations that can be specified when configuring `aws.directconnect.Connection` or `aws.directconnect.LinkAggregationGroup` resources.
*
* > **Note:** This data source is different from the `aws.directconnect.getLocation` data source which retrieves information about a specific AWS Direct Connect location in the current AWS Region.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const available = aws.directconnect.getLocations({});
* ```
*/
function getLocationsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:directconnect/getLocations:getLocations", {
"region": args.region,
}, opts);
}
exports.getLocationsOutput = getLocationsOutput;
//# sourceMappingURL=getLocations.js.map