aiven.AwsVpcPeeringConnection

The AWS VPC Peering Connection resource allows the creation and management of Aiven AWS VPC Peering Connections.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aiven = Pulumi.Aiven;

return await Deployment.RunAsync(() => 
{
    var foo = new Aiven.AwsVpcPeeringConnection("foo", new()
    {
        VpcId = data.Aiven_project_vpc.Vpc.Id,
        AwsAccountId = "XXXXX",
        AwsVpcId = "XXXXX",
    });

});
package main

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

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

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.AwsVpcPeeringConnection;
import com.pulumi.aiven.AwsVpcPeeringConnectionArgs;
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) {
        var foo = new AwsVpcPeeringConnection("foo", AwsVpcPeeringConnectionArgs.builder()        
            .vpcId(data.aiven_project_vpc().vpc().id())
            .awsAccountId("XXXXX")
            .awsVpcId("XXXXX")
            .build());

    }
}
import pulumi
import pulumi_aiven as aiven

foo = aiven.AwsVpcPeeringConnection("foo",
    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 = new aiven.AwsVpcPeeringConnection("foo", {
    vpcId: data.aiven_project_vpc.vpc.id,
    awsAccountId: "XXXXX",
    awsVpcId: "XXXXX",
});
resources:
  foo:
    type: aiven:AwsVpcPeeringConnection
    properties:
      vpcId: ${data.aiven_project_vpc.vpc.id}
      awsAccountId: XXXXX
      awsVpcId: XXXXX

Create AwsVpcPeeringConnection Resource

new AwsVpcPeeringConnection(name: string, args: AwsVpcPeeringConnectionArgs, opts?: CustomResourceOptions);
@overload
def AwsVpcPeeringConnection(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            aws_account_id: Optional[str] = None,
                            aws_vpc_id: Optional[str] = None,
                            aws_vpc_region: Optional[str] = None,
                            vpc_id: Optional[str] = None)
@overload
def AwsVpcPeeringConnection(resource_name: str,
                            args: AwsVpcPeeringConnectionArgs,
                            opts: Optional[ResourceOptions] = None)
func NewAwsVpcPeeringConnection(ctx *Context, name string, args AwsVpcPeeringConnectionArgs, opts ...ResourceOption) (*AwsVpcPeeringConnection, error)
public AwsVpcPeeringConnection(string name, AwsVpcPeeringConnectionArgs args, CustomResourceOptions? opts = null)
public AwsVpcPeeringConnection(String name, AwsVpcPeeringConnectionArgs args)
public AwsVpcPeeringConnection(String name, AwsVpcPeeringConnectionArgs args, CustomResourceOptions options)
type: aiven:AwsVpcPeeringConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AwsVpcPeeringConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AwsVpcPeeringConnectionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AwsVpcPeeringConnectionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AwsVpcPeeringConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AwsVpcPeeringConnectionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AwsVpcPeeringConnection Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The AwsVpcPeeringConnection resource accepts the following input properties:

AwsAccountId string

AWS account ID. This property cannot be changed, doing so forces recreation of the resource.

AwsVpcId string

AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.

AwsVpcRegion string

AWS region of the peered VPC (if not in the same region as Aiven VPC). This property cannot be changed, doing so forces recreation of the resource.

VpcId string

The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.

AwsAccountId string

AWS account ID. This property cannot be changed, doing so forces recreation of the resource.

AwsVpcId string

AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.

AwsVpcRegion string

AWS region of the peered VPC (if not in the same region as Aiven VPC). This property cannot be changed, doing so forces recreation of the resource.

VpcId string

The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.

awsAccountId String

AWS account ID. This property cannot be changed, doing so forces recreation of the resource.

awsVpcId String

AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.

awsVpcRegion String

AWS region of the peered VPC (if not in the same region as Aiven VPC). This property cannot be changed, doing so forces recreation of the resource.

vpcId String

The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.

awsAccountId string

AWS account ID. This property cannot be changed, doing so forces recreation of the resource.

awsVpcId string

AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.

awsVpcRegion string

AWS region of the peered VPC (if not in the same region as Aiven VPC). This property cannot be changed, doing so forces recreation of the resource.

vpcId string

The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.

aws_account_id str

AWS account ID. This property cannot be changed, doing so forces recreation of the resource.

aws_vpc_id str

AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.

aws_vpc_region str

AWS region of the peered VPC (if not in the same region as Aiven VPC). This property cannot be changed, doing so forces recreation of the resource.

vpc_id str

The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.

awsAccountId String

AWS account ID. This property cannot be changed, doing so forces recreation of the resource.

awsVpcId String

AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.

awsVpcRegion String

AWS region of the peered VPC (if not in the same region as Aiven VPC). This property cannot be changed, doing so forces recreation of the resource.

vpcId String

The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the AwsVpcPeeringConnection resource produces the following output properties:

AwsVpcPeeringConnectionId string

AWS VPC peering connection ID

Id string

The provider-assigned unique ID for this managed resource.

State string

State of the peering connection

StateInfo Dictionary<string, object>

State-specific help or error information

AwsVpcPeeringConnectionId string

AWS VPC peering connection ID

Id string

The provider-assigned unique ID for this managed resource.

State string

State of the peering connection

StateInfo map[string]interface{}

State-specific help or error information

awsVpcPeeringConnectionId String

AWS VPC peering connection ID

id String

The provider-assigned unique ID for this managed resource.

state String

State of the peering connection

stateInfo Map<String,Object>

State-specific help or error information

awsVpcPeeringConnectionId string

AWS VPC peering connection ID

id string

The provider-assigned unique ID for this managed resource.

state string

State of the peering connection

stateInfo {[key: string]: any}

State-specific help or error information

aws_vpc_peering_connection_id str

AWS VPC peering connection ID

id str

The provider-assigned unique ID for this managed resource.

state str

State of the peering connection

state_info Mapping[str, Any]

State-specific help or error information

awsVpcPeeringConnectionId String

AWS VPC peering connection ID

id String

The provider-assigned unique ID for this managed resource.

state String

State of the peering connection

stateInfo Map<Any>

State-specific help or error information

Look up Existing AwsVpcPeeringConnection Resource

Get an existing AwsVpcPeeringConnection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AwsVpcPeeringConnectionState, opts?: CustomResourceOptions): AwsVpcPeeringConnection
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        aws_account_id: Optional[str] = None,
        aws_vpc_id: Optional[str] = None,
        aws_vpc_peering_connection_id: Optional[str] = None,
        aws_vpc_region: Optional[str] = None,
        state: Optional[str] = None,
        state_info: Optional[Mapping[str, Any]] = None,
        vpc_id: Optional[str] = None) -> AwsVpcPeeringConnection
