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.42.0 published on Wednesday, Jun 26, 2024 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.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    // Declare the data source
    const pc = aws.ec2.getVpcPeeringConnection({
        vpcId: foo.id,
        peerCidrBlock: "10.0.1.0/22",
    });
    // Create a route table
    const rt = new aws.ec2.RouteTable("rt", {vpcId: foo.id});
    // Create a route
    const r = new aws.ec2.Route("r", {
        routeTableId: rt.id,
        destinationCidrBlock: pc.then(pc => pc.peerCidrBlock),
        vpcPeeringConnectionId: pc.then(pc => pc.id),
    });
    
    import pulumi
    import pulumi_aws as aws
    
    # Declare the data source
    pc = aws.ec2.get_vpc_peering_connection(vpc_id=foo["id"],
        peer_cidr_block="10.0.1.0/22")
    # Create a route table
    rt = aws.ec2.RouteTable("rt", vpc_id=foo["id"])
    # Create a route
    r = aws.ec2.Route("r",
        route_table_id=rt.id,
        destination_cidr_block=pc.peer_cidr_block,
        vpc_peering_connection_id=pc.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 {
    		// Declare the data source
    		pc, err := ec2.LookupVpcPeeringConnection(ctx, &ec2.LookupVpcPeeringConnectionArgs{
    			VpcId:         pulumi.StringRef(foo.Id),
    			PeerCidrBlock: pulumi.StringRef("10.0.1.0/22"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Create a route table
    		rt, err := ec2.NewRouteTable(ctx, "rt", &ec2.RouteTableArgs{
    			VpcId: pulumi.Any(foo.Id),
    		})
    		if err != nil {
    			return err
    		}
    		// Create a route
    		_, err = ec2.NewRoute(ctx, "r", &ec2.RouteArgs{
    			RouteTableId:           rt.ID(),
    			DestinationCidrBlock:   pulumi.String(pc.PeerCidrBlock),
    			VpcPeeringConnectionId: pulumi.String(pc.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        // Declare the data source
        var pc = Aws.Ec2.GetVpcPeeringConnection.Invoke(new()
        {
            VpcId = foo.Id,
            PeerCidrBlock = "10.0.1.0/22",
        });
    
        // Create a route table
        var rt = new Aws.Ec2.RouteTable("rt", new()
        {
            VpcId = foo.Id,
        });
    
        // Create a route
        var r = new Aws.Ec2.Route("r", new()
        {
            RouteTableId = rt.Id,
            DestinationCidrBlock = pc.Apply(getVpcPeeringConnectionResult => getVpcPeeringConnectionResult.PeerCidrBlock),
            VpcPeeringConnectionId = pc.Apply(getVpcPeeringConnectionResult => getVpcPeeringConnectionResult.Id),
        });
    
    });
    
    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) {
            // Declare the data source
            final var pc = Ec2Functions.getVpcPeeringConnection(GetVpcPeeringConnectionArgs.builder()
                .vpcId(foo.id())
                .peerCidrBlock("10.0.1.0/22")
                .build());
    
            // Create a route table
            var rt = new RouteTable("rt", RouteTableArgs.builder()
                .vpcId(foo.id())
                .build());
    
            // Create a route
            var r = new Route("r", RouteArgs.builder()
                .routeTableId(rt.id())
                .destinationCidrBlock(pc.applyValue(getVpcPeeringConnectionResult -> getVpcPeeringConnectionResult.peerCidrBlock()))
                .vpcPeeringConnectionId(pc.applyValue(getVpcPeeringConnectionResult -> getVpcPeeringConnectionResult.id()))
                .build());
    
        }
    }
    
    resources:
      # Create a route table
      rt:
        type: aws:ec2:RouteTable
        properties:
          vpcId: ${foo.id}
      # Create a route
      r:
        type: aws:ec2:Route
        properties:
          routeTableId: ${rt.id}
          destinationCidrBlock: ${pc.peerCidrBlock}
          vpcPeeringConnectionId: ${pc.id}
    variables:
      # Declare the data source
      pc:
        fn::invoke:
          Function: aws:ec2:getVpcPeeringConnection
          Arguments:
            vpcId: ${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 IPv4 CIDR blocks of the requester VPC.
    Id string
    Ipv6CidrBlockSets List<GetVpcPeeringConnectionIpv6CidrBlockSet>
    List of objects with IPv6 CIDR blocks of the requester VPC.
    OwnerId string
    PeerCidrBlock string
    PeerCidrBlockSets List<GetVpcPeeringConnectionPeerCidrBlockSet>
    List of objects with IPv4 CIDR blocks of the accepter VPC.
    PeerIpv6CidrBlockSets List<GetVpcPeeringConnectionPeerIpv6CidrBlockSet>
    List of objects with IPv6 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 IPv4 CIDR blocks of the requester VPC.
    Id string
    Ipv6CidrBlockSets []GetVpcPeeringConnectionIpv6CidrBlockSet
    List of objects with IPv6 CIDR blocks of the requester VPC.
    OwnerId string
    PeerCidrBlock string
    PeerCidrBlockSets []GetVpcPeeringConnectionPeerCidrBlockSet
    List of objects with IPv4 CIDR blocks of the accepter VPC.
    PeerIpv6CidrBlockSets []GetVpcPeeringConnectionPeerIpv6CidrBlockSet
    List of objects with IPv6 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 IPv4 CIDR blocks of the requester VPC.
    id String
    ipv6CidrBlockSets List<GetVpcPeeringConnectionIpv6CidrBlockSet>
    List of objects with IPv6 CIDR blocks of the requester VPC.
    ownerId String
    peerCidrBlock String
    peerCidrBlockSets List<GetVpcPeeringConnectionPeerCidrBlockSet>
    List of objects with IPv4 CIDR blocks of the accepter VPC.
    peerIpv6CidrBlockSets List<GetVpcPeeringConnectionPeerIpv6CidrBlockSet>
    List of objects with IPv6 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 IPv4 CIDR blocks of the requester VPC.
    id string
    ipv6CidrBlockSets GetVpcPeeringConnectionIpv6CidrBlockSet[]
    List of objects with IPv6 CIDR blocks of the requester VPC.
    ownerId string
    peerCidrBlock string
    peerCidrBlockSets GetVpcPeeringConnectionPeerCidrBlockSet[]
    List of objects with IPv4 CIDR blocks of the accepter VPC.
    peerIpv6CidrBlockSets GetVpcPeeringConnectionPeerIpv6CidrBlockSet[]
    List of objects with IPv6 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 IPv4 CIDR blocks of the requester VPC.
    id str
    ipv6_cidr_block_sets Sequence[GetVpcPeeringConnectionIpv6CidrBlockSet]
    List of objects with IPv6 CIDR blocks of the requester VPC.
    owner_id str
    peer_cidr_block str
    peer_cidr_block_sets Sequence[GetVpcPeeringConnectionPeerCidrBlockSet]
    List of objects with IPv4 CIDR blocks of the accepter VPC.
    peer_ipv6_cidr_block_sets Sequence[GetVpcPeeringConnectionPeerIpv6CidrBlockSet]
    List of objects with IPv6 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 IPv4 CIDR blocks of the requester VPC.
    id String
    ipv6CidrBlockSets List<Property Map>
    List of objects with IPv6 CIDR blocks of the requester VPC.
    ownerId String
    peerCidrBlock String
    peerCidrBlockSets List<Property Map>
    List of objects with IPv4 CIDR blocks of the accepter VPC.
    peerIpv6CidrBlockSets List<Property Map>
    List of objects with IPv6 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.

    GetVpcPeeringConnectionIpv6CidrBlockSet

    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.

    GetVpcPeeringConnectionPeerIpv6CidrBlockSet

    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.42.0 published on Wednesday, Jun 26, 2024 by Pulumi