alicloud.ga.CustomRoutingEndpointGroupDestination

Provides a Global Accelerator (GA) Custom Routing Endpoint Group Destination resource.

For information about Global Accelerator (GA) Custom Routing Endpoint Group Destination and how to use it, see What is Custom Routing Endpoint Group Destination.

NOTE: Available in v1.197.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = new AliCloud.Ga.CustomRoutingEndpointGroupDestination("default", new()
    {
        EndpointGroupId = "your_custom_routing_endpoint_group_id",
        FromPort = 1,
        Protocols = new[]
        {
            "TCP",
            "UDP",
        },
        ToPort = 2,
    });

});
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ga"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ga.NewCustomRoutingEndpointGroupDestination(ctx, "default", &ga.CustomRoutingEndpointGroupDestinationArgs{
			EndpointGroupId: pulumi.String("your_custom_routing_endpoint_group_id"),
			FromPort:        pulumi.Int(1),
			Protocols: pulumi.StringArray{
				pulumi.String("TCP"),
				pulumi.String("UDP"),
			},
			ToPort: pulumi.Int(2),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ga.CustomRoutingEndpointGroupDestination;
import com.pulumi.alicloud.ga.CustomRoutingEndpointGroupDestinationArgs;
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 default_ = new CustomRoutingEndpointGroupDestination("default", CustomRoutingEndpointGroupDestinationArgs.builder()        
            .endpointGroupId("your_custom_routing_endpoint_group_id")
            .fromPort(1)
            .protocols(            
                "TCP",
                "UDP")
            .toPort(2)
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.ga.CustomRoutingEndpointGroupDestination("default",
    endpoint_group_id="your_custom_routing_endpoint_group_id",
    from_port=1,
    protocols=[
        "TCP",
        "UDP",
    ],
    to_port=2)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = new alicloud.ga.CustomRoutingEndpointGroupDestination("default", {
    endpointGroupId: "your_custom_routing_endpoint_group_id",
    fromPort: 1,
    protocols: [
        "TCP",
        "UDP",
    ],
    toPort: 2,
});
resources:
  default:
    type: alicloud:ga:CustomRoutingEndpointGroupDestination
    properties:
      endpointGroupId: your_custom_routing_endpoint_group_id
      fromPort: 1
      protocols:
        - TCP
        - UDP
      toPort: 2

Create CustomRoutingEndpointGroupDestination Resource

new CustomRoutingEndpointGroupDestination(name: string, args: CustomRoutingEndpointGroupDestinationArgs, opts?: CustomResourceOptions);
@overload
def CustomRoutingEndpointGroupDestination(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          endpoint_group_id: Optional[str] = None,
                                          from_port: Optional[int] = None,
                                          protocols: Optional[Sequence[str]] = None,
                                          to_port: Optional[int] = None)
@overload
def CustomRoutingEndpointGroupDestination(resource_name: str,
                                          args: CustomRoutingEndpointGroupDestinationArgs,
                                          opts: Optional[ResourceOptions] = None)
func NewCustomRoutingEndpointGroupDestination(ctx *Context, name string, args CustomRoutingEndpointGroupDestinationArgs, opts ...ResourceOption) (*CustomRoutingEndpointGroupDestination, error)
public CustomRoutingEndpointGroupDestination(string name, CustomRoutingEndpointGroupDestinationArgs args, CustomResourceOptions? opts = null)
public CustomRoutingEndpointGroupDestination(String name, CustomRoutingEndpointGroupDestinationArgs args)
public CustomRoutingEndpointGroupDestination(String name, CustomRoutingEndpointGroupDestinationArgs args, CustomResourceOptions options)
type: alicloud:ga:CustomRoutingEndpointGroupDestination
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args CustomRoutingEndpointGroupDestinationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args CustomRoutingEndpointGroupDestinationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args CustomRoutingEndpointGroupDestinationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CustomRoutingEndpointGroupDestinationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CustomRoutingEndpointGroupDestinationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

CustomRoutingEndpointGroupDestination Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The CustomRoutingEndpointGroupDestination resource accepts the following input properties:

EndpointGroupId string

The ID of the endpoint group.

FromPort int

The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

Protocols List<string>

The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.

ToPort int

The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

EndpointGroupId string

The ID of the endpoint group.

FromPort int

The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

Protocols []string

The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.

ToPort int

The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

endpointGroupId String

The ID of the endpoint group.

fromPort Integer

The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

protocols List<String>

The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.

toPort Integer

The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

endpointGroupId string

The ID of the endpoint group.

fromPort number

The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

protocols string[]

The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.

toPort number

The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

endpoint_group_id str

The ID of the endpoint group.

from_port int

The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

protocols Sequence[str]

The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.

to_port int

The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

endpointGroupId String

The ID of the endpoint group.

fromPort Number

The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

protocols List<String>

The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.

toPort Number

The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

Outputs

All input properties are implicitly available as output properties. Additionally, the CustomRoutingEndpointGroupDestination resource produces the following output properties:

AcceleratorId string

The ID of the GA instance.

CustomRoutingEndpointGroupDestinationId string

The ID of the Custom Routing Endpoint Group Destination.

Id string

The provider-assigned unique ID for this managed resource.

ListenerId string

The ID of the listener.

Status string

The status of the Custom Routing Endpoint Group Destination.

AcceleratorId string

The ID of the GA instance.

CustomRoutingEndpointGroupDestinationId string

The ID of the Custom Routing Endpoint Group Destination.

Id string

The provider-assigned unique ID for this managed resource.

ListenerId string

The ID of the listener.

Status string

The status of the Custom Routing Endpoint Group Destination.

acceleratorId String

The ID of the GA instance.

customRoutingEndpointGroupDestinationId String

The ID of the Custom Routing Endpoint Group Destination.

id String

The provider-assigned unique ID for this managed resource.

listenerId String

The ID of the listener.

status String

The status of the Custom Routing Endpoint Group Destination.

acceleratorId string

The ID of the GA instance.

customRoutingEndpointGroupDestinationId string

The ID of the Custom Routing Endpoint Group Destination.

id string

The provider-assigned unique ID for this managed resource.

listenerId string

The ID of the listener.

status string

The status of the Custom Routing Endpoint Group Destination.

accelerator_id str

The ID of the GA instance.

custom_routing_endpoint_group_destination_id str

The ID of the Custom Routing Endpoint Group Destination.

id str

The provider-assigned unique ID for this managed resource.

listener_id str

The ID of the listener.

status str

The status of the Custom Routing Endpoint Group Destination.

acceleratorId String

The ID of the GA instance.

customRoutingEndpointGroupDestinationId String

The ID of the Custom Routing Endpoint Group Destination.

id String

The provider-assigned unique ID for this managed resource.

listenerId String

The ID of the listener.

status String

The status of the Custom Routing Endpoint Group Destination.

Look up Existing CustomRoutingEndpointGroupDestination Resource

Get an existing CustomRoutingEndpointGroupDestination resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: CustomRoutingEndpointGroupDestinationState, opts?: CustomResourceOptions): CustomRoutingEndpointGroupDestination
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        accelerator_id: Optional[str] = None,
        custom_routing_endpoint_group_destination_id: Optional[str] = None,
        endpoint_group_id: Optional[str] = None,
        from_port: Optional[int] = None,
        listener_id: Optional[str] = None,
        protocols: Optional[Sequence[str]] = None,
        status: Optional[str] = None,
        to_port: Optional[int] = None) -> CustomRoutingEndpointGroupDestination
