get Subnet Ids
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 theaws.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.
vpc Id
VPC ID that you want to filter from.
suspend fun getSubnetIds(argument: suspend GetSubnetIdsPlainArgsBuilder.() -> Unit): GetSubnetIdsResult
Return
A collection of values returned by getSubnetIds.
See also
Parameters
argument
Builder for com.pulumi.aws.ec2.kotlin.inputs.GetSubnetIdsPlainArgs.