Aiven v6.18.0 published on Thursday, Jun 27, 2024 by Pulumi
aiven.getAzureVpcPeeringConnection
Explore with Pulumi AI
Gets information about about an Azure VPC peering connection.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const azureToAivenPeering = aiven.getAzureVpcPeeringConnection({
vpcId: exampleVpc.id,
azureSubscriptionId: "00000000-0000-0000-0000-000000000000",
peerResourceGroup: "example-resource-group",
vnetName: "example-vnet",
peerAzureAppId: "00000000-0000-0000-0000-000000000000",
peerAzureTenantId: "00000000-0000-0000-0000-000000000000",
});
import pulumi
import pulumi_aiven as aiven
azure_to_aiven_peering = aiven.get_azure_vpc_peering_connection(vpc_id=example_vpc["id"],
azure_subscription_id="00000000-0000-0000-0000-000000000000",
peer_resource_group="example-resource-group",
vnet_name="example-vnet",
peer_azure_app_id="00000000-0000-0000-0000-000000000000",
peer_azure_tenant_id="00000000-0000-0000-0000-000000000000")
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.LookupAzureVpcPeeringConnection(ctx, &aiven.LookupAzureVpcPeeringConnectionArgs{
VpcId: exampleVpc.Id,
AzureSubscriptionId: "00000000-0000-0000-0000-000000000000",
PeerResourceGroup: "example-resource-group",
VnetName: "example-vnet",
PeerAzureAppId: "00000000-0000-0000-0000-000000000000",
PeerAzureTenantId: "00000000-0000-0000-0000-000000000000",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() =>
{
var azureToAivenPeering = Aiven.GetAzureVpcPeeringConnection.Invoke(new()
{
VpcId = exampleVpc.Id,
AzureSubscriptionId = "00000000-0000-0000-0000-000000000000",
PeerResourceGroup = "example-resource-group",
VnetName = "example-vnet",
PeerAzureAppId = "00000000-0000-0000-0000-000000000000",
PeerAzureTenantId = "00000000-0000-0000-0000-000000000000",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.AivenFunctions;
import com.pulumi.aiven.inputs.GetAzureVpcPeeringConnectionArgs;
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) {
final var azureToAivenPeering = AivenFunctions.getAzureVpcPeeringConnection(GetAzureVpcPeeringConnectionArgs.builder()
.vpcId(exampleVpc.id())
.azureSubscriptionId("00000000-0000-0000-0000-000000000000")
.peerResourceGroup("example-resource-group")
.vnetName("example-vnet")
.peerAzureAppId("00000000-0000-0000-0000-000000000000")
.peerAzureTenantId("00000000-0000-0000-0000-000000000000")
.build());
}
}
variables:
azureToAivenPeering:
fn::invoke:
Function: aiven:getAzureVpcPeeringConnection
Arguments:
vpcId: ${exampleVpc.id}
azureSubscriptionId: 00000000-0000-0000-0000-000000000000
peerResourceGroup: example-resource-group
vnetName: example-vnet
peerAzureAppId: 00000000-0000-0000-0000-000000000000
peerAzureTenantId: 00000000-0000-0000-0000-000000000000
Using getAzureVpcPeeringConnection
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAzureVpcPeeringConnection(args: GetAzureVpcPeeringConnectionArgs, opts?: InvokeOptions): Promise<GetAzureVpcPeeringConnectionResult>
function getAzureVpcPeeringConnectionOutput(args: GetAzureVpcPeeringConnectionOutputArgs, opts?: InvokeOptions): Output<GetAzureVpcPeeringConnectionResult>
def get_azure_vpc_peering_connection(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,
opts: Optional[InvokeOptions] = None) -> GetAzureVpcPeeringConnectionResult
def get_azure_vpc_peering_connection_output(azure_subscription_id: Optional[pulumi.Input[str]] = None,
peer_azure_app_id: Optional[pulumi.Input[str]] = None,
peer_azure_tenant_id: Optional[pulumi.Input[str]] = None,
peer_resource_group: Optional[pulumi.Input[str]] = None,
vnet_name: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAzureVpcPeeringConnectionResult]
func LookupAzureVpcPeeringConnection(ctx *Context, args *LookupAzureVpcPeeringConnectionArgs, opts ...InvokeOption) (*LookupAzureVpcPeeringConnectionResult, error)
func LookupAzureVpcPeeringConnectionOutput(ctx *Context, args *LookupAzureVpcPeeringConnectionOutputArgs, opts ...InvokeOption) LookupAzureVpcPeeringConnectionResultOutput
> Note: This function is named LookupAzureVpcPeeringConnection
in the Go SDK.
public static class GetAzureVpcPeeringConnection
{
public static Task<GetAzureVpcPeeringConnectionResult> InvokeAsync(GetAzureVpcPeeringConnectionArgs args, InvokeOptions? opts = null)
public static Output<GetAzureVpcPeeringConnectionResult> Invoke(GetAzureVpcPeeringConnectionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAzureVpcPeeringConnectionResult> getAzureVpcPeeringConnection(GetAzureVpcPeeringConnectionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aiven:index/getAzureVpcPeeringConnection:getAzureVpcPeeringConnection
arguments:
# arguments dictionary
The following arguments are supported:
- Azure
Subscription stringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Azure stringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Azure stringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Resource stringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- Vnet
Name string - The name of the Azure VNet. Changing this property forces recreation of the resource.
- Vpc
Id string - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- Azure
Subscription stringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Azure stringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Azure stringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Resource stringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- Vnet
Name string - The name of the Azure VNet. Changing this property forces recreation of the resource.
- Vpc
Id string - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- azure
Subscription StringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure StringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure StringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peer
Resource StringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- vnet
Name String - The name of the Azure VNet. Changing this property forces recreation of the resource.
- vpc
Id String - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- azure
Subscription stringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure stringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure stringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peer
Resource stringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- vnet
Name string - The name of the Azure VNet. Changing this property forces recreation of the resource.
- vpc
Id string - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- azure_
subscription_ strid - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- peer_
azure_ strapp_ id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- peer_
azure_ strtenant_ id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peer_
resource_ strgroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- vnet_
name str - The name of the Azure VNet. Changing this property forces recreation of the resource.
- vpc_
id str - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- azure
Subscription StringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure StringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure StringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peer
Resource StringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- vnet
Name String - The name of the Azure VNet. Changing this property forces recreation of the resource.
- vpc
Id String - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
getAzureVpcPeeringConnection Result
The following output properties are available:
- Azure
Subscription stringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Peer
Azure stringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Azure stringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Resource stringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- Peering
Connection stringId - The ID of the cloud provider for the peering connection.
- State string
- State of the peering connection
- State
Info Dictionary<string, object> - State-specific help or error information.
- Vnet
Name string - The name of the Azure VNet. Changing this property forces recreation of the resource.
- Vpc
Id string - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- Azure
Subscription stringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Peer
Azure stringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Azure stringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- Peer
Resource stringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- Peering
Connection stringId - The ID of the cloud provider for the peering connection.
- State string
- State of the peering connection
- State
Info map[string]interface{} - State-specific help or error information.
- Vnet
Name string - The name of the Azure VNet. Changing this property forces recreation of the resource.
- Vpc
Id string - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- azure
Subscription StringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- peer
Azure StringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure StringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peer
Resource StringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- peering
Connection StringId - The ID of the cloud provider for the peering connection.
- state String
- State of the peering connection
- state
Info Map<String,Object> - State-specific help or error information.
- vnet
Name String - The name of the Azure VNet. Changing this property forces recreation of the resource.
- vpc
Id String - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- azure
Subscription stringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- peer
Azure stringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure stringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peer
Resource stringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- peering
Connection stringId - The ID of the cloud provider for the peering connection.
- state string
- State of the peering connection
- state
Info {[key: string]: any} - State-specific help or error information.
- vnet
Name string - The name of the Azure VNet. Changing this property forces recreation of the resource.
- vpc
Id string - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- azure_
subscription_ strid - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- peer_
azure_ strapp_ id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- peer_
azure_ strtenant_ id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peer_
resource_ strgroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- peering_
connection_ strid - The ID of the cloud provider for the peering connection.
- state str
- State of the peering connection
- state_
info Mapping[str, Any] - State-specific help or error information.
- vnet_
name str - The name of the Azure VNet. Changing this property forces recreation of the resource.
- vpc_
id str - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
- azure
Subscription StringId - The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- peer
Azure StringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
- peer
Azure StringTenant Id - The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peer
Resource StringGroup - The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- peering
Connection StringId - The ID of the cloud provider for the peering connection.
- state String
- State of the peering connection
- state
Info Map<Any> - State-specific help or error information.
- vnet
Name String - The name of the Azure VNet. Changing this property forces recreation of the resource.
- vpc
Id String - The ID of the Aiven VPC. Changing this property forces recreation of the resource.
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aiven
Terraform Provider.