alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.ga.CustomRoutingEndpoint

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 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.CustomRoutingEndpoint("default", new()
    {
        Endpoint = "your_vswitch_id",
        EndpointGroupId = "your_custom_routing_endpoint_group_id",
        TrafficToEndpointPolicy = "DenyAll",
        Type = "PrivateSubNet",
    });

});
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.NewCustomRoutingEndpoint(ctx, "default", &ga.CustomRoutingEndpointArgs{
			Endpoint:                pulumi.String("your_vswitch_id"),
			EndpointGroupId:         pulumi.String("your_custom_routing_endpoint_group_id"),
			TrafficToEndpointPolicy: pulumi.String("DenyAll"),
			Type:                    pulumi.String("PrivateSubNet"),
		})
		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.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) {
        var default_ = new CustomRoutingEndpoint("default", CustomRoutingEndpointArgs.builder()        
            .endpoint("your_vswitch_id")
            .endpointGroupId("your_custom_routing_endpoint_group_id")
            .trafficToEndpointPolicy("DenyAll")
            .type("PrivateSubNet")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.ga.CustomRoutingEndpoint("default",
    endpoint="your_vswitch_id",
    endpoint_group_id="your_custom_routing_endpoint_group_id",
    traffic_to_endpoint_policy="DenyAll",
    type="PrivateSubNet")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = new alicloud.ga.CustomRoutingEndpoint("default", {
    endpoint: "your_vswitch_id",
    endpointGroupId: "your_custom_routing_endpoint_group_id",
    trafficToEndpointPolicy: "DenyAll",
    type: "PrivateSubNet",
});
resources:
  default:
    type: alicloud:ga:CustomRoutingEndpoint
    properties:
      endpoint: your_vswitch_id
      endpointGroupId: your_custom_routing_endpoint_group_id
      trafficToEndpointPolicy: DenyAll
      type: PrivateSubNet

Create CustomRoutingEndpoint Resource

new CustomRoutingEndpoint(name: string, args: CustomRoutingEndpointArgs, opts?: CustomResourceOptions);
@overload
def CustomRoutingEndpoint(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          endpoint: Optional[str] = None,
                          endpoint_group_id: Optional[str] = None,
                          traffic_to_endpoint_policy: Optional[str] = None,
                          type: Optional[str] = None)
@overload
def CustomRoutingEndpoint(resource_name: str,
                          args: CustomRoutingEndpointArgs,
                          opts: Optional[ResourceOptions] = 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.

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.

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

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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:

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>

Package Details

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

This Pulumi package is based on the alicloud Terraform Provider.