Package com.pulumi.aws.ec2transitgateway
Class TransitGateway
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.ec2transitgateway.TransitGateway
-
public class TransitGateway extends com.pulumi.resources.CustomResourceManages an EC2 Transit Gateway. ## Example Usage
## Import Using `pulumi import`, import `aws.ec2transitgateway.TransitGateway` using the EC2 Transit Gateway identifier. For example: ```sh $ pulumi import aws:ec2transitgateway/transitGateway:TransitGateway example tgw-12345678 ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.ec2transitgateway.TransitGateway; import com.pulumi.aws.ec2transitgateway.TransitGatewayArgs; 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 TransitGateway("example", TransitGatewayArgs.builder() .description("example") .build()); } }
-
-
Constructor Summary
Constructors Constructor Description TransitGateway(java.lang.String name)TransitGateway(java.lang.String name, TransitGatewayArgs args)TransitGateway(java.lang.String name, TransitGatewayArgs 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.util.Optional<java.lang.Integer>>amazonSideAsn()com.pulumi.core.Output<java.lang.String>arn()com.pulumi.core.Output<java.lang.String>associationDefaultRouteTableId()com.pulumi.core.Output<java.util.Optional<java.lang.String>>autoAcceptSharedAttachments()com.pulumi.core.Output<java.util.Optional<java.lang.String>>defaultRouteTableAssociation()com.pulumi.core.Output<java.util.Optional<java.lang.String>>defaultRouteTablePropagation()com.pulumi.core.Output<java.util.Optional<java.lang.String>>description()com.pulumi.core.Output<java.util.Optional<java.lang.String>>dnsSupport()com.pulumi.core.Output<java.lang.String>encryptionSupport()static TransitGatewayget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, TransitGatewayState 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.util.Optional<java.lang.String>>multicastSupport()com.pulumi.core.Output<java.lang.String>ownerId()com.pulumi.core.Output<java.lang.String>propagationDefaultRouteTableId()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.util.Optional<java.lang.String>>securityGroupReferencingSupport()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<java.util.List<java.lang.String>>>transitGatewayCidrBlocks()com.pulumi.core.Output<java.util.Optional<java.lang.String>>vpnEcmpSupport()
-
-
-
Constructor Detail
-
TransitGateway
public TransitGateway(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
TransitGateway
public TransitGateway(java.lang.String name, @Nullable TransitGatewayArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
TransitGateway
public TransitGateway(java.lang.String name, @Nullable TransitGatewayArgs 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
-
amazonSideAsn
public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> amazonSideAsn()
- Returns:
- Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is `64512` to `65534` for 16-bit ASNs and `4200000000` to `4294967294` for 32-bit ASNs. Default value: `64512`. > **NOTE:** Modifying `amazonSideAsn` on a Transit Gateway with active BGP sessions is [not allowed](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyTransitGatewayOptions.html). You must first delete all Transit Gateway attachments that have BGP configured prior to modifying `amazonSideAsn`.
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- EC2 Transit Gateway ARN
-
associationDefaultRouteTableId
public com.pulumi.core.Output<java.lang.String> associationDefaultRouteTableId()
- Returns:
- Identifier of the default association route table
-
autoAcceptSharedAttachments
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> autoAcceptSharedAttachments()
- Returns:
- Whether resource attachment requests are automatically accepted. Valid values: `disable`, `enable`. Default value: `disable`.
-
defaultRouteTableAssociation
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> defaultRouteTableAssociation()
- Returns:
- Whether resource attachments are automatically associated with the default association route table. Valid values: `disable`, `enable`. Default value: `enable`.
-
defaultRouteTablePropagation
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> defaultRouteTablePropagation()
- Returns:
- Whether resource attachments automatically propagate routes to the default propagation route table. Valid values: `disable`, `enable`. Default value: `enable`.
-
description
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
- Returns:
- Description of the EC2 Transit Gateway.
-
dnsSupport
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> dnsSupport()
- Returns:
- Whether DNS support is enabled. Valid values: `disable`, `enable`. Default value: `enable`.
-
encryptionSupport
public com.pulumi.core.Output<java.lang.String> encryptionSupport()
- Returns:
- Whether encryption support for VPC Encryption Control is enabled. Valid values: `disable`, `enable`. Default value: `disable`. Once set, switching to `disable` requires explicitly specifying `disable` rather than removing the argument.
-
multicastSupport
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> multicastSupport()
- Returns:
- Whether Multicast support is enabled. Required to use `ec2TransitGatewayMulticastDomain`. Valid values: `disable`, `enable`. Default value: `disable`.
-
ownerId
public com.pulumi.core.Output<java.lang.String> ownerId()
- Returns:
- Identifier of the AWS account that owns the EC2 Transit Gateway
-
propagationDefaultRouteTableId
public com.pulumi.core.Output<java.lang.String> propagationDefaultRouteTableId()
- Returns:
- Identifier of the default propagation route table
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
securityGroupReferencingSupport
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> securityGroupReferencingSupport()
- Returns:
- Whether Security Group Referencing Support is enabled. Valid values: `disable`, `enable`. Default value: `disable`.
-
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 EC2 Transit Gateway. 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:
- A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
transitGatewayCidrBlocks
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> transitGatewayCidrBlocks()
- Returns:
- One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6.
-
vpnEcmpSupport
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> vpnEcmpSupport()
- Returns:
- Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values: `disable`, `enable`. Default value: `enable`.
-
get
public static TransitGateway get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable TransitGatewayState 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.
-
-