Class DxGatewayAttachment


  • public class DxGatewayAttachment
    extends com.pulumi.resources.CustomResource
    Manages a Network Manager Direct Connect Gateway Attachment. Use this resource to create and manage a Direct Connect Gateway attachment to a Cloud WAN core network. ## Example Usage ### Basic Usage
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.networkmanager.DxGatewayAttachment;
     import com.pulumi.aws.networkmanager.DxGatewayAttachmentArgs;
     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 test = new DxGatewayAttachment("test", DxGatewayAttachmentArgs.builder()
                 .coreNetworkId(testAwsNetworkmanagerCoreNetworkPolicyAttachment.coreNetworkId())
                 .directConnectGatewayArn(String.format("arn:aws:directconnect::%s:dx-gateway/%s", current.accountId(),testAwsDxGateway.id()))
                 .edgeLocations(currentAwsRegion.region())
                 .build());
     
         }
     }
     
     
    ## Import Using `pulumi import`, import Network Manager DX Gateway Attachment using the `id`. For example: ```sh $ pulumi import aws:networkmanager/dxGatewayAttachment:DxGatewayAttachment example attachment-1a2b3c4d5e6f7g ```
    • 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.lang.String> arn()  
      com.pulumi.core.Output<java.lang.Integer> attachmentPolicyRuleNumber()  
      com.pulumi.core.Output<java.lang.String> attachmentType()  
      com.pulumi.core.Output<java.lang.String> coreNetworkArn()  
      com.pulumi.core.Output<java.lang.String> coreNetworkId()  
      com.pulumi.core.Output<java.lang.String> directConnectGatewayArn()  
      com.pulumi.core.Output<java.util.List<java.lang.String>> edgeLocations()  
      static DxGatewayAttachment get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, DxGatewayAttachmentState 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> ownerAccountId()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> routingPolicyLabel()  
      com.pulumi.core.Output<java.lang.String> segmentName()  
      com.pulumi.core.Output<java.lang.String> state()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()  
      com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()  
      com.pulumi.core.Output<java.util.Optional<DxGatewayAttachmentTimeouts>> timeouts()  
      • 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

      • DxGatewayAttachment

        public DxGatewayAttachment​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • DxGatewayAttachment

        public DxGatewayAttachment​(java.lang.String name,
                                   DxGatewayAttachmentArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • DxGatewayAttachment

        public DxGatewayAttachment​(java.lang.String name,
                                   DxGatewayAttachmentArgs 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

      • arn

        public com.pulumi.core.Output<java.lang.String> arn()
        Returns:
        ARN of the attachment.
      • attachmentPolicyRuleNumber

        public com.pulumi.core.Output<java.lang.Integer> attachmentPolicyRuleNumber()
        Returns:
        Policy rule number associated with the attachment.
      • attachmentType

        public com.pulumi.core.Output<java.lang.String> attachmentType()
        Returns:
        Type of attachment.
      • coreNetworkArn

        public com.pulumi.core.Output<java.lang.String> coreNetworkArn()
        Returns:
        ARN of the core network for the attachment.
      • coreNetworkId

        public com.pulumi.core.Output<java.lang.String> coreNetworkId()
        Returns:
        ID of the Cloud WAN core network to which the Direct Connect gateway attachment should be attached.
      • directConnectGatewayArn

        public com.pulumi.core.Output<java.lang.String> directConnectGatewayArn()
        Returns:
        ARN of the Direct Connect gateway attachment.
      • edgeLocations

        public com.pulumi.core.Output<java.util.List<java.lang.String>> edgeLocations()
        Returns:
        One or more core network edge locations to associate with the Direct Connect gateway attachment. The following arguments are optional:
      • ownerAccountId

        public com.pulumi.core.Output<java.lang.String> ownerAccountId()
        Returns:
        ID of the attachment account owner.
      • routingPolicyLabel

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> routingPolicyLabel()
        Returns:
        The routing policy label to apply to the Direct Connect Gateway attachment for traffic routing decisions. Maximum length of 256 characters. Changing this value will force recreation of the resource.
      • segmentName

        public com.pulumi.core.Output<java.lang.String> segmentName()
        Returns:
        Name of the segment attachment.
      • state

        public com.pulumi.core.Output<java.lang.String> state()
        Returns:
        State of the attachment.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Key-value tags for the attachment. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
      • tagsAll

        public com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()
        Returns:
        Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
      • get

        public static DxGatewayAttachment get​(java.lang.String name,
                                              com.pulumi.core.Output<java.lang.String> id,
                                              @Nullable
                                              DxGatewayAttachmentState 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.