Class ConnectPeer


  • public class ConnectPeer
    extends com.pulumi.resources.CustomResource
    Manages an EC2 Transit Gateway Connect Peer. ## 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.Connect;
     import com.pulumi.aws.ec2transitgateway.ConnectArgs;
     import com.pulumi.aws.ec2transitgateway.ConnectPeer;
     import com.pulumi.aws.ec2transitgateway.ConnectPeerArgs;
     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 Connect("example", ConnectArgs.builder()
                 .transportAttachmentId(exampleAwsEc2TransitGatewayVpcAttachment.id())
                 .transitGatewayId(exampleAwsEc2TransitGateway.id())
                 .build());
     
             var exampleConnectPeer = new ConnectPeer("exampleConnectPeer", ConnectPeerArgs.builder()
                 .peerAddress("10.1.2.3")
                 .insideCidrBlocks("169.254.100.0/29")
                 .transitGatewayAttachmentId(example.id())
                 .build());
     
         }
     }
     
     
    <!--End PulumiCodeChooser --> ## Import Using `pulumi import`, import `aws_ec2_transit_gateway_connect_peer` using the EC2 Transit Gateway Connect Peer identifier. For example: ```sh $ pulumi import aws:ec2transitgateway/connectPeer:ConnectPeer example tgw-connect-peer-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> arn()  
      com.pulumi.core.Output<java.lang.String> bgpAsn()  
      com.pulumi.core.Output<java.lang.String> bgpPeerAddress()  
      com.pulumi.core.Output<java.util.List<java.lang.String>> bgpTransitGatewayAddresses()  
      static ConnectPeer get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ConnectPeerState 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.List<java.lang.String>> insideCidrBlocks()  
      com.pulumi.core.Output<java.lang.String> peerAddress()  
      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> transitGatewayAddress()  
      com.pulumi.core.Output<java.lang.String> transitGatewayAttachmentId()  
      • 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

      • ConnectPeer

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

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

        public ConnectPeer​(java.lang.String name,
                           ConnectPeerArgs 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:
        EC2 Transit Gateway Connect Peer ARN
      • bgpAsn

        public com.pulumi.core.Output<java.lang.String> bgpAsn()
        Returns:
        The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.
      • bgpPeerAddress

        public com.pulumi.core.Output<java.lang.String> bgpPeerAddress()
        Returns:
        The IP address assigned to customer device, which is used as BGP IP address.
      • bgpTransitGatewayAddresses

        public com.pulumi.core.Output<java.util.List<java.lang.String>> bgpTransitGatewayAddresses()
        Returns:
        The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.
      • insideCidrBlocks

        public com.pulumi.core.Output<java.util.List<java.lang.String>> insideCidrBlocks()
        Returns:
        The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)
      • peerAddress

        public com.pulumi.core.Output<java.lang.String> peerAddress()
        Returns:
        The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as `transit_gateway_address`
      • 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 Peer. 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.
      • transitGatewayAddress

        public com.pulumi.core.Output<java.lang.String> transitGatewayAddress()
        Returns:
        The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as `peer_address`. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks
      • transitGatewayAttachmentId

        public com.pulumi.core.Output<java.lang.String> transitGatewayAttachmentId()
        Returns:
        The Transit Gateway Connect
      • get

        public static ConnectPeer get​(java.lang.String name,
                                      com.pulumi.core.Output<java.lang.String> id,
                                      @Nullable
                                      ConnectPeerState 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.