Class VpcAttachmentAccepter


  • public class VpcAttachmentAccepter
    extends com.pulumi.resources.CustomResource
    Manages the accepter's side of an EC2 Transit Gateway VPC Attachment. When a cross-account (requester's AWS account differs from the accepter's AWS account) EC2 Transit Gateway VPC Attachment is created, an EC2 Transit Gateway VPC Attachment resource is automatically created in the accepter's account. The requester can use the `aws.ec2transitgateway.VpcAttachment` resource to manage its side of the connection and the accepter can use the `aws.ec2transitgateway.VpcAttachmentAccepter` resource to "adopt" its side of the connection into management. ## Example Usage <!--Start PulumiCodeChooser -->
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.ec2transitgateway.VpcAttachmentAccepter;
     import com.pulumi.aws.ec2transitgateway.VpcAttachmentAccepterArgs;
     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 VpcAttachmentAccepter("example", VpcAttachmentAccepterArgs.builder()
                 .transitGatewayAttachmentId(exampleAwsEc2TransitGatewayVpcAttachment.id())
                 .tags(Map.of("Name", "Example cross-account attachment"))
                 .build());
     
         }
     }
     
     
    <!--End PulumiCodeChooser --> ## Import Using `pulumi import`, import `aws_ec2_transit_gateway_vpc_attachment_accepter` using the EC2 Transit Gateway Attachment identifier. For example: ```sh $ pulumi import aws:ec2transitgateway/vpcAttachmentAccepter:VpcAttachmentAccepter example tgw-attach-12345678 ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.String> applianceModeSupport()  
      com.pulumi.core.Output<java.lang.String> dnsSupport()  
      static VpcAttachmentAccepter get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, VpcAttachmentAccepterState 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> ipv6Support()  
      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.String> transitGatewayAttachmentId()  
      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> vpcId()  
      com.pulumi.core.Output<java.lang.String> vpcOwnerId()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VpcAttachmentAccepter

        public VpcAttachmentAccepter​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • VpcAttachmentAccepter

        public VpcAttachmentAccepter​(java.lang.String name,
                                     VpcAttachmentAccepterArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • VpcAttachmentAccepter

        public VpcAttachmentAccepter​(java.lang.String name,
                                     VpcAttachmentAccepterArgs 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.lang.String> applianceModeSupport()
        Returns:
        Whether Appliance Mode support is enabled. Valid values: `disable`, `enable`.
      • dnsSupport

        public com.pulumi.core.Output<java.lang.String> dnsSupport()
        Returns:
        Whether DNS support is enabled. Valid values: `disable`, `enable`.
      • ipv6Support

        public com.pulumi.core.Output<java.lang.String> ipv6Support()
        Returns:
        Whether IPv6 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 `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.
      • transitGatewayAttachmentId

        public com.pulumi.core.Output<java.lang.String> transitGatewayAttachmentId()
        Returns:
        The ID of the EC2 Transit Gateway Attachment to manage.
      • transitGatewayDefaultRouteTableAssociation

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> transitGatewayDefaultRouteTableAssociation()
        Returns:
        Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: `true`.
      • transitGatewayDefaultRouteTablePropagation

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> transitGatewayDefaultRouteTablePropagation()
        Returns:
        Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: `true`.
      • 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 VpcAttachmentAccepter get​(java.lang.String name,
                                                com.pulumi.core.Output<java.lang.String> id,
                                                @Nullable
                                                VpcAttachmentAccepterState 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.