@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
70 lines (69 loc) • 2.23 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* This resource can be useful for getting back a set of subnet IDs.
*/
export declare function getSubnets(args?: GetSubnetsArgs, opts?: pulumi.InvokeOptions): Promise<GetSubnetsResult>;
/**
* A collection of arguments for invoking getSubnets.
*/
export interface GetSubnetsArgs {
/**
* Custom filter block as described below.
*/
filters?: inputs.ec2.GetSubnetsFilter[];
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: string;
/**
* Map of tags, each pair of which must exactly match
* a pair on the desired subnets.
*/
tags?: {
[]: string;
};
}
/**
* A collection of values returned by getSubnets.
*/
export interface GetSubnetsResult {
readonly filters?: outputs.ec2.GetSubnetsFilter[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* List of all the subnet ids found.
*/
readonly ids: string[];
readonly region: string;
readonly tags: {
[]: string;
};
}
/**
* This resource can be useful for getting back a set of subnet IDs.
*/
export declare function getSubnetsOutput(args?: GetSubnetsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSubnetsResult>;
/**
* A collection of arguments for invoking getSubnets.
*/
export interface GetSubnetsOutputArgs {
/**
* Custom filter block as described below.
*/
filters?: pulumi.Input<pulumi.Input<inputs.ec2.GetSubnetsFilterArgs>[]>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
/**
* Map of tags, each pair of which must exactly match
* a pair on the desired subnets.
*/
tags?: pulumi.Input<{
[]: pulumi.Input<string>;
}>;
}