AttachmentAccepter class
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"])
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 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
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_networkmanager_attachmentaccepter" "example" {
attachment_id = exampleAwsNetworkmanagerVpcAttachment.id
attachment_type = 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.ArrayList;
import java.util.Arrays;
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"])
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 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
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_networkmanager_attachmentaccepter" "example" {
attachment_id = exampleAwsNetworkmanagerSiteToSiteVpnAttachment.id
attachment_type = 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.ArrayList;
import java.util.Arrays;
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"])
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 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
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_networkmanager_attachmentaccepter" "example" {
attachment_id = exampleAwsNetworkmanagerConnectAttachment.id
attachment_type = 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.ArrayList;
import java.util.Arrays;
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"])
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 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
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_networkmanager_attachmentaccepter" "example" {
attachment_id = exampleAwsNetworkmanagerTransitGatewayRouteTableAttachment.id
attachment_type = 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.ArrayList;
import java.util.Arrays;
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"])
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 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
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_networkmanager_attachmentaccepter" "example" {
attachment_id = exampleAwsNetworkmanagerDxGatewayAttachment.id
attachment_type = 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.ArrayList;
import java.util.Arrays;
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}
Constructors
- AttachmentAccepter(String name, {AttachmentAccepterArgs? args, CustomResourceOptions? options})
-
Creates a new AttachmentAccepter.
nameThe Pulumi resource name.argsArguments used to configure this AttachmentAccepter. The set of arguments for AttachmentAccepter.optionsResource options controlling this resource's behavior. - AttachmentAccepter.reference(String urn)
- Creates a typed reference to an existing AttachmentAccepter resource.
Properties
-
attachmentId
↔ Output<
String> -
ID of the attachment.
latefinal
-
attachmentPolicyRuleNumber
↔ Output<
int> -
Policy rule number associated with the attachment.
latefinal
-
attachmentType
↔ Output<
String> -
Type of attachment. Valid values:
CONNECT,DIRECT_CONNECT_GATEWAY,SITE_TO_SITE_VPN,TRANSIT_GATEWAY_ROUTE_TABLE,VPC.latefinal -
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
coreNetworkArn
↔ Output<
String> -
ARN of the core network.
latefinal
-
coreNetworkId
↔ Output<
String> -
ID of the core network.
latefinal
-
edgeLocation
↔ Output<
String> -
Region where the edge is located. This is returned for all attachment types except Direct Connect gateway attachments, which instead return
edgeLocations.latefinal -
edgeLocations
↔ Output<
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
edgeLocation.latefinal - hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
ownerAccountId
↔ Output<
String> -
ID of the attachment account owner.
latefinal
-
resourceArn
↔ Output<
String> -
Attachment resource ARN.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
segmentName
↔ Output<
String> -
Name of the segment attachment.
latefinal
-
state
↔ Output<
String> -
State of the attachment.
latefinal
-
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
get(
String name, Input< String> id, {AttachmentAccepterState? state, CustomResourceOptions? options}) → AttachmentAccepter -
Gets an existing AttachmentAccepter resource's state with the given
nameandid.