GatewayAssociationProposalArgs

data class GatewayAssociationProposalArgs(val allowedPrefixes: Output<List<String>>? = null, val associatedGatewayId: Output<String>? = null, val dxGatewayId: Output<String>? = null, val dxGatewayOwnerAccountId: Output<String>? = null) : ConvertibleToJava<GatewayAssociationProposalArgs>

Manages a Direct Connect Gateway Association Proposal, typically for enabling cross-account associations. For single account associations, see the aws.directconnect.GatewayAssociation resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.directconnect.GatewayAssociationProposal("example", {
dxGatewayId: exampleAwsDxGateway.id,
dxGatewayOwnerAccountId: exampleAwsDxGateway.ownerAccountId,
associatedGatewayId: exampleAwsVpnGateway.id,
});
import pulumi
import pulumi_aws as aws
example = aws.directconnect.GatewayAssociationProposal("example",
dx_gateway_id=example_aws_dx_gateway["id"],
dx_gateway_owner_account_id=example_aws_dx_gateway["ownerAccountId"],
associated_gateway_id=example_aws_vpn_gateway["id"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.DirectConnect.GatewayAssociationProposal("example", new()
{
DxGatewayId = exampleAwsDxGateway.Id,
DxGatewayOwnerAccountId = exampleAwsDxGateway.OwnerAccountId,
AssociatedGatewayId = exampleAwsVpnGateway.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/directconnect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := directconnect.NewGatewayAssociationProposal(ctx, "example", &directconnect.GatewayAssociationProposalArgs{
DxGatewayId: pulumi.Any(exampleAwsDxGateway.Id),
DxGatewayOwnerAccountId: pulumi.Any(exampleAwsDxGateway.OwnerAccountId),
AssociatedGatewayId: pulumi.Any(exampleAwsVpnGateway.Id),
})
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.aws.directconnect.GatewayAssociationProposal;
import com.pulumi.aws.directconnect.GatewayAssociationProposalArgs;
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 example = new GatewayAssociationProposal("example", GatewayAssociationProposalArgs.builder()
.dxGatewayId(exampleAwsDxGateway.id())
.dxGatewayOwnerAccountId(exampleAwsDxGateway.ownerAccountId())
.associatedGatewayId(exampleAwsVpnGateway.id())
.build());
}
}
resources:
example:
type: aws:directconnect:GatewayAssociationProposal
properties:
dxGatewayId: ${exampleAwsDxGateway.id}
dxGatewayOwnerAccountId: ${exampleAwsDxGateway.ownerAccountId}
associatedGatewayId: ${exampleAwsVpnGateway.id}

Import

Using a proposal ID, Direct Connect Gateway ID and associated gateway ID separated by /: With pulumi import, import Direct Connect Gateway Association Proposals using either a proposal ID or proposal ID, Direct Connect Gateway ID and associated gateway ID separated by /. For example: Using a proposal ID:

$ pulumi import aws:directconnect/gatewayAssociationProposal:GatewayAssociationProposal example ac90e981-b718-4364-872d-65478c84fafe

Using a proposal ID, Direct Connect Gateway ID and associated gateway ID separated by /:

$ pulumi import aws:directconnect/gatewayAssociationProposal:GatewayAssociationProposal example ac90e981-b718-4364-872d-65478c84fafe/abcd1234-dcba-5678-be23-cdef9876ab45/vgw-12345678

The latter case is useful when a previous proposal has been accepted and deleted by AWS. The aws_dx_gateway_association_proposal resource will then represent a pseudo-proposal for the same Direct Connect Gateway and associated gateway. If no previous proposal is available, use a tool like uuidgen to generate a new random pseudo-proposal ID.

Constructors

Link copied to clipboard
constructor(allowedPrefixes: Output<List<String>>? = null, associatedGatewayId: Output<String>? = null, dxGatewayId: Output<String>? = null, dxGatewayOwnerAccountId: Output<String>? = null)

Properties

Link copied to clipboard
val allowedPrefixes: Output<List<String>>? = null

VPC prefixes (CIDRs) to advertise to the Direct Connect gateway. Defaults to the CIDR block of the VPC associated with the Virtual Gateway. To enable drift detection, must be configured.

Link copied to clipboard
val associatedGatewayId: Output<String>? = null

The ID of the VGW or transit gateway with which to associate the Direct Connect gateway.

Link copied to clipboard
val dxGatewayId: Output<String>? = null

Direct Connect Gateway identifier.

Link copied to clipboard
val dxGatewayOwnerAccountId: Output<String>? = null

AWS Account identifier of the Direct Connect Gateway's owner.

Functions

Link copied to clipboard
open override fun toJava(): GatewayAssociationProposalArgs