published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
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
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.networkmanager.AttachmentRoutingPolicyLabel("example", {
coreNetworkId: exampleAwsNetworkmanagerCoreNetwork.id,
attachmentId: exampleAwsNetworkmanagerVpcAttachment.id,
routingPolicyLabel: "attachmentPolicyLabel",
});
import pulumi
import pulumi_aws as aws
example = aws.networkmanager.AttachmentRoutingPolicyLabel("example",
core_network_id=example_aws_networkmanager_core_network["id"],
attachment_id=example_aws_networkmanager_vpc_attachment["id"],
routing_policy_label="attachmentPolicyLabel")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/networkmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networkmanager.NewAttachmentRoutingPolicyLabel(ctx, "example", &networkmanager.AttachmentRoutingPolicyLabelArgs{
CoreNetworkId: pulumi.Any(exampleAwsNetworkmanagerCoreNetwork.Id),
AttachmentId: pulumi.Any(exampleAwsNetworkmanagerVpcAttachment.Id),
RoutingPolicyLabel: pulumi.String("attachmentPolicyLabel"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.NetworkManager.AttachmentRoutingPolicyLabel("example", new()
{
CoreNetworkId = exampleAwsNetworkmanagerCoreNetwork.Id,
AttachmentId = exampleAwsNetworkmanagerVpcAttachment.Id,
RoutingPolicyLabel = "attachmentPolicyLabel",
});
});
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.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 AttachmentRoutingPolicyLabel("example", AttachmentRoutingPolicyLabelArgs.builder()
.coreNetworkId(exampleAwsNetworkmanagerCoreNetwork.id())
.attachmentId(exampleAwsNetworkmanagerVpcAttachment.id())
.routingPolicyLabel("attachmentPolicyLabel")
.build());
}
}
resources:
example:
type: aws:networkmanager:AttachmentRoutingPolicyLabel
properties:
coreNetworkId: ${exampleAwsNetworkmanagerCoreNetwork.id}
attachmentId: ${exampleAwsNetworkmanagerVpcAttachment.id}
routingPolicyLabel: attachmentPolicyLabel
Create AttachmentRoutingPolicyLabel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AttachmentRoutingPolicyLabel(name: string, args: AttachmentRoutingPolicyLabelArgs, opts?: CustomResourceOptions);@overload
def AttachmentRoutingPolicyLabel(resource_name: str,
args: AttachmentRoutingPolicyLabelArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AttachmentRoutingPolicyLabel(resource_name: str,
opts: Optional[ResourceOptions] = None,
attachment_id: Optional[str] = None,
core_network_id: Optional[str] = None,
routing_policy_label: Optional[str] = None)func NewAttachmentRoutingPolicyLabel(ctx *Context, name string, args AttachmentRoutingPolicyLabelArgs, opts ...ResourceOption) (*AttachmentRoutingPolicyLabel, error)public AttachmentRoutingPolicyLabel(string name, AttachmentRoutingPolicyLabelArgs args, CustomResourceOptions? opts = null)
public AttachmentRoutingPolicyLabel(String name, AttachmentRoutingPolicyLabelArgs args)
public AttachmentRoutingPolicyLabel(String name, AttachmentRoutingPolicyLabelArgs args, CustomResourceOptions options)
type: aws:networkmanager:AttachmentRoutingPolicyLabel
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AttachmentRoutingPolicyLabelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AttachmentRoutingPolicyLabelArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AttachmentRoutingPolicyLabelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AttachmentRoutingPolicyLabelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AttachmentRoutingPolicyLabelArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var attachmentRoutingPolicyLabelResource = new Aws.NetworkManager.AttachmentRoutingPolicyLabel("attachmentRoutingPolicyLabelResource", new()
{
AttachmentId = "string",
CoreNetworkId = "string",
RoutingPolicyLabel = "string",
});
example, err := networkmanager.NewAttachmentRoutingPolicyLabel(ctx, "attachmentRoutingPolicyLabelResource", &networkmanager.AttachmentRoutingPolicyLabelArgs{
AttachmentId: pulumi.String("string"),
CoreNetworkId: pulumi.String("string"),
RoutingPolicyLabel: pulumi.String("string"),
})
var attachmentRoutingPolicyLabelResource = new AttachmentRoutingPolicyLabel("attachmentRoutingPolicyLabelResource", AttachmentRoutingPolicyLabelArgs.builder()
.attachmentId("string")
.coreNetworkId("string")
.routingPolicyLabel("string")
.build());
attachment_routing_policy_label_resource = aws.networkmanager.AttachmentRoutingPolicyLabel("attachmentRoutingPolicyLabelResource",
attachment_id="string",
core_network_id="string",
routing_policy_label="string")
const attachmentRoutingPolicyLabelResource = new aws.networkmanager.AttachmentRoutingPolicyLabel("attachmentRoutingPolicyLabelResource", {
attachmentId: "string",
coreNetworkId: "string",
routingPolicyLabel: "string",
});
type: aws:networkmanager:AttachmentRoutingPolicyLabel
properties:
attachmentId: string
coreNetworkId: string
routingPolicyLabel: string
AttachmentRoutingPolicyLabel Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AttachmentRoutingPolicyLabel resource accepts the following input properties:
- Attachment
Id string - The ID of the attachment to apply the routing policy label to.
- Core
Network stringId - The ID of the core network containing the attachment.
- Routing
Policy stringLabel - The routing policy label to apply to the attachment.
- Attachment
Id string - The ID of the attachment to apply the routing policy label to.
- Core
Network stringId - The ID of the core network containing the attachment.
- Routing
Policy stringLabel - The routing policy label to apply to the attachment.
- attachment
Id String - The ID of the attachment to apply the routing policy label to.
- core
Network StringId - The ID of the core network containing the attachment.
- routing
Policy StringLabel - The routing policy label to apply to the attachment.
- attachment
Id string - The ID of the attachment to apply the routing policy label to.
- core
Network stringId - The ID of the core network containing the attachment.
- routing
Policy stringLabel - The routing policy label to apply to the attachment.
- attachment_
id str - The ID of the attachment to apply the routing policy label to.
- core_
network_ strid - The ID of the core network containing the attachment.
- routing_
policy_ strlabel - The routing policy label to apply to the attachment.
- attachment
Id String - The ID of the attachment to apply the routing policy label to.
- core
Network StringId - The ID of the core network containing the attachment.
- routing
Policy StringLabel - The routing policy label to apply to the attachment.
Outputs
All input properties are implicitly available as output properties. Additionally, the AttachmentRoutingPolicyLabel resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AttachmentRoutingPolicyLabel Resource
Get an existing AttachmentRoutingPolicyLabel resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AttachmentRoutingPolicyLabelState, opts?: CustomResourceOptions): AttachmentRoutingPolicyLabel@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
attachment_id: Optional[str] = None,
core_network_id: Optional[str] = None,
routing_policy_label: Optional[str] = None) -> AttachmentRoutingPolicyLabelfunc GetAttachmentRoutingPolicyLabel(ctx *Context, name string, id IDInput, state *AttachmentRoutingPolicyLabelState, opts ...ResourceOption) (*AttachmentRoutingPolicyLabel, error)public static AttachmentRoutingPolicyLabel Get(string name, Input<string> id, AttachmentRoutingPolicyLabelState? state, CustomResourceOptions? opts = null)public static AttachmentRoutingPolicyLabel get(String name, Output<String> id, AttachmentRoutingPolicyLabelState state, CustomResourceOptions options)resources: _: type: aws:networkmanager:AttachmentRoutingPolicyLabel get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Attachment
Id string - The ID of the attachment to apply the routing policy label to.
- Core
Network stringId - The ID of the core network containing the attachment.
- Routing
Policy stringLabel - The routing policy label to apply to the attachment.
- Attachment
Id string - The ID of the attachment to apply the routing policy label to.
- Core
Network stringId - The ID of the core network containing the attachment.
- Routing
Policy stringLabel - The routing policy label to apply to the attachment.
- attachment
Id String - The ID of the attachment to apply the routing policy label to.
- core
Network StringId - The ID of the core network containing the attachment.
- routing
Policy StringLabel - The routing policy label to apply to the attachment.
- attachment
Id string - The ID of the attachment to apply the routing policy label to.
- core
Network stringId - The ID of the core network containing the attachment.
- routing
Policy stringLabel - The routing policy label to apply to the attachment.
- attachment_
id str - The ID of the attachment to apply the routing policy label to.
- core_
network_ strid - The ID of the core network containing the attachment.
- routing_
policy_ strlabel - The routing policy label to apply to the attachment.
- attachment
Id String - The ID of the attachment to apply the routing policy label to.
- core
Network StringId - The ID of the core network containing the attachment.
- routing
Policy StringLabel - The routing policy label to apply to the attachment.
Import
Using pulumi import, import aws.networkmanager.AttachmentRoutingPolicyLabel using the core network ID and attachment ID separated by a comma (,). For example:
$ pulumi import aws:networkmanager/attachmentRoutingPolicyLabel:AttachmentRoutingPolicyLabel example core-network-0fab1c1e1e1e1e1e1,attachment-0fab2c2e2e2e2e2e2
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Wednesday, Mar 11, 2026 by Pulumi
