Package com.pulumi.aws.ec2transitgateway
Class VpcAttachment
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.ec2transitgateway.VpcAttachment
-
public class VpcAttachment extends com.pulumi.resources.CustomResourceManages an EC2 Transit Gateway VPC Attachment. For examples of custom route table association and propagation, see the EC2 Transit Gateway Networking Examples Guide. ## Example Usage
## Import Using `pulumi import`, import `aws.ec2transitgateway.VpcAttachment` using the EC2 Transit Gateway Attachment identifier. For example: ```sh $ pulumi import aws:ec2transitgateway/vpcAttachment:VpcAttachment example tgw-attach-12345678 ```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 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 VpcAttachment("example", VpcAttachmentArgs.builder() .subnetIds(exampleAwsSubnet.id()) .transitGatewayId(exampleAwsEc2TransitGateway.id()) .vpcId(exampleAwsVpc.id()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description VpcAttachment(java.lang.String name)VpcAttachment(java.lang.String name, VpcAttachmentArgs args)VpcAttachment(java.lang.String name, VpcAttachmentArgs 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.String>>applianceModeSupport()com.pulumi.core.Output<java.lang.String>arn()com.pulumi.core.Output<java.util.Optional<java.lang.String>>dnsSupport()static VpcAttachmentget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, VpcAttachmentState 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>>ipv6Support()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>securityGroupReferencingSupport()com.pulumi.core.Output<java.util.List<java.lang.String>>subnetIds()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.Boolean>transitGatewayDefaultRouteTableAssociation()com.pulumi.core.Output<java.lang.Boolean>transitGatewayDefaultRouteTablePropagation()com.pulumi.core.Output<java.lang.String>transitGatewayId()com.pulumi.core.Output<java.lang.String>vpcId()com.pulumi.core.Output<java.lang.String>vpcOwnerId()
-
-
-
Constructor Detail
-
VpcAttachment
public VpcAttachment(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
VpcAttachment
public VpcAttachment(java.lang.String name, VpcAttachmentArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
VpcAttachment
public VpcAttachment(java.lang.String name, VpcAttachmentArgs 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
-
applianceModeSupport
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> applianceModeSupport()
- Returns:
- Whether Appliance Mode support is enabled. If enabled, a traffic flow between a source and destination uses the same Availability Zone for the VPC attachment for the lifetime of that flow. Valid values: `disable`, `enable`. Default value: `disable`.
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- ARN of the attachment.
-
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`.
-
ipv6Support
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> ipv6Support()
- Returns:
- Whether IPv6 support is enabled. Valid values: `disable`, `enable`. Default value: `disable`.
-
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.lang.String> securityGroupReferencingSupport()
- Returns:
- Whether Security Group Referencing Support is enabled. Valid values: `disable`, `enable`.
-
subnetIds
public com.pulumi.core.Output<java.util.List<java.lang.String>> subnetIds()
- Returns:
- Identifiers of EC2 Subnets.
-
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 VPC 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:
- A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
transitGatewayDefaultRouteTableAssociation
public com.pulumi.core.Output<java.lang.Boolean> transitGatewayDefaultRouteTableAssociation()
- Returns:
- Boolean whether the VPC Attachment 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`. **Setting this argument to** `false` will cause Terraform to remove the default association if it exists. This argument does not simply “ignore” the association; it actively manages (adds or removes) the association in AWS to match the value in your configuration. Do not attempt to manage the same association with both this resource and `aws.ec2transitgateway.RouteTableAssociation`, as this will cause perpetual diffs and resource churn. Use conditional logic to ensure only one resource manages the association at a time.
-
transitGatewayDefaultRouteTablePropagation
public com.pulumi.core.Output<java.lang.Boolean> transitGatewayDefaultRouteTablePropagation()
- Returns:
- Boolean whether the VPC Attachment 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`. **Setting this argument to** `false` will cause Terraform to remove the default propagation if it exists. This argument does not simply “ignore” the propagation; it actively manages (adds or removes) the propagation in AWS to match the value in your configuration. Do not attempt to manage the same propagation with both this resource and `aws.ec2transitgateway.RouteTablePropagation`, as this will cause perpetual diffs and resource churn. Use conditional logic to ensure only one resource manages the propagation at a time.
-
transitGatewayId
public com.pulumi.core.Output<java.lang.String> transitGatewayId()
- Returns:
- Identifier of EC2 Transit Gateway.
-
vpcId
public com.pulumi.core.Output<java.lang.String> vpcId()
- Returns:
- Identifier of EC2 VPC.
-
vpcOwnerId
public com.pulumi.core.Output<java.lang.String> vpcOwnerId()
- Returns:
- Identifier of the AWS account that owns the EC2 VPC.
-
get
public static VpcAttachment get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable VpcAttachmentState 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.
-
-