Class LocalGatewayRouteTableVirtualInterfaceGroupAssociation


  • public class LocalGatewayRouteTableVirtualInterfaceGroupAssociation
    extends com.pulumi.resources.CustomResource
    Manages an EC2 Local Gateway Route Table Virtual Interface Group Association. More information can be found in the [Outposts User Guide](https://docs.aws.amazon.com/outposts/latest/userguide/outposts-local-gateways.html). ## Example Usage
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.ec2.Ec2Functions;
     import com.pulumi.aws.ec2.inputs.GetLocalGatewayRouteTableArgs;
     import com.pulumi.aws.ec2.inputs.GetLocalGatewayVirtualInterfaceGroupArgs;
     import com.pulumi.aws.ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociation;
     import com.pulumi.aws.ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs;
     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) {
             final var example = Ec2Functions.getLocalGatewayRouteTable(GetLocalGatewayRouteTableArgs.builder()
                 .outpostArn("arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef")
                 .build());
     
             final var exampleGetLocalGatewayVirtualInterfaceGroup = Ec2Functions.getLocalGatewayVirtualInterfaceGroup(GetLocalGatewayVirtualInterfaceGroupArgs.builder()
                 .localGatewayId(example.localGatewayId())
                 .build());
     
             var exampleLocalGatewayRouteTableVirtualInterfaceGroupAssociation = new LocalGatewayRouteTableVirtualInterfaceGroupAssociation("exampleLocalGatewayRouteTableVirtualInterfaceGroupAssociation", LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs.builder()
                 .localGatewayRouteTableId(example.id())
                 .localGatewayVirtualInterfaceGroupId(exampleGetLocalGatewayVirtualInterfaceGroup.id())
                 .tags(Map.of("Name", "example"))
                 .build());
     
         }
     }
     
     
    ## Import Using `pulumi import`, import `aws.ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociation` using the Local Gateway Route Table Virtual Interface Group Association identifier. For example: ```sh $ pulumi import aws:ec2/localGatewayRouteTableVirtualInterfaceGroupAssociation:LocalGatewayRouteTableVirtualInterfaceGroupAssociation example lgw-vif-grp-assoc-1234567890abcdef ```
    • Constructor Detail

      • LocalGatewayRouteTableVirtualInterfaceGroupAssociation

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

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

        public LocalGatewayRouteTableVirtualInterfaceGroupAssociation​(java.lang.String name,
                                                                      LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs 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

      • localGatewayId

        public com.pulumi.core.Output<java.lang.String> localGatewayId()
        Returns:
        Identifier of the EC2 Local Gateway.
      • localGatewayRouteTableArn

        public com.pulumi.core.Output<java.lang.String> localGatewayRouteTableArn()
        Returns:
        ARN of the EC2 Local Gateway Route Table.
      • localGatewayRouteTableId

        public com.pulumi.core.Output<java.lang.String> localGatewayRouteTableId()
        Returns:
        Identifier of EC2 Local Gateway Route Table.
      • localGatewayVirtualInterfaceGroupId

        public com.pulumi.core.Output<java.lang.String> localGatewayVirtualInterfaceGroupId()
        Returns:
        Identifier of EC2 Local Gateway Virtual Interface Group. The following arguments are optional:
      • ownerId

        public com.pulumi.core.Output<java.lang.String> ownerId()
        Returns:
        Identifier of the AWS account that owns the EC2 Local Gateway Virtual Interface Group Association.
      • 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.
      • state

        public com.pulumi.core.Output<java.lang.String> state()
        Returns:
        State of the EC2 Local Gateway Route Table Virtual Interface Group Association.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Key-value map of resource tags. 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:
        Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
      • get

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