aws.networkmanager.ConnectAttachment
Explore with Pulumi AI
Manages an AWS Network Manager Connect Attachment.
Use this resource to create a Connect attachment in AWS Network Manager. Connect attachments enable you to connect your on-premises networks to your core network through a VPC or Transit Gateway attachment.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.networkmanager.VpcAttachment("example", {
subnetArns: exampleAwsSubnet.map(__item => __item.arn),
coreNetworkId: exampleAwsccNetworkmanagerCoreNetwork.id,
vpcArn: exampleAwsVpc.arn,
});
const exampleConnectAttachment = new aws.networkmanager.ConnectAttachment("example", {
coreNetworkId: exampleAwsccNetworkmanagerCoreNetwork.id,
transportAttachmentId: example.id,
edgeLocation: example.edgeLocation,
options: {
protocol: "GRE",
},
});
import pulumi
import pulumi_aws as aws
example = aws.networkmanager.VpcAttachment("example",
subnet_arns=[__item["arn"] for __item in example_aws_subnet],
core_network_id=example_awscc_networkmanager_core_network["id"],
vpc_arn=example_aws_vpc["arn"])
example_connect_attachment = aws.networkmanager.ConnectAttachment("example",
core_network_id=example_awscc_networkmanager_core_network["id"],
transport_attachment_id=example.id,
edge_location=example.edge_location,
options={
"protocol": "GRE",
})
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 {
var splat0 []interface{}
for _, val0 := range exampleAwsSubnet {
splat0 = append(splat0, val0.Arn)
}
example, err := networkmanager.NewVpcAttachment(ctx, "example", &networkmanager.VpcAttachmentArgs{
SubnetArns: toPulumiArray(splat0),
CoreNetworkId: pulumi.Any(exampleAwsccNetworkmanagerCoreNetwork.Id),
VpcArn: pulumi.Any(exampleAwsVpc.Arn),
})
if err != nil {
return err
}
_, err = networkmanager.NewConnectAttachment(ctx, "example", &networkmanager.ConnectAttachmentArgs{
CoreNetworkId: pulumi.Any(exampleAwsccNetworkmanagerCoreNetwork.Id),
TransportAttachmentId: example.ID(),
EdgeLocation: example.EdgeLocation,
Options: &networkmanager.ConnectAttachmentOptionsArgs{
Protocol: pulumi.String("GRE"),
},
})
if err != nil {
return err
}
return nil
})
}
func toPulumiArray(arr []) pulumi.Array {
var pulumiArr pulumi.Array
for _, v := range arr {
pulumiArr = append(pulumiArr, pulumi.(v))
}
return pulumiArr
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.NetworkManager.VpcAttachment("example", new()
{
SubnetArns = exampleAwsSubnet.Select(__item => __item.Arn).ToList(),
CoreNetworkId = exampleAwsccNetworkmanagerCoreNetwork.Id,
VpcArn = exampleAwsVpc.Arn,
});
var exampleConnectAttachment = new Aws.NetworkManager.ConnectAttachment("example", new()
{
CoreNetworkId = exampleAwsccNetworkmanagerCoreNetwork.Id,
TransportAttachmentId = example.Id,
EdgeLocation = example.EdgeLocation,
Options = new Aws.NetworkManager.Inputs.ConnectAttachmentOptionsArgs
{
Protocol = "GRE",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.networkmanager.VpcAttachment;
import com.pulumi.aws.networkmanager.VpcAttachmentArgs;
import com.pulumi.aws.networkmanager.ConnectAttachment;
import com.pulumi.aws.networkmanager.ConnectAttachmentArgs;
import com.pulumi.aws.networkmanager.inputs.ConnectAttachmentOptionsArgs;
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 VpcAttachment("example", VpcAttachmentArgs.builder()
.subnetArns(exampleAwsSubnet.stream().map(element -> element.arn()).collect(toList()))
.coreNetworkId(exampleAwsccNetworkmanagerCoreNetwork.id())
.vpcArn(exampleAwsVpc.arn())
.build());
var exampleConnectAttachment = new ConnectAttachment("exampleConnectAttachment", ConnectAttachmentArgs.builder()
.coreNetworkId(exampleAwsccNetworkmanagerCoreNetwork.id())
.transportAttachmentId(example.id())
.edgeLocation(example.edgeLocation())
.options(ConnectAttachmentOptionsArgs.builder()
.protocol("GRE")
.build())
.build());
}
}
Example coming soon!
Usage with attachment accepter
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.networkmanager.VpcAttachment("example", {
subnetArns: exampleAwsSubnet.map(__item => __item.arn),
coreNetworkId: exampleAwsccNetworkmanagerCoreNetwork.id,
vpcArn: exampleAwsVpc.arn,
});
const exampleAttachmentAccepter = new aws.networkmanager.AttachmentAccepter("example", {
attachmentId: example.id,
attachmentType: example.attachmentType,
});
const exampleConnectAttachment = new aws.networkmanager.ConnectAttachment("example", {
coreNetworkId: exampleAwsccNetworkmanagerCoreNetwork.id,
transportAttachmentId: example.id,
edgeLocation: example.edgeLocation,
options: {
protocol: "GRE",
},
}, {
dependsOn: [exampleAttachmentAccepter],
});
const example2 = new aws.networkmanager.AttachmentAccepter("example2", {
attachmentId: exampleConnectAttachment.id,
attachmentType: exampleConnectAttachment.attachmentType,
});
import pulumi
import pulumi_aws as aws
example = aws.networkmanager.VpcAttachment("example",
subnet_arns=[__item["arn"] for __item in example_aws_subnet],
core_network_id=example_awscc_networkmanager_core_network["id"],
vpc_arn=example_aws_vpc["arn"])
example_attachment_accepter = aws.networkmanager.AttachmentAccepter("example",
attachment_id=example.id,
attachment_type=example.attachment_type)
example_connect_attachment = aws.networkmanager.ConnectAttachment("example",
core_network_id=example_awscc_networkmanager_core_network["id"],
transport_attachment_id=example.id,
edge_location=example.edge_location,
options={
"protocol": "GRE",
},
opts = pulumi.ResourceOptions(depends_on=[example_attachment_accepter]))
example2 = aws.networkmanager.AttachmentAccepter("example2",
attachment_id=example_connect_attachment.id,
attachment_type=example_connect_attachment.attachment_type)
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 {
var splat0 []interface{}
for _, val0 := range exampleAwsSubnet {
splat0 = append(splat0, val0.Arn)
}
example, err := networkmanager.NewVpcAttachment(ctx, "example", &networkmanager.VpcAttachmentArgs{
SubnetArns: toPulumiArray(splat0),
CoreNetworkId: pulumi.Any(exampleAwsccNetworkmanagerCoreNetwork.Id),
VpcArn: pulumi.Any(exampleAwsVpc.Arn),
})
if err != nil {
return err
}
exampleAttachmentAccepter, err := networkmanager.NewAttachmentAccepter(ctx, "example", &networkmanager.AttachmentAccepterArgs{
AttachmentId: example.ID(),
AttachmentType: example.AttachmentType,
})
if err != nil {
return err
}
exampleConnectAttachment, err := networkmanager.NewConnectAttachment(ctx, "example", &networkmanager.ConnectAttachmentArgs{
CoreNetworkId: pulumi.Any(exampleAwsccNetworkmanagerCoreNetwork.Id),
TransportAttachmentId: example.ID(),
EdgeLocation: example.EdgeLocation,
Options: &networkmanager.ConnectAttachmentOptionsArgs{
Protocol: pulumi.String("GRE"),
},
}, pulumi.DependsOn([]pulumi.Resource{
exampleAttachmentAccepter,
}))
if err != nil {
return err
}
_, err = networkmanager.NewAttachmentAccepter(ctx, "example2", &networkmanager.AttachmentAccepterArgs{
AttachmentId: exampleConnectAttachment.ID(),
AttachmentType: exampleConnectAttachment.AttachmentType,
})
if err != nil {
return err
}
return nil
})
}
func toPulumiArray(arr []) pulumi.Array {
var pulumiArr pulumi.Array
for _, v := range arr {
pulumiArr = append(pulumiArr, pulumi.(v))
}
return pulumiArr
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.NetworkManager.VpcAttachment("example", new()
{
SubnetArns = exampleAwsSubnet.Select(__item => __item.Arn).ToList(),
CoreNetworkId = exampleAwsccNetworkmanagerCoreNetwork.Id,
VpcArn = exampleAwsVpc.Arn,
});
var exampleAttachmentAccepter = new Aws.NetworkManager.AttachmentAccepter("example", new()
{
AttachmentId = example.Id,
AttachmentType = example.AttachmentType,
});
var exampleConnectAttachment = new Aws.NetworkManager.ConnectAttachment("example", new()
{
CoreNetworkId = exampleAwsccNetworkmanagerCoreNetwork.Id,
TransportAttachmentId = example.Id,
EdgeLocation = example.EdgeLocation,
Options = new Aws.NetworkManager.Inputs.ConnectAttachmentOptionsArgs
{
Protocol = "GRE",
},
}, new CustomResourceOptions
{
DependsOn =
{
exampleAttachmentAccepter,
},
});
var example2 = new Aws.NetworkManager.AttachmentAccepter("example2", new()
{
AttachmentId = exampleConnectAttachment.Id,
AttachmentType = exampleConnectAttachment.AttachmentType,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.networkmanager.VpcAttachment;
import com.pulumi.aws.networkmanager.VpcAttachmentArgs;
import com.pulumi.aws.networkmanager.AttachmentAccepter;
import com.pulumi.aws.networkmanager.AttachmentAccepterArgs;
import com.pulumi.aws.networkmanager.ConnectAttachment;
import com.pulumi.aws.networkmanager.ConnectAttachmentArgs;
import com.pulumi.aws.networkmanager.inputs.ConnectAttachmentOptionsArgs;
import com.pulumi.resources.CustomResourceOptions;
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 VpcAttachment("example", VpcAttachmentArgs.builder()
.subnetArns(exampleAwsSubnet.stream().map(element -> element.arn()).collect(toList()))
.coreNetworkId(exampleAwsccNetworkmanagerCoreNetwork.id())
.vpcArn(exampleAwsVpc.arn())
.build());
var exampleAttachmentAccepter = new AttachmentAccepter("exampleAttachmentAccepter", AttachmentAccepterArgs.builder()
.attachmentId(example.id())
.attachmentType(example.attachmentType())
.build());
var exampleConnectAttachment = new ConnectAttachment("exampleConnectAttachment", ConnectAttachmentArgs.builder()
.coreNetworkId(exampleAwsccNetworkmanagerCoreNetwork.id())
.transportAttachmentId(example.id())
.edgeLocation(example.edgeLocation())
.options(ConnectAttachmentOptionsArgs.builder()
.protocol("GRE")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(exampleAttachmentAccepter)
.build());
var example2 = new AttachmentAccepter("example2", AttachmentAccepterArgs.builder()
.attachmentId(exampleConnectAttachment.id())
.attachmentType(exampleConnectAttachment.attachmentType())
.build());
}
}
Example coming soon!
Create ConnectAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConnectAttachment(name: string, args: ConnectAttachmentArgs, opts?: CustomResourceOptions);
@overload
def ConnectAttachment(resource_name: str,
args: ConnectAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ConnectAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
core_network_id: Optional[str] = None,
edge_location: Optional[str] = None,
options: Optional[ConnectAttachmentOptionsArgs] = None,
transport_attachment_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewConnectAttachment(ctx *Context, name string, args ConnectAttachmentArgs, opts ...ResourceOption) (*ConnectAttachment, error)
public ConnectAttachment(string name, ConnectAttachmentArgs args, CustomResourceOptions? opts = null)
public ConnectAttachment(String name, ConnectAttachmentArgs args)
public ConnectAttachment(String name, ConnectAttachmentArgs args, CustomResourceOptions options)
type: aws:networkmanager:ConnectAttachment
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 ConnectAttachmentArgs
- 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 ConnectAttachmentArgs
- 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 ConnectAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConnectAttachmentArgs
- 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 connectAttachmentResource = new Aws.NetworkManager.ConnectAttachment("connectAttachmentResource", new()
{
CoreNetworkId = "string",
EdgeLocation = "string",
Options = new Aws.NetworkManager.Inputs.ConnectAttachmentOptionsArgs
{
Protocol = "string",
},
TransportAttachmentId = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := networkmanager.NewConnectAttachment(ctx, "connectAttachmentResource", &networkmanager.ConnectAttachmentArgs{
CoreNetworkId: pulumi.String("string"),
EdgeLocation: pulumi.String("string"),
Options: &networkmanager.ConnectAttachmentOptionsArgs{
Protocol: pulumi.String("string"),
},
TransportAttachmentId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var connectAttachmentResource = new ConnectAttachment("connectAttachmentResource", ConnectAttachmentArgs.builder()
.coreNetworkId("string")
.edgeLocation("string")
.options(ConnectAttachmentOptionsArgs.builder()
.protocol("string")
.build())
.transportAttachmentId("string")
.tags(Map.of("string", "string"))
.build());
connect_attachment_resource = aws.networkmanager.ConnectAttachment("connectAttachmentResource",
core_network_id="string",
edge_location="string",
options={
"protocol": "string",
},
transport_attachment_id="string",
tags={
"string": "string",
})
const connectAttachmentResource = new aws.networkmanager.ConnectAttachment("connectAttachmentResource", {
coreNetworkId: "string",
edgeLocation: "string",
options: {
protocol: "string",
},
transportAttachmentId: "string",
tags: {
string: "string",
},
});
type: aws:networkmanager:ConnectAttachment
properties:
coreNetworkId: string
edgeLocation: string
options:
protocol: string
tags:
string: string
transportAttachmentId: string
ConnectAttachment 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 ConnectAttachment resource accepts the following input properties:
- Core
Network stringId - ID of a core network where you want to create the attachment.
- Edge
Location string - Region where the edge is located.
- Options
Connect
Attachment Options - Options block. See options for more information.
- Transport
Attachment stringId ID of the attachment between the two connections.
The following arguments are optional:
- Dictionary<string, string>
- Key-value tags for the attachment. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Core
Network stringId - ID of a core network where you want to create the attachment.
- Edge
Location string - Region where the edge is located.
- Options
Connect
Attachment Options Args - Options block. See options for more information.
- Transport
Attachment stringId ID of the attachment between the two connections.
The following arguments are optional:
- map[string]string
- Key-value tags for the attachment. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- core
Network StringId - ID of a core network where you want to create the attachment.
- edge
Location String - Region where the edge is located.
- options
Connect
Attachment Options - Options block. See options for more information.
- transport
Attachment StringId ID of the attachment between the two connections.
The following arguments are optional:
- Map<String,String>
- Key-value tags for the attachment. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- core
Network stringId - ID of a core network where you want to create the attachment.
- edge
Location string - Region where the edge is located.
- options
Connect
Attachment Options - Options block. See options for more information.
- transport
Attachment stringId ID of the attachment between the two connections.
The following arguments are optional:
- {[key: string]: string}
- Key-value tags for the attachment. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- core_
network_ strid - ID of a core network where you want to create the attachment.
- edge_
location str - Region where the edge is located.
- options
Connect
Attachment Options Args - Options block. See options for more information.
- transport_
attachment_ strid ID of the attachment between the two connections.
The following arguments are optional:
- Mapping[str, str]
- Key-value tags for the attachment. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- core
Network StringId - ID of a core network where you want to create the attachment.
- edge
Location String - Region where the edge is located.
- options Property Map
- Options block. See options for more information.
- transport
Attachment StringId ID of the attachment between the two connections.
The following arguments are optional:
- Map<String>
- Key-value tags for the attachment. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the ConnectAttachment resource produces the following output properties:
- Arn string
- ARN of the attachment.
- Attachment
Id string - ID of the attachment.
- Attachment
Policy intRule Number - Policy rule number associated with the attachment.
- Attachment
Type string - Type of attachment.
- Core
Network stringArn - ARN of a core network.
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Account stringId - ID of the attachment account owner.
- Resource
Arn string - Attachment resource ARN.
- Segment
Name string - Name of the segment attachment.
- State string
- State of the attachment.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- ARN of the attachment.
- Attachment
Id string - ID of the attachment.
- Attachment
Policy intRule Number - Policy rule number associated with the attachment.
- Attachment
Type string - Type of attachment.
- Core
Network stringArn - ARN of a core network.
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Account stringId - ID of the attachment account owner.
- Resource
Arn string - Attachment resource ARN.
- Segment
Name string - Name of the segment attachment.
- State string
- State of the attachment.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the attachment.
- attachment
Id String - ID of the attachment.
- attachment
Policy IntegerRule Number - Policy rule number associated with the attachment.
- attachment
Type String - Type of attachment.
- core
Network StringArn - ARN of a core network.
- id String
- The provider-assigned unique ID for this managed resource.
- owner
Account StringId - ID of the attachment account owner.
- resource
Arn String - Attachment resource ARN.
- segment
Name String - Name of the segment attachment.
- state String
- State of the attachment.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- ARN of the attachment.
- attachment
Id string - ID of the attachment.
- attachment
Policy numberRule Number - Policy rule number associated with the attachment.
- attachment
Type string - Type of attachment.
- core
Network stringArn - ARN of a core network.
- id string
- The provider-assigned unique ID for this managed resource.
- owner
Account stringId - ID of the attachment account owner.
- resource
Arn string - Attachment resource ARN.
- segment
Name string - Name of the segment attachment.
- state string
- State of the attachment.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- ARN of the attachment.
- attachment_
id str - ID of the attachment.
- attachment_
policy_ intrule_ number - Policy rule number associated with the attachment.
- attachment_
type str - Type of attachment.
- core_
network_ strarn - ARN of a core network.
- id str
- The provider-assigned unique ID for this managed resource.
- owner_
account_ strid - 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.
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the attachment.
- attachment
Id String - ID of the attachment.
- attachment
Policy NumberRule Number - Policy rule number associated with the attachment.
- attachment
Type String - Type of attachment.
- core
Network StringArn - ARN of a core network.
- id String
- The provider-assigned unique ID for this managed resource.
- owner
Account StringId - ID of the attachment account owner.
- resource
Arn String - Attachment resource ARN.
- segment
Name String - Name of the segment attachment.
- state String
- State of the attachment.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing ConnectAttachment Resource
Get an existing ConnectAttachment 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?: ConnectAttachmentState, opts?: CustomResourceOptions): ConnectAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = 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,
options: Optional[ConnectAttachmentOptionsArgs] = None,
owner_account_id: Optional[str] = None,
resource_arn: Optional[str] = None,
segment_name: Optional[str] = None,
state: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
transport_attachment_id: Optional[str] = None) -> ConnectAttachment
func GetConnectAttachment(ctx *Context, name string, id IDInput, state *ConnectAttachmentState, opts ...ResourceOption) (*ConnectAttachment, error)
public static ConnectAttachment Get(string name, Input<string> id, ConnectAttachmentState? state, CustomResourceOptions? opts = null)
public static ConnectAttachment get(String name, Output<String> id, ConnectAttachmentState state, CustomResourceOptions options)
resources: _: type: aws:networkmanager:ConnectAttachment 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.
- Arn string
- ARN of the attachment.
- Attachment
Id string - ID of the attachment.
- Attachment
Policy intRule Number - Policy rule number associated with the attachment.
- Attachment
Type string - Type of attachment.
- Core
Network stringArn - ARN of a core network.
- Core
Network stringId - ID of a core network where you want to create the attachment.
- Edge
Location string - Region where the edge is located.
- Options
Connect
Attachment Options - Options block. See options for more information.
- Owner
Account stringId - ID of the attachment account owner.
- Resource
Arn string - Attachment resource ARN.
- Segment
Name string - Name of the segment attachment.
- State string
- State of the attachment.
- Dictionary<string, string>
- Key-value tags for the attachment. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Transport
Attachment stringId ID of the attachment between the two connections.
The following arguments are optional:
- Arn string
- ARN of the attachment.
- Attachment
Id string - ID of the attachment.
- Attachment
Policy intRule Number - Policy rule number associated with the attachment.
- Attachment
Type string - Type of attachment.
- Core
Network stringArn - ARN of a core network.
- Core
Network stringId - ID of a core network where you want to create the attachment.
- Edge
Location string - Region where the edge is located.
- Options
Connect
Attachment Options Args - Options block. See options for more information.
- Owner
Account stringId - ID of the attachment account owner.
- Resource
Arn string - Attachment resource ARN.
- Segment
Name string - Name of the segment attachment.
- State string
- State of the attachment.
- map[string]string
- Key-value tags for the attachment. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Transport
Attachment stringId ID of the attachment between the two connections.
The following arguments are optional:
- arn String
- ARN of the attachment.
- attachment
Id String - ID of the attachment.
- attachment
Policy IntegerRule Number - Policy rule number associated with the attachment.
- attachment
Type String - Type of attachment.
- core
Network StringArn - ARN of a core network.
- core
Network StringId - ID of a core network where you want to create the attachment.
- edge
Location String - Region where the edge is located.
- options
Connect
Attachment Options - Options block. See options for more information.
- owner
Account StringId - ID of the attachment account owner.
- resource
Arn String - Attachment resource ARN.
- segment
Name String - Name of the segment attachment.
- state String
- State of the attachment.
- Map<String,String>
- Key-value tags for the attachment. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - transport
Attachment StringId ID of the attachment between the two connections.
The following arguments are optional:
- arn string
- ARN of the attachment.
- attachment
Id string - ID of the attachment.
- attachment
Policy numberRule Number - Policy rule number associated with the attachment.
- attachment
Type string - Type of attachment.
- core
Network stringArn - ARN of a core network.
- core
Network stringId - ID of a core network where you want to create the attachment.
- edge
Location string - Region where the edge is located.
- options
Connect
Attachment Options - Options block. See options for more information.
- owner
Account stringId - ID of the attachment account owner.
- resource
Arn string - Attachment resource ARN.
- segment
Name string - Name of the segment attachment.
- state string
- State of the attachment.
- {[key: string]: string}
- Key-value tags for the attachment. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - transport
Attachment stringId ID of the attachment between the two connections.
The following arguments are optional:
- arn str
- ARN of the attachment.
- attachment_
id str - ID of the attachment.
- attachment_
policy_ intrule_ number - Policy rule number associated with the attachment.
- attachment_
type str - Type of attachment.
- core_
network_ strarn - ARN of a core network.
- core_
network_ strid - ID of a core network where you want to create the attachment.
- edge_
location str - Region where the edge is located.
- options
Connect
Attachment Options Args - Options block. See options for more information.
- owner_
account_ strid - 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.
- Mapping[str, str]
- Key-value tags for the attachment. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - transport_
attachment_ strid ID of the attachment between the two connections.
The following arguments are optional:
- arn String
- ARN of the attachment.
- attachment
Id String - ID of the attachment.
- attachment
Policy NumberRule Number - Policy rule number associated with the attachment.
- attachment
Type String - Type of attachment.
- core
Network StringArn - ARN of a core network.
- core
Network StringId - ID of a core network where you want to create the attachment.
- edge
Location String - Region where the edge is located.
- options Property Map
- Options block. See options for more information.
- owner
Account StringId - ID of the attachment account owner.
- resource
Arn String - Attachment resource ARN.
- segment
Name String - Name of the segment attachment.
- state String
- State of the attachment.
- Map<String>
- Key-value tags for the attachment. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - transport
Attachment StringId ID of the attachment between the two connections.
The following arguments are optional:
Supporting Types
ConnectAttachmentOptions, ConnectAttachmentOptionsArgs
- Protocol string
- Protocol used for the attachment connection. Valid values:
GRE
,NO_ENCAP
.
- Protocol string
- Protocol used for the attachment connection. Valid values:
GRE
,NO_ENCAP
.
- protocol String
- Protocol used for the attachment connection. Valid values:
GRE
,NO_ENCAP
.
- protocol string
- Protocol used for the attachment connection. Valid values:
GRE
,NO_ENCAP
.
- protocol str
- Protocol used for the attachment connection. Valid values:
GRE
,NO_ENCAP
.
- protocol String
- Protocol used for the attachment connection. Valid values:
GRE
,NO_ENCAP
.
Import
Using pulumi import
, import aws_networkmanager_connect_attachment
using the attachment ID. For example:
$ pulumi import aws:networkmanager/connectAttachment:ConnectAttachment example attachment-0f8fa60d2238d1bd8
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
aws
Terraform Provider.