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

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.ec2.getVpcPeeringConnection

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Resource Type definition for AWS::EC2::VPCPeeringConnection

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>
Copy
def get_vpc_peering_connection(id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetVpcPeeringConnectionResult
def get_vpc_peering_connection_output(id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetVpcPeeringConnectionResult]
Copy
func LookupVpcPeeringConnection(ctx *Context, args *LookupVpcPeeringConnectionArgs, opts ...InvokeOption) (*LookupVpcPeeringConnectionResult, error)
func LookupVpcPeeringConnectionOutput(ctx *Context, args *LookupVpcPeeringConnectionOutputArgs, opts ...InvokeOption) LookupVpcPeeringConnectionResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetVpcPeeringConnectionResult> getVpcPeeringConnection(GetVpcPeeringConnectionArgs args, InvokeOptions options)
public static Output<GetVpcPeeringConnectionResult> getVpcPeeringConnection(GetVpcPeeringConnectionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:ec2:getVpcPeeringConnection
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
The ID of the peering connection.
Id This property is required. string
The ID of the peering connection.
id This property is required. String
The ID of the peering connection.
id This property is required. string
The ID of the peering connection.
id This property is required. str
The ID of the peering connection.
id This property is required. String
The ID of the peering connection.

getVpcPeeringConnection Result

The following output properties are available:

Id string
The ID of the peering connection.
Tags List<Pulumi.AwsNative.Outputs.Tag>
Any tags assigned to the resource.
Id string
The ID of the peering connection.
Tags Tag
Any tags assigned to the resource.
id String
The ID of the peering connection.
tags List<Tag>
Any tags assigned to the resource.
id string
The ID of the peering connection.
tags Tag[]
Any tags assigned to the resource.
id str
The ID of the peering connection.
tags Sequence[root_Tag]
Any tags assigned to the resource.
id String
The ID of the peering connection.
tags List<Property Map>
Any tags assigned to the resource.

Supporting Types

Tag

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi