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

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],
})));
import pulumi
import pulumi_aws as aws
test_env = aws.ec2.get_managed_prefix_lists(tags={
"Env": "test",
})
test_env_get_managed_prefix_list = [aws.ec2.get_managed_prefix_list(id=test_env.ids[__index]) for __index in len(test_env.ids).apply(lambda length: range(length))]
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var testEnv = Aws.Ec2.GetManagedPrefixLists.Invoke(new()
{
Tags =
{
{ "Env", "test" },
},
});
var testEnvGetManagedPrefixList = ;
});

Return

A collection of values returned by getManagedPrefixLists.

Parameters

argument

A collection of arguments for invoking getManagedPrefixLists.


Return

A collection of values returned by getManagedPrefixLists.

Parameters

filters

Custom filter block as described below.

tags

Map of tags, each pair of which must exactly match a pair on the desired . More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

See also


Return

A collection of values returned by getManagedPrefixLists.

Parameters

argument

Builder for com.pulumi.aws.ec2.kotlin.inputs.GetManagedPrefixListsPlainArgs.

See also