getSubnets

This resource can be useful for getting back a set of subnet IDs.

Return

A collection of values returned by getSubnets.

Parameters

argument

A collection of arguments for invoking getSubnets.


suspend fun getSubnets(filters: List<GetSubnetsFilter>? = null, tags: Map<String, String>? = null): GetSubnetsResult

Return

A collection of values returned by getSubnets.

Parameters

filters

Custom filter block as described below.

tags

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

See also


suspend fun getSubnets(argument: suspend GetSubnetsPlainArgsBuilder.() -> Unit): GetSubnetsResult

Return

A collection of values returned by getSubnets.

Parameters

argument

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

See also