Class AttachmentRoutingPolicyLabel


  • public class AttachmentRoutingPolicyLabel
    extends com.pulumi.resources.CustomResource
    Associates a routing policy label to a Network Manager Cloud WAN's attachment outside of the attachment creation. This is useful in multi-account environments where only the Cloud WAN core network owner account can apply a routing policy label. ## Example Usage
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.networkmanager.AttachmentRoutingPolicyLabel;
     import com.pulumi.aws.networkmanager.AttachmentRoutingPolicyLabelArgs;
     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 AttachmentRoutingPolicyLabel("example", AttachmentRoutingPolicyLabelArgs.builder()
                 .coreNetworkId(exampleAwsNetworkmanagerCoreNetwork.id())
                 .attachmentId(exampleAwsNetworkmanagerVpcAttachment.id())
                 .routingPolicyLabel("attachmentPolicyLabel")
                 .build());
     
         }
     }
     
     
    ## Import Using `pulumi import`, import `aws.networkmanager.AttachmentRoutingPolicyLabel` using the core network ID and attachment ID separated by a comma (`,`). For example: ```sh $ pulumi import aws:networkmanager/attachmentRoutingPolicyLabel:AttachmentRoutingPolicyLabel example core-network-0fab1c1e1e1e1e1e1,attachment-0fab2c2e2e2e2e2e2 ```
    • 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> attachmentId()  
      com.pulumi.core.Output<java.lang.String> coreNetworkId()  
      static AttachmentRoutingPolicyLabel get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, AttachmentRoutingPolicyLabelState 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> routingPolicyLabel()  
      • 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

      • AttachmentRoutingPolicyLabel

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

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

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

      • attachmentId

        public com.pulumi.core.Output<java.lang.String> attachmentId()
        Returns:
        The ID of the attachment to apply the routing policy label to.
      • coreNetworkId

        public com.pulumi.core.Output<java.lang.String> coreNetworkId()
        Returns:
        The ID of the core network containing the attachment.
      • routingPolicyLabel

        public com.pulumi.core.Output<java.lang.String> routingPolicyLabel()
        Returns:
        The routing policy label to apply to the attachment.
      • get

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