func GetAwsVpcPeeringConnection(ctx *Context, name string, id IDInput, state *AwsVpcPeeringConnectionState, opts ...ResourceOption) (*AwsVpcPeeringConnection, error)
public static AwsVpcPeeringConnection Get(string name, Input<string> id, AwsVpcPeeringConnectionState? state, CustomResourceOptions? opts = null)
public static AwsVpcPeeringConnection get(String name, Output<String> id, AwsVpcPeeringConnectionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AwsAccountId string

AWS account ID. This property cannot be changed, doing so forces recreation of the resource.

AwsVpcId string

AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.

AwsVpcPeeringConnectionId string

AWS VPC peering connection ID

AwsVpcRegion string

AWS region of the peered VPC (if not in the same region as Aiven VPC). This property cannot be changed, doing so forces recreation of the resource.

State string

State of the peering connection

StateInfo Dictionary<string, object>

State-specific help or error information

VpcId string

The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.

AwsAccountId string

AWS account ID. This property cannot be changed, doing so forces recreation of the resource.

AwsVpcId string

AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.

AwsVpcPeeringConnectionId string

AWS VPC peering connection ID

AwsVpcRegion string

AWS region of the peered VPC (if not in the same region as Aiven VPC). This property cannot be changed, doing so forces recreation of the resource.

State string

State of the peering connection

StateInfo map[string]interface{}

State-specific help or error information

VpcId string

The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.

awsAccountId String

AWS account ID. This property cannot be changed, doing so forces recreation of the resource.

awsVpcId String

AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.

awsVpcPeeringConnectionId String

AWS VPC peering connection ID

awsVpcRegion String

AWS region of the peered VPC (if not in the same region as Aiven VPC). This property cannot be changed, doing so forces recreation of the resource.

state String

State of the peering connection

stateInfo Map<String,Object>

State-specific help or error information

vpcId String

The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.

awsAccountId string

AWS account ID. This property cannot be changed, doing so forces recreation of the resource.

awsVpcId string

AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.

awsVpcPeeringConnectionId string

AWS VPC peering connection ID

awsVpcRegion string

AWS region of the peered VPC (if not in the same region as Aiven VPC). This property cannot be changed, doing so forces recreation of the resource.

state string

State of the peering connection

stateInfo {[key: string]: any}

State-specific help or error information

vpcId string

The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.

aws_account_id str

AWS account ID. This property cannot be changed, doing so forces recreation of the resource.

aws_vpc_id str

AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.

aws_vpc_peering_connection_id str

AWS VPC peering connection ID

aws_vpc_region str

AWS region of the peered VPC (if not in the same region as Aiven VPC). This property cannot be changed, doing so forces recreation of the resource.

state str

State of the peering connection

state_info Mapping[str, Any]

State-specific help or error information

vpc_id str

The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.

awsAccountId String

AWS account ID. This property cannot be changed, doing so forces recreation of the resource.

awsVpcId String

AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.

awsVpcPeeringConnectionId String

AWS VPC peering connection ID

awsVpcRegion String

AWS region of the peered VPC (if not in the same region as Aiven VPC). This property cannot be changed, doing so forces recreation of the resource.

state String

State of the peering connection

stateInfo Map<Any>

State-specific help or error information

vpcId String

The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.

Import

 $ pulumi import aiven:index/awsVpcPeeringConnection:AwsVpcPeeringConnection foo project_name/vpc_id/aws_account_id/aws_vpc_id/aws_vpc_region

Package Details

Repository
Aiven pulumi/pulumi-aiven
License
Apache-2.0
Notes

This Pulumi package is based on the aiven Terraform Provider.