func GetCustomRoutingEndpointGroupDestination(ctx *Context, name string, id IDInput, state *CustomRoutingEndpointGroupDestinationState, opts ...ResourceOption) (*CustomRoutingEndpointGroupDestination, error)
public static CustomRoutingEndpointGroupDestination Get(string name, Input<string> id, CustomRoutingEndpointGroupDestinationState? state, CustomResourceOptions? opts = null)
public static CustomRoutingEndpointGroupDestination get(String name, Output<String> id, CustomRoutingEndpointGroupDestinationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AcceleratorId string

The ID of the GA instance.

CustomRoutingEndpointGroupDestinationId string

The ID of the Custom Routing Endpoint Group Destination.

EndpointGroupId string

The ID of the endpoint group.

FromPort int

The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

ListenerId string

The ID of the listener.

Protocols List<string>

The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.

Status string

The status of the Custom Routing Endpoint Group Destination.

ToPort int

The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

AcceleratorId string

The ID of the GA instance.

CustomRoutingEndpointGroupDestinationId string

The ID of the Custom Routing Endpoint Group Destination.

EndpointGroupId string

The ID of the endpoint group.

FromPort int

The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

ListenerId string

The ID of the listener.

Protocols []string

The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.

Status string

The status of the Custom Routing Endpoint Group Destination.

ToPort int

The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

acceleratorId String

The ID of the GA instance.

customRoutingEndpointGroupDestinationId String

The ID of the Custom Routing Endpoint Group Destination.

endpointGroupId String

The ID of the endpoint group.

fromPort Integer

The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

listenerId String

The ID of the listener.

protocols List<String>

The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.

status String

The status of the Custom Routing Endpoint Group Destination.

toPort Integer

The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

acceleratorId string

The ID of the GA instance.

customRoutingEndpointGroupDestinationId string

The ID of the Custom Routing Endpoint Group Destination.

endpointGroupId string

The ID of the endpoint group.

fromPort number

The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

listenerId string

The ID of the listener.

protocols string[]

The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.

status string

The status of the Custom Routing Endpoint Group Destination.

toPort number

The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

accelerator_id str

The ID of the GA instance.

custom_routing_endpoint_group_destination_id str

The ID of the Custom Routing Endpoint Group Destination.

endpoint_group_id str

The ID of the endpoint group.

from_port int

The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

listener_id str

The ID of the listener.

protocols Sequence[str]

The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.

status str

The status of the Custom Routing Endpoint Group Destination.

to_port int

The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

acceleratorId String

The ID of the GA instance.

customRoutingEndpointGroupDestinationId String

The ID of the Custom Routing Endpoint Group Destination.

endpointGroupId String

The ID of the endpoint group.

fromPort Number

The start port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

listenerId String

The ID of the listener.

protocols List<String>

The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.

status String

The status of the Custom Routing Endpoint Group Destination.

toPort Number

The end port of the backend service port range of the endpoint group. The from_port value must be smaller than or equal to the to_port value. Valid values: 1 to 65499.

Import

Global Accelerator (GA) Custom Routing Endpoint Group Destination can be imported using the id, e.g.

 $ pulumi import alicloud:ga/customRoutingEndpointGroupDestination:CustomRoutingEndpointGroupDestination example <endpoint_group_id>:<custom_routing_endpoint_group_destination_id>

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.