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).
- Endpoint
Group stringId The ID of the endpoint group in which to create endpoints.
- Type string
The backend service type of the endpoint. Valid values:
PrivateSubNet
.- Traffic
To stringEndpoint Policy The access policy of traffic to the endpoint. Default value:
DenyAll
. Valid values:
- Endpoint string
The ID of the endpoint (vSwitch).
- Endpoint
Group stringId The ID of the endpoint group in which to create endpoints.
- Type string
The backend service type of the endpoint. Valid values:
PrivateSubNet
.- Traffic
To stringEndpoint Policy The access policy of traffic to the endpoint. Default value:
DenyAll
. Valid values:
- endpoint String
The ID of the endpoint (vSwitch).
- endpoint
Group StringId The ID of the endpoint group in which to create endpoints.
- type String
The backend service type of the endpoint. Valid values:
PrivateSubNet
.- traffic
To StringEndpoint Policy The access policy of traffic to the endpoint. Default value:
DenyAll
. Valid values:
- endpoint string
The ID of the endpoint (vSwitch).
- endpoint
Group stringId The ID of the endpoint group in which to create endpoints.
- type string
The backend service type of the endpoint. Valid values:
PrivateSubNet
.- traffic
To stringEndpoint Policy The access policy of traffic to the endpoint. Default value:
DenyAll
. Valid values:
- endpoint str
The ID of the endpoint (vSwitch).
- endpoint_
group_ strid 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_ strendpoint_ policy The access policy of traffic to the endpoint. Default value:
DenyAll
. Valid values:
- endpoint String
The ID of the endpoint (vSwitch).
- endpoint
Group StringId The ID of the endpoint group in which to create endpoints.
- type String
The backend service type of the endpoint. Valid values:
PrivateSubNet
.- traffic
To StringEndpoint Policy 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:
- Accelerator
Id string The ID of the GA instance with which the endpoint is associated.
- Custom
Routing stringEndpoint Id The ID of the Custom Routing Endpoint.
- Id string
The provider-assigned unique ID for this managed resource.
- Listener
Id string The ID of the listener with which the endpoint is associated.
- Status string
The status of the Custom Routing Endpoint.
- Accelerator
Id string The ID of the GA instance with which the endpoint is associated.
- Custom
Routing stringEndpoint Id The ID of the Custom Routing Endpoint.
- Id string
The provider-assigned unique ID for this managed resource.
- Listener
Id string The ID of the listener with which the endpoint is associated.
- Status string
The status of the Custom Routing Endpoint.
- accelerator
Id String The ID of the GA instance with which the endpoint is associated.
- custom
Routing StringEndpoint Id The ID of the Custom Routing Endpoint.
- id String
The provider-assigned unique ID for this managed resource.
- listener
Id String The ID of the listener with which the endpoint is associated.
- status String
The status of the Custom Routing Endpoint.
- accelerator
Id string The ID of the GA instance with which the endpoint is associated.
- custom
Routing stringEndpoint Id The ID of the Custom Routing Endpoint.
- id string
The provider-assigned unique ID for this managed resource.
- listener
Id 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_ strendpoint_ id 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.
- accelerator
Id String The ID of the GA instance with which the endpoint is associated.
- custom
Routing StringEndpoint Id The ID of the Custom Routing Endpoint.
- id String
The provider-assigned unique ID for this managed resource.
- listener
Id 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.
- Accelerator
Id string The ID of the GA instance with which the endpoint is associated.
- Custom
Routing stringEndpoint Id The ID of the Custom Routing Endpoint.
- Endpoint string
The ID of the endpoint (vSwitch).
- Endpoint
Group stringId The ID of the endpoint group in which to create endpoints.
- Listener
Id string The ID of the listener with which the endpoint is associated.
- Status string
The status of the Custom Routing Endpoint.
- Traffic
To stringEndpoint Policy 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 string The ID of the GA instance with which the endpoint is associated.
- Custom
Routing stringEndpoint Id The ID of the Custom Routing Endpoint.
- Endpoint string
The ID of the endpoint (vSwitch).
- Endpoint
Group stringId The ID of the endpoint group in which to create endpoints.
- Listener
Id string The ID of the listener with which the endpoint is associated.
- Status string
The status of the Custom Routing Endpoint.
- Traffic
To stringEndpoint Policy 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 String The ID of the GA instance with which the endpoint is associated.
- custom
Routing StringEndpoint Id The ID of the Custom Routing Endpoint.
- endpoint String
The ID of the endpoint (vSwitch).
- endpoint
Group StringId The ID of the endpoint group in which to create endpoints.
- listener
Id String The ID of the listener with which the endpoint is associated.
- status String
The status of the Custom Routing Endpoint.
- traffic
To StringEndpoint Policy 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 string The ID of the GA instance with which the endpoint is associated.
- custom
Routing stringEndpoint Id The ID of the Custom Routing Endpoint.
- endpoint string
The ID of the endpoint (vSwitch).
- endpoint
Group stringId The ID of the endpoint group in which to create endpoints.
- listener
Id string The ID of the listener with which the endpoint is associated.
- status string
The status of the Custom Routing Endpoint.
- traffic
To stringEndpoint Policy 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_ strendpoint_ id The ID of the Custom Routing Endpoint.
- endpoint str
The ID of the endpoint (vSwitch).
- endpoint_
group_ strid 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_ strendpoint_ policy 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
.
- accelerator
Id String The ID of the GA instance with which the endpoint is associated.
- custom
Routing StringEndpoint Id The ID of the Custom Routing Endpoint.
- endpoint String
The ID of the endpoint (vSwitch).
- endpoint
Group StringId The ID of the endpoint group in which to create endpoints.
- listener
Id String The ID of the listener with which the endpoint is associated.
- status String
The status of the Custom Routing Endpoint.
- traffic
To StringEndpoint Policy 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.