aiven.AwsVpcPeeringConnection
Explore with Pulumi AI
The AWS VPC Peering Connection resource allows the creation and management of Aiven AWS VPC Peering Connections.
Example Usage
using System.Collections.Generic;
using System.Linq;
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:
- Aws
Account stringId AWS account ID. This property cannot be changed, doing so forces recreation of the resource.
- Aws
Vpc stringId AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.
- Aws
Vpc stringRegion 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 string The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- Aws
Account stringId AWS account ID. This property cannot be changed, doing so forces recreation of the resource.
- Aws
Vpc stringId AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.
- Aws
Vpc stringRegion 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 string The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- aws
Account StringId AWS account ID. This property cannot be changed, doing so forces recreation of the resource.
- aws
Vpc StringId AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.
- aws
Vpc StringRegion 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 String The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- aws
Account stringId AWS account ID. This property cannot be changed, doing so forces recreation of the resource.
- aws
Vpc stringId AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.
- aws
Vpc stringRegion 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 string The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- aws_
account_ strid AWS account ID. This property cannot be changed, doing so forces recreation of the resource.
- aws_
vpc_ strid AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.
- aws_
vpc_ strregion 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.
- aws
Account StringId AWS account ID. This property cannot be changed, doing so forces recreation of the resource.
- aws
Vpc StringId AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.
- aws
Vpc StringRegion 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 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:
- Aws
Vpc stringPeering Connection Id AWS VPC peering connection ID
- Id string
The provider-assigned unique ID for this managed resource.
- State string
State of the peering connection
- State
Info Dictionary<string, object> State-specific help or error information
- Aws
Vpc stringPeering Connection Id AWS VPC peering connection ID
- Id string
The provider-assigned unique ID for this managed resource.
- State string
State of the peering connection
- State
Info map[string]interface{} State-specific help or error information
- aws
Vpc StringPeering Connection Id AWS VPC peering connection ID
- id String
The provider-assigned unique ID for this managed resource.
- state String
State of the peering connection
- state
Info Map<String,Object> State-specific help or error information
- aws
Vpc stringPeering Connection Id AWS VPC peering connection ID
- id string
The provider-assigned unique ID for this managed resource.
- state string
State of the peering connection
- state
Info {[key: string]: any} State-specific help or error information
- aws_
vpc_ strpeering_ connection_ id 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
- aws
Vpc StringPeering Connection Id AWS VPC peering connection ID
- id String
The provider-assigned unique ID for this managed resource.
- state String
State of the peering connection
- state
Info 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.
- Aws
Account stringId AWS account ID. This property cannot be changed, doing so forces recreation of the resource.
- Aws
Vpc stringId AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.
- Aws
Vpc stringPeering Connection Id AWS VPC peering connection ID
- Aws
Vpc stringRegion 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
- State
Info Dictionary<string, object> State-specific help or error information
- Vpc
Id string The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- Aws
Account stringId AWS account ID. This property cannot be changed, doing so forces recreation of the resource.
- Aws
Vpc stringId AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.
- Aws
Vpc stringPeering Connection Id AWS VPC peering connection ID
- Aws
Vpc stringRegion 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
- State
Info map[string]interface{} State-specific help or error information
- Vpc
Id string The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- aws
Account StringId AWS account ID. This property cannot be changed, doing so forces recreation of the resource.
- aws
Vpc StringId AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.
- aws
Vpc StringPeering Connection Id AWS VPC peering connection ID
- aws
Vpc StringRegion 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
- state
Info Map<String,Object> State-specific help or error information
- vpc
Id String The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- aws
Account stringId AWS account ID. This property cannot be changed, doing so forces recreation of the resource.
- aws
Vpc stringId AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.
- aws
Vpc stringPeering Connection Id AWS VPC peering connection ID
- aws
Vpc stringRegion 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
- state
Info {[key: string]: any} State-specific help or error information
- vpc
Id string The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- aws_
account_ strid AWS account ID. This property cannot be changed, doing so forces recreation of the resource.
- aws_
vpc_ strid AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.
- aws_
vpc_ strpeering_ connection_ id AWS VPC peering connection ID
- aws_
vpc_ strregion 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.
- aws
Account StringId AWS account ID. This property cannot be changed, doing so forces recreation of the resource.
- aws
Vpc StringId AWS VPC ID. This property cannot be changed, doing so forces recreation of the resource.
- aws
Vpc StringPeering Connection Id AWS VPC peering connection ID
- aws
Vpc StringRegion 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
- state
Info Map<Any> State-specific help or error information
- vpc
Id 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.