@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
70 lines • 2.38 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.getManagedPrefixListsOutput = exports.getManagedPrefixLists = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* This resource can be useful for getting back a list of managed prefix list ids to be referenced elsewhere.
*
* ## Example Usage
*
* The following returns all managed prefix lists filtered by tags
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const testEnv = aws.ec2.getManagedPrefixLists({
* tags: {
* Env: "test",
* },
* });
* const testEnvGetManagedPrefixList = .map(__index => (aws.ec2.getManagedPrefixList({
* id: _arg0_.ids[__index],
* })));
* ```
*/
function getManagedPrefixLists(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:ec2/getManagedPrefixLists:getManagedPrefixLists", {
"filters": args.filters,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getManagedPrefixLists = getManagedPrefixLists;
/**
* This resource can be useful for getting back a list of managed prefix list ids to be referenced elsewhere.
*
* ## Example Usage
*
* The following returns all managed prefix lists filtered by tags
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const testEnv = aws.ec2.getManagedPrefixLists({
* tags: {
* Env: "test",
* },
* });
* const testEnvGetManagedPrefixList = .map(__index => (aws.ec2.getManagedPrefixList({
* id: _arg0_.ids[__index],
* })));
* ```
*/
function getManagedPrefixListsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:ec2/getManagedPrefixLists:getManagedPrefixLists", {
"filters": args.filters,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getManagedPrefixListsOutput = getManagedPrefixListsOutput;
//# sourceMappingURL=getManagedPrefixLists.js.map