Class VpcEndpointAssociation


  • public class VpcEndpointAssociation
    extends com.pulumi.resources.CustomResource
    Manages a firewall endpoint for an AWS Network Firewall firewall. Use `aws.networkfirewall.VpcEndpointAssociation` to establish new firewall endpoints in any Availability Zone where the firewall is already being used. The first use of a firewall in an Availability Zone must be defined by `aws.networkfirewall.Firewall` resource and `subnetMapping` argument. ## Example Usage ### Basic Usage
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.networkfirewall.VpcEndpointAssociation;
     import com.pulumi.aws.networkfirewall.VpcEndpointAssociationArgs;
     import com.pulumi.aws.networkfirewall.inputs.VpcEndpointAssociationSubnetMappingArgs;
     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 VpcEndpointAssociation("example", VpcEndpointAssociationArgs.builder()
                 .subnetMapping(VpcEndpointAssociationSubnetMappingArgs.builder()
                     .subnetId(exampleAwsSubnet.id())
                     .build())
                 .firewallArn(exampleAwsNetworkfirewallFirewall.arn())
                 .vpcId(exampleAwsVpc.id())
                 .tags(Map.of("Name", "example endpoint"))
                 .build());
     
         }
     }
     
     
    ## Import Using `pulumi import`, import Network Firewall VPC Endpoint Association using the `vpcEndpointAssociationArn`. For example: ```sh $ pulumi import aws:networkfirewall/vpcEndpointAssociation:VpcEndpointAssociation example arn:aws:network-firewall:us-west-1:123456789012:vpc-endpoint-association/example ```
    • 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
    • Constructor Detail

      • VpcEndpointAssociation

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

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

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

      • description

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
        Returns:
        A description of the VPC endpoint association.
      • firewallArn

        public com.pulumi.core.Output<java.lang.String> firewallArn()
        Returns:
        The ARN that identifies the firewall.
      • 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.
      • subnetMapping

        public com.pulumi.core.Output<VpcEndpointAssociationSubnetMapping> subnetMapping()
        Returns:
        The ID for a subnet that's used in an association with a firewall. See Subnet Mapping below for details.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Map of resource tags to associate with the resource. 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.
      • vpcEndpointAssociationArn

        public com.pulumi.core.Output<java.lang.String> vpcEndpointAssociationArn()
        Returns:
        ARN of the VPC Endpoint Association.
      • vpcEndpointAssociationId

        public com.pulumi.core.Output<java.lang.String> vpcEndpointAssociationId()
        Returns:
        The unique identifier of the VPC endpoint association.
      • vpcEndpointAssociationStatuses

        public com.pulumi.core.Output<java.util.List<VpcEndpointAssociationVpcEndpointAssociationStatus>> vpcEndpointAssociationStatuses()
        Returns:
        Nested list of information about the current status of the VPC Endpoint Association.
      • vpcId

        public com.pulumi.core.Output<java.lang.String> vpcId()
        Returns:
        The unique identifier of the VPC for the endpoint association.
      • get

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