GetVpcPeeringConnection
Example Usage
using Pulumi;
using Aiven = Pulumi.Aiven;
class MyStack : Stack
{
public MyStack()
{
var mypeeringconnection = Output.Create(Aiven.GetVpcPeeringConnection.InvokeAsync(new Aiven.GetVpcPeeringConnectionArgs
{
VpcId = data.Aiven_project_vpc.Vpc_id,
PeerCloudAccount = "<PEER_ACCOUNT_ID>",
PeerVpc = "<PEER_VPC_ID/NAME>",
}));
}
}
Coming soon!
import pulumi
import pulumi_aiven as aiven
mypeeringconnection = aiven.get_vpc_peering_connection(vpc_id=data["aiven..ProjectVpc"]["vpc_id"],
peer_cloud_account="<PEER_ACCOUNT_ID>",
peer_vpc="<PEER_VPC_ID/NAME>")import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const mypeeringconnection = aiven.getVpcPeeringConnection({
vpcId: data.aiven_project_vpc.vpc_id,
peerCloudAccount: "<PEER_ACCOUNT_ID>",
peerVpc: "<PEER_VPC_ID/NAME>",
});Using GetVpcPeeringConnection
function getVpcPeeringConnection(args: GetVpcPeeringConnectionArgs, opts?: InvokeOptions): Promise<GetVpcPeeringConnectionResult>function get_vpc_peering_connection(client_timeout=None, peer_cloud_account=None, peer_region=None, peer_vpc=None, peering_connection_id=None, state=None, state_info=None, vpc_id=None, opts=None)func LookupVpcPeeringConnection(ctx *Context, args *LookupVpcPeeringConnectionArgs, opts ...InvokeOption) (*LookupVpcPeeringConnectionResult, error)Note: This function is named
LookupVpcPeeringConnectionin the Go SDK.
public static class GetVpcPeeringConnection {
public static Task<GetVpcPeeringConnectionResult> InvokeAsync(GetVpcPeeringConnectionArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetVpcPeeringConnection Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Peer
Cloud stringAccount - Peer
Vpc string - Peering
Connection stringId - State string
- State
Info Dictionary<string, object> - Vpc
Id string - Client
Timeout GetVpc Peering Connection Client Timeout - Peer
Region string
- Id string
The provider-assigned unique ID for this managed resource.
- Peer
Cloud stringAccount - Peer
Vpc string - Peering
Connection stringId - State string
- State
Info map[string]interface{} - Vpc
Id string - Client
Timeout GetVpc Peering Connection Client Timeout - Peer
Region string
- id string
The provider-assigned unique ID for this managed resource.
- peer
Cloud stringAccount - peer
Vpc string - peering
Connection stringId - state string
- state
Info {[key: string]: any} - vpc
Id string - client
Timeout GetVpc Peering Connection Client Timeout - peer
Region string
- id str
The provider-assigned unique ID for this managed resource.
- peer_
cloud_ straccount - peer_
vpc str - peering_
connection_ strid - state str
- state_
info Dict[str, Any] - vpc_
id str - client_
timeout Dict[GetVpc Peering Connection Client Timeout] - peer_
region str
Supporting Types
GetVpcPeeringConnectionClientTimeout
Package Details
- Repository
- https://github.com/pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aivenTerraform Provider.