get Vpcs
This resource can be useful for getting back a list of VPC Ids for a region. The following example retrieves a list of VPC Ids with a custom tag of service
set to a value of "production".
Return
A collection of values returned by getVpcs.
Parameters
argument
A collection of arguments for invoking getVpcs.
suspend fun getVpcs(filters: List<GetVpcsFilter>? = null, tags: Map<String, String>? = null): GetVpcsResult
Return
A collection of values returned by getVpcs.
Parameters
filters
Custom filter block as described below. More complex filters can be expressed using one or more filter
sub-blocks, which take the following arguments:
tags
Map of tags, each pair of which must exactly match a pair on the desired vpcs.
See also
Return
A collection of values returned by getVpcs.
Parameters
argument
Builder for com.pulumi.aws.ec2.kotlin.inputs.GetVpcsPlainArgs.