1. Packages
  2. AWS
  3. API Docs
  4. networkmanager
  5. AttachmentAccepter
AWS v7.5.0 published on Wednesday, Aug 20, 2025 by Pulumi

aws.networkmanager.AttachmentAccepter

Explore with Pulumi AI

aws logo
AWS v7.5.0 published on Wednesday, Aug 20, 2025 by Pulumi

    Manages an AWS Network Manager Attachment Accepter.

    Use this resource to accept cross-account attachments in AWS Network Manager. When an attachment is created in one account and needs to be accepted by another account that owns the core network, this resource handles the acceptance process.

    Example Usage

    VPC Attachment

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.networkmanager.AttachmentAccepter("example", {
        attachmentId: exampleAwsNetworkmanagerVpcAttachment.id,
        attachmentType: exampleAwsNetworkmanagerVpcAttachment.attachmentType,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.networkmanager.AttachmentAccepter("example",
        attachment_id=example_aws_networkmanager_vpc_attachment["id"],
        attachment_type=example_aws_networkmanager_vpc_attachment["attachmentType"])
    
    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.NewAttachmentAccepter(ctx, "example", &networkmanager.AttachmentAccepterArgs{
    			AttachmentId:   pulumi.Any(exampleAwsNetworkmanagerVpcAttachment.Id),
    			AttachmentType: pulumi.Any(exampleAwsNetworkmanagerVpcAttachment.AttachmentType),
    		})
    		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.AttachmentAccepter("example", new()
        {
            AttachmentId = exampleAwsNetworkmanagerVpcAttachment.Id,
            AttachmentType = exampleAwsNetworkmanagerVpcAttachment.AttachmentType,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.networkmanager.AttachmentAccepter;
    import com.pulumi.aws.networkmanager.AttachmentAccepterArgs;
    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 AttachmentAccepter("example", AttachmentAccepterArgs.builder()
                .attachmentId(exampleAwsNetworkmanagerVpcAttachment.id())
                .attachmentType(exampleAwsNetworkmanagerVpcAttachment.attachmentType())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:networkmanager:AttachmentAccepter
        properties:
          attachmentId: ${exampleAwsNetworkmanagerVpcAttachment.id}
          attachmentType: ${exampleAwsNetworkmanagerVpcAttachment.attachmentType}
    

    Site-to-Site VPN Attachment

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.networkmanager.AttachmentAccepter("example", {
        attachmentId: exampleAwsNetworkmanagerSiteToSiteVpnAttachment.id,
        attachmentType: exampleAwsNetworkmanagerSiteToSiteVpnAttachment.attachmentType,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.networkmanager.AttachmentAccepter("example",
        attachment_id=example_aws_networkmanager_site_to_site_vpn_attachment["id"],
        attachment_type=example_aws_networkmanager_site_to_site_vpn_attachment["attachmentType"])
    
    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.NewAttachmentAccepter(ctx, "example", &networkmanager.AttachmentAccepterArgs{
    			AttachmentId:   pulumi.Any(exampleAwsNetworkmanagerSiteToSiteVpnAttachment.Id),
    			AttachmentType: pulumi.Any(exampleAwsNetworkmanagerSiteToSiteVpnAttachment.AttachmentType),
    		})
    		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.AttachmentAccepter("example", new()
        {
            AttachmentId = exampleAwsNetworkmanagerSiteToSiteVpnAttachment.Id,
            AttachmentType = exampleAwsNetworkmanagerSiteToSiteVpnAttachment.AttachmentType,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.networkmanager.AttachmentAccepter;
    import com.pulumi.aws.networkmanager.AttachmentAccepterArgs;
    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 AttachmentAccepter("example", AttachmentAccepterArgs.builder()
                .attachmentId(exampleAwsNetworkmanagerSiteToSiteVpnAttachment.id())
                .attachmentType(exampleAwsNetworkmanagerSiteToSiteVpnAttachment.attachmentType())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:networkmanager:AttachmentAccepter
        properties:
          attachmentId: ${exampleAwsNetworkmanagerSiteToSiteVpnAttachment.id}
          attachmentType: ${exampleAwsNetworkmanagerSiteToSiteVpnAttachment.attachmentType}
    

    Connect Attachment

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.networkmanager.AttachmentAccepter("example", {
        attachmentId: exampleAwsNetworkmanagerConnectAttachment.id,
        attachmentType: exampleAwsNetworkmanagerConnectAttachment.attachmentType,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.networkmanager.AttachmentAccepter("example",
        attachment_id=example_aws_networkmanager_connect_attachment["id"],
        attachment_type=example_aws_networkmanager_connect_attachment["attachmentType"])
    
    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.NewAttachmentAccepter(ctx, "example", &networkmanager.AttachmentAccepterArgs{
    			AttachmentId:   pulumi.Any(exampleAwsNetworkmanagerConnectAttachment.Id),
    			AttachmentType: pulumi.Any(exampleAwsNetworkmanagerConnectAttachment.AttachmentType),
    		})
    		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.AttachmentAccepter("example", new()
        {
            AttachmentId = exampleAwsNetworkmanagerConnectAttachment.Id,
            AttachmentType = exampleAwsNetworkmanagerConnectAttachment.AttachmentType,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.networkmanager.AttachmentAccepter;
    import com.pulumi.aws.networkmanager.AttachmentAccepterArgs;
    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 AttachmentAccepter("example", AttachmentAccepterArgs.builder()
                .attachmentId(exampleAwsNetworkmanagerConnectAttachment.id())
                .attachmentType(exampleAwsNetworkmanagerConnectAttachment.attachmentType())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:networkmanager:AttachmentAccepter
        properties:
          attachmentId: ${exampleAwsNetworkmanagerConnectAttachment.id}
          attachmentType: ${exampleAwsNetworkmanagerConnectAttachment.attachmentType}
    

    Transit Gateway Route Table Attachment

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.networkmanager.AttachmentAccepter("example", {
        attachmentId: exampleAwsNetworkmanagerTransitGatewayRouteTableAttachment.id,
        attachmentType: exampleAwsNetworkmanagerTransitGatewayRouteTableAttachment.attachmentType,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.networkmanager.AttachmentAccepter("example",
        attachment_id=example_aws_networkmanager_transit_gateway_route_table_attachment["id"],
        attachment_type=example_aws_networkmanager_transit_gateway_route_table_attachment["attachmentType"])
    
    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.NewAttachmentAccepter(ctx, "example", &networkmanager.AttachmentAccepterArgs{
    			AttachmentId:   pulumi.Any(exampleAwsNetworkmanagerTransitGatewayRouteTableAttachment.Id),
    			AttachmentType: pulumi.Any(exampleAwsNetworkmanagerTransitGatewayRouteTableAttachment.AttachmentType),
    		})
    		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.AttachmentAccepter("example", new()
        {
            AttachmentId = exampleAwsNetworkmanagerTransitGatewayRouteTableAttachment.Id,
            AttachmentType = exampleAwsNetworkmanagerTransitGatewayRouteTableAttachment.AttachmentType,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.networkmanager.AttachmentAccepter;
    import com.pulumi.aws.networkmanager.AttachmentAccepterArgs;
    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 AttachmentAccepter("example", AttachmentAccepterArgs.builder()
                .attachmentId(exampleAwsNetworkmanagerTransitGatewayRouteTableAttachment.id())
                .attachmentType(exampleAwsNetworkmanagerTransitGatewayRouteTableAttachment.attachmentType())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:networkmanager:AttachmentAccepter
        properties:
          attachmentId: ${exampleAwsNetworkmanagerTransitGatewayRouteTableAttachment.id}
          attachmentType: ${exampleAwsNetworkmanagerTransitGatewayRouteTableAttachment.attachmentType}
    

    Direct Connect Gateway Attachment

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.networkmanager.AttachmentAccepter("example", {
        attachmentId: exampleAwsNetworkmanagerDxGatewayAttachment.id,
        attachmentType: exampleAwsNetworkmanagerDxGatewayAttachment.attachmentType,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.networkmanager.AttachmentAccepter("example",
        attachment_id=example_aws_networkmanager_dx_gateway_attachment["id"],
        attachment_type=example_aws_networkmanager_dx_gateway_attachment["attachmentType"])
    
    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.NewAttachmentAccepter(ctx, "example", &networkmanager.AttachmentAccepterArgs{
    			AttachmentId:   pulumi.Any(exampleAwsNetworkmanagerDxGatewayAttachment.Id),
    			AttachmentType: pulumi.Any(exampleAwsNetworkmanagerDxGatewayAttachment.AttachmentType),
    		})
    		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.AttachmentAccepter("example", new()
        {
            AttachmentId = exampleAwsNetworkmanagerDxGatewayAttachment.Id,
            AttachmentType = exampleAwsNetworkmanagerDxGatewayAttachment.AttachmentType,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.networkmanager.AttachmentAccepter;
    import com.pulumi.aws.networkmanager.AttachmentAccepterArgs;
    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 AttachmentAccepter("example", AttachmentAccepterArgs.builder()
                .attachmentId(exampleAwsNetworkmanagerDxGatewayAttachment.id())
                .attachmentType(exampleAwsNetworkmanagerDxGatewayAttachment.attachmentType())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:networkmanager:AttachmentAccepter
        properties:
          attachmentId: ${exampleAwsNetworkmanagerDxGatewayAttachment.id}
          attachmentType: ${exampleAwsNetworkmanagerDxGatewayAttachment.attachmentType}
    

    Create AttachmentAccepter Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AttachmentAccepter(name: string, args: AttachmentAccepterArgs, opts?: CustomResourceOptions);
    @overload
    def AttachmentAccepter(resource_name: str,
                           args: AttachmentAccepterArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def AttachmentAccepter(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           attachment_id: Optional[str] = None,
                           attachment_type: Optional[str] = None)
    func NewAttachmentAccepter(ctx *Context, name string, args AttachmentAccepterArgs, opts ...ResourceOption) (*AttachmentAccepter, error)
    public AttachmentAccepter(string name, AttachmentAccepterArgs args, CustomResourceOptions? opts = null)
    public AttachmentAccepter(String name, AttachmentAccepterArgs args)
    public AttachmentAccepter(String name, AttachmentAccepterArgs args, CustomResourceOptions options)
    
    type: aws:networkmanager:AttachmentAccepter
    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 AttachmentAccepterArgs
    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 AttachmentAccepterArgs
    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 AttachmentAccepterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AttachmentAccepterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AttachmentAccepterArgs
    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 attachmentAccepterResource = new Aws.NetworkManager.AttachmentAccepter("attachmentAccepterResource", new()
    {
        AttachmentId = "string",
        AttachmentType = "string",
    });
    
    example, err := networkmanager.NewAttachmentAccepter(ctx, "attachmentAccepterResource", &networkmanager.AttachmentAccepterArgs{
    	AttachmentId:   pulumi.String("string"),
    	AttachmentType: pulumi.String("string"),
    })
    
    var attachmentAccepterResource = new AttachmentAccepter("attachmentAccepterResource", AttachmentAccepterArgs.builder()
        .attachmentId("string")
        .attachmentType("string")
        .build());
    
    attachment_accepter_resource = aws.networkmanager.AttachmentAccepter("attachmentAccepterResource",
        attachment_id="string",
        attachment_type="string")
    
    const attachmentAccepterResource = new aws.networkmanager.AttachmentAccepter("attachmentAccepterResource", {
        attachmentId: "string",
        attachmentType: "string",
    });
    
    type: aws:networkmanager:AttachmentAccepter
    properties:
        attachmentId: string
        attachmentType: string
    

    AttachmentAccepter 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 AttachmentAccepter resource accepts the following input properties:

    AttachmentId string
    ID of the attachment.
    AttachmentType string
    Type of attachment. Valid values: CONNECT, DIRECT_CONNECT_GATEWAY, SITE_TO_SITE_VPN, TRANSIT_GATEWAY_ROUTE_TABLE, VPC.
    AttachmentId string
    ID of the attachment.
    AttachmentType string
    Type of attachment. Valid values: CONNECT, DIRECT_CONNECT_GATEWAY, SITE_TO_SITE_VPN, TRANSIT_GATEWAY_ROUTE_TABLE, VPC.
    attachmentId String
    ID of the attachment.
    attachmentType String
    Type of attachment. Valid values: CONNECT, DIRECT_CONNECT_GATEWAY, SITE_TO_SITE_VPN, TRANSIT_GATEWAY_ROUTE_TABLE, VPC.
    attachmentId string
    ID of the attachment.
    attachmentType string
    Type of attachment. Valid values: CONNECT, DIRECT_CONNECT_GATEWAY, SITE_TO_SITE_VPN, TRANSIT_GATEWAY_ROUTE_TABLE, VPC.
    attachment_id str
    ID of the attachment.
    attachment_type str
    Type of attachment. Valid values: CONNECT, DIRECT_CONNECT_GATEWAY, SITE_TO_SITE_VPN, TRANSIT_GATEWAY_ROUTE_TABLE, VPC.
    attachmentId String
    ID of the attachment.
    attachmentType String
    Type of attachment. Valid values: CONNECT, DIRECT_CONNECT_GATEWAY, SITE_TO_SITE_VPN, TRANSIT_GATEWAY_ROUTE_TABLE, VPC.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AttachmentAccepter resource produces the following output properties:

    AttachmentPolicyRuleNumber int
    Policy rule number associated with the attachment.
    CoreNetworkArn string
    ARN of the core network.
    CoreNetworkId string
    ID of the core network.
    EdgeLocation string
    Region where the edge is located. This is returned for all attachment types except Direct Connect gateway attachments, which instead return edge_locations.
    EdgeLocations List<string>
    Edge locations that the Direct Connect gateway is associated with. This is returned only for Direct Connect gateway attachments. All other attachment types return edge_location.
    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerAccountId string
    ID of the attachment account owner.
    ResourceArn string
    Attachment resource ARN.
    SegmentName string
    Name of the segment attachment.
    State string
    State of the attachment.
    AttachmentPolicyRuleNumber int
    Policy rule number associated with the attachment.
    CoreNetworkArn string
    ARN of the core network.
    CoreNetworkId string
    ID of the core network.
    EdgeLocation string
    Region where the edge is located. This is returned for all attachment types except Direct Connect gateway attachments, which instead return edge_locations.
    EdgeLocations []string
    Edge locations that the Direct Connect gateway is associated with. This is returned only for Direct Connect gateway attachments. All other attachment types return edge_location.
    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerAccountId string
    ID of the attachment account owner.
    ResourceArn string
    Attachment resource ARN.
    SegmentName string
    Name of the segment attachment.
    State string
    State of the attachment.
    attachmentPolicyRuleNumber Integer
    Policy rule number associated with the attachment.
    coreNetworkArn String
    ARN of the core network.
    coreNetworkId String
    ID of the core network.
    edgeLocation String
    Region where the edge is located. This is returned for all attachment types except Direct Connect gateway attachments, which instead return edge_locations.
    edgeLocations List<String>
    Edge locations that the Direct Connect gateway is associated with. This is returned only for Direct Connect gateway attachments. All other attachment types return edge_location.
    id String
    The provider-assigned unique ID for this managed resource.
    ownerAccountId String
    ID of the attachment account owner.
    resourceArn String
    Attachment resource ARN.
    segmentName String
    Name of the segment attachment.
    state String
    State of the attachment.
    attachmentPolicyRuleNumber number
    Policy rule number associated with the attachment.
    coreNetworkArn string
    ARN of the core network.
    coreNetworkId string
    ID of the core network.
    edgeLocation string
    Region where the edge is located. This is returned for all attachment types except Direct Connect gateway attachments, which instead return edge_locations.
    edgeLocations string[]
    Edge locations that the Direct Connect gateway is associated with. This is returned only for Direct Connect gateway attachments. All other attachment types return edge_location.
    id string
    The provider-assigned unique ID for this managed resource.
    ownerAccountId string
    ID of the attachment account owner.
    resourceArn string
    Attachment resource ARN.
    segmentName string
    Name of the segment attachment.
    state string
    State of the attachment.
    attachment_policy_rule_number int
    Policy rule number associated with the attachment.
    core_network_arn str
    ARN of the core network.
    core_network_id str
    ID of the core network.
    edge_location str
    Region where the edge is located. This is returned for all attachment types except Direct Connect gateway attachments, which instead return edge_locations.
    edge_locations Sequence[str]
    Edge locations that the Direct Connect gateway is associated with. This is returned only for Direct Connect gateway attachments. All other attachment types return edge_location.
    id str
    The provider-assigned unique ID for this managed resource.
    owner_account_id str
    ID of the attachment account owner.
    resource_arn str
    Attachment resource ARN.
    segment_name str
    Name of the segment attachment.
    state str
    State of the attachment.
    attachmentPolicyRuleNumber Number
    Policy rule number associated with the attachment.
    coreNetworkArn String
    ARN of the core network.
    coreNetworkId String
    ID of the core network.
    edgeLocation String
    Region where the edge is located. This is returned for all attachment types except Direct Connect gateway attachments, which instead return edge_locations.
    edgeLocations List<String>
    Edge locations that the Direct Connect gateway is associated with. This is returned only for Direct Connect gateway attachments. All other attachment types return edge_location.
    id String
    The provider-assigned unique ID for this managed resource.
    ownerAccountId String
    ID of the attachment account owner.
    resourceArn String
    Attachment resource ARN.
    segmentName String
    Name of the segment attachment.
    state String
    State of the attachment.

    Look up Existing AttachmentAccepter Resource

    Get an existing AttachmentAccepter 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?: AttachmentAccepterState, opts?: CustomResourceOptions): AttachmentAccepter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            attachment_id: Optional[str] = None,
            attachment_policy_rule_number: Optional[int] = None,
            attachment_type: Optional[str] = None,
            core_network_arn: Optional[str] = None,
            core_network_id: Optional[str] = None,
            edge_location: Optional[str] = None,
            edge_locations: Optional[Sequence[str]] = None,
            owner_account_id: Optional[str] = None,
            resource_arn: Optional[str] = None,
            segment_name: Optional[str] = None,
            state: Optional[str] = None) -> AttachmentAccepter
    func GetAttachmentAccepter(ctx *Context, name string, id IDInput, state *AttachmentAccepterState, opts ...ResourceOption) (*AttachmentAccepter, error)
    public static AttachmentAccepter Get(string name, Input<string> id, AttachmentAccepterState? state, CustomResourceOptions? opts = null)
    public static AttachmentAccepter get(String name, Output<String> id, AttachmentAccepterState state, CustomResourceOptions options)
    resources:  _:    type: aws:networkmanager:AttachmentAccepter    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.
    The following state arguments are supported:
    AttachmentId string
    ID of the attachment.
    AttachmentPolicyRuleNumber int
    Policy rule number associated with the attachment.
    AttachmentType string
    Type of attachment. Valid values: CONNECT, DIRECT_CONNECT_GATEWAY, SITE_TO_SITE_VPN, TRANSIT_GATEWAY_ROUTE_TABLE, VPC.
    CoreNetworkArn string
    ARN of the core network.
    CoreNetworkId string
    ID of the core network.
    EdgeLocation string
    Region where the edge is located. This is returned for all attachment types except Direct Connect gateway attachments, which instead return edge_locations.
    EdgeLocations List<string>
    Edge locations that the Direct Connect gateway is associated with. This is returned only for Direct Connect gateway attachments. All other attachment types return edge_location.
    OwnerAccountId string
    ID of the attachment account owner.
    ResourceArn string
    Attachment resource ARN.
    SegmentName string
    Name of the segment attachment.
    State string
    State of the attachment.
    AttachmentId string
    ID of the attachment.
    AttachmentPolicyRuleNumber int
    Policy rule number associated with the attachment.
    AttachmentType string
    Type of attachment. Valid values: CONNECT, DIRECT_CONNECT_GATEWAY, SITE_TO_SITE_VPN, TRANSIT_GATEWAY_ROUTE_TABLE, VPC.
    CoreNetworkArn string
    ARN of the core network.
    CoreNetworkId string
    ID of the core network.
    EdgeLocation string
    Region where the edge is located. This is returned for all attachment types except Direct Connect gateway attachments, which instead return edge_locations.
    EdgeLocations []string
    Edge locations that the Direct Connect gateway is associated with. This is returned only for Direct Connect gateway attachments. All other attachment types return edge_location.
    OwnerAccountId string
    ID of the attachment account owner.
    ResourceArn string
    Attachment resource ARN.
    SegmentName string
    Name of the segment attachment.
    State string
    State of the attachment.
    attachmentId String
    ID of the attachment.
    attachmentPolicyRuleNumber Integer
    Policy rule number associated with the attachment.
    attachmentType String
    Type of attachment. Valid values: CONNECT, DIRECT_CONNECT_GATEWAY, SITE_TO_SITE_VPN, TRANSIT_GATEWAY_ROUTE_TABLE, VPC.
    coreNetworkArn String
    ARN of the core network.
    coreNetworkId String
    ID of the core network.
    edgeLocation String
    Region where the edge is located. This is returned for all attachment types except Direct Connect gateway attachments, which instead return edge_locations.
    edgeLocations List<String>
    Edge locations that the Direct Connect gateway is associated with. This is returned only for Direct Connect gateway attachments. All other attachment types return edge_location.
    ownerAccountId String
    ID of the attachment account owner.
    resourceArn String
    Attachment resource ARN.
    segmentName String
    Name of the segment attachment.
    state String
    State of the attachment.
    attachmentId string
    ID of the attachment.
    attachmentPolicyRuleNumber number
    Policy rule number associated with the attachment.
    attachmentType string
    Type of attachment. Valid values: CONNECT, DIRECT_CONNECT_GATEWAY, SITE_TO_SITE_VPN, TRANSIT_GATEWAY_ROUTE_TABLE, VPC.
    coreNetworkArn string
    ARN of the core network.
    coreNetworkId string
    ID of the core network.
    edgeLocation string
    Region where the edge is located. This is returned for all attachment types except Direct Connect gateway attachments, which instead return edge_locations.
    edgeLocations string[]
    Edge locations that the Direct Connect gateway is associated with. This is returned only for Direct Connect gateway attachments. All other attachment types return edge_location.
    ownerAccountId string
    ID of the attachment account owner.
    resourceArn string
    Attachment resource ARN.
    segmentName string
    Name of the segment attachment.
    state string
    State of the attachment.
    attachment_id str
    ID of the attachment.
    attachment_policy_rule_number int
    Policy rule number associated with the attachment.
    attachment_type str
    Type of attachment. Valid values: CONNECT, DIRECT_CONNECT_GATEWAY, SITE_TO_SITE_VPN, TRANSIT_GATEWAY_ROUTE_TABLE, VPC.
    core_network_arn str
    ARN of the core network.
    core_network_id str
    ID of the core network.
    edge_location str
    Region where the edge is located. This is returned for all attachment types except Direct Connect gateway attachments, which instead return edge_locations.
    edge_locations Sequence[str]
    Edge locations that the Direct Connect gateway is associated with. This is returned only for Direct Connect gateway attachments. All other attachment types return edge_location.
    owner_account_id str
    ID of the attachment account owner.
    resource_arn str
    Attachment resource ARN.
    segment_name str
    Name of the segment attachment.
    state str
    State of the attachment.
    attachmentId String
    ID of the attachment.
    attachmentPolicyRuleNumber Number
    Policy rule number associated with the attachment.
    attachmentType String
    Type of attachment. Valid values: CONNECT, DIRECT_CONNECT_GATEWAY, SITE_TO_SITE_VPN, TRANSIT_GATEWAY_ROUTE_TABLE, VPC.
    coreNetworkArn String
    ARN of the core network.
    coreNetworkId String
    ID of the core network.
    edgeLocation String
    Region where the edge is located. This is returned for all attachment types except Direct Connect gateway attachments, which instead return edge_locations.
    edgeLocations List<String>
    Edge locations that the Direct Connect gateway is associated with. This is returned only for Direct Connect gateway attachments. All other attachment types return edge_location.
    ownerAccountId String
    ID of the attachment account owner.
    resourceArn String
    Attachment resource ARN.
    segmentName String
    Name of the segment attachment.
    state String
    State of the attachment.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v7.5.0 published on Wednesday, Aug 20, 2025 by Pulumi