1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ga
  5. CustomRoutingEndpoint
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.ga.CustomRoutingEndpoint

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

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

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

    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 = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const defaultNetwork = new alicloud.vpc.Network("default", {
        vpcName: "terraform-example",
        cidrBlock: "172.17.3.0/24",
    });
    const defaultSwitch = new alicloud.vpc.Switch("default", {
        vswitchName: "terraform-example",
        cidrBlock: "172.17.3.0/24",
        vpcId: defaultNetwork.id,
        zoneId: _default.then(_default => _default.zones?.[0]?.id),
    });
    const defaultAccelerator = 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: defaultAccelerator.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 defaultCustomRoutingEndpoint = new alicloud.ga.CustomRoutingEndpoint("default", {
        endpointGroupId: defaultCustomRoutingEndpointGroup.id,
        endpoint: defaultSwitch.id,
        type: "PrivateSubNet",
        trafficToEndpointPolicy: "DenyAll",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    region = config.get("region")
    if region is None:
        region = "cn-hangzhou"
    default = alicloud.get_zones(available_resource_creation="VSwitch")
    default_network = alicloud.vpc.Network("default",
        vpc_name="terraform-example",
        cidr_block="172.17.3.0/24")
    default_switch = alicloud.vpc.Switch("default",
        vswitch_name="terraform-example",
        cidr_block="172.17.3.0/24",
        vpc_id=default_network.id,
        zone_id=default.zones[0].id)
    default_accelerator = 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_accelerator.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 = alicloud.ga.CustomRoutingEndpoint("default",
        endpoint_group_id=default_custom_routing_endpoint_group.id,
        endpoint=default_switch.id,
        type="PrivateSubNet",
        traffic_to_endpoint_policy="DenyAll")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ga"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"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 := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
    			VpcName:   pulumi.String("terraform-example"),
    			CidrBlock: pulumi.String("172.17.3.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
    			VswitchName: pulumi.String("terraform-example"),
    			CidrBlock:   pulumi.String("172.17.3.0/24"),
    			VpcId:       defaultNetwork.ID(),
    			ZoneId:      pulumi.String(_default.Zones[0].Id),
    		})
    		if err != nil {
    			return err
    		}
    		defaultAccelerator, 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:      defaultAccelerator.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.NewCustomRoutingEndpoint(ctx, "default", &ga.CustomRoutingEndpointArgs{
    			EndpointGroupId:         defaultCustomRoutingEndpointGroup.ID(),
    			Endpoint:                defaultSwitch.ID(),
    			Type:                    pulumi.String("PrivateSubNet"),
    			TrafficToEndpointPolicy: pulumi.String("DenyAll"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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 = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var defaultNetwork = new AliCloud.Vpc.Network("default", new()
        {
            VpcName = "terraform-example",
            CidrBlock = "172.17.3.0/24",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
        {
            VswitchName = "terraform-example",
            CidrBlock = "172.17.3.0/24",
            VpcId = defaultNetwork.Id,
            ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
        });
    
        var defaultAccelerator = 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 = defaultAccelerator.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 defaultCustomRoutingEndpoint = new AliCloud.Ga.CustomRoutingEndpoint("default", new()
        {
            EndpointGroupId = defaultCustomRoutingEndpointGroup.Id,
            Endpoint = defaultSwitch.Id,
            Type = "PrivateSubNet",
            TrafficToEndpointPolicy = "DenyAll",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    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.CustomRoutingEndpoint;
    import com.pulumi.alicloud.ga.CustomRoutingEndpointArgs;
    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");
            final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
                .vpcName("terraform-example")
                .cidrBlock("172.17.3.0/24")
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
                .vswitchName("terraform-example")
                .cidrBlock("172.17.3.0/24")
                .vpcId(defaultNetwork.id())
                .zoneId(default_.zones()[0].id())
                .build());
    
            var defaultAccelerator = new Accelerator("defaultAccelerator", 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(defaultAccelerator.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 defaultCustomRoutingEndpoint = new CustomRoutingEndpoint("defaultCustomRoutingEndpoint", CustomRoutingEndpointArgs.builder()
                .endpointGroupId(defaultCustomRoutingEndpointGroup.id())
                .endpoint(defaultSwitch.id())
                .type("PrivateSubNet")
                .trafficToEndpointPolicy("DenyAll")
                .build());
    
        }
    }
    
    configuration:
      region:
        type: string
        default: cn-hangzhou
    resources:
      defaultNetwork:
        type: alicloud:vpc:Network
        name: default
        properties:
          vpcName: terraform-example
          cidrBlock: 172.17.3.0/24
      defaultSwitch:
        type: alicloud:vpc:Switch
        name: default
        properties:
          vswitchName: terraform-example
          cidrBlock: 172.17.3.0/24
          vpcId: ${defaultNetwork.id}
          zoneId: ${default.zones[0].id}
      defaultAccelerator:
        type: alicloud:ga:Accelerator
        name: default
        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: ${defaultAccelerator.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
      defaultCustomRoutingEndpoint:
        type: alicloud:ga:CustomRoutingEndpoint
        name: default
        properties:
          endpointGroupId: ${defaultCustomRoutingEndpointGroup.id}
          endpoint: ${defaultSwitch.id}
          type: PrivateSubNet
          trafficToEndpointPolicy: DenyAll
    variables:
      default:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableResourceCreation: VSwitch
    

    Create CustomRoutingEndpoint Resource

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

    Constructor syntax

    new CustomRoutingEndpoint(name: string, args: CustomRoutingEndpointArgs, opts?: CustomResourceOptions);
    @overload
    def CustomRoutingEndpoint(resource_name: str,
                              args: CustomRoutingEndpointArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def CustomRoutingEndpoint(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              endpoint: Optional[str] = None,
                              endpoint_group_id: Optional[str] = None,
                              type: Optional[str] = None,
                              traffic_to_endpoint_policy: Optional[str] = None)
    func NewCustomRoutingEndpoint(ctx *Context, name string, args CustomRoutingEndpointArgs, opts ...ResourceOption) (*CustomRoutingEndpoint, error)
    public CustomRoutingEndpoint(string name, CustomRoutingEndpointArgs args, CustomResourceOptions? opts = null)
    public CustomRoutingEndpoint(String name, CustomRoutingEndpointArgs args)
    public CustomRoutingEndpoint(String name, CustomRoutingEndpointArgs args, CustomResourceOptions options)
    
    type: alicloud:ga:CustomRoutingEndpoint
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CustomRoutingEndpointArgs
    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 CustomRoutingEndpointArgs
    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 CustomRoutingEndpointArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CustomRoutingEndpointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CustomRoutingEndpointArgs
    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 customRoutingEndpointResource = new AliCloud.Ga.CustomRoutingEndpoint("customRoutingEndpointResource", new()
    {
        Endpoint = "string",
        EndpointGroupId = "string",
        Type = "string",
        TrafficToEndpointPolicy = "string",
    });
    
    example, err := ga.NewCustomRoutingEndpoint(ctx, "customRoutingEndpointResource", &ga.CustomRoutingEndpointArgs{
    	Endpoint:                pulumi.String("string"),
    	EndpointGroupId:         pulumi.String("string"),
    	Type:                    pulumi.String("string"),
    	TrafficToEndpointPolicy: pulumi.String("string"),
    })
    
    var customRoutingEndpointResource = new CustomRoutingEndpoint("customRoutingEndpointResource", CustomRoutingEndpointArgs.builder()
        .endpoint("string")
        .endpointGroupId("string")
        .type("string")
        .trafficToEndpointPolicy("string")
        .build());
    
    custom_routing_endpoint_resource = alicloud.ga.CustomRoutingEndpoint("customRoutingEndpointResource",
        endpoint="string",
        endpoint_group_id="string",
        type="string",
        traffic_to_endpoint_policy="string")
    
    const customRoutingEndpointResource = new alicloud.ga.CustomRoutingEndpoint("customRoutingEndpointResource", {
        endpoint: "string",
        endpointGroupId: "string",
        type: "string",
        trafficToEndpointPolicy: "string",
    });
    
    type: alicloud:ga:CustomRoutingEndpoint
    properties:
        endpoint: string
        endpointGroupId: string
        trafficToEndpointPolicy: string
        type: string
    

    CustomRoutingEndpoint 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 CustomRoutingEndpoint resource accepts the following input properties:

    Endpoint string
    The ID of the endpoint (vSwitch).
    EndpointGroupId string
    The ID of the endpoint group in which to create endpoints.
    Type string
    The backend service type of the endpoint. Valid values: PrivateSubNet.
    TrafficToEndpointPolicy string
    The access policy of traffic to the endpoint. Default value: DenyAll. Valid values:

    • DenyAll: denies all traffic to the endpoint.
    • AllowAll: allows all traffic to the endpoint.
    • AllowCustom: allows traffic only to specified destinations in the endpoint.
    Endpoint string
    The ID of the endpoint (vSwitch).
    EndpointGroupId string
    The ID of the endpoint group in which to create endpoints.
    Type string
    The backend service type of the endpoint. Valid values: PrivateSubNet.
    TrafficToEndpointPolicy string
    The access policy of traffic to the endpoint. Default value: DenyAll. Valid values:

    • DenyAll: denies all traffic to the endpoint.
    • AllowAll: allows all traffic to the endpoint.
    • AllowCustom: allows traffic only to specified destinations in the endpoint.
    endpoint String
    The ID of the endpoint (vSwitch).
    endpointGroupId String
    The ID of the endpoint group in which to create endpoints.
    type String
    The backend service type of the endpoint. Valid values: PrivateSubNet.
    trafficToEndpointPolicy String
    The access policy of traffic to the endpoint. Default value: DenyAll. Valid values:

    • DenyAll: denies all traffic to the endpoint.
    • AllowAll: allows all traffic to the endpoint.
    • AllowCustom: allows traffic only to specified destinations in the endpoint.
    endpoint string
    The ID of the endpoint (vSwitch).
    endpointGroupId string
    The ID of the endpoint group in which to create endpoints.
    type string
    The backend service type of the endpoint. Valid values: PrivateSubNet.
    trafficToEndpointPolicy string
    The access policy of traffic to the endpoint. Default value: DenyAll. Valid values:

    • DenyAll: denies all traffic to the endpoint.
    • AllowAll: allows all traffic to the endpoint.
    • AllowCustom: allows traffic only to specified destinations in the endpoint.
    endpoint str
    The ID of the endpoint (vSwitch).
    endpoint_group_id str
    The ID of the endpoint group in which to create endpoints.
    type str
    The backend service type of the endpoint. Valid values: PrivateSubNet.
    traffic_to_endpoint_policy str
    The access policy of traffic to the endpoint. Default value: DenyAll. Valid values:

    • DenyAll: denies all traffic to the endpoint.
    • AllowAll: allows all traffic to the endpoint.
    • AllowCustom: allows traffic only to specified destinations in the endpoint.
    endpoint String
    The ID of the endpoint (vSwitch).
    endpointGroupId String
    The ID of the endpoint group in which to create endpoints.
    type String
    The backend service type of the endpoint. Valid values: PrivateSubNet.
    trafficToEndpointPolicy String
    The access policy of traffic to the endpoint. Default value: DenyAll. Valid values:

    • DenyAll: denies all traffic to the endpoint.
    • AllowAll: allows all traffic to the endpoint.
    • AllowCustom: allows traffic only to specified destinations in the endpoint.

    Outputs

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

    AcceleratorId string
    The ID of the GA instance with which the endpoint is associated.
    CustomRoutingEndpointId string
    The ID of the Custom Routing Endpoint.
    Id string
    The provider-assigned unique ID for this managed resource.
    ListenerId string
    The ID of the listener with which the endpoint is associated.
    Status string
    The status of the Custom Routing Endpoint.
    AcceleratorId string
    The ID of the GA instance with which the endpoint is associated.
    CustomRoutingEndpointId string
    The ID of the Custom Routing Endpoint.
    Id string
    The provider-assigned unique ID for this managed resource.
    ListenerId string
    The ID of the listener with which the endpoint is associated.
    Status string
    The status of the Custom Routing Endpoint.
    acceleratorId String
    The ID of the GA instance with which the endpoint is associated.
    customRoutingEndpointId String
    The ID of the Custom Routing Endpoint.
    id String
    The provider-assigned unique ID for this managed resource.
    listenerId String
    The ID of the listener with which the endpoint is associated.
    status String
    The status of the Custom Routing Endpoint.
    acceleratorId string
    The ID of the GA instance with which the endpoint is associated.
    customRoutingEndpointId string
    The ID of the Custom Routing Endpoint.
    id string
    The provider-assigned unique ID for this managed resource.
    listenerId string
    The ID of the listener with which the endpoint is associated.
    status string
    The status of the Custom Routing Endpoint.
    accelerator_id str
    The ID of the GA instance with which the endpoint is associated.
    custom_routing_endpoint_id str
    The ID of the Custom Routing Endpoint.
    id str
    The provider-assigned unique ID for this managed resource.
    listener_id str
    The ID of the listener with which the endpoint is associated.
    status str
    The status of the Custom Routing Endpoint.
    acceleratorId String
    The ID of the GA instance with which the endpoint is associated.
    customRoutingEndpointId String
    The ID of the Custom Routing Endpoint.
    id String
    The provider-assigned unique ID for this managed resource.
    listenerId String
    The ID of the listener with which the endpoint is associated.
    status String
    The status of the Custom Routing Endpoint.

    Look up Existing CustomRoutingEndpoint Resource

    Get an existing CustomRoutingEndpoint 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?: CustomRoutingEndpointState, opts?: CustomResourceOptions): CustomRoutingEndpoint
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            accelerator_id: Optional[str] = None,
            custom_routing_endpoint_id: Optional[str] = None,
            endpoint: Optional[str] = None,
            endpoint_group_id: Optional[str] = None,
            listener_id: Optional[str] = None,
            status: Optional[str] = None,
            traffic_to_endpoint_policy: Optional[str] = None,
            type: Optional[str] = None) -> CustomRoutingEndpoint
    func GetCustomRoutingEndpoint(ctx *Context, name string, id IDInput, state *CustomRoutingEndpointState, opts ...ResourceOption) (*CustomRoutingEndpoint, error)
    public static CustomRoutingEndpoint Get(string name, Input<string> id, CustomRoutingEndpointState? state, CustomResourceOptions? opts = null)
    public static CustomRoutingEndpoint get(String name, Output<String> id, CustomRoutingEndpointState 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 with which the endpoint is associated.
    CustomRoutingEndpointId string
    The ID of the Custom Routing Endpoint.
    Endpoint string
    The ID of the endpoint (vSwitch).
    EndpointGroupId string
    The ID of the endpoint group in which to create endpoints.
    ListenerId string
    The ID of the listener with which the endpoint is associated.
    Status string
    The status of the Custom Routing Endpoint.
    TrafficToEndpointPolicy string
    The access policy of traffic to the endpoint. Default value: DenyAll. Valid values:

    • DenyAll: denies all traffic to the endpoint.
    • AllowAll: allows all traffic to the endpoint.
    • AllowCustom: allows traffic only to specified destinations in the endpoint.
    Type string
    The backend service type of the endpoint. Valid values: PrivateSubNet.
    AcceleratorId string
    The ID of the GA instance with which the endpoint is associated.
    CustomRoutingEndpointId string
    The ID of the Custom Routing Endpoint.
    Endpoint string
    The ID of the endpoint (vSwitch).
    EndpointGroupId string
    The ID of the endpoint group in which to create endpoints.
    ListenerId string
    The ID of the listener with which the endpoint is associated.
    Status string
    The status of the Custom Routing Endpoint.
    TrafficToEndpointPolicy string
    The access policy of traffic to the endpoint. Default value: DenyAll. Valid values:

    • DenyAll: denies all traffic to the endpoint.
    • AllowAll: allows all traffic to the endpoint.
    • AllowCustom: allows traffic only to specified destinations in the endpoint.
    Type string
    The backend service type of the endpoint. Valid values: PrivateSubNet.
    acceleratorId String
    The ID of the GA instance with which the endpoint is associated.
    customRoutingEndpointId String
    The ID of the Custom Routing Endpoint.
    endpoint String
    The ID of the endpoint (vSwitch).
    endpointGroupId String
    The ID of the endpoint group in which to create endpoints.
    listenerId String
    The ID of the listener with which the endpoint is associated.
    status String
    The status of the Custom Routing Endpoint.
    trafficToEndpointPolicy String
    The access policy of traffic to the endpoint. Default value: DenyAll. Valid values:

    • DenyAll: denies all traffic to the endpoint.
    • AllowAll: allows all traffic to the endpoint.
    • AllowCustom: allows traffic only to specified destinations in the endpoint.
    type String
    The backend service type of the endpoint. Valid values: PrivateSubNet.
    acceleratorId string
    The ID of the GA instance with which the endpoint is associated.
    customRoutingEndpointId string
    The ID of the Custom Routing Endpoint.
    endpoint string
    The ID of the endpoint (vSwitch).
    endpointGroupId string
    The ID of the endpoint group in which to create endpoints.
    listenerId string
    The ID of the listener with which the endpoint is associated.
    status string
    The status of the Custom Routing Endpoint.
    trafficToEndpointPolicy string
    The access policy of traffic to the endpoint. Default value: DenyAll. Valid values:

    • DenyAll: denies all traffic to the endpoint.
    • AllowAll: allows all traffic to the endpoint.
    • AllowCustom: allows traffic only to specified destinations in the endpoint.
    type string
    The backend service type of the endpoint. Valid values: PrivateSubNet.
    accelerator_id str
    The ID of the GA instance with which the endpoint is associated.
    custom_routing_endpoint_id str
    The ID of the Custom Routing Endpoint.
    endpoint str
    The ID of the endpoint (vSwitch).
    endpoint_group_id str
    The ID of the endpoint group in which to create endpoints.
    listener_id str
    The ID of the listener with which the endpoint is associated.
    status str
    The status of the Custom Routing Endpoint.
    traffic_to_endpoint_policy str
    The access policy of traffic to the endpoint. Default value: DenyAll. Valid values:

    • DenyAll: denies all traffic to the endpoint.
    • AllowAll: allows all traffic to the endpoint.
    • AllowCustom: allows traffic only to specified destinations in the endpoint.
    type str
    The backend service type of the endpoint. Valid values: PrivateSubNet.
    acceleratorId String
    The ID of the GA instance with which the endpoint is associated.
    customRoutingEndpointId String
    The ID of the Custom Routing Endpoint.
    endpoint String
    The ID of the endpoint (vSwitch).
    endpointGroupId String
    The ID of the endpoint group in which to create endpoints.
    listenerId String
    The ID of the listener with which the endpoint is associated.
    status String
    The status of the Custom Routing Endpoint.
    trafficToEndpointPolicy String
    The access policy of traffic to the endpoint. Default value: DenyAll. Valid values:

    • DenyAll: denies all traffic to the endpoint.
    • AllowAll: allows all traffic to the endpoint.
    • AllowCustom: allows traffic only to specified destinations in the endpoint.
    type String
    The backend service type of the endpoint. Valid values: PrivateSubNet.

    Import

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

    $ pulumi import alicloud:ga/customRoutingEndpoint:CustomRoutingEndpoint example <endpoint_group_id>:<custom_routing_endpoint_id>
    

    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.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi