Aiven

v5.4.0 published on Monday, Sep 12, 2022 by Pulumi

AzureVpcPeeringConnection

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

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var foo = new Aiven.AzureVpcPeeringConnection("foo", new()
    {
        VpcId = data.Aiven_project_vpc.Vpc.Id,
        AzureSubscriptionId = "xxxxxx",
        PeerResourceGroup = "my-pr1",
        VnetName = "my-vnet1",
        PeerAzureAppId = "xxxxxx",
        PeerAzureTenantId = "xxxxxx",
    });

});
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.NewAzureVpcPeeringConnection(ctx, "foo", &aiven.AzureVpcPeeringConnectionArgs{
			VpcId:               pulumi.Any(data.Aiven_project_vpc.Vpc.Id),
			AzureSubscriptionId: pulumi.String("xxxxxx"),
			PeerResourceGroup:   pulumi.String("my-pr1"),
			VnetName:            pulumi.String("my-vnet1"),
			PeerAzureAppId:      pulumi.String("xxxxxx"),
			PeerAzureTenantId:   pulumi.String("xxxxxx"),
		})
		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.AzureVpcPeeringConnection;
import com.pulumi.aiven.AzureVpcPeeringConnectionArgs;
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 AzureVpcPeeringConnection("foo", AzureVpcPeeringConnectionArgs.builder()        
            .vpcId(data.aiven_project_vpc().vpc().id())
            .azureSubscriptionId("xxxxxx")
            .peerResourceGroup("my-pr1")
            .vnetName("my-vnet1")
            .peerAzureAppId("xxxxxx")
            .peerAzureTenantId("xxxxxx")
            .build());

    }
}
import pulumi
import pulumi_aiven as aiven

foo = aiven.AzureVpcPeeringConnection("foo",
    vpc_id=data["aiven_project_vpc"]["vpc"]["id"],
    azure_subscription_id="xxxxxx",
    peer_resource_group="my-pr1",
    vnet_name="my-vnet1",
    peer_azure_app_id="xxxxxx",
    peer_azure_tenant_id="xxxxxx")
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const foo = new aiven.AzureVpcPeeringConnection("foo", {
    vpcId: data.aiven_project_vpc.vpc.id,
    azureSubscriptionId: "xxxxxx",
    peerResourceGroup: "my-pr1",
    vnetName: "my-vnet1",
    peerAzureAppId: "xxxxxx",
    peerAzureTenantId: "xxxxxx",
});
resources:
  foo:
    type: aiven:AzureVpcPeeringConnection
    properties:
      vpcId: ${data.aiven_project_vpc.vpc.id}
      azureSubscriptionId: xxxxxx
      peerResourceGroup: my-pr1
      vnetName: my-vnet1
      peerAzureAppId: xxxxxx
      peerAzureTenantId: xxxxxx

Create AzureVpcPeeringConnection Resource

new AzureVpcPeeringConnection(name: string, args: AzureVpcPeeringConnectionArgs, opts?: CustomResourceOptions);
@overload
def AzureVpcPeeringConnection(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              azure_subscription_id: Optional[str] = None,
                              peer_azure_app_id: Optional[str] = None,
                              peer_azure_tenant_id: Optional[str] = None,
                              peer_resource_group: Optional[str] = None,
                              vnet_name: Optional[str] = None,
                              vpc_id: Optional[str] = None)
@overload
def AzureVpcPeeringConnection(resource_name: str,
                              args: AzureVpcPeeringConnectionArgs,
                              opts: Optional[ResourceOptions] = None)
func NewAzureVpcPeeringConnection(ctx *Context, name string, args AzureVpcPeeringConnectionArgs, opts ...ResourceOption) (*AzureVpcPeeringConnection, error)
public AzureVpcPeeringConnection(string name, AzureVpcPeeringConnectionArgs args, CustomResourceOptions? opts = null)
public AzureVpcPeeringConnection(String name, AzureVpcPeeringConnectionArgs args)
public AzureVpcPeeringConnection(String name, AzureVpcPeeringConnectionArgs args, CustomResourceOptions options)
type: aiven:AzureVpcPeeringConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AzureVpcPeeringConnectionArgs
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 AzureVpcPeeringConnectionArgs
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 AzureVpcPeeringConnectionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AzureVpcPeeringConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AzureVpcPeeringConnectionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AzureVpcPeeringConnection 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 AzureVpcPeeringConnection resource accepts the following input properties:

AzureSubscriptionId string

Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.

PeerAzureAppId string

Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.

PeerAzureTenantId string

Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.

PeerResourceGroup string

Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.

VnetName string

Azure Network name. 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.

AzureSubscriptionId string

Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.

PeerAzureAppId string

Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.

PeerAzureTenantId string

Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.

PeerResourceGroup string

Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.

VnetName string

Azure Network name. 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.

azureSubscriptionId String

Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.

peerAzureAppId String

Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.

peerAzureTenantId String

Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.

peerResourceGroup String

Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.

vnetName String

Azure Network name. 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.

azureSubscriptionId string

Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.

peerAzureAppId string

Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.

peerAzureTenantId string

Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.

peerResourceGroup string

Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.

