Try AWS Native preview for resources not in the classic version.
aws.networkmanager.SiteToSiteVpnAttachment
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Resource for managing an AWS Network Manager SiteToSiteAttachment.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.networkmanager.SiteToSiteVpnAttachment("example", {
coreNetworkId: exampleAwsccNetworkmanagerCoreNetwork.id,
vpnConnectionArn: exampleAwsVpnConnection.arn,
});
import pulumi
import pulumi_aws as aws
example = aws.networkmanager.SiteToSiteVpnAttachment("example",
core_network_id=example_awscc_networkmanager_core_network["id"],
vpn_connection_arn=example_aws_vpn_connection["arn"])
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.NewSiteToSiteVpnAttachment(ctx, "example", &networkmanager.SiteToSiteVpnAttachmentArgs{
CoreNetworkId: pulumi.Any(exampleAwsccNetworkmanagerCoreNetwork.Id),
VpnConnectionArn: pulumi.Any(exampleAwsVpnConnection.Arn),
})
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.SiteToSiteVpnAttachment("example", new()
{
CoreNetworkId = exampleAwsccNetworkmanagerCoreNetwork.Id,
VpnConnectionArn = exampleAwsVpnConnection.Arn,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.networkmanager.SiteToSiteVpnAttachment;
import com.pulumi.aws.networkmanager.SiteToSiteVpnAttachmentArgs;
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 SiteToSiteVpnAttachment("example", SiteToSiteVpnAttachmentArgs.builder()
.coreNetworkId(exampleAwsccNetworkmanagerCoreNetwork.id())
.vpnConnectionArn(exampleAwsVpnConnection.arn())
.build());
}
}
resources:
example:
type: aws:networkmanager:SiteToSiteVpnAttachment
properties:
coreNetworkId: ${exampleAwsccNetworkmanagerCoreNetwork.id}
vpnConnectionArn: ${exampleAwsVpnConnection.arn}
Create SiteToSiteVpnAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SiteToSiteVpnAttachment(name: string, args: SiteToSiteVpnAttachmentArgs, opts?: CustomResourceOptions);
@overload
def SiteToSiteVpnAttachment(resource_name: str,
args: SiteToSiteVpnAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SiteToSiteVpnAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
core_network_id: Optional[str] = None,
vpn_connection_arn: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewSiteToSiteVpnAttachment(ctx *Context, name string, args SiteToSiteVpnAttachmentArgs, opts ...ResourceOption) (*SiteToSiteVpnAttachment, error)
public SiteToSiteVpnAttachment(string name, SiteToSiteVpnAttachmentArgs args, CustomResourceOptions? opts = null)
public SiteToSiteVpnAttachment(String name, SiteToSiteVpnAttachmentArgs args)
public SiteToSiteVpnAttachment(String name, SiteToSiteVpnAttachmentArgs args, CustomResourceOptions options)
type: aws:networkmanager:SiteToSiteVpnAttachment
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 SiteToSiteVpnAttachmentArgs
- 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 SiteToSiteVpnAttachmentArgs
- 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 SiteToSiteVpnAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SiteToSiteVpnAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SiteToSiteVpnAttachmentArgs
- 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 siteToSiteVpnAttachmentResource = new Aws.NetworkManager.SiteToSiteVpnAttachment("siteToSiteVpnAttachmentResource", new()
{
CoreNetworkId = "string",
VpnConnectionArn = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := networkmanager.NewSiteToSiteVpnAttachment(ctx, "siteToSiteVpnAttachmentResource", &networkmanager.SiteToSiteVpnAttachmentArgs{
CoreNetworkId: pulumi.String("string"),
VpnConnectionArn: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var siteToSiteVpnAttachmentResource = new SiteToSiteVpnAttachment("siteToSiteVpnAttachmentResource", SiteToSiteVpnAttachmentArgs.builder()
.coreNetworkId("string")
.vpnConnectionArn("string")
.tags(Map.of("string", "string"))
.build());
site_to_site_vpn_attachment_resource = aws.networkmanager.SiteToSiteVpnAttachment("siteToSiteVpnAttachmentResource",
core_network_id="string",
vpn_connection_arn="string",
tags={
"string": "string",
})
const siteToSiteVpnAttachmentResource = new aws.networkmanager.SiteToSiteVpnAttachment("siteToSiteVpnAttachmentResource", {
coreNetworkId: "string",
vpnConnectionArn: "string",
tags: {
string: "string",
},
});
type: aws:networkmanager:SiteToSiteVpnAttachment
properties:
coreNetworkId: string
tags:
string: string
vpnConnectionArn: string
SiteToSiteVpnAttachment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The SiteToSiteVpnAttachment resource accepts the following input properties:
- Core
Network stringId - The ID of a core network for the VPN attachment.
- Vpn
Connection stringArn The ARN of the site-to-site VPN connection.
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 - The ID of a core network for the VPN attachment.
- Vpn
Connection stringArn The ARN of the site-to-site VPN connection.
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 - The ID of a core network for the VPN attachment.
- vpn
Connection StringArn The ARN of the site-to-site VPN connection.
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 - The ID of a core network for the VPN attachment.
- vpn
Connection stringArn The ARN of the site-to-site VPN connection.
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 - The ID of a core network for the VPN attachment.
- vpn_
connection_ strarn The ARN of the site-to-site VPN connection.
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 - The ID of a core network for the VPN attachment.
- vpn
Connection StringArn The ARN of the site-to-site VPN connection.
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 SiteToSiteVpnAttachment resource produces the following output properties:
- Arn string
- The ARN of the attachment.
- Attachment
Policy intRule Number - The policy rule number associated with the attachment.
- Attachment
Type string - The type of attachment.
- Core
Network stringArn - The ARN of a core network.
- Edge
Location string - The Region where the edge is located.
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Account stringId - The ID of the attachment account owner.
- Resource
Arn string - The attachment resource ARN.
- Segment
Name string - The name of the segment attachment.
- State string
- The state of the attachment.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- The ARN of the attachment.
- Attachment
Policy intRule Number - The policy rule number associated with the attachment.
- Attachment
Type string - The type of attachment.
- Core
Network stringArn - The ARN of a core network.
- Edge
Location string - The Region where the edge is located.
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Account stringId - The ID of the attachment account owner.
- Resource
Arn string - The attachment resource ARN.
- Segment
Name string - The name of the segment attachment.
- State string
- The state of the attachment.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The ARN of the attachment.
- attachment
Policy IntegerRule Number - The policy rule number associated with the attachment.
- attachment
Type String - The type of attachment.
- core
Network StringArn - The ARN of a core network.
- edge
Location String - The Region where the edge is located.
- id String
- The provider-assigned unique ID for this managed resource.
- owner
Account StringId - The ID of the attachment account owner.
- resource
Arn String - The attachment resource ARN.
- segment
Name String - The name of the segment attachment.
- state String
- The state of the attachment.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- The ARN of the attachment.
- attachment
Policy numberRule Number - The policy rule number associated with the attachment.
- attachment
Type string - The type of attachment.
- core
Network stringArn - The ARN of a core network.
- edge
Location string - The Region where the edge is located.
- id string
- The provider-assigned unique ID for this managed resource.
- owner
Account stringId - The ID of the attachment account owner.
- resource
Arn string - The attachment resource ARN.
- segment
Name string - The name of the segment attachment.
- state string
- The state of the attachment.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- The ARN of the attachment.
- attachment_
policy_ intrule_ number - The policy rule number associated with the attachment.
- attachment_
type str - The type of attachment.
- core_
network_ strarn - The ARN of a core network.
- edge_
location str - The Region where the edge is located.
- id str
- The provider-assigned unique ID for this managed resource.
- owner_
account_ strid - 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.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The ARN of the attachment.
- attachment
Policy NumberRule Number - The policy rule number associated with the attachment.
- attachment
Type String - The type of attachment.
- core
Network StringArn - The ARN of a core network.
- edge
Location String - The Region where the edge is located.
- id String
- The provider-assigned unique ID for this managed resource.
- owner
Account StringId - The ID of the attachment account owner.
- resource
Arn String - The attachment resource ARN.
- segment
Name String - The name of the segment attachment.
- state String
- The state of the attachment.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing SiteToSiteVpnAttachment Resource
Get an existing SiteToSiteVpnAttachment 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?: SiteToSiteVpnAttachmentState, opts?: CustomResourceOptions): SiteToSiteVpnAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: 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,
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,
vpn_connection_arn: Optional[str] = None) -> SiteToSiteVpnAttachment
func GetSiteToSiteVpnAttachment(ctx *Context, name string, id IDInput, state *SiteToSiteVpnAttachmentState, opts ...ResourceOption) (*SiteToSiteVpnAttachment, error)
public static SiteToSiteVpnAttachment Get(string name, Input<string> id, SiteToSiteVpnAttachmentState? state, CustomResourceOptions? opts = null)
public static SiteToSiteVpnAttachment get(String name, Output<String> id, SiteToSiteVpnAttachmentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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
- The ARN of the attachment.
- Attachment
Policy intRule Number - The policy rule number associated with the attachment.
- Attachment
Type string - The type of attachment.
- Core
Network stringArn - The ARN of a core network.
- Core
Network stringId - The ID of a core network for the VPN attachment.
- Edge
Location string - The Region where the edge is located.
- Owner
Account stringId - The ID of the attachment account owner.
- Resource
Arn string - The attachment resource ARN.
- Segment
Name string - The name of the segment attachment.
- State string
- The 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>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Vpn
Connection stringArn The ARN of the site-to-site VPN connection.
The following arguments are optional:
- Arn string
- The ARN of the attachment.
- Attachment
Policy intRule Number - The policy rule number associated with the attachment.
- Attachment
Type string - The type of attachment.
- Core
Network stringArn - The ARN of a core network.
- Core
Network stringId - The ID of a core network for the VPN attachment.
- Edge
Location string - The Region where the edge is located.
- Owner
Account stringId - The ID of the attachment account owner.
- Resource
Arn string - The attachment resource ARN.
- Segment
Name string - The name of the segment attachment.
- State string
- The 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
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Vpn
Connection stringArn The ARN of the site-to-site VPN connection.
The following arguments are optional:
- arn String
- The ARN of the attachment.
- attachment
Policy IntegerRule Number - The policy rule number associated with the attachment.
- attachment
Type String - The type of attachment.
- core
Network StringArn - The ARN of a core network.
- core
Network StringId - The ID of a core network for the VPN attachment.
- edge
Location String - The Region where the edge is located.
- owner
Account StringId - The ID of the attachment account owner.
- resource
Arn String - The attachment resource ARN.
- segment
Name String - The name of the segment attachment.
- state String
- The 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>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - vpn
Connection StringArn The ARN of the site-to-site VPN connection.
The following arguments are optional:
- arn string
- The ARN of the attachment.
- attachment
Policy numberRule Number - The policy rule number associated with the attachment.
- attachment
Type string - The type of attachment.
- core
Network stringArn - The ARN of a core network.
- core
Network stringId - The ID of a core network for the VPN attachment.
- edge
Location string - The Region where the edge is located.
- owner
Account stringId - The ID of the attachment account owner.
- resource
Arn string - The attachment resource ARN.
- segment
Name string - The name of the segment attachment.
- state string
- The 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}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - vpn
Connection stringArn The ARN of the site-to-site VPN connection.
The following arguments are optional:
- arn str
- The ARN of the attachment.
- attachment_
policy_ intrule_ number - The policy rule number associated with the attachment.
- attachment_
type str - The type of attachment.
- core_
network_ strarn - The ARN of a core network.
- core_
network_ strid - The ID of a core network for the VPN attachment.
- edge_
location str - The Region where the edge is located.
- owner_
account_ strid - 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.
- 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]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - vpn_
connection_ strarn The ARN of the site-to-site VPN connection.
The following arguments are optional:
- arn String
- The ARN of the attachment.
- attachment
Policy NumberRule Number - The policy rule number associated with the attachment.
- attachment
Type String - The type of attachment.
- core
Network StringArn - The ARN of a core network.
- core
Network StringId - The ID of a core network for the VPN attachment.
- edge
Location String - The Region where the edge is located.
- owner
Account StringId - The ID of the attachment account owner.
- resource
Arn String - The attachment resource ARN.
- segment
Name String - The name of the segment attachment.
- state String
- The 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>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - vpn
Connection StringArn The ARN of the site-to-site VPN connection.
The following arguments are optional:
Import
Using pulumi import
, import aws_networkmanager_site_to_site_vpn_attachment
using the attachment ID. For example:
$ pulumi import aws:networkmanager/siteToSiteVpnAttachment:SiteToSiteVpnAttachment 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.
Try AWS Native preview for resources not in the classic version.