Package com.pulumi.aws.networkmanager
Class DxGatewayAttachment
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.networkmanager.DxGatewayAttachment
-
public class DxGatewayAttachment extends com.pulumi.resources.CustomResourceManages a Network Manager Direct Connect Gateway Attachment. Use this resource to create and manage a Direct Connect Gateway attachment to a Cloud WAN core network. ## Example Usage ### Basic Usage
## Import Using `pulumi import`, import Network Manager DX Gateway Attachment using the `id`. For example: ```sh $ pulumi import aws:networkmanager/dxGatewayAttachment:DxGatewayAttachment example attachment-1a2b3c4d5e6f7g ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.networkmanager.DxGatewayAttachment; import com.pulumi.aws.networkmanager.DxGatewayAttachmentArgs; 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 test = new DxGatewayAttachment("test", DxGatewayAttachmentArgs.builder() .coreNetworkId(testAwsNetworkmanagerCoreNetworkPolicyAttachment.coreNetworkId()) .directConnectGatewayArn(String.format("arn:aws:directconnect::%s:dx-gateway/%s", current.accountId(),testAwsDxGateway.id())) .edgeLocations(currentAwsRegion.region()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description DxGatewayAttachment(java.lang.String name)DxGatewayAttachment(java.lang.String name, DxGatewayAttachmentArgs args)DxGatewayAttachment(java.lang.String name, DxGatewayAttachmentArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>arn()com.pulumi.core.Output<java.lang.Integer>attachmentPolicyRuleNumber()com.pulumi.core.Output<java.lang.String>attachmentType()com.pulumi.core.Output<java.lang.String>coreNetworkArn()com.pulumi.core.Output<java.lang.String>coreNetworkId()com.pulumi.core.Output<java.lang.String>directConnectGatewayArn()com.pulumi.core.Output<java.util.List<java.lang.String>>edgeLocations()static DxGatewayAttachmentget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, DxGatewayAttachmentState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>ownerAccountId()com.pulumi.core.Output<java.util.Optional<java.lang.String>>routingPolicyLabel()com.pulumi.core.Output<java.lang.String>segmentName()com.pulumi.core.Output<java.lang.String>state()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>tags()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>tagsAll()com.pulumi.core.Output<java.util.Optional<DxGatewayAttachmentTimeouts>>timeouts()
-
-
-
Constructor Detail
-
DxGatewayAttachment
public DxGatewayAttachment(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
DxGatewayAttachment
public DxGatewayAttachment(java.lang.String name, DxGatewayAttachmentArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
DxGatewayAttachment
public DxGatewayAttachment(java.lang.String name, DxGatewayAttachmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- ARN of the attachment.
-
attachmentPolicyRuleNumber
public com.pulumi.core.Output<java.lang.Integer> attachmentPolicyRuleNumber()
- Returns:
- Policy rule number associated with the attachment.
-
attachmentType
public com.pulumi.core.Output<java.lang.String> attachmentType()
- Returns:
- Type of attachment.
-
coreNetworkArn
public com.pulumi.core.Output<java.lang.String> coreNetworkArn()
- Returns:
- ARN of the core network for the attachment.
-
coreNetworkId
public com.pulumi.core.Output<java.lang.String> coreNetworkId()
- Returns:
- ID of the Cloud WAN core network to which the Direct Connect gateway attachment should be attached.
-
directConnectGatewayArn
public com.pulumi.core.Output<java.lang.String> directConnectGatewayArn()
- Returns:
- ARN of the Direct Connect gateway attachment.
-
edgeLocations
public com.pulumi.core.Output<java.util.List<java.lang.String>> edgeLocations()
- Returns:
- One or more core network edge locations to associate with the Direct Connect gateway attachment. The following arguments are optional:
-
ownerAccountId
public com.pulumi.core.Output<java.lang.String> ownerAccountId()
- Returns:
- ID of the attachment account owner.
-
routingPolicyLabel
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> routingPolicyLabel()
- Returns:
- The routing policy label to apply to the Direct Connect Gateway attachment for traffic routing decisions. Maximum length of 256 characters. Changing this value will force recreation of the resource.
-
segmentName
public com.pulumi.core.Output<java.lang.String> segmentName()
- Returns:
- Name of the segment attachment.
-
state
public com.pulumi.core.Output<java.lang.String> state()
- Returns:
- State of the attachment.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Key-value tags for the attachment. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
timeouts
public com.pulumi.core.Output<java.util.Optional<DxGatewayAttachmentTimeouts>> timeouts()
-
get
public static DxGatewayAttachment get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable DxGatewayAttachmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-