1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ga
  5. CustomRoutingEndpointGroupDestination
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.ga.CustomRoutingEndpointGroupDestination

Explore with Pulumi AI

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 since v1.197.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const config = new pulumi.Config();
const region = config.get("region") || "cn-hangzhou";
const _default = new alicloud.ga.Accelerator("default", {
    duration: 1,
    autoUseCoupon: true,
    spec: "1",
});
const defaultBandwidthPackage = new alicloud.ga.BandwidthPackage("default", {
    bandwidth: 100,
    type: "Basic",
    bandwidthType: "Basic",
    paymentType: "PayAsYouGo",
    billingType: "PayBy95",
    ratio: 30,
});
const defaultBandwidthPackageAttachment = new alicloud.ga.BandwidthPackageAttachment("default", {
    acceleratorId: _default.id,
    bandwidthPackageId: defaultBandwidthPackage.id,
});
const defaultListener = new alicloud.ga.Listener("default", {
    acceleratorId: defaultBandwidthPackageAttachment.acceleratorId,
    listenerType: "CustomRouting",
    portRanges: [{
        fromPort: 10000,
        toPort: 16000,
    }],
});
const defaultCustomRoutingEndpointGroup = new alicloud.ga.CustomRoutingEndpointGroup("default", {
    acceleratorId: defaultListener.acceleratorId,
    listenerId: defaultListener.id,
    endpointGroupRegion: region,
    customRoutingEndpointGroupName: "terraform-example",
    description: "terraform-example",
});
const defaultCustomRoutingEndpointGroupDestination = new alicloud.ga.CustomRoutingEndpointGroupDestination("default", {
    endpointGroupId: defaultCustomRoutingEndpointGroup.id,
    protocols: ["TCP"],
    fromPort: 1,
    toPort: 2,
});
Copy
import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
region = config.get("region")
if region is None:
    region = "cn-hangzhou"
default = alicloud.ga.Accelerator("default",
    duration=1,
    auto_use_coupon=True,
    spec="1")
default_bandwidth_package = alicloud.ga.BandwidthPackage("default",
    bandwidth=100,
    type="Basic",
    bandwidth_type="Basic",
    payment_type="PayAsYouGo",
    billing_type="PayBy95",
    ratio=30)
default_bandwidth_package_attachment = alicloud.ga.BandwidthPackageAttachment("default",
    accelerator_id=default.id,
    bandwidth_package_id=default_bandwidth_package.id)
default_listener = alicloud.ga.Listener("default",
    accelerator_id=default_bandwidth_package_attachment.accelerator_id,
    listener_type="CustomRouting",
    port_ranges=[{
        "from_port": 10000,
        "to_port": 16000,
    }])
default_custom_routing_endpoint_group = alicloud.ga.CustomRoutingEndpointGroup("default",
    accelerator_id=default_listener.accelerator_id,
    listener_id=default_listener.id,
    endpoint_group_region=region,
    custom_routing_endpoint_group_name="terraform-example",
    description="terraform-example")
