Aiven v6.28.0 published on Friday, Nov 15, 2024 by Pulumi
aiven.getTransitGatewayVpcAttachment
Explore with Pulumi AI
The Transit Gateway VPC Attachment resource allows the creation and management Transit Gateway VPC Attachment VPC peering connection between Aiven and AWS.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const attachment = aiven.getTransitGatewayVpcAttachment({
vpcId: bar.id,
peerCloudAccount: "<PEER_ACCOUNT_ID>",
peerVpc: "google-project1",
});
import pulumi
import pulumi_aiven as aiven
attachment = aiven.get_transit_gateway_vpc_attachment(vpc_id=bar["id"],
peer_cloud_account="<PEER_ACCOUNT_ID>",
peer_vpc="google-project1")
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.LookupTransitGatewayVpcAttachment(ctx, &aiven.LookupTransitGatewayVpcAttachmentArgs{
VpcId: bar.Id,
PeerCloudAccount: "<PEER_ACCOUNT_ID>",
PeerVpc: "google-project1",
}, 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 attachment = Aiven.GetTransitGatewayVpcAttachment.Invoke(new()
{
VpcId = bar.Id,
PeerCloudAccount = "<PEER_ACCOUNT_ID>",
PeerVpc = "google-project1",
});
});
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.GetTransitGatewayVpcAttachmentArgs;
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 attachment = AivenFunctions.getTransitGatewayVpcAttachment(GetTransitGatewayVpcAttachmentArgs.builder()
.vpcId(bar.id())
.peerCloudAccount("<PEER_ACCOUNT_ID>")
.peerVpc("google-project1")
.build());
}
}
variables:
attachment:
fn::invoke:
Function: aiven:getTransitGatewayVpcAttachment
Arguments:
vpcId: ${bar.id}
peerCloudAccount: <PEER_ACCOUNT_ID>
peerVpc: google-project1
Using getTransitGatewayVpcAttachment
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 getTransitGatewayVpcAttachment(args: GetTransitGatewayVpcAttachmentArgs, opts?: InvokeOptions): Promise<GetTransitGatewayVpcAttachmentResult>
function getTransitGatewayVpcAttachmentOutput(args: GetTransitGatewayVpcAttachmentOutputArgs, opts?: InvokeOptions): Output<GetTransitGatewayVpcAttachmentResult>
def get_transit_gateway_vpc_attachment(peer_cloud_account: Optional[str] = None,
peer_vpc: Optional[str] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTransitGatewayVpcAttachmentResult
def get_transit_gateway_vpc_attachment_output(peer_cloud_account: Optional[pulumi.Input[str]] = None,
peer_vpc: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTransitGatewayVpcAttachmentResult]
func LookupTransitGatewayVpcAttachment(ctx *Context, args *LookupTransitGatewayVpcAttachmentArgs, opts ...InvokeOption) (*LookupTransitGatewayVpcAttachmentResult, error)
func LookupTransitGatewayVpcAttachmentOutput(ctx *Context, args *LookupTransitGatewayVpcAttachmentOutputArgs, opts ...InvokeOption) LookupTransitGatewayVpcAttachmentResultOutput
> Note: This function is named LookupTransitGatewayVpcAttachment
in the Go SDK.
public static class GetTransitGatewayVpcAttachment
{
public static Task<GetTransitGatewayVpcAttachmentResult> InvokeAsync(GetTransitGatewayVpcAttachmentArgs args, InvokeOptions? opts = null)
public static Output<GetTransitGatewayVpcAttachmentResult> Invoke(GetTransitGatewayVpcAttachmentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTransitGatewayVpcAttachmentResult> getTransitGatewayVpcAttachment(GetTransitGatewayVpcAttachmentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aiven:index/getTransitGatewayVpcAttachment:getTransitGatewayVpcAttachment
arguments:
# arguments dictionary
The following arguments are supported:
- Peer
Cloud stringAccount - AWS account ID or GCP project ID of the peered VPC. Changing this property forces recreation of the resource.
- Peer
Vpc string - Transit gateway ID. Changing this property forces recreation of the resource.
- Vpc
Id string - The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Peer
Cloud stringAccount - AWS account ID or GCP project ID of the peered VPC. Changing this property forces recreation of the resource.
- Peer
Vpc string - Transit gateway ID. Changing this property forces recreation of the resource.
- Vpc
Id string - The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- peer
Cloud StringAccount - AWS account ID or GCP project ID of the peered VPC. Changing this property forces recreation of the resource.
- peer
Vpc String - Transit gateway ID. Changing this property forces recreation of the resource.
- vpc
Id String - The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- peer
Cloud stringAccount - AWS account ID or GCP project ID of the peered VPC. Changing this property forces recreation of the resource.
- peer
Vpc string - Transit gateway ID. Changing this property forces recreation of the resource.
- vpc
Id string - The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- peer_
cloud_ straccount - AWS account ID or GCP project ID of the peered VPC. Changing this property forces recreation of the resource.
- peer_
vpc str - Transit gateway ID. Changing this property forces recreation of the resource.
- vpc_
id str - The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- peer
Cloud StringAccount - AWS account ID or GCP project ID of the peered VPC. Changing this property forces recreation of the resource.
- peer
Vpc String - Transit gateway ID. Changing this property forces recreation of the resource.
- vpc
Id String - The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
getTransitGatewayVpcAttachment Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Peer
Cloud stringAccount - AWS account ID or GCP project ID of the peered VPC. Changing this property forces recreation of the resource.
- Peer
Region string - AWS region of the peered VPC (if not in the same region as Aiven VPC). This value can't be changed.
- Peer
Vpc string - Transit gateway ID. Changing this property forces recreation of the resource.
- Peering
Connection stringId - Cloud provider identifier for the peering connection if available
- State string
- State of the peering connection
- State
Info Dictionary<string, string> - State-specific help or error information
- User
Peer List<string>Network Cidrs - List of private IPv4 ranges to route through the peering connection
- Vpc
Id string - The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Peer
Cloud stringAccount - AWS account ID or GCP project ID of the peered VPC. Changing this property forces recreation of the resource.
- Peer
Region string - AWS region of the peered VPC (if not in the same region as Aiven VPC). This value can't be changed.
- Peer
Vpc string - Transit gateway ID. Changing this property forces recreation of the resource.
- Peering
Connection stringId - Cloud provider identifier for the peering connection if available
- State string
- State of the peering connection
- State
Info map[string]string - State-specific help or error information
- User
Peer []stringNetwork Cidrs - List of private IPv4 ranges to route through the peering connection
- Vpc
Id string - The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- peer
Cloud StringAccount - AWS account ID or GCP project ID of the peered VPC. Changing this property forces recreation of the resource.
- peer
Region String - AWS region of the peered VPC (if not in the same region as Aiven VPC). This value can't be changed.
- peer
Vpc String - Transit gateway ID. Changing this property forces recreation of the resource.
- peering
Connection StringId - Cloud provider identifier for the peering connection if available
- state String
- State of the peering connection
- state
Info Map<String,String> - State-specific help or error information
- user
Peer List<String>Network Cidrs - List of private IPv4 ranges to route through the peering connection
- vpc
Id String - The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- peer
Cloud stringAccount - AWS account ID or GCP project ID of the peered VPC. Changing this property forces recreation of the resource.
- peer
Region string - AWS region of the peered VPC (if not in the same region as Aiven VPC). This value can't be changed.
- peer
Vpc string - Transit gateway ID. Changing this property forces recreation of the resource.
- peering
Connection stringId - Cloud provider identifier for the peering connection if available
- state string
- State of the peering connection
- state
Info {[key: string]: string} - State-specific help or error information
- user
Peer string[]Network Cidrs - List of private IPv4 ranges to route through the peering connection
- vpc
Id string - The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- peer_
cloud_ straccount - AWS account ID or GCP project ID of the peered VPC. Changing this property forces recreation of the resource.
- peer_
region str - AWS region of the peered VPC (if not in the same region as Aiven VPC). This value can't be changed.
- peer_
vpc str - Transit gateway ID. Changing this property forces recreation of the resource.
- peering_
connection_ strid - Cloud provider identifier for the peering connection if available
- state str
- State of the peering connection
- state_
info Mapping[str, str] - State-specific help or error information
- user_
peer_ Sequence[str]network_ cidrs - List of private IPv4 ranges to route through the peering connection
- vpc_
id str - The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- peer
Cloud StringAccount - AWS account ID or GCP project ID of the peered VPC. Changing this property forces recreation of the resource.
- peer
Region String - AWS region of the peered VPC (if not in the same region as Aiven VPC). This value can't be changed.
- peer
Vpc String - Transit gateway ID. Changing this property forces recreation of the resource.
- peering
Connection StringId - Cloud provider identifier for the peering connection if available
- state String
- State of the peering connection
- state
Info Map<String> - State-specific help or error information
- user
Peer List<String>Network Cidrs - List of private IPv4 ranges to route through the peering connection
- vpc
Id String - The VPC the peering connection belongs to. To set up proper dependencies please refer to this variable as a reference. 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.