alicloud.ga.CustomRoutingEndpointTrafficPolicy

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

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

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.CustomRoutingEndpointTrafficPolicy("default", new()
    {
        Address = "192.168.192.2",
        EndpointId = "your_custom_routing_endpoint_id",
        PortRanges = new[]
        {
            new AliCloud.Ga.Inputs.CustomRoutingEndpointTrafficPolicyPortRangeArgs
            {
                FromPort = 10001,
                ToPort = 10002,
            },
        },
    });

});
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.NewCustomRoutingEndpointTrafficPolicy(ctx, "default", &ga.CustomRoutingEndpointTrafficPolicyArgs{
			Address:    pulumi.String("192.168.192.2"),
			EndpointId: pulumi.String("your_custom_routing_endpoint_id"),
			PortRanges: ga.CustomRoutingEndpointTrafficPolicyPortRangeArray{
				&ga.CustomRoutingEndpointTrafficPolicyPortRangeArgs{
					FromPort: pulumi.Int(10001),
					ToPort:   pulumi.Int(10002),
				},
			},
		})
		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.CustomRoutingEndpointTrafficPolicy;
import com.pulumi.alicloud.ga.CustomRoutingEndpointTrafficPolicyArgs;
import com.pulumi.alicloud.ga.inputs.CustomRoutingEndpointTrafficPolicyPortRangeArgs;
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 CustomRoutingEndpointTrafficPolicy("default", CustomRoutingEndpointTrafficPolicyArgs.builder()        
            .address("192.168.192.2")
            .endpointId("your_custom_routing_endpoint_id")
            .portRanges(CustomRoutingEndpointTrafficPolicyPortRangeArgs.builder()
                .fromPort(10001)
                .toPort(10002)
                .build())
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.ga.CustomRoutingEndpointTrafficPolicy("default",
    address="192.168.192.2",
    endpoint_id="your_custom_routing_endpoint_id",
    port_ranges=[alicloud.ga.CustomRoutingEndpointTrafficPolicyPortRangeArgs(
        from_port=10001,
        to_port=10002,
    )])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = new alicloud.ga.CustomRoutingEndpointTrafficPolicy("default", {
    address: "192.168.192.2",
    endpointId: "your_custom_routing_endpoint_id",
    portRanges: [{
        fromPort: 10001,
        toPort: 10002,
    }],
});
resources:
  default:
    type: alicloud:ga:CustomRoutingEndpointTrafficPolicy
    properties:
      address: 192.168.192.2
      endpointId: your_custom_routing_endpoint_id
      portRanges:
        - fromPort: 10001
          toPort: 10002

Create CustomRoutingEndpointTrafficPolicy Resource

new CustomRoutingEndpointTrafficPolicy(name: string, args: CustomRoutingEndpointTrafficPolicyArgs, opts?: CustomResourceOptions);
@overload
def CustomRoutingEndpointTrafficPolicy(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       address: Optional[str] = None,
                                       endpoint_id: Optional[str] = None,
                                       port_ranges: Optional[Sequence[CustomRoutingEndpointTrafficPolicyPortRangeArgs]] = None)
@overload
def CustomRoutingEndpointTrafficPolicy(resource_name: str,
                                       args: CustomRoutingEndpointTrafficPolicyArgs,
                                       opts: Optional[ResourceOptions] = None)
func NewCustomRoutingEndpointTrafficPolicy(ctx *Context, name string, args CustomRoutingEndpointTrafficPolicyArgs, opts ...ResourceOption) (*CustomRoutingEndpointTrafficPolicy, error)
public CustomRoutingEndpointTrafficPolicy(string name, CustomRoutingEndpointTrafficPolicyArgs args, CustomResourceOptions? opts = null)
public CustomRoutingEndpointTrafficPolicy(String name, CustomRoutingEndpointTrafficPolicyArgs args)
public CustomRoutingEndpointTrafficPolicy(String name, CustomRoutingEndpointTrafficPolicyArgs args, CustomResourceOptions options)
type: alicloud:ga:CustomRoutingEndpointTrafficPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args CustomRoutingEndpointTrafficPolicyArgs
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 CustomRoutingEndpointTrafficPolicyArgs
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 CustomRoutingEndpointTrafficPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CustomRoutingEndpointTrafficPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CustomRoutingEndpointTrafficPolicyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Address string

The IP address of the destination to which traffic is allowed.

EndpointId string

The ID of the Custom Routing Endpoint.

PortRanges List<Pulumi.AliCloud.Ga.Inputs.CustomRoutingEndpointTrafficPolicyPortRangeArgs>

Port rangeSee the following. See the following Block port_ranges.

Address string

The IP address of the destination to which traffic is allowed.

EndpointId string

The ID of the Custom Routing Endpoint.

PortRanges []CustomRoutingEndpointTrafficPolicyPortRangeArgs

Port rangeSee the following. See the following Block port_ranges.

address String

The IP address of the destination to which traffic is allowed.

endpointId String

The ID of the Custom Routing Endpoint.

portRanges List<CustomRoutingEndpointTrafficPolicyPortRangeArgs>

Port rangeSee the following. See the following Block port_ranges.

address string

The IP address of the destination to which traffic is allowed.

endpointId string

The ID of the Custom Routing Endpoint.

portRanges CustomRoutingEndpointTrafficPolicyPortRangeArgs[]

Port rangeSee the following. See the following Block port_ranges.

address str

The IP address of the destination to which traffic is allowed.

endpoint_id str

The ID of the Custom Routing Endpoint.

port_ranges Sequence[CustomRoutingEndpointTrafficPolicyPortRangeArgs]

Port rangeSee the following. See the following Block port_ranges.

address String

The IP address of the destination to which traffic is allowed.

endpointId String

The ID of the Custom Routing Endpoint.

portRanges List<Property Map>

Port rangeSee the following. See the following Block port_ranges.

Outputs

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

AcceleratorId string

The ID of the GA instance.

CustomRoutingEndpointTrafficPolicyId string

The ID of the Custom Routing Endpoint Traffic Policy.

EndpointGroupId string

The ID of the endpoint group.

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 Traffic Policy.

AcceleratorId string

The ID of the GA instance.

CustomRoutingEndpointTrafficPolicyId string

The ID of the Custom Routing Endpoint Traffic Policy.

EndpointGroupId string

The ID of the endpoint group.

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 Traffic Policy.

acceleratorId String

The ID of the GA instance.

customRoutingEndpointTrafficPolicyId String

The ID of the Custom Routing Endpoint Traffic Policy.

endpointGroupId String

The ID of the endpoint group.

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 Traffic Policy.

acceleratorId string

The ID of the GA instance.

customRoutingEndpointTrafficPolicyId string

The ID of the Custom Routing Endpoint Traffic Policy.

endpointGroupId string

The ID of the endpoint group.

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 Traffic Policy.

accelerator_id str

The ID of the GA instance.

custom_routing_endpoint_traffic_policy_id str

The ID of the Custom Routing Endpoint Traffic Policy.

endpoint_group_id str

The ID of the endpoint group.

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 Traffic Policy.

acceleratorId String

The ID of the GA instance.

customRoutingEndpointTrafficPolicyId String

The ID of the Custom Routing Endpoint Traffic Policy.

endpointGroupId String

The ID of the endpoint group.

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 Traffic Policy.

Look up Existing CustomRoutingEndpointTrafficPolicy Resource

Get an existing CustomRoutingEndpointTrafficPolicy 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?: CustomRoutingEndpointTrafficPolicyState, opts?: CustomResourceOptions): CustomRoutingEndpointTrafficPolicy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        accelerator_id: Optional[str] = None,
        address: Optional[str] = None,
        custom_routing_endpoint_traffic_policy_id: Optional[str] = None,
        endpoint_group_id: Optional[str] = None,
        endpoint_id: Optional[str] = None,
        listener_id: Optional[str] = None,
        port_ranges: Optional[Sequence[CustomRoutingEndpointTrafficPolicyPortRangeArgs]] = None,
        status: Optional[str] = None) -> CustomRoutingEndpointTrafficPolicy
