1. Packages
  2. AWS Classic
  3. API Docs
  4. ec2
  5. getVpcPeeringConnection

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.2.1 published on Friday, Sep 22, 2023 by Pulumi

aws.ec2.getVpcPeeringConnection

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.2.1 published on Friday, Sep 22, 2023 by Pulumi

    The VPC Peering Connection data source provides details about a specific VPC peering connection.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var pc = Aws.Ec2.GetVpcPeeringConnection.Invoke(new()
        {
            VpcId = aws_vpc.Foo.Id,
            PeerCidrBlock = "10.0.1.0/22",
        });
    
        // Create a route table
        var rt = new Aws.Ec2.RouteTable("rt", new()
        {
            VpcId = aws_vpc.Foo.Id,
        });
    
        // Create a route
        var route = new Aws.Ec2.Route("route", new()
        {
            RouteTableId = rt.Id,
            DestinationCidrBlock = pc.Apply(getVpcPeeringConnectionResult => getVpcPeeringConnectionResult.PeerCidrBlock),
            VpcPeeringConnectionId = pc.Apply(getVpcPeeringConnectionResult => getVpcPeeringConnectionResult.Id),
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		pc, err := ec2.LookupVpcPeeringConnection(ctx, &ec2.LookupVpcPeeringConnectionArgs{
    			VpcId:         pulumi.StringRef(aws_vpc.Foo.Id),
    			PeerCidrBlock: pulumi.StringRef("10.0.1.0/22"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		rt, err := ec2.NewRouteTable(ctx, "rt", &ec2.RouteTableArgs{
    			VpcId: pulumi.Any(aws_vpc.Foo.Id),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ec2.NewRoute(ctx, "route", &ec2.RouteArgs{
    			RouteTableId:           rt.ID(),
    			DestinationCidrBlock:   *pulumi.String(pc.PeerCidrBlock),
    			VpcPeeringConnectionId: *pulumi.String(pc.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.ec2.Ec2Functions;
    import com.pulumi.aws.ec2.inputs.GetVpcPeeringConnectionArgs;
    import com.pulumi.aws.ec2.RouteTable;
    import com.pulumi.aws.ec2.RouteTableArgs;
    import com.pulumi.aws.ec2.Route;
    import com.pulumi.aws.ec2.RouteArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var pc = Ec2Functions.getVpcPeeringConnection(GetVpcPeeringConnectionArgs.builder()
                .vpcId(aws_vpc.foo().id())
                .peerCidrBlock("10.0.1.0/22")
                .build());
    
            var rt = new RouteTable("rt", RouteTableArgs.builder()        
                .vpcId(aws_vpc.foo().id())
                .build());
    
            var route = new Route("route", RouteArgs.builder()        
                .routeTableId(rt.id())
                .destinationCidrBlock(pc.applyValue(getVpcPeeringConnectionResult -> getVpcPeeringConnectionResult.peerCidrBlock()))
                .vpcPeeringConnectionId(pc.applyValue(getVpcPeeringConnectionResult -> getVpcPeeringConnectionResult.id()))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    pc = aws.ec2.get_vpc_peering_connection(vpc_id=aws_vpc["foo"]["id"],
        peer_cidr_block="10.0.1.0/22")
    # Create a route table
    rt = aws.ec2.RouteTable("rt", vpc_id=aws_vpc["foo"]["id"])
    # Create a route
    route = aws.ec2.Route("route",
        route_table_id=rt.id,
        destination_cidr_block=pc.peer_cidr_block,
        vpc_peering_connection_id=pc.id)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const pc = aws.ec2.getVpcPeeringConnection({
        vpcId: aws_vpc.foo.id,
        peerCidrBlock: "10.0.1.0/22",
    });
    // Create a route table
    const rt = new aws.ec2.RouteTable("rt", {vpcId: aws_vpc.foo.id});
    // Create a route
    const route = new aws.ec2.Route("route", {
        routeTableId: rt.id,
        destinationCidrBlock: pc.then(pc => pc.peerCidrBlock),
        vpcPeeringConnectionId: pc.then(pc => pc.id),
    });
    
    resources:
      # Create a route table
      rt:
        type: aws:ec2:RouteTable
        properties:
          vpcId: ${aws_vpc.foo.id}
      # Create a route
      route:
        type: aws:ec2:Route
        properties:
          routeTableId: ${rt.id}
          destinationCidrBlock: ${pc.peerCidrBlock}
          vpcPeeringConnectionId: ${pc.id}
    variables:
      pc:
        fn::invoke:
          Function: aws:ec2:getVpcPeeringConnection
          Arguments:
            vpcId: ${aws_vpc.foo.id}
            peerCidrBlock: 10.0.1.0/22
    

    Using getVpcPeeringConnection

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getVpcPeeringConnection(args: GetVpcPeeringConnectionArgs, opts?: InvokeOptions): Promise<GetVpcPeeringConnectionResult>
    function getVpcPeeringConnectionOutput(args: GetVpcPeeringConnectionOutputArgs, opts?: InvokeOptions): Output<GetVpcPeeringConnectionResult>
    def get_vpc_peering_connection(cidr_block: Optional[str] = None,
                                   filters: Optional[Sequence[GetVpcPeeringConnectionFilter]] = None,
                                   id: Optional[str] = None,
                                   owner_id: Optional[str] = None,
                                   peer_cidr_block: Optional[str] = None,
                                   peer_owner_id: Optional[str] = None,
                                   peer_region: Optional[str] = None,
                                   peer_vpc_id: Optional[str] = None,
                                   region: Optional[str] = None,
                                   status: Optional[str] = None,
                                   tags: Optional[Mapping[str, str]] = None,
                                   vpc_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetVpcPeeringConnectionResult
    def get_vpc_peering_connection_output(cidr_block: Optional[pulumi.Input[str]] = None,
                                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetVpcPeeringConnectionFilterArgs]]]] = None,
                                   id: Optional[pulumi.Input[str]] = None,
                                   owner_id: Optional[pulumi.Input[str]] = None,
                                   peer_cidr_block: Optional[pulumi.Input[str]] = None,
                                   peer_owner_id: Optional[pulumi.Input[str]] = None,
                                   peer_region: Optional[pulumi.Input[str]] = None,
                                   peer_vpc_id: Optional[pulumi.Input[str]] = None,
                                   region: Optional[pulumi.Input[str]] = None,
                                   status: Optional[pulumi.Input[str]] = None,
                                   tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                                   vpc_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetVpcPeeringConnectionResult]
    func LookupVpcPeeringConnection(ctx *Context, args *LookupVpcPeeringConnectionArgs, opts ...InvokeOption) (*LookupVpcPeeringConnectionResult, error)
    func LookupVpcPeeringConnectionOutput(ctx *Context, args *LookupVpcPeeringConnectionOutputArgs, opts ...InvokeOption) LookupVpcPeeringConnectionResultOutput

    > Note: This function is named LookupVpcPeeringConnection in the Go SDK.

    public static class GetVpcPeeringConnection 
    {
        public static Task<GetVpcPeeringConnectionResult> InvokeAsync(GetVpcPeeringConnectionArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcPeeringConnectionResult> Invoke(GetVpcPeeringConnectionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVpcPeeringConnectionResult> getVpcPeeringConnection(GetVpcPeeringConnectionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:ec2/getVpcPeeringConnection:getVpcPeeringConnection
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CidrBlock string

    Primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve.

    Filters List<GetVpcPeeringConnectionFilter>

    Custom filter block as described below.

    Id string

    ID of the specific VPC Peering Connection to retrieve.

    OwnerId string

    AWS account ID of the owner of the requester VPC of the specific VPC Peering Connection to retrieve.

    PeerCidrBlock string

    Primary CIDR block of the accepter VPC of the specific VPC Peering Connection to retrieve.

    PeerOwnerId string

    AWS account ID of the owner of the accepter VPC of the specific VPC Peering Connection to retrieve.

    PeerRegion string

    Region of the accepter VPC of the specific VPC Peering Connection to retrieve.

    PeerVpcId string

    ID of the accepter VPC of the specific VPC Peering Connection to retrieve.

    Region string

    Region of the requester VPC of the specific VPC Peering Connection to retrieve.

    Status string

    Status of the specific VPC Peering Connection to retrieve.

    Tags Dictionary<string, string>

    Map of tags, each pair of which must exactly match a pair on the desired VPC Peering Connection.

    More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

    VpcId string

    ID of the requester VPC of the specific VPC Peering Connection to retrieve.

    CidrBlock string

    Primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve.

    Filters []GetVpcPeeringConnectionFilter

    Custom filter block as described below.

    Id string

    ID of the specific VPC Peering Connection to retrieve.

    OwnerId string

    AWS account ID of the owner of the requester VPC of the specific VPC Peering Connection to retrieve.

    PeerCidrBlock string

    Primary CIDR block of the accepter VPC of the specific VPC Peering Connection to retrieve.

    PeerOwnerId string

    AWS account ID of the owner of the accepter VPC of the specific VPC Peering Connection to retrieve.

    PeerRegion string

    Region of the accepter VPC of the specific VPC Peering Connection to retrieve.

    PeerVpcId string

    ID of the accepter VPC of the specific VPC Peering Connection to retrieve.

    Region string

    Region of the requester VPC of the specific VPC Peering Connection to retrieve.

    Status string

    Status of the specific VPC Peering Connection to retrieve.

    Tags map[string]string

    Map of tags, each pair of which must exactly match a pair on the desired VPC Peering Connection.

    More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

    VpcId string

    ID of the requester VPC of the specific VPC Peering Connection to retrieve.

    cidrBlock String

    Primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve.

    filters List<GetVpcPeeringConnectionFilter>

    Custom filter block as described below.

    id String

    ID of the specific VPC Peering Connection to retrieve.

    ownerId String

    AWS account ID of the owner of the requester VPC of the specific VPC Peering Connection to retrieve.

    peerCidrBlock String

    Primary CIDR block of the accepter VPC of the specific VPC Peering Connection to retrieve.

    peerOwnerId String

    AWS account ID of the owner of the accepter VPC of the specific VPC Peering Connection to retrieve.

    peerRegion String

    Region of the accepter VPC of the specific VPC Peering Connection to retrieve.

    peerVpcId String

    ID of the accepter VPC of the specific VPC Peering Connection to retrieve.

    region String

    Region of the requester VPC of the specific VPC Peering Connection to retrieve.

    status String

    Status of the specific VPC Peering Connection to retrieve.

    tags Map<String,String>

    Map of tags, each pair of which must exactly match a pair on the desired VPC Peering Connection.

    More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

    vpcId String

    ID of the requester VPC of the specific VPC Peering Connection to retrieve.

    cidrBlock string

    Primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve.

    filters GetVpcPeeringConnectionFilter[]

    Custom filter block as described below.

    id string

    ID of the specific VPC Peering Connection to retrieve.

    ownerId string

    AWS account ID of the owner of the requester VPC of the specific VPC Peering Connection to retrieve.

    peerCidrBlock string

    Primary CIDR block of the accepter VPC of the specific VPC Peering Connection to retrieve.

    peerOwnerId string

    AWS account ID of the owner of the accepter VPC of the specific VPC Peering Connection to retrieve.

    peerRegion string

    Region of the accepter VPC of the specific VPC Peering Connection to retrieve.

    peerVpcId string

    ID of the accepter VPC of the specific VPC Peering Connection to retrieve.

    region string

    Region of the requester VPC of the specific VPC Peering Connection to retrieve.

    status string

    Status of the specific VPC Peering Connection to retrieve.

    tags {[key: string]: string}

    Map of tags, each pair of which must exactly match a pair on the desired VPC Peering Connection.

    More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

    vpcId string

    ID of the requester VPC of the specific VPC Peering Connection to retrieve.

    cidr_block str

    Primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve.

    filters Sequence[GetVpcPeeringConnectionFilter]

    Custom filter block as described below.

    id str

    ID of the specific VPC Peering Connection to retrieve.

    owner_id str

    AWS account ID of the owner of the requester VPC of the specific VPC Peering Connection to retrieve.

    peer_cidr_block str

    Primary CIDR block of the accepter VPC of the specific VPC Peering Connection to retrieve.

    peer_owner_id str

    AWS account ID of the owner of the accepter VPC of the specific VPC Peering Connection to retrieve.

    peer_region str

    Region of the accepter VPC of the specific VPC Peering Connection to retrieve.

    peer_vpc_id str

    ID of the accepter VPC of the specific VPC Peering Connection to retrieve.

    region str

    Region of the requester VPC of the specific VPC Peering Connection to retrieve.

    status str

    Status of the specific VPC Peering Connection to retrieve.

    tags Mapping[str, str]

    Map of tags, each pair of which must exactly match a pair on the desired VPC Peering Connection.

    More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

    vpc_id str

    ID of the requester VPC of the specific VPC Peering Connection to retrieve.

    cidrBlock String

    Primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve.

    filters List<Property Map>

    Custom filter block as described below.

    id String

    ID of the specific VPC Peering Connection to retrieve.

    ownerId String

    AWS account ID of the owner of the requester VPC of the specific VPC Peering Connection to retrieve.

    peerCidrBlock String

    Primary CIDR block of the accepter VPC of the specific VPC Peering Connection to retrieve.

    peerOwnerId String

    AWS account ID of the owner of the accepter VPC of the specific VPC Peering Connection to retrieve.

    peerRegion String

    Region of the accepter VPC of the specific VPC Peering Connection to retrieve.

    peerVpcId String

    ID of the accepter VPC of the specific VPC Peering Connection to retrieve.

    region String

    Region of the requester VPC of the specific VPC Peering Connection to retrieve.

    status String

    Status of the specific VPC Peering Connection to retrieve.

    tags Map<String>

    Map of tags, each pair of which must exactly match a pair on the desired VPC Peering Connection.

    More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

    vpcId String

    ID of the requester VPC of the specific VPC Peering Connection to retrieve.

    getVpcPeeringConnection Result

    The following output properties are available:

    Accepter Dictionary<string, bool>

    Configuration block that describes [VPC Peering Connection] (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the accepter VPC.

    CidrBlock string

    CIDR block associated to the VPC of the specific VPC Peering Connection.

    CidrBlockSets List<GetVpcPeeringConnectionCidrBlockSet>

    List of objects with CIDR blocks of the requester VPC.

    Id string
    OwnerId string
    PeerCidrBlock string
    PeerCidrBlockSets List<GetVpcPeeringConnectionPeerCidrBlockSet>

    List of objects with CIDR blocks of the accepter VPC.

    PeerOwnerId string
    PeerRegion string
    PeerVpcId string
    Region string
    Requester Dictionary<string, bool>

    Configuration block that describes [VPC Peering Connection] (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the requester VPC.

    Status string
    Tags Dictionary<string, string>
    VpcId string
    Filters List<GetVpcPeeringConnectionFilter>
    Accepter map[string]bool

    Configuration block that describes [VPC Peering Connection] (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the accepter VPC.

    CidrBlock string

    CIDR block associated to the VPC of the specific VPC Peering Connection.

    CidrBlockSets []GetVpcPeeringConnectionCidrBlockSet

    List of objects with CIDR blocks of the requester VPC.

    Id string
    OwnerId string
    PeerCidrBlock string
    PeerCidrBlockSets []GetVpcPeeringConnectionPeerCidrBlockSet

    List of objects with CIDR blocks of the accepter VPC.

    PeerOwnerId string
    PeerRegion string
    PeerVpcId string
    Region string
    Requester map[string]bool

    Configuration block that describes [VPC Peering Connection] (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the requester VPC.

    Status string
    Tags map[string]string
    VpcId string
    Filters []GetVpcPeeringConnectionFilter
    accepter Map<String,Boolean>

    Configuration block that describes [VPC Peering Connection] (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the accepter VPC.

    cidrBlock String

    CIDR block associated to the VPC of the specific VPC Peering Connection.

    cidrBlockSets List<GetVpcPeeringConnectionCidrBlockSet>

    List of objects with CIDR blocks of the requester VPC.

    id String
    ownerId String
    peerCidrBlock String
    peerCidrBlockSets List<GetVpcPeeringConnectionPeerCidrBlockSet>

    List of objects with CIDR blocks of the accepter VPC.

    peerOwnerId String
    peerRegion String
    peerVpcId String
    region String
    requester Map<String,Boolean>

    Configuration block that describes [VPC Peering Connection] (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the requester VPC.

    status String
    tags Map<String,String>
    vpcId String
    filters List<GetVpcPeeringConnectionFilter>
    accepter {[key: string]: boolean}

    Configuration block that describes [VPC Peering Connection] (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the accepter VPC.

    cidrBlock string

    CIDR block associated to the VPC of the specific VPC Peering Connection.

    cidrBlockSets GetVpcPeeringConnectionCidrBlockSet[]

    List of objects with CIDR blocks of the requester VPC.

    id string
    ownerId string
    peerCidrBlock string
    peerCidrBlockSets GetVpcPeeringConnectionPeerCidrBlockSet[]

    List of objects with CIDR blocks of the accepter VPC.

    peerOwnerId string
    peerRegion string
    peerVpcId string
    region string
    requester {[key: string]: boolean}

    Configuration block that describes [VPC Peering Connection] (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the requester VPC.

    status string
    tags {[key: string]: string}
    vpcId string
    filters GetVpcPeeringConnectionFilter[]
    accepter Mapping[str, bool]

    Configuration block that describes [VPC Peering Connection] (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the accepter VPC.

    cidr_block str

    CIDR block associated to the VPC of the specific VPC Peering Connection.

    cidr_block_sets Sequence[GetVpcPeeringConnectionCidrBlockSet]

    List of objects with CIDR blocks of the requester VPC.

    id str
    owner_id str
    peer_cidr_block str
    peer_cidr_block_sets Sequence[GetVpcPeeringConnectionPeerCidrBlockSet]

    List of objects with CIDR blocks of the accepter VPC.

    peer_owner_id str
    peer_region str
    peer_vpc_id str
    region str
    requester Mapping[str, bool]

    Configuration block that describes [VPC Peering Connection] (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the requester VPC.

    status str
    tags Mapping[str, str]
    vpc_id str
    filters Sequence[GetVpcPeeringConnectionFilter]
    accepter Map<Boolean>

    Configuration block that describes [VPC Peering Connection] (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the accepter VPC.

    cidrBlock String

    CIDR block associated to the VPC of the specific VPC Peering Connection.

    cidrBlockSets List<Property Map>

    List of objects with CIDR blocks of the requester VPC.

    id String
    ownerId String
    peerCidrBlock String
    peerCidrBlockSets List<Property Map>

    List of objects with CIDR blocks of the accepter VPC.

    peerOwnerId String
    peerRegion String
    peerVpcId String
    region String
    requester Map<Boolean>

    Configuration block that describes [VPC Peering Connection] (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the requester VPC.

    status String
    tags Map<String>
    vpcId String
    filters List<Property Map>

    Supporting Types

    GetVpcPeeringConnectionCidrBlockSet

    CidrBlock string

    Primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve.

    CidrBlock string

    Primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve.

    cidrBlock String

    Primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve.

    cidrBlock string

    Primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve.

    cidr_block str

    Primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve.

    cidrBlock String

    Primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve.

    GetVpcPeeringConnectionFilter

    Name string

    Name of the field to filter by, as defined by the underlying AWS API.

    Values List<string>

    Set of values that are accepted for the given field. A VPC Peering Connection will be selected if any one of the given values matches.

    Name string

    Name of the field to filter by, as defined by the underlying AWS API.

    Values []string

    Set of values that are accepted for the given field. A VPC Peering Connection will be selected if any one of the given values matches.

    name String

    Name of the field to filter by, as defined by the underlying AWS API.

    values List<String>

    Set of values that are accepted for the given field. A VPC Peering Connection will be selected if any one of the given values matches.

    name string

    Name of the field to filter by, as defined by the underlying AWS API.

    values string[]

    Set of values that are accepted for the given field. A VPC Peering Connection will be selected if any one of the given values matches.

    name str

    Name of the field to filter by, as defined by the underlying AWS API.

    values Sequence[str]

    Set of values that are accepted for the given field. A VPC Peering Connection will be selected if any one of the given values matches.

    name String

    Name of the field to filter by, as defined by the underlying AWS API.

    values List<String>

    Set of values that are accepted for the given field. A VPC Peering Connection will be selected if any one of the given values matches.

    GetVpcPeeringConnectionPeerCidrBlockSet

    CidrBlock string

    Primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve.

    CidrBlock string

    Primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve.

    cidrBlock String

    Primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve.

    cidrBlock string

    Primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve.

    cidr_block str

    Primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve.

    cidrBlock String

    Primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the aws Terraform Provider.

    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.2.1 published on Friday, Sep 22, 2023 by Pulumi