getSubnetIds

aws.ec2.getSubnetIds provides a set of ids for a vpc_id This resource can be useful for getting back a set of subnet ids for a vpc.

NOTE: The aws.ec2.getSubnetIds data source has been deprecated and will be removed in a future version. Use the aws.ec2.getSubnets data source instead.

Return

A collection of values returned by getSubnetIds.

Parameters

argument

A collection of arguments for invoking getSubnetIds.


suspend fun getSubnetIds(filters: List<GetSubnetIdsFilter>? = null, tags: Map<String, String>? = null, vpcId: String): GetSubnetIdsResult

Return

A collection of values returned by getSubnetIds.

See also

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.

vpcId

VPC ID that you want to filter from.


Return

A collection of values returned by getSubnetIds.

See also

Parameters

argument

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