Package com.pulumi.aws.networkmanager
Class TransitGatewayRouteTableAttachment
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.networkmanager.TransitGatewayRouteTableAttachment
-
public class TransitGatewayRouteTableAttachment extends com.pulumi.resources.CustomResourceManages a Network Manager transit gateway route table attachment. ## Example Usage
## Import Using `pulumi import`, import `aws.networkmanager.TransitGatewayRouteTableAttachment` using the attachment ID. For example: ```sh $ pulumi import aws:networkmanager/transitGatewayRouteTableAttachment:TransitGatewayRouteTableAttachment example attachment-0f8fa60d2238d1bd8 ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.networkmanager.TransitGatewayRouteTableAttachment; import com.pulumi.aws.networkmanager.TransitGatewayRouteTableAttachmentArgs; 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 TransitGatewayRouteTableAttachment("example", TransitGatewayRouteTableAttachmentArgs.builder() .peeringId(exampleAwsNetworkmanagerTransitGatewayPeering.id()) .transitGatewayRouteTableArn(exampleAwsEc2TransitGatewayRouteTable.arn()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description TransitGatewayRouteTableAttachment(java.lang.String name)TransitGatewayRouteTableAttachment(java.lang.String name, TransitGatewayRouteTableAttachmentArgs args)TransitGatewayRouteTableAttachment(java.lang.String name, TransitGatewayRouteTableAttachmentArgs 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>edgeLocation()static TransitGatewayRouteTableAttachmentget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, TransitGatewayRouteTableAttachmentState 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.lang.String>peeringId()com.pulumi.core.Output<java.lang.String>resourceArn()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.lang.String>transitGatewayRouteTableArn()
-
-
-
Constructor Detail
-
TransitGatewayRouteTableAttachment
public TransitGatewayRouteTableAttachment(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
TransitGatewayRouteTableAttachment
public TransitGatewayRouteTableAttachment(java.lang.String name, TransitGatewayRouteTableAttachmentArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
TransitGatewayRouteTableAttachment
public TransitGatewayRouteTableAttachment(java.lang.String name, TransitGatewayRouteTableAttachmentArgs 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:
- Attachment ARN.
-
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.
-
coreNetworkId
public com.pulumi.core.Output<java.lang.String> coreNetworkId()
- Returns:
- ID of the core network.
-
edgeLocation
public com.pulumi.core.Output<java.lang.String> edgeLocation()
- Returns:
- Edge location for the peer.
-
ownerAccountId
public com.pulumi.core.Output<java.lang.String> ownerAccountId()
- Returns:
- ID of the attachment account owner.
-
peeringId
public com.pulumi.core.Output<java.lang.String> peeringId()
- Returns:
- ID of the peer for the attachment.
-
resourceArn
public com.pulumi.core.Output<java.lang.String> resourceArn()
- Returns:
- Attachment resource ARN.
-
routingPolicyLabel
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> routingPolicyLabel()
- Returns:
- The routing policy label to apply to the Transit Gateway route table 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.
-
transitGatewayRouteTableArn
public com.pulumi.core.Output<java.lang.String> transitGatewayRouteTableArn()
- Returns:
- ARN of the transit gateway route table for the attachment. The following arguments are optional:
-
get
public static TransitGatewayRouteTableAttachment get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable TransitGatewayRouteTableAttachmentState 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.
-
-