1. Packages
  2. AWS
  3. API Docs
  4. networkmanager
  5. AttachmentAccepter
AWS v6.74.0 published on Wednesday, Mar 26, 2025 by Pulumi

aws.networkmanager.AttachmentAccepter

Explore with Pulumi AI

Resource for managing an AWS Network Manager Attachment Accepter.

Example Usage

Example with VPC attachment

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = new aws.networkmanager.AttachmentAccepter("test", {
    attachmentId: vpc.id,
    attachmentType: vpc.attachmentType,
});
Copy
import pulumi
import pulumi_aws as aws

test = aws.networkmanager.AttachmentAccepter("test",
    attachment_id=vpc["id"],
    attachment_type=vpc["attachmentType"])
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/networkmanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := networkmanager.NewAttachmentAccepter(ctx, "test", &networkmanager.AttachmentAccepterArgs{
			AttachmentId:   pulumi.Any(vpc.Id),
			AttachmentType: pulumi.Any(vpc.AttachmentType),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var test = new Aws.NetworkManager.AttachmentAccepter("test", new()
    {
        AttachmentId = vpc.Id,
        AttachmentType = vpc.AttachmentType,
    });

});
Copy
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 test = new AttachmentAccepter("test", AttachmentAccepterArgs.builder()
            .attachmentId(vpc.id())
            .attachmentType(vpc.attachmentType())
            .build());

    }
}
Copy
resources:
  test:
    type: aws:networkmanager:AttachmentAccepter
    properties:
      attachmentId: ${vpc.id}
      attachmentType: ${vpc.attachmentType}
Copy

Example with site-to-site VPN attachment

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = new aws.networkmanager.AttachmentAccepter("test", {
    attachmentId: vpn.id,
    attachmentType: vpn.attachmentType,
});
Copy
import pulumi
import pulumi_aws as aws

test = aws.networkmanager.AttachmentAccepter("test",
    attachment_id=vpn["id"],
    attachment_type=vpn["attachmentType"])
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/networkmanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := networkmanager.NewAttachmentAccepter(ctx, "test", &networkmanager.AttachmentAccepterArgs{
			AttachmentId:   pulumi.Any(vpn.Id),
			AttachmentType: pulumi.Any(vpn.AttachmentType),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var test = new Aws.NetworkManager.AttachmentAccepter("test", new()
    {
        AttachmentId = vpn.Id,
        AttachmentType = vpn.AttachmentType,
    });

});
Copy
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 test = new AttachmentAccepter("test", AttachmentAccepterArgs.builder()
            .attachmentId(vpn.id())
            .attachmentType(vpn.attachmentType())
            .build());

    }
}
Copy
resources:
  test:
    type: aws:networkmanager:AttachmentAccepter
    properties:
      attachmentId: ${vpn.id}
      attachmentType: ${vpn.attachmentType}
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. AttachmentAccepterArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. AttachmentAccepterArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AttachmentAccepterArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
example, err := networkmanager.NewAttachmentAccepter(ctx, "attachmentAccepterResource", &networkmanager.AttachmentAccepterArgs{
	AttachmentId:   pulumi.String("string"),
	AttachmentType: pulumi.String("string"),
})
Copy
var attachmentAccepterResource = new AttachmentAccepter("attachmentAccepterResource", AttachmentAccepterArgs.builder()
    .attachmentId("string")
    .attachmentType("string")
    .build());
Copy
attachment_accepter_resource = aws.networkmanager.AttachmentAccepter("attachmentAccepterResource",
    attachment_id="string",
    attachment_type="string")
Copy
const attachmentAccepterResource = new aws.networkmanager.AttachmentAccepter("attachmentAccepterResource", {
    attachmentId: "string",
    attachmentType: "string",
});
Copy
type: aws:networkmanager:AttachmentAccepter
properties:
    attachmentId: string
    attachmentType: string
