Class CustomRoutingEndpointGroup


  • public class CustomRoutingEndpointGroup
    extends com.pulumi.resources.CustomResource
    Provides a Global Accelerator custom routing endpoint group. ## Example Usage <!--Start PulumiCodeChooser -->
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.globalaccelerator.CustomRoutingEndpointGroup;
     import com.pulumi.aws.globalaccelerator.CustomRoutingEndpointGroupArgs;
     import com.pulumi.aws.globalaccelerator.inputs.CustomRoutingEndpointGroupDestinationConfigurationArgs;
     import com.pulumi.aws.globalaccelerator.inputs.CustomRoutingEndpointGroupEndpointConfigurationArgs;
     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 CustomRoutingEndpointGroup("example", CustomRoutingEndpointGroupArgs.builder()
                 .listenerArn(exampleAwsGlobalacceleratorCustomRoutingListener.id())
                 .destinationConfigurations(CustomRoutingEndpointGroupDestinationConfigurationArgs.builder()
                     .fromPort(80)
                     .toPort(8080)
                     .protocols("TCP")
                     .build())
                 .endpointConfigurations(CustomRoutingEndpointGroupEndpointConfigurationArgs.builder()
                     .endpointId(exampleAwsSubnet.id())
                     .build())
                 .build());
     
         }
     }
     
     
    <!--End PulumiCodeChooser --> ## Import Using `pulumi import`, import Global Accelerator custom routing endpoint groups using the `id`. For example: ```sh $ pulumi import aws:globalaccelerator/customRoutingEndpointGroup:CustomRoutingEndpointGroup example arn:aws:globalaccelerator::111111111111:accelerator/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/listener/xxxxxxx/endpoint-group/xxxxxxxx ```
    • Constructor Detail

      • CustomRoutingEndpointGroup

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

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

        public CustomRoutingEndpointGroup​(java.lang.String name,
                                          CustomRoutingEndpointGroupArgs 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:
        The Amazon Resource Name (ARN) of the custom routing endpoint group.
      • destinationConfigurations

        public com.pulumi.core.Output<java.util.List<CustomRoutingEndpointGroupDestinationConfiguration>> destinationConfigurations()
        Returns:
        The port ranges and protocols for all endpoints in a custom routing endpoint group to accept client traffic on. Fields documented below.
      • endpointGroupRegion

        public com.pulumi.core.Output<java.lang.String> endpointGroupRegion()
        Returns:
        The name of the AWS Region where the custom routing endpoint group is located.
      • listenerArn

        public com.pulumi.core.Output<java.lang.String> listenerArn()
        Returns:
        The Amazon Resource Name (ARN) of the custom routing listener.
      • get

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