vnetName string

Azure Network name. 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.

azure_subscription_id str

Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.

peer_azure_app_id str

Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.

peer_azure_tenant_id str

Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.

peer_resource_group str

Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.

vnet_name str

Azure Network name. 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.

azureSubscriptionId String

Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.

peerAzureAppId String

Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.

peerAzureTenantId String

Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.

peerResourceGroup String

Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.

vnetName String

Azure Network name. 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 AzureVpcPeeringConnection resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

PeeringConnectionId string

Cloud provider identifier for the peering connection if available

State string

State of the peering connection

StateInfo Dictionary<string, object>

State-specific help or error information

Id string

The provider-assigned unique ID for this managed resource.

PeeringConnectionId string

Cloud provider identifier for the peering connection if available

State string

State of the peering connection

StateInfo map[string]interface{}

State-specific help or error information

id String

The provider-assigned unique ID for this managed resource.

peeringConnectionId String

Cloud provider identifier for the peering connection if available

state String

State of the peering connection

stateInfo Map<String,Object>

State-specific help or error information

id string

The provider-assigned unique ID for this managed resource.

peeringConnectionId string

Cloud provider identifier for the peering connection if available

state string

State of the peering connection

stateInfo {[key: string]: any}

State-specific help or error information

id str

The provider-assigned unique ID for this managed resource.

peering_connection_id str

Cloud provider identifier for the peering connection if available

state str

State of the peering connection

state_info Mapping[str, Any]

State-specific help or error information

id String

The provider-assigned unique ID for this managed resource.

peeringConnectionId String

Cloud provider identifier for the peering connection if available

state String

State of the peering connection

stateInfo Map<Any>

State-specific help or error information

Look up Existing AzureVpcPeeringConnection Resource

Get an existing AzureVpcPeeringConnection 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?: AzureVpcPeeringConnectionState, opts?: CustomResourceOptions): AzureVpcPeeringConnection
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        azure_subscription_id: Optional[str] = None,
        peer_azure_app_id: Optional[str] = None,
        peer_azure_tenant_id: Optional[str] = None,
        peer_resource_group: Optional[str] = None,
        peering_connection_id: Optional[str] = None,
        state: Optional[str] = None,
        state_info: Optional[Mapping[str, Any]] = None,
        vnet_name: Optional[str] = None,
        vpc_id: Optional[str] = None) -> AzureVpcPeeringConnection
func GetAzureVpcPeeringConnection(ctx *Context, name string, id IDInput, state *AzureVpcPeeringConnectionState, opts ...ResourceOption) (*AzureVpcPeeringConnection, error)
public static AzureVpcPeeringConnection Get(string name, Input<string> id, AzureVpcPeeringConnectionState? state, CustomResourceOptions? opts = null)
public static AzureVpcPeeringConnection get(String name, Output<String> id, AzureVpcPeeringConnectionState 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:
AzureSubscriptionId string

Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.

PeerAzureAppId string

Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.

PeerAzureTenantId string

Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.

PeerResourceGroup string

Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.

PeeringConnectionId string

Cloud provider identifier for the peering connection if available

State string

State of the peering connection

StateInfo Dictionary<string, object>

State-specific help or error information

VnetName string

Azure Network name. 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.

AzureSubscriptionId string

Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.

PeerAzureAppId string

Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.

PeerAzureTenantId string

Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.

PeerResourceGroup string

Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.

PeeringConnectionId string

Cloud provider identifier for the peering connection if available

State string

State of the peering connection

StateInfo map[string]interface{}

State-specific help or error information

VnetName string

Azure Network name. 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.

azureSubscriptionId String

Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.

peerAzureAppId String

Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.

peerAzureTenantId String

Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.

peerResourceGroup String

Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.

peeringConnectionId String

Cloud provider identifier for the peering connection if available

state String

State of the peering connection

stateInfo Map<String,Object>

State-specific help or error information

vnetName String

Azure Network name. 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.

azureSubscriptionId string

Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.

peerAzureAppId string

Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.

peerAzureTenantId string

Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.

peerResourceGroup string

Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.

peeringConnectionId string

Cloud provider identifier for the peering connection if available

state string

State of the peering connection

stateInfo {[key: string]: any}

State-specific help or error information

vnetName string

Azure Network name. 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.

azure_subscription_id str

Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.

peer_azure_app_id str

Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.

peer_azure_tenant_id str

Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.

peer_resource_group str

Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.

peering_connection_id str

Cloud provider identifier for the peering connection if available

state str

State of the peering connection

state_info Mapping[str, Any]

State-specific help or error information

vnet_name str

Azure Network name. 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.

azureSubscriptionId String

Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.

peerAzureAppId String

Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.

peerAzureTenantId String

Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.

peerResourceGroup String

Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.

peeringConnectionId String

Cloud provider identifier for the peering connection if available

state String

State of the peering connection

stateInfo Map<Any>

State-specific help or error information

vnetName String

Azure Network name. 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.

Import

 $ pulumi import aiven:index/azureVpcPeeringConnection:AzureVpcPeeringConnection foo project_name/vpc_id/azure_subscription_id/vnet_name

Package Details

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

This Pulumi package is based on the aiven Terraform Provider.