Copy

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
This property is required.
Changes to this property will trigger replacement.
string
The ID of the attachment.
AttachmentType
This property is required.
Changes to this property will trigger replacement.
string
The type of attachment. Valid values can be found in the AWS Documentation
AttachmentId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the attachment.
AttachmentType
This property is required.
Changes to this property will trigger replacement.
string
The type of attachment. Valid values can be found in the AWS Documentation
attachmentId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the attachment.
attachmentType
This property is required.
Changes to this property will trigger replacement.
String
The type of attachment. Valid values can be found in the AWS Documentation
attachmentId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the attachment.
attachmentType
This property is required.
Changes to this property will trigger replacement.
string
The type of attachment. Valid values can be found in the AWS Documentation
attachment_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the attachment.
attachment_type
This property is required.
Changes to this property will trigger replacement.
str
The type of attachment. Valid values can be found in the AWS Documentation
attachmentId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the attachment.
attachmentType
This property is required.
Changes to this property will trigger replacement.
String
The type of attachment. Valid values can be found in the AWS Documentation

Outputs

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

AttachmentPolicyRuleNumber int
The policy rule number associated with the attachment.
CoreNetworkArn string
The ARN of a core network.
CoreNetworkId string
The id of a core network.
EdgeLocation string
The Region where the edge is located. This is returned for all attachment types except a Direct Connect gateway attachment, which instead returns edge_locations.
EdgeLocations List<string>
The 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
The ID of the attachment account owner.
ResourceArn string
The attachment resource ARN.
SegmentName string
The name of the segment attachment.
State string
The state of the attachment.
AttachmentPolicyRuleNumber int
The policy rule number associated with the attachment.
CoreNetworkArn string
The ARN of a core network.
CoreNetworkId string
The id of a core network.
EdgeLocation string
The Region where the edge is located. This is returned for all attachment types except a Direct Connect gateway attachment, which instead returns edge_locations.
EdgeLocations []string
The 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
The ID of the attachment account owner.
ResourceArn string
The attachment resource ARN.
SegmentName string
The name of the segment attachment.
State string
The state of the attachment.
attachmentPolicyRuleNumber Integer
The policy rule number associated with the attachment.
coreNetworkArn String
The ARN of a core network.
coreNetworkId String
The id of a core network.
edgeLocation String
The Region where the edge is located. This is returned for all attachment types except a Direct Connect gateway attachment, which instead returns edge_locations.
edgeLocations List<String>
The 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
The ID of the attachment account owner.
resourceArn String
The attachment resource ARN.
segmentName String
The name of the segment attachment.
state String
The state of the attachment.
attachmentPolicyRuleNumber number
The policy rule number associated with the attachment.
coreNetworkArn string
The ARN of a core network.
coreNetworkId string
The id of a core network.
edgeLocation string
The Region where the edge is located. This is returned for all attachment types except a Direct Connect gateway attachment, which instead returns edge_locations.
edgeLocations string[]
The 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
The ID of the attachment account owner.
resourceArn string
The attachment resource ARN.
segmentName string
The name of the segment attachment.
state string
The state of the attachment.
attachment_policy_rule_number int
The policy rule number associated with the attachment.
core_network_arn str
The ARN of a core network.
core_network_id str
The id of a core network.
edge_location str
The Region where the edge is located. This is returned for all attachment types except a Direct Connect gateway attachment, which instead returns edge_locations.
edge_locations Sequence[str]
The 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
The ID of the attachment account owner.
resource_arn str
The attachment resource ARN.
segment_name str
The name of the segment attachment.
state str
The state of the attachment.
attachmentPolicyRuleNumber Number
The policy rule number associated with the attachment.
coreNetworkArn String
The ARN of a core network.
coreNetworkId String
The id of a core network.
edgeLocation String
The Region where the edge is located. This is returned for all attachment types except a Direct Connect gateway attachment, which instead returns edge_locations.
edgeLocations List<String>
The 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
The ID of the attachment account owner.
resourceArn String
The attachment resource ARN.
segmentName String
The name of the segment attachment.
state String
The 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. string
The ID of the attachment.
AttachmentPolicyRuleNumber int
The policy rule number associated with the attachment.
AttachmentType Changes to this property will trigger replacement. string
The type of attachment. Valid values can be found in the AWS Documentation
CoreNetworkArn string
The ARN of a core network.
CoreNetworkId string
The id of a core network.
EdgeLocation string
The Region where the edge is located. This is returned for all attachment types except a Direct Connect gateway attachment, which instead returns edge_locations.
EdgeLocations List<string>
The 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
The ID of the attachment account owner.
ResourceArn string
The attachment resource ARN.
SegmentName string
The name of the segment attachment.
State string
The state of the attachment.
AttachmentId Changes to this property will trigger replacement. string
The ID of the attachment.
AttachmentPolicyRuleNumber int
The policy rule number associated with the attachment.
AttachmentType Changes to this property will trigger replacement. string
The type of attachment. Valid values can be found in the AWS Documentation
CoreNetworkArn string
The ARN of a core network.
CoreNetworkId string
The id of a core network.
EdgeLocation string
The Region where the edge is located. This is returned for all attachment types except a Direct Connect gateway attachment, which instead returns edge_locations.
EdgeLocations []string
The 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
The ID of the attachment account owner.
ResourceArn string
The attachment resource ARN.
SegmentName string
The name of the segment attachment.
State string
The state of the attachment.
attachmentId Changes to this property will trigger replacement. String
The ID of the attachment.
attachmentPolicyRuleNumber Integer
The policy rule number associated with the attachment.
attachmentType Changes to this property will trigger replacement. String
The type of attachment. Valid values can be found in the AWS Documentation
coreNetworkArn String
The ARN of a core network.
coreNetworkId String
The id of a core network.
edgeLocation String
The Region where the edge is located. This is returned for all attachment types except a Direct Connect gateway attachment, which instead returns edge_locations.
edgeLocations List<String>
The 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
The ID of the attachment account owner.
resourceArn String
The attachment resource ARN.
segmentName String
The name of the segment attachment.
state String
The state of the attachment.
attachmentId Changes to this property will trigger replacement. string
The ID of the attachment.
attachmentPolicyRuleNumber number
The policy rule number associated with the attachment.
attachmentType Changes to this property will trigger replacement. string
The type of attachment. Valid values can be found in the AWS Documentation
coreNetworkArn string
The ARN of a core network.
coreNetworkId string
The id of a core network.
edgeLocation string
The Region where the edge is located. This is returned for all attachment types except a Direct Connect gateway attachment, which instead returns edge_locations.
edgeLocations string[]
The 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
The ID of the attachment account owner.
resourceArn string
The attachment resource ARN.
segmentName string
The name of the segment attachment.
state string
The state of the attachment.
attachment_id Changes to this property will trigger replacement. str
The ID of the attachment.
attachment_policy_rule_number int
The policy rule number associated with the attachment.
attachment_type Changes to this property will trigger replacement. str
The type of attachment. Valid values can be found in the AWS Documentation
core_network_arn str
The ARN of a core network.
core_network_id str
The id of a core network.
edge_location str
The Region where the edge is located. This is returned for all attachment types except a Direct Connect gateway attachment, which instead returns edge_locations.
edge_locations Sequence[str]
The 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
The ID of the attachment account owner.
resource_arn str
The attachment resource ARN.
segment_name str
The name of the segment attachment.
state str
The state of the attachment.
attachmentId Changes to this property will trigger replacement. String
The ID of the attachment.
attachmentPolicyRuleNumber Number
The policy rule number associated with the attachment.
attachmentType Changes to this property will trigger replacement. String
The type of attachment. Valid values can be found in the AWS Documentation
coreNetworkArn String
The ARN of a core network.
coreNetworkId String
The id of a core network.
edgeLocation String
The Region where the edge is located. This is returned for all attachment types except a Direct Connect gateway attachment, which instead returns edge_locations.
edgeLocations List<String>
The 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
The ID of the attachment account owner.
resourceArn String
The attachment resource ARN.
segmentName String
The name of the segment attachment.
state String
The 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.