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.
- Endpoint
Id string The ID of the Custom Routing Endpoint.
- Port
Ranges List<Pulumi.Ali Cloud. Ga. Inputs. Custom Routing Endpoint Traffic Policy Port Range Args> Port rangeSee the following. See the following
Block port_ranges
.
- Address string
The IP address of the destination to which traffic is allowed.
- Endpoint
Id string The ID of the Custom Routing Endpoint.
- Port
Ranges []CustomRouting Endpoint Traffic Policy Port Range Args Port rangeSee the following. See the following
Block port_ranges
.
- address String
The IP address of the destination to which traffic is allowed.
- endpoint
Id String The ID of the Custom Routing Endpoint.
- port
Ranges List<CustomRouting Endpoint Traffic Policy Port Range Args> Port rangeSee the following. See the following
Block port_ranges
.
- address string
The IP address of the destination to which traffic is allowed.
- endpoint
Id string The ID of the Custom Routing Endpoint.
- port
Ranges CustomRouting Endpoint Traffic Policy Port Range Args[] 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[CustomRouting Endpoint Traffic Policy Port Range Args] Port rangeSee the following. See the following
Block port_ranges
.
- address String
The IP address of the destination to which traffic is allowed.
- endpoint
Id String The ID of the Custom Routing Endpoint.
- port
Ranges 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:
- Accelerator
Id string The ID of the GA instance.
- Custom
Routing stringEndpoint Traffic Policy Id The ID of the Custom Routing Endpoint Traffic Policy.
- Endpoint
Group stringId The ID of the endpoint group.
- Id string
The provider-assigned unique ID for this managed resource.
- Listener
Id string The ID of the listener.
- Status string
The status of the Custom Routing Endpoint Traffic Policy.
- Accelerator
Id string The ID of the GA instance.
- Custom
Routing stringEndpoint Traffic Policy Id The ID of the Custom Routing Endpoint Traffic Policy.
- Endpoint
Group stringId The ID of the endpoint group.
- Id string
The provider-assigned unique ID for this managed resource.
- Listener
Id string The ID of the listener.
- Status string
The status of the Custom Routing Endpoint Traffic Policy.
- accelerator
Id String The ID of the GA instance.
- custom
Routing StringEndpoint Traffic Policy Id The ID of the Custom Routing Endpoint Traffic Policy.
- endpoint
Group StringId The ID of the endpoint group.
- id String
The provider-assigned unique ID for this managed resource.
- listener
Id String The ID of the listener.
- status String
The status of the Custom Routing Endpoint Traffic Policy.
- accelerator
Id string The ID of the GA instance.
- custom
Routing stringEndpoint Traffic Policy Id The ID of the Custom Routing Endpoint Traffic Policy.
- endpoint
Group stringId The ID of the endpoint group.
- id string
The provider-assigned unique ID for this managed resource.
- listener
Id 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_ strendpoint_ traffic_ policy_ id The ID of the Custom Routing Endpoint Traffic Policy.
- endpoint_
group_ strid 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.
- accelerator
Id String The ID of the GA instance.
- custom
Routing StringEndpoint Traffic Policy Id The ID of the Custom Routing Endpoint Traffic Policy.
- endpoint
Group StringId The ID of the endpoint group.
- id String
The provider-assigned unique ID for this managed resource.
- listener
Id 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.
- Accelerator
Id string The ID of the GA instance.
- Address string
The IP address of the destination to which traffic is allowed.
- Custom
Routing stringEndpoint Traffic Policy Id The ID of the Custom Routing Endpoint Traffic Policy.
- Endpoint
Group stringId The ID of the endpoint group.
- Endpoint
Id string The ID of the Custom Routing Endpoint.
- Listener
Id string The ID of the listener.
- Port
Ranges List<Pulumi.Ali Cloud. Ga. Inputs. Custom Routing Endpoint Traffic Policy Port Range Args> Port rangeSee the following. See the following
Block port_ranges
.- Status string
The status of the Custom Routing Endpoint Traffic Policy.
- Accelerator
Id string The ID of the GA instance.
- Address string
The IP address of the destination to which traffic is allowed.
- Custom
Routing stringEndpoint Traffic Policy Id The ID of the Custom Routing Endpoint Traffic Policy.
- Endpoint
Group stringId The ID of the endpoint group.
- Endpoint
Id string The ID of the Custom Routing Endpoint.
- Listener
Id string The ID of the listener.
- Port
Ranges []CustomRouting Endpoint Traffic Policy Port Range Args Port rangeSee the following. See the following
Block port_ranges
.- Status string
The status of the Custom Routing Endpoint Traffic Policy.
- accelerator
Id String The ID of the GA instance.
- address String
The IP address of the destination to which traffic is allowed.
- custom
Routing StringEndpoint Traffic Policy Id The ID of the Custom Routing Endpoint Traffic Policy.
- endpoint
Group StringId The ID of the endpoint group.
- endpoint
Id String The ID of the Custom Routing Endpoint.
- listener
Id String The ID of the listener.
- port
Ranges List<CustomRouting Endpoint Traffic Policy Port Range Args> Port rangeSee the following. See the following
Block port_ranges
.- status String
The status of the Custom Routing Endpoint Traffic Policy.
- accelerator
Id string The ID of the GA instance.
- address string
The IP address of the destination to which traffic is allowed.
- custom
Routing stringEndpoint Traffic Policy Id The ID of the Custom Routing Endpoint Traffic Policy.
- endpoint
Group stringId The ID of the endpoint group.
- endpoint
Id string The ID of the Custom Routing Endpoint.
- listener
Id string The ID of the listener.
- port
Ranges CustomRouting Endpoint Traffic Policy Port Range Args[] 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_ strendpoint_ traffic_ policy_ id The ID of the Custom Routing Endpoint Traffic Policy.
- endpoint_
group_ strid 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[CustomRouting Endpoint Traffic Policy Port Range Args] Port rangeSee the following. See the following
Block port_ranges
.- status str
The status of the Custom Routing Endpoint Traffic Policy.
- accelerator
Id String The ID of the GA instance.
- address String
The IP address of the destination to which traffic is allowed.
- custom
Routing StringEndpoint Traffic Policy Id The ID of the Custom Routing Endpoint Traffic Policy.
- endpoint
Group StringId The ID of the endpoint group.
- endpoint
Id String The ID of the Custom Routing Endpoint.
- listener
Id String The ID of the listener.
- port
Ranges 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
- 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.
- 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.
- from
Port 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.
- to
Port 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.
- from
Port 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.
- to
Port 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.
- from
Port 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.
- to
Port 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.