Class VpcPeeringConnection
Example Usage
using Pulumi;
using Aiven = Pulumi.Aiven;
class MyStack : Stack
{
public MyStack()
{
var mypeeringconnection = new Aiven.VpcPeeringConnection("mypeeringconnection", new Aiven.VpcPeeringConnectionArgs
{
PeerCloudAccount = "<PEER_ACCOUNT_ID>",
PeerRegion = "<PEER_REGION>",
PeerVpc = "<PEER_VPC_ID/NAME>",
VpcId = aiven_project_vpc.Myvpc.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Aiven
Assembly: Pulumi.Aiven.dll
Syntax
public class VpcPeeringConnection : CustomResource
Constructors
View SourceVpcPeeringConnection(String, VpcPeeringConnectionArgs, CustomResourceOptions)
Create a VpcPeeringConnection resource with the given unique name, arguments, and options.
Declaration
public VpcPeeringConnection(string name, VpcPeeringConnectionArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| VpcPeeringConnectionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourcePeerCloudAccount
AWS account ID or GCP project ID of the peered VPC
Declaration
public Output<string> PeerCloudAccount { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PeeringConnectionId
Cloud provider identifier for the peering connection if available
Declaration
public Output<string> PeeringConnectionId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PeerRegion
AWS region of the peered VPC (if not in the same region as Aiven VPC)
Declaration
public Output<string> PeerRegion { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PeerVpc
AWS VPC ID or GCP VPC network name of the peered VPC
Declaration
public Output<string> PeerVpc { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
State
State of the peering connection
Declaration
public Output<string> State { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StateInfo
State-specific help or error information
Declaration
public Output<ImmutableDictionary<string, object>> StateInfo { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
VpcId
The VPC the peering connection belongs to
Declaration
public Output<string> VpcId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, VpcPeeringConnectionState, CustomResourceOptions)
Get an existing VpcPeeringConnection resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static VpcPeeringConnection Get(string name, Input<string> id, VpcPeeringConnectionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| VpcPeeringConnectionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| VpcPeeringConnection |