SiteToSiteVpnAttachment

class SiteToSiteVpnAttachment : KotlinCustomResource

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"])
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 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
})
}
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}

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

Properties

Link copied to clipboard
val arn: Output<String>

The ARN of the attachment.

Link copied to clipboard

The policy rule number associated with the attachment.

Link copied to clipboard
val attachmentType: Output<String>

The type of attachment.

Link copied to clipboard
val coreNetworkArn: Output<String>

The ARN of a core network.

Link copied to clipboard
val coreNetworkId: Output<String>

The ID of a core network for the VPN attachment.

Link copied to clipboard
val edgeLocation: Output<String>

The Region where the edge is located.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val ownerAccountId: Output<String>

The ID of the attachment account owner.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resourceArn: Output<String>

The attachment resource ARN.

Link copied to clipboard
val segmentName: Output<String>

The name of the segment attachment.

Link copied to clipboard
val state: Output<String>

The state of the attachment.

Link copied to clipboard
val tags: Output<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.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

The ARN of the site-to-site VPN connection. The following arguments are optional: