Package com.pulumi.aws.ec2transitgateway
Class Connect
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.ec2transitgateway.Connect
-
public class Connect extends com.pulumi.resources.CustomResource
Manages an EC2 Transit Gateway Connect. ## Example Usage <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.ec2transitgateway.VpcAttachment; import com.pulumi.aws.ec2transitgateway.VpcAttachmentArgs; import com.pulumi.aws.ec2transitgateway.Connect; import com.pulumi.aws.ec2transitgateway.ConnectArgs; 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 VpcAttachment("example", VpcAttachmentArgs.builder() .subnetIds(exampleAwsSubnet.id()) .transitGatewayId(exampleAwsEc2TransitGateway.id()) .vpcId(exampleAwsVpc.id()) .build()); var attachment = new Connect("attachment", ConnectArgs.builder() .transportAttachmentId(example.id()) .transitGatewayId(exampleAwsEc2TransitGateway.id()) .build()); } } ``` <!--End PulumiCodeChooser --> ## Import Using `pulumi import`, import `aws_ec2_transit_gateway_connect` using the EC2 Transit Gateway Connect identifier. For example: ```sh $ pulumi import aws:ec2transitgateway/connect:Connect example tgw-attach-12345678 ```
-
-
Constructor Summary
Constructors Constructor Description Connect(java.lang.String name)
Connect(java.lang.String name, ConnectArgs args)
Connect(java.lang.String name, ConnectArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Connect
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ConnectState 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>>
protocol()
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.lang.Boolean>>
transitGatewayDefaultRouteTableAssociation()
com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>
transitGatewayDefaultRouteTablePropagation()
com.pulumi.core.Output<java.lang.String>
transitGatewayId()
com.pulumi.core.Output<java.lang.String>
transportAttachmentId()
-
-
-
Constructor Detail
-
Connect
public Connect(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
Connect
public Connect(java.lang.String name, ConnectArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
Connect
public Connect(java.lang.String name, ConnectArgs 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
-
protocol
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> protocol()
- Returns:
- The tunnel protocol. Valid values: `gre`. Default is `gre`.
-
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 Connect. 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.
-
transitGatewayDefaultRouteTableAssociation
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> transitGatewayDefaultRouteTableAssociation()
- Returns:
- Boolean whether the Connect should be associated with the EC2 Transit Gateway association default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: `true`.
-
transitGatewayDefaultRouteTablePropagation
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> transitGatewayDefaultRouteTablePropagation()
- Returns:
- Boolean whether the Connect should propagate routes with the EC2 Transit Gateway propagation default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: `true`.
-
transitGatewayId
public com.pulumi.core.Output<java.lang.String> transitGatewayId()
- Returns:
- Identifier of EC2 Transit Gateway.
-
transportAttachmentId
public com.pulumi.core.Output<java.lang.String> transportAttachmentId()
- Returns:
- The underlaying VPC attachment
-
get
public static Connect get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ConnectState 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.
-
-