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

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(aws_dx_gateway.example().id())
.dxGatewayOwnerAccountId(aws_dx_gateway.example().owner_account_id())
.associatedGatewayId(aws_vpn_gateway.example().id())
.build());
}
}

Import

Direct Connect Gateway Association Proposals can be imported using either a proposal ID or proposal ID, Direct Connect Gateway ID and associated gateway ID separated by /, e.g.,

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

or

$ 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