Aiven

Pulumi Official
Package maintained by Pulumi
v5.2.0 published on Wednesday, Jul 20, 2022 by Pulumi

getAwsVpcPeeringConnection

The AWS VPC Peering Connection data source provides information about the existing Aiven VPC Peering Connection.

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(Aiven.GetAwsVpcPeeringConnection.InvokeAsync(new Aiven.GetAwsVpcPeeringConnectionArgs
        {
            VpcId = data.Aiven_project_vpc.Vpc.Id,
            AwsAccountId = "XXXXX",
            AwsVpcId = "XXXXX",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aiven/sdk/v5/go/aiven"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aiven.LookupAwsVpcPeeringConnection(ctx, &GetAwsVpcPeeringConnectionArgs{
			VpcId:        data.Aiven_project_vpc.Vpc.Id,
			AwsAccountId: "XXXXX",
			AwsVpcId:     "XXXXX",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var foo = Output.of(AivenFunctions.getAwsVpcPeeringConnection(GetAwsVpcPeeringConnectionArgs.builder()
            .vpcId(data.aiven_project_vpc().vpc().id())
            .awsAccountId("XXXXX")
            .awsVpcId("XXXXX")
            .build()));

    }
}
import pulumi
import pulumi_aiven as aiven

foo = aiven.get_aws_vpc_peering_connection(vpc_id=data["aiven_project_vpc"]["vpc"]["id"],
    aws_account_id="XXXXX",
    aws_vpc_id="XXXXX")
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const foo = aiven.getAwsVpcPeeringConnection({
    vpcId: data.aiven_project_vpc.vpc.id,
    awsAccountId: "XXXXX",
    awsVpcId: "XXXXX",
});
variables:
  foo:
    Fn::Invoke:
      Function: aiven:getAwsVpcPeeringConnection
      Arguments:
        vpcId: ${data.aiven_project_vpc.vpc.id}
        awsAccountId: XXXXX
        awsVpcId: XXXXX

Using getAwsVpcPeeringConnection

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 getAwsVpcPeeringConnection(args: GetAwsVpcPeeringConnectionArgs, opts?: InvokeOptions): Promise<GetAwsVpcPeeringConnectionResult>
function getAwsVpcPeeringConnectionOutput(args: GetAwsVpcPeeringConnectionOutputArgs, opts?: InvokeOptions): Output<GetAwsVpcPeeringConnectionResult>
def get_aws_vpc_peering_connection(aws_account_id: Optional[str] = None,
                                   aws_vpc_id: Optional[str] = None,
                                   aws_vpc_region: Optional[str] = None,
                                   vpc_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetAwsVpcPeeringConnectionResult
def get_aws_vpc_peering_connection_output(aws_account_id: Optional[pulumi.Input[str]] = None,
                                   aws_vpc_id: Optional[pulumi.Input[str]] = None,
                                   aws_vpc_region: Optional[pulumi.Input[str]] = None,
                                   vpc_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetAwsVpcPeeringConnectionResult]
func LookupAwsVpcPeeringConnection(ctx *Context, args *LookupAwsVpcPeeringConnectionArgs, opts ...InvokeOption) (*LookupAwsVpcPeeringConnectionResult, error)
func LookupAwsVpcPeeringConnectionOutput(ctx *Context, args *LookupAwsVpcPeeringConnectionOutputArgs, opts ...InvokeOption) LookupAwsVpcPeeringConnectionResultOutput

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

public static class GetAwsVpcPeeringConnection 
{
    public static Task<GetAwsVpcPeeringConnectionResult> InvokeAsync(GetAwsVpcPeeringConnectionArgs args, InvokeOptions? opts = null)
    public static Output<GetAwsVpcPeeringConnectionResult> Invoke(GetAwsVpcPeeringConnectionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAwsVpcPeeringConnectionResult> getAwsVpcPeeringConnection(GetAwsVpcPeeringConnectionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aiven:index/getAwsVpcPeeringConnection:getAwsVpcPeeringConnection
  Arguments:
    # Arguments dictionary

The following arguments are supported:

AwsAccountId string
AwsVpcId string
AwsVpcRegion string
VpcId string
AwsAccountId string
AwsVpcId string
AwsVpcRegion string
VpcId string
awsAccountId String
awsVpcId String
awsVpcRegion String
vpcId String
awsAccountId string
awsVpcId string
awsVpcRegion string
vpcId string
awsAccountId String
awsVpcId String
awsVpcRegion String
vpcId String

getAwsVpcPeeringConnection Result

The following output properties are available:

AwsAccountId string
AwsVpcId string
AwsVpcPeeringConnectionId string
AwsVpcRegion string
Id string

The provider-assigned unique ID for this managed resource.

State string
StateInfo Dictionary<string, object>
VpcId string
AwsAccountId string
AwsVpcId string
AwsVpcPeeringConnectionId string
AwsVpcRegion string
Id string

The provider-assigned unique ID for this managed resource.

State string
StateInfo map[string]interface{}
VpcId string
awsAccountId String
awsVpcId String
awsVpcPeeringConnectionId String
awsVpcRegion String
id String

The provider-assigned unique ID for this managed resource.

state String
stateInfo Map<String,Object>
vpcId String
awsAccountId string
awsVpcId string
awsVpcPeeringConnectionId string
awsVpcRegion string
id string

The provider-assigned unique ID for this managed resource.

state string
stateInfo {[key: string]: any}
vpcId string
aws_account_id str
aws_vpc_id str
aws_vpc_peering_connection_id str
aws_vpc_region str
id str

The provider-assigned unique ID for this managed resource.

state str
state_info Mapping[str, Any]
vpc_id str
awsAccountId String
awsVpcId String
awsVpcPeeringConnectionId String
awsVpcRegion String
id String

The provider-assigned unique ID for this managed resource.

state String
stateInfo Map<Any>
vpcId String

Package Details

Repository
https://github.com/pulumi/pulumi-aiven
License
Apache-2.0
Notes

This Pulumi package is based on the aiven Terraform Provider.