func GetCustomRoutingEndpointTrafficPolicy(ctx *Context, name string, id IDInput, state *CustomRoutingEndpointTrafficPolicyState, opts ...ResourceOption) (*CustomRoutingEndpointTrafficPolicy, error)
public static CustomRoutingEndpointTrafficPolicy Get(string name, Input<string> id, CustomRoutingEndpointTrafficPolicyState? state, CustomResourceOptions? opts = null)
public static CustomRoutingEndpointTrafficPolicy get(String name, Output<String> id, CustomRoutingEndpointTrafficPolicyState 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.

Address string

The IP address of the destination to which traffic is allowed.

CustomRoutingEndpointTrafficPolicyId string

The ID of the Custom Routing Endpoint Traffic Policy.

EndpointGroupId string

The ID of the endpoint group.

EndpointId string

The ID of the Custom Routing Endpoint.

ListenerId string

The ID of the listener.

PortRanges List<Pulumi.AliCloud.Ga.Inputs.CustomRoutingEndpointTrafficPolicyPortRangeArgs>

Port rangeSee the following. See the following Block port_ranges.

Status string

The status of the Custom Routing Endpoint Traffic Policy.

AcceleratorId string

The ID of the GA instance.

Address string

The IP address of the destination to which traffic is allowed.

CustomRoutingEndpointTrafficPolicyId string

The ID of the Custom Routing Endpoint Traffic Policy.

EndpointGroupId string

The ID of the endpoint group.

EndpointId string

The ID of the Custom Routing Endpoint.

ListenerId string

The ID of the listener.

PortRanges []CustomRoutingEndpointTrafficPolicyPortRangeArgs

Port rangeSee the following. See the following Block port_ranges.

Status string

The status of the Custom Routing Endpoint Traffic Policy.

acceleratorId String

The ID of the GA instance.

address String

The IP address of the destination to which traffic is allowed.

customRoutingEndpointTrafficPolicyId String

The ID of the Custom Routing Endpoint Traffic Policy.

endpointGroupId String

The ID of the endpoint group.

endpointId String

The ID of the Custom Routing Endpoint.

listenerId String

The ID of the listener.

portRanges List<CustomRoutingEndpointTrafficPolicyPortRangeArgs>

Port rangeSee the following. See the following Block port_ranges.

status String

The status of the Custom Routing Endpoint Traffic Policy.

acceleratorId string

The ID of the GA instance.

address string

The IP address of the destination to which traffic is allowed.

customRoutingEndpointTrafficPolicyId string

The ID of the Custom Routing Endpoint Traffic Policy.

endpointGroupId string

The ID of the endpoint group.

endpointId string

The ID of the Custom Routing Endpoint.

listenerId string

The ID of the listener.

portRanges CustomRoutingEndpointTrafficPolicyPortRangeArgs[]

Port rangeSee the following. See the following Block port_ranges.

status string

The status of the Custom Routing Endpoint Traffic Policy.

accelerator_id str

The ID of the GA instance.

address str

The IP address of the destination to which traffic is allowed.

custom_routing_endpoint_traffic_policy_id str

The ID of the Custom Routing Endpoint Traffic Policy.

endpoint_group_id str

The ID of the endpoint group.

endpoint_id str

The ID of the Custom Routing Endpoint.

listener_id str

The ID of the listener.

port_ranges Sequence[CustomRoutingEndpointTrafficPolicyPortRangeArgs]

Port rangeSee the following. See the following Block port_ranges.

status str

The status of the Custom Routing Endpoint Traffic Policy.

acceleratorId String

The ID of the GA instance.

address String

The IP address of the destination to which traffic is allowed.

customRoutingEndpointTrafficPolicyId String

The ID of the Custom Routing Endpoint Traffic Policy.

endpointGroupId String

The ID of the endpoint group.

endpointId String

The ID of the Custom Routing Endpoint.

listenerId String

The ID of the listener.

portRanges List<Property Map>

Port rangeSee the following. See the following Block port_ranges.

status String

The status of the Custom Routing Endpoint Traffic Policy.

Supporting Types

CustomRoutingEndpointTrafficPolicyPortRange

FromPort int

The start port of the port range of the traffic destination. The specified port must fall within the port range of the specified endpoint group.

ToPort int

The end port of the port range of the traffic destination. The specified port must fall within the port range of the specified endpoint group.

FromPort int

The start port of the port range of the traffic destination. The specified port must fall within the port range of the specified endpoint group.

ToPort int

The end port of the port range of the traffic destination. The specified port must fall within the port range of the specified endpoint group.

fromPort Integer

The start port of the port range of the traffic destination. The specified port must fall within the port range of the specified endpoint group.

toPort Integer

The end port of the port range of the traffic destination. The specified port must fall within the port range of the specified endpoint group.

fromPort number

The start port of the port range of the traffic destination. The specified port must fall within the port range of the specified endpoint group.

toPort number

The end port of the port range of the traffic destination. The specified port must fall within the port range of the specified endpoint group.

from_port int

The start port of the port range of the traffic destination. The specified port must fall within the port range of the specified endpoint group.

to_port int

The end port of the port range of the traffic destination. The specified port must fall within the port range of the specified endpoint group.

fromPort Number

The start port of the port range of the traffic destination. The specified port must fall within the port range of the specified endpoint group.

toPort Number

The end port of the port range of the traffic destination. The specified port must fall within the port range of the specified endpoint group.

Import

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

 $ pulumi import alicloud:ga/customRoutingEndpointTrafficPolicy:CustomRoutingEndpointTrafficPolicy example <endpoint_id>:<custom_routing_endpoint_traffic_policy_id>

Package Details

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

This Pulumi package is based on the alicloud Terraform Provider.