Package com.pulumi.aws.directconnect
Class GatewayAssociationProposal
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.directconnect.GatewayAssociationProposal
-
public class GatewayAssociationProposal extends com.pulumi.resources.CustomResourceManages 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 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: ```sh $ 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 `/`: ```sh $ 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.directconnect.GatewayAssociationProposal` 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`](http://manpages.ubuntu.com/manpages/bionic/man1/uuidgen.1.html) to generate a new random pseudo-proposal ID.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.ArrayList; import java.util.Arrays; 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()); } }
-
-
Constructor Summary
Constructors Constructor Description GatewayAssociationProposal(java.lang.String name)GatewayAssociationProposal(java.lang.String name, GatewayAssociationProposalArgs args)GatewayAssociationProposal(java.lang.String name, GatewayAssociationProposalArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.List<java.lang.String>>allowedPrefixes()com.pulumi.core.Output<java.lang.String>associatedGatewayId()com.pulumi.core.Output<java.lang.String>associatedGatewayOwnerAccountId()com.pulumi.core.Output<java.lang.String>associatedGatewayType()com.pulumi.core.Output<java.lang.String>dxGatewayId()com.pulumi.core.Output<java.lang.String>dxGatewayOwnerAccountId()static GatewayAssociationProposalget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, GatewayAssociationProposalState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>region()
-
-
-
Constructor Detail
-
GatewayAssociationProposal
public GatewayAssociationProposal(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
GatewayAssociationProposal
public GatewayAssociationProposal(java.lang.String name, GatewayAssociationProposalArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
GatewayAssociationProposal
public GatewayAssociationProposal(java.lang.String name, GatewayAssociationProposalArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
allowedPrefixes
public com.pulumi.core.Output<java.util.List<java.lang.String>> allowedPrefixes()
- Returns:
- 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.
-
associatedGatewayId
public com.pulumi.core.Output<java.lang.String> associatedGatewayId()
- Returns:
- The ID of the VGW or transit gateway with which to associate the Direct Connect gateway.
-
associatedGatewayOwnerAccountId
public com.pulumi.core.Output<java.lang.String> associatedGatewayOwnerAccountId()
- Returns:
- The ID of the AWS account that owns the VGW or transit gateway with which to associate the Direct Connect gateway.
-
associatedGatewayType
public com.pulumi.core.Output<java.lang.String> associatedGatewayType()
- Returns:
- The type of the associated gateway, `transitGateway` or `virtualPrivateGateway`.
-
dxGatewayId
public com.pulumi.core.Output<java.lang.String> dxGatewayId()
- Returns:
- Direct Connect Gateway identifier.
-
dxGatewayOwnerAccountId
public com.pulumi.core.Output<java.lang.String> dxGatewayOwnerAccountId()
- Returns:
- AWS Account identifier of the Direct Connect Gateway's owner.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
get
public static GatewayAssociationProposal get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable GatewayAssociationProposalState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-