Class GatewayAssociationProposal


  • public class GatewayAssociationProposal
    extends com.pulumi.resources.CustomResource
    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.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());
     
         }
     }
     
     
    ## 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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • 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 GatewayAssociationProposal get​(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()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.