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.CustomResource
Creates a transit gateway route table attachment. ## Example Usage <!--Start PulumiCodeChooser -->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.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 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 TransitGatewayRouteTableAttachment
get(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.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 Amazon Resource Name (ARN).
-
attachmentPolicyRuleNumber
public com.pulumi.core.Output<java.lang.Integer> attachmentPolicyRuleNumber()
- Returns:
- The policy rule number associated with the attachment.
-
attachmentType
public com.pulumi.core.Output<java.lang.String> attachmentType()
- Returns:
- The type of attachment.
-
coreNetworkArn
public com.pulumi.core.Output<java.lang.String> coreNetworkArn()
- Returns:
- The ARN of the core network.
-
coreNetworkId
public com.pulumi.core.Output<java.lang.String> coreNetworkId()
- Returns:
- The ID of the core network.
-
edgeLocation
public com.pulumi.core.Output<java.lang.String> edgeLocation()
- Returns:
- The edge location for the peer.
-
ownerAccountId
public com.pulumi.core.Output<java.lang.String> ownerAccountId()
- Returns:
- The ID of the attachment account owner.
-
peeringId
public com.pulumi.core.Output<java.lang.String> peeringId()
- Returns:
- The ID of the peer for the attachment.
-
resourceArn
public com.pulumi.core.Output<java.lang.String> resourceArn()
- Returns:
- The attachment resource ARN.
-
segmentName
public com.pulumi.core.Output<java.lang.String> segmentName()
- Returns:
- The name of the segment attachment.
-
state
public com.pulumi.core.Output<java.lang.String> state()
- Returns:
- The 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 `default_tags` 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:
- A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
-
transitGatewayRouteTableArn
public com.pulumi.core.Output<java.lang.String> transitGatewayRouteTableArn()
- Returns:
- The ARN of the transit gateway route table for the attachment.
-
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.
-
-