default_custom_routing_endpoint_group_destination = alicloud.ga.CustomRoutingEndpointGroupDestination("default",
    endpoint_group_id=default_custom_routing_endpoint_group.id,
    protocols=["TCP"],
    from_port=1,
    to_port=2)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		region := "cn-hangzhou"
		if param := cfg.Get("region"); param != "" {
			region = param
		}
		_default, err := ga.NewAccelerator(ctx, "default", &ga.AcceleratorArgs{
			Duration:      pulumi.Int(1),
			AutoUseCoupon: pulumi.Bool(true),
			Spec:          pulumi.String("1"),
		})
		if err != nil {
			return err
		}
		defaultBandwidthPackage, err := ga.NewBandwidthPackage(ctx, "default", &ga.BandwidthPackageArgs{
			Bandwidth:     pulumi.Int(100),
			Type:          pulumi.String("Basic"),
			BandwidthType: pulumi.String("Basic"),
			PaymentType:   pulumi.String("PayAsYouGo"),
			BillingType:   pulumi.String("PayBy95"),
			Ratio:         pulumi.Int(30),
		})
		if err != nil {
			return err
		}
		defaultBandwidthPackageAttachment, err := ga.NewBandwidthPackageAttachment(ctx, "default", &ga.BandwidthPackageAttachmentArgs{
			AcceleratorId:      _default.ID(),
			BandwidthPackageId: defaultBandwidthPackage.ID(),
		})
		if err != nil {
			return err
		}
		defaultListener, err := ga.NewListener(ctx, "default", &ga.ListenerArgs{
			AcceleratorId: defaultBandwidthPackageAttachment.AcceleratorId,
			ListenerType:  pulumi.String("CustomRouting"),
			PortRanges: ga.ListenerPortRangeArray{
				&ga.ListenerPortRangeArgs{
					FromPort: pulumi.Int(10000),
					ToPort:   pulumi.Int(16000),
				},
			},
		})
		if err != nil {
			return err
		}
		defaultCustomRoutingEndpointGroup, err := ga.NewCustomRoutingEndpointGroup(ctx, "default", &ga.CustomRoutingEndpointGroupArgs{
			AcceleratorId:                  defaultListener.AcceleratorId,
			ListenerId:                     defaultListener.ID(),
			EndpointGroupRegion:            pulumi.String(region),
			CustomRoutingEndpointGroupName: pulumi.String("terraform-example"),
			Description:                    pulumi.String("terraform-example"),
		})
		if err != nil {
			return err
		}
		_, err = ga.NewCustomRoutingEndpointGroupDestination(ctx, "default", &ga.CustomRoutingEndpointGroupDestinationArgs{
			EndpointGroupId: defaultCustomRoutingEndpointGroup.ID(),
			Protocols: pulumi.StringArray{
				pulumi.String("TCP"),
			},
			FromPort: pulumi.Int(1),
			ToPort:   pulumi.Int(2),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var region = config.Get("region") ?? "cn-hangzhou";
    var @default = new AliCloud.Ga.Accelerator("default", new()
    {
        Duration = 1,
        AutoUseCoupon = true,
        Spec = "1",
    });

    var defaultBandwidthPackage = new AliCloud.Ga.BandwidthPackage("default", new()
    {
        Bandwidth = 100,
        Type = "Basic",
        BandwidthType = "Basic",
        PaymentType = "PayAsYouGo",
        BillingType = "PayBy95",
        Ratio = 30,
    });

    var defaultBandwidthPackageAttachment = new AliCloud.Ga.BandwidthPackageAttachment("default", new()
    {
        AcceleratorId = @default.Id,
        BandwidthPackageId = defaultBandwidthPackage.Id,
    });

    var defaultListener = new AliCloud.Ga.Listener("default", new()
    {
        AcceleratorId = defaultBandwidthPackageAttachment.AcceleratorId,
        ListenerType = "CustomRouting",
        PortRanges = new[]
        {
            new AliCloud.Ga.Inputs.ListenerPortRangeArgs
            {
                FromPort = 10000,
                ToPort = 16000,
            },
        },
    });

    var defaultCustomRoutingEndpointGroup = new AliCloud.Ga.CustomRoutingEndpointGroup("default", new()
    {
        AcceleratorId = defaultListener.AcceleratorId,
        ListenerId = defaultListener.Id,
        EndpointGroupRegion = region,
        CustomRoutingEndpointGroupName = "terraform-example",
        Description = "terraform-example",
    });

    var defaultCustomRoutingEndpointGroupDestination = new AliCloud.Ga.CustomRoutingEndpointGroupDestination("default", new()
    {
        EndpointGroupId = defaultCustomRoutingEndpointGroup.Id,
        Protocols = new[]
        {
            "TCP",
        },
        FromPort = 1,
        ToPort = 2,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ga.Accelerator;
import com.pulumi.alicloud.ga.AcceleratorArgs;
import com.pulumi.alicloud.ga.BandwidthPackage;
import com.pulumi.alicloud.ga.BandwidthPackageArgs;
import com.pulumi.alicloud.ga.BandwidthPackageAttachment;
import com.pulumi.alicloud.ga.BandwidthPackageAttachmentArgs;
import com.pulumi.alicloud.ga.Listener;
import com.pulumi.alicloud.ga.ListenerArgs;
import com.pulumi.alicloud.ga.inputs.ListenerPortRangeArgs;
import com.pulumi.alicloud.ga.CustomRoutingEndpointGroup;
import com.pulumi.alicloud.ga.CustomRoutingEndpointGroupArgs;
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) {
        final var config = ctx.config();
        final var region = config.get("region").orElse("cn-hangzhou");
        var default_ = new Accelerator("default", AcceleratorArgs.builder()
            .duration(1)
            .autoUseCoupon(true)
            .spec("1")
            .build());

        var defaultBandwidthPackage = new BandwidthPackage("defaultBandwidthPackage", BandwidthPackageArgs.builder()
            .bandwidth(100)
            .type("Basic")
            .bandwidthType("Basic")
            .paymentType("PayAsYouGo")
            .billingType("PayBy95")
            .ratio(30)
            .build());

        var defaultBandwidthPackageAttachment = new BandwidthPackageAttachment("defaultBandwidthPackageAttachment", BandwidthPackageAttachmentArgs.builder()
            .acceleratorId(default_.id())
            .bandwidthPackageId(defaultBandwidthPackage.id())
            .build());

        var defaultListener = new Listener("defaultListener", ListenerArgs.builder()
            .acceleratorId(defaultBandwidthPackageAttachment.acceleratorId())
            .listenerType("CustomRouting")
            .portRanges(ListenerPortRangeArgs.builder()
                .fromPort(10000)
                .toPort(16000)
                .build())
            .build());

        var defaultCustomRoutingEndpointGroup = new CustomRoutingEndpointGroup("defaultCustomRoutingEndpointGroup", CustomRoutingEndpointGroupArgs.builder()
            .acceleratorId(defaultListener.acceleratorId())
            .listenerId(defaultListener.id())
            .endpointGroupRegion(region)
            .customRoutingEndpointGroupName("terraform-example")
            .description("terraform-example")
            .build());

        var defaultCustomRoutingEndpointGroupDestination = new CustomRoutingEndpointGroupDestination("defaultCustomRoutingEndpointGroupDestination", CustomRoutingEndpointGroupDestinationArgs.builder()
            .endpointGroupId(defaultCustomRoutingEndpointGroup.id())
            .protocols("TCP")
            .fromPort(1)
            .toPort(2)
            .build());

    }
}
Copy
configuration:
  region:
    type: string
    default: cn-hangzhou
resources:
  default:
    type: alicloud:ga:Accelerator
    properties:
      duration: 1
      autoUseCoupon: true
      spec: '1'
  defaultBandwidthPackage:
    type: alicloud:ga:BandwidthPackage
    name: default
    properties:
      bandwidth: 100
      type: Basic
      bandwidthType: Basic
      paymentType: PayAsYouGo
      billingType: PayBy95
      ratio: 30
  defaultBandwidthPackageAttachment:
    type: alicloud:ga:BandwidthPackageAttachment
    name: default
    properties:
      acceleratorId: ${default.id}
      bandwidthPackageId: ${defaultBandwidthPackage.id}
  defaultListener:
    type: alicloud:ga:Listener
    name: default
    properties:
      acceleratorId: ${defaultBandwidthPackageAttachment.acceleratorId}
      listenerType: CustomRouting
      portRanges:
        - fromPort: 10000
          toPort: 16000
  defaultCustomRoutingEndpointGroup:
    type: alicloud:ga:CustomRoutingEndpointGroup
    name: default
    properties:
      acceleratorId: ${defaultListener.acceleratorId}
      listenerId: ${defaultListener.id}
      endpointGroupRegion: ${region}
      customRoutingEndpointGroupName: terraform-example
      description: terraform-example
  defaultCustomRoutingEndpointGroupDestination:
    type: alicloud:ga:CustomRoutingEndpointGroupDestination
    name: default
    properties:
      endpointGroupId: ${defaultCustomRoutingEndpointGroup.id}
      protocols:
        - TCP
      fromPort: 1
      toPort: 2
Copy

Create CustomRoutingEndpointGroupDestination Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new CustomRoutingEndpointGroupDestination(name: string, args: CustomRoutingEndpointGroupDestinationArgs, opts?: CustomResourceOptions);
@overload
def CustomRoutingEndpointGroupDestination(resource_name: str,
                                          args: CustomRoutingEndpointGroupDestinationArgs,
                                          opts: Optional[ResourceOptions] = None)

@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)
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.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CustomRoutingEndpointGroupDestinationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. CustomRoutingEndpointGroupDestinationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CustomRoutingEndpointGroupDestinationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CustomRoutingEndpointGroupDestinationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var customRoutingEndpointGroupDestinationResource = new AliCloud.Ga.CustomRoutingEndpointGroupDestination("customRoutingEndpointGroupDestinationResource", new()
{
    EndpointGroupId = "string",
    FromPort = 0,
    Protocols = new[]
    {
        "string",
    },
    ToPort = 0,
});
Copy
example, err := ga.NewCustomRoutingEndpointGroupDestination(ctx, "customRoutingEndpointGroupDestinationResource", &ga.CustomRoutingEndpointGroupDestinationArgs{
	EndpointGroupId: pulumi.String("string"),
	FromPort:        pulumi.Int(0),
	Protocols: pulumi.StringArray{
		pulumi.String("string"),
	},
	ToPort: pulumi.Int(0),
})
Copy
var customRoutingEndpointGroupDestinationResource = new CustomRoutingEndpointGroupDestination("customRoutingEndpointGroupDestinationResource", CustomRoutingEndpointGroupDestinationArgs.builder()
    .endpointGroupId("string")
    .fromPort(0)
    .protocols("string")
    .toPort(0)
    .build());
Copy
custom_routing_endpoint_group_destination_resource = alicloud.ga.CustomRoutingEndpointGroupDestination("customRoutingEndpointGroupDestinationResource",
    endpoint_group_id="string",
    from_port=0,
    protocols=["string"],
    to_port=0)
Copy
const customRoutingEndpointGroupDestinationResource = new alicloud.ga.CustomRoutingEndpointGroupDestination("customRoutingEndpointGroupDestinationResource", {
    endpointGroupId: "string",
    fromPort: 0,
    protocols: ["string"],
    toPort: 0,
});
Copy
type: alicloud:ga:CustomRoutingEndpointGroupDestination
properties:
    endpointGroupId: string
    fromPort: 0
    protocols:
        - string
    toPort: 0
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The CustomRoutingEndpointGroupDestination resource accepts the following input properties:

EndpointGroupId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the endpoint group.
FromPort This property is required. 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 This property is required. List<string>
The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.
ToPort This property is required. 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
This property is required.
Changes to this property will trigger replacement.
string
The ID of the endpoint group.
FromPort This property is required. 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 This property is required. []string
The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.
ToPort This property is required. 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
This property is required.
Changes to this property will trigger replacement.
String
The ID of the endpoint group.
fromPort This property is required. 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 This property is required. List<String>
The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.
toPort This property is required. 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
This property is required.
Changes to this property will trigger replacement.
string
The ID of the endpoint group.
fromPort This property is required. 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 This property is required. string[]
The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.
toPort This property is required. 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
This property is required.
Changes to this property will trigger replacement.
str
The ID of the endpoint group.
from_port This property is required. 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 This property is required. Sequence[str]
The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.
to_port This property is required. 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
This property is required.
Changes to this property will trigger replacement.
String
The ID of the endpoint group.
fromPort This property is required. 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 This property is required. List<String>
The backend service protocol of the endpoint group. Valid values: TCP, UDP, TCP, UDP.
toPort This property is required. 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)
resources:  _:    type: alicloud:ga:CustomRoutingEndpointGroupDestination    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.