getVpc

suspend fun getVpc(argument: GetVpcPlainArgs): GetVpcResult

aws.ec2.Vpc provides details about a specific VPC. This resource can prove useful when a module accepts a vpc id as an input variable and needs to, for example, determine the CIDR block of that VPC.

Return

A collection of values returned by getVpc.

Parameters

argument

A collection of arguments for invoking getVpc.


suspend fun getVpc(cidrBlock: String? = null, default: Boolean? = null, dhcpOptionsId: String? = null, filters: List<GetVpcFilter>? = null, id: String? = null, state: String? = null, tags: Map<String, String>? = null): GetVpcResult

Return

A collection of values returned by getVpc.

Parameters

cidrBlock

Cidr block of the desired VPC.

default

Boolean constraint on whether the desired VPC is the default VPC for the region.

dhcpOptionsId

DHCP options id of the desired VPC.

filters

Custom filter block as described below.

id

ID of the specific VPC to retrieve.

state

Current state of the desired VPC. Can be either "pending" or "available".

tags

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

See also


suspend fun getVpc(argument: suspend GetVpcPlainArgsBuilder.() -> Unit): GetVpcResult

Return

A collection of values returned by getVpc.

Parameters

argument

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

See also