Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

ForwardingRule

Provides a Global Accelerator (GA) Forwarding Rule resource.

For information about Global Accelerator (GA) Forwarding Rule and how to use it, see What is Forwarding Rule.

NOTE: Available in v1.120.0+.

Example Usage

Coming soon!

Coming soon!

package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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.IpSet;
import com.pulumi.alicloud.ga.IpSetArgs;
import com.pulumi.alicloud.ecs.EipAddress;
import com.pulumi.alicloud.ecs.EipAddressArgs;
import com.pulumi.alicloud.ga.EndpointGroup;
import com.pulumi.alicloud.ga.EndpointGroupArgs;
import com.pulumi.alicloud.ga.inputs.EndpointGroupEndpointConfigurationArgs;
import com.pulumi.alicloud.ga.inputs.EndpointGroupPortOverridesArgs;
import com.pulumi.alicloud.ga.ForwardingRule;
import com.pulumi.alicloud.ga.ForwardingRuleArgs;
import com.pulumi.alicloud.ga.inputs.ForwardingRuleRuleConditionArgs;
import com.pulumi.alicloud.ga.inputs.ForwardingRuleRuleConditionPathConfigArgs;
import com.pulumi.alicloud.ga.inputs.ForwardingRuleRuleActionArgs;
import com.pulumi.alicloud.ga.inputs.ForwardingRuleRuleActionForwardGroupConfigArgs;
import com.pulumi.resources.CustomResourceOptions;
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 exampleAccelerator = new Accelerator("exampleAccelerator", AcceleratorArgs.builder()        
            .duration(3)
            .spec("2")
            .acceleratorName("ga-tf")
            .autoUseCoupon(false)
            .description("ga-tf description")
            .autoRenewDuration("2")
            .renewalStatus("AutoRenewal")
            .build());

        var exampleBandwidthPackage = new BandwidthPackage("exampleBandwidthPackage", BandwidthPackageArgs.builder()        
            .type("Basic")
            .bandwidth(20)
            .bandwidthType("Basic")
            .duration(1)
            .timeouts(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
            .autoPay(true)
            .paymentType("Subscription")
            .billingType("PayByTraffic")
            .ratio(40)
            .autoUseCoupon(false)
            .bandwidthPackageName("bandwidth_package_name_tf")
            .description("bandwidth_package_name_tf_description")
            .build());

        var exampleBandwidthPackageAttachment = new BandwidthPackageAttachment("exampleBandwidthPackageAttachment", BandwidthPackageAttachmentArgs.builder()        
            .acceleratorId(exampleAccelerator.id())
            .bandwidthPackageId(exampleBandwidthPackage.id())
            .build());

        var exampleListener = new Listener("exampleListener", ListenerArgs.builder()        
            .acceleratorId(exampleAccelerator.id())
            .portRanges(ListenerPortRangeArgs.builder()
                .fromPort(60)
                .toPort(60)
                .build())
            .clientAffinity("SOURCE_IP")
            .description("alicloud_ga_listener_description")
            .protocol("HTTP")
            .proxyProtocol(true)
            .build(), CustomResourceOptions.builder()
                .dependsOn(exampleBandwidthPackageAttachment)
                .build());

        var exampleIpSet = new IpSet("exampleIpSet", IpSetArgs.builder()        
            .accelerateRegionId("cn-shanghai")
            .acceleratorId(exampleAccelerator.id())
            .bandwidth("20")
            .build(), CustomResourceOptions.builder()
                .dependsOn(exampleBandwidthPackageAttachment)
                .build());

        var exampleEipAddress = new EipAddress("exampleEipAddress", EipAddressArgs.builder()        
            .bandwidth("10")
            .internetChargeType("PayByBandwidth")
            .build());

        var default_ = new EndpointGroup("default", EndpointGroupArgs.builder()        
            .acceleratorId(exampleAccelerator.id())
            .endpointConfigurations(EndpointGroupEndpointConfigurationArgs.builder()
                .endpoint(exampleEipAddress.ipAddress())
                .type("PublicIp")
                .weight("20")
                .enableClientipPreservation(true)
                .build())
            .endpointGroupRegion("cn-shanghai")
            .listenerId(exampleListener.id())
            .description("alicloud_ga_endpoint_group_description")
            .endpointGroupType("default")
            .endpointRequestProtocol("HTTPS")
            .healthCheckIntervalSeconds(4)
            .healthCheckPath("/path")
            .thresholdCount(4)
            .trafficPercentage(20)
            .portOverrides(EndpointGroupPortOverridesArgs.builder()
                .endpointPort(80)
                .listenerPort(60)
                .build())
            .build());

        var virtual = new EndpointGroup("virtual", EndpointGroupArgs.builder()        
            .acceleratorId(exampleAccelerator.id())
            .endpointConfigurations(EndpointGroupEndpointConfigurationArgs.builder()
                .endpoint(exampleEipAddress.ipAddress())
                .type("PublicIp")
                .weight("20")
                .enableClientipPreservation(true)
                .build())
            .endpointGroupRegion("cn-shanghai")
            .listenerId(exampleListener.id())
            .description("alicloud_ga_endpoint_group_description")
            .endpointGroupType("virtual")
            .endpointRequestProtocol("HTTPS")
            .healthCheckIntervalSeconds(4)
            .healthCheckPath("/path")
            .thresholdCount(4)
            .trafficPercentage(20)
            .portOverrides(EndpointGroupPortOverridesArgs.builder()
                .endpointPort(80)
                .listenerPort(60)
                .build())
            .build());

        var exampleForwardingRule = new ForwardingRule("exampleForwardingRule", ForwardingRuleArgs.builder()        
            .acceleratorId(exampleAccelerator.id())
            .listenerId(exampleListener.id())
            .ruleConditions(            
                ForwardingRuleRuleConditionArgs.builder()
                    .ruleConditionType("Path")
                    .pathConfig(ForwardingRuleRuleConditionPathConfigArgs.builder()
                        .values("/testpathconfig")
                        .build())
                    .build(),
                ForwardingRuleRuleConditionArgs.builder()
                    .ruleConditionType("Host")
                    .hostConfigs(ForwardingRuleRuleConditionHostConfigArgs.builder()
                        .values("www.test.com")
                        .build())
                    .build())
            .ruleActions(ForwardingRuleRuleActionArgs.builder()
                .order("40")
                .ruleActionType("ForwardGroup")
                .forwardGroupConfig(ForwardingRuleRuleActionForwardGroupConfigArgs.builder()
                    .serverGroupTuples(ForwardingRuleRuleActionForwardGroupConfigServerGroupTupleArgs.builder()
                        .endpointGroupId(default_.id())
                        .build())
                    .build())
                .build())
            .priority(2)
            .forwardingRuleName("forwarding_rule_name")
            .build());

    }
}

Coming soon!

Coming soon!

resources:
  exampleAccelerator:
    type: alicloud:ga:Accelerator
    properties:
      duration: 3
      spec: 2
      acceleratorName: ga-tf
      autoUseCoupon: false
      description: ga-tf description
      autoRenewDuration: 2
      renewalStatus: AutoRenewal
  exampleBandwidthPackage:
    type: alicloud:ga:BandwidthPackage
    properties:
      type: Basic
      bandwidth: 20
      bandwidthType: Basic
      duration: 1
      timeouts:
        - create: 5m
      autoPay: true
      paymentType: Subscription
      billingType: PayByTraffic
      ratio: 40
      autoUseCoupon: false
      bandwidthPackageName: bandwidth_package_name_tf
      description: bandwidth_package_name_tf_description
  exampleBandwidthPackageAttachment:
    type: alicloud:ga:BandwidthPackageAttachment
    properties:
      acceleratorId: ${exampleAccelerator.id}
      bandwidthPackageId: ${exampleBandwidthPackage.id}
  exampleListener:
    type: alicloud:ga:Listener
    properties:
      acceleratorId: ${exampleAccelerator.id}
      portRanges:
        - fromPort: 60
          toPort: 60
      clientAffinity: SOURCE_IP
      description: alicloud_ga_listener_description
      protocol: HTTP
      proxyProtocol: true
    options:
      dependson:
        - ${exampleBandwidthPackageAttachment}
  exampleIpSet:
    type: alicloud:ga:IpSet
    properties:
      accelerateRegionId: cn-shanghai
      acceleratorId: ${exampleAccelerator.id}
      bandwidth: 20
    options:
      dependson:
        - ${exampleBandwidthPackageAttachment}
  exampleEipAddress:
    type: alicloud:ecs:EipAddress
    properties:
      bandwidth: 10
      internetChargeType: PayByBandwidth
  default:
    type: alicloud:ga:EndpointGroup
    properties:
      acceleratorId: ${exampleAccelerator.id}
      endpointConfigurations:
        - endpoint: ${exampleEipAddress.ipAddress}
          type: PublicIp
          weight: 20
          enableClientipPreservation: true
      endpointGroupRegion: cn-shanghai
      listenerId: ${exampleListener.id}
      description: alicloud_ga_endpoint_group_description
      endpointGroupType: default
      endpointRequestProtocol: HTTPS
      healthCheckIntervalSeconds: 4
      healthCheckPath: /path
      thresholdCount: 4
      trafficPercentage: 20
      portOverrides:
        endpointPort: 80
        listenerPort: 60
  virtual:
    type: alicloud:ga:EndpointGroup
    properties:
      acceleratorId: ${exampleAccelerator.id}
      endpointConfigurations:
        - endpoint: ${exampleEipAddress.ipAddress}
          type: PublicIp
          weight: 20
          enableClientipPreservation: true
      endpointGroupRegion: cn-shanghai
      listenerId: ${exampleListener.id}
      description: alicloud_ga_endpoint_group_description
      endpointGroupType: virtual
      endpointRequestProtocol: HTTPS
      healthCheckIntervalSeconds: 4
      healthCheckPath: /path
      thresholdCount: 4
      trafficPercentage: 20
      portOverrides:
        endpointPort: 80
        listenerPort: 60
  exampleForwardingRule:
    type: alicloud:ga:ForwardingRule
    properties:
      acceleratorId: ${exampleAccelerator.id}
      listenerId: ${exampleListener.id}
      ruleConditions:
        - ruleConditionType: Path
          pathConfig:
            values:
              - /testpathconfig
        - ruleConditionType: Host
          hostConfigs:
            - values:
                - www.test.com
      ruleActions:
        - order: 40
          ruleActionType: ForwardGroup
          forwardGroupConfig:
            serverGroupTuples:
              - endpointGroupId: ${default.id}
      priority: 2
      forwardingRuleName: forwarding_rule_name

Create a ForwardingRule Resource

new ForwardingRule(name: string, args: ForwardingRuleArgs, opts?: CustomResourceOptions);
@overload
def ForwardingRule(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   accelerator_id: Optional[str] = None,
                   forwarding_rule_name: Optional[str] = None,
                   listener_id: Optional[str] = None,
                   priority: Optional[int] = None,
                   rule_actions: Optional[Sequence[ForwardingRuleRuleActionArgs]] = None,
                   rule_conditions: Optional[Sequence[ForwardingRuleRuleConditionArgs]] = None)
@overload
def ForwardingRule(resource_name: str,
                   args: ForwardingRuleArgs,
                   opts: Optional[ResourceOptions] = None)
func NewForwardingRule(ctx *Context, name string, args ForwardingRuleArgs, opts ...ResourceOption) (*ForwardingRule, error)
public ForwardingRule(string name, ForwardingRuleArgs args, CustomResourceOptions? opts = null)
public ForwardingRule(String name, ForwardingRuleArgs args)
public ForwardingRule(String name, ForwardingRuleArgs args, CustomResourceOptions options)
type: alicloud:ga:ForwardingRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

AcceleratorId string

The ID of the Global Accelerator instance.

ListenerId string

The ID of the listener.

RuleActions List<Pulumi.AliCloud.Ga.Inputs.ForwardingRuleRuleActionArgs>

Forward action.

RuleConditions List<Pulumi.AliCloud.Ga.Inputs.ForwardingRuleRuleConditionArgs>

Forwarding condition list.

ForwardingRuleName string

Forwarding policy name. The length of the name is 2-128 English or Chinese characters. It must start with uppercase and lowercase letters or Chinese characters. It can contain numbers, half width period (.), underscores (_) And dash (-).

Priority int

Forwarding policy priority.

AcceleratorId string

The ID of the Global Accelerator instance.

ListenerId string

The ID of the listener.

RuleActions []ForwardingRuleRuleActionArgs

Forward action.

RuleConditions []ForwardingRuleRuleConditionArgs

Forwarding condition list.

ForwardingRuleName string

Forwarding policy name. The length of the name is 2-128 English or Chinese characters. It must start with uppercase and lowercase letters or Chinese characters. It can contain numbers, half width period (.), underscores (_) And dash (-).

Priority int

Forwarding policy priority.

acceleratorId String

The ID of the Global Accelerator instance.

listenerId String

The ID of the listener.

ruleActions List<ForwardingRuleRuleActionArgs>

Forward action.

ruleConditions List<ForwardingRuleRuleConditionArgs>

Forwarding condition list.

forwardingRuleName String

Forwarding policy name. The length of the name is 2-128 English or Chinese characters. It must start with uppercase and lowercase letters or Chinese characters. It can contain numbers, half width period (.), underscores (_) And dash (-).

priority Integer

Forwarding policy priority.

acceleratorId string

The ID of the Global Accelerator instance.

listenerId string

The ID of the listener.

ruleActions ForwardingRuleRuleActionArgs[]

Forward action.

ruleConditions ForwardingRuleRuleConditionArgs[]

Forwarding condition list.

forwardingRuleName string

Forwarding policy name. The length of the name is 2-128 English or Chinese characters. It must start with uppercase and lowercase letters or Chinese characters. It can contain numbers, half width period (.), underscores (_) And dash (-).

priority number

Forwarding policy priority.

accelerator_id str

The ID of the Global Accelerator instance.

listener_id str

The ID of the listener.

rule_actions Sequence[ForwardingRuleRuleActionArgs]

Forward action.

rule_conditions Sequence[ForwardingRuleRuleConditionArgs]

Forwarding condition list.

forwarding_rule_name str

Forwarding policy name. The length of the name is 2-128 English or Chinese characters. It must start with uppercase and lowercase letters or Chinese characters. It can contain numbers, half width period (.), underscores (_) And dash (-).

priority int

Forwarding policy priority.

acceleratorId String

The ID of the Global Accelerator instance.

listenerId String

The ID of the listener.

ruleActions List<Property Map>

Forward action.

ruleConditions List<Property Map>

Forwarding condition list.

forwardingRuleName String

Forwarding policy name. The length of the name is 2-128 English or Chinese characters. It must start with uppercase and lowercase letters or Chinese characters. It can contain numbers, half width period (.), underscores (_) And dash (-).

priority Number

Forwarding policy priority.

Outputs

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

ForwardingRuleId string

Forwarding Policy ID.

ForwardingRuleStatus string

Forwarding Policy Status.

Id string

The provider-assigned unique ID for this managed resource.

ForwardingRuleId string

Forwarding Policy ID.

ForwardingRuleStatus string

Forwarding Policy Status.

Id string

The provider-assigned unique ID for this managed resource.

forwardingRuleId String

Forwarding Policy ID.

forwardingRuleStatus String

Forwarding Policy Status.

id String

The provider-assigned unique ID for this managed resource.

forwardingRuleId string

Forwarding Policy ID.

forwardingRuleStatus string

Forwarding Policy Status.

id string

The provider-assigned unique ID for this managed resource.

forwarding_rule_id str

Forwarding Policy ID.

forwarding_rule_status str

Forwarding Policy Status.

id str

The provider-assigned unique ID for this managed resource.

forwardingRuleId String

Forwarding Policy ID.

forwardingRuleStatus String

Forwarding Policy Status.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing ForwardingRule Resource

Get an existing ForwardingRule 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?: ForwardingRuleState, opts?: CustomResourceOptions): ForwardingRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        accelerator_id: Optional[str] = None,
        forwarding_rule_id: Optional[str] = None,
        forwarding_rule_name: Optional[str] = None,
        forwarding_rule_status: Optional[str] = None,
        listener_id: Optional[str] = None,
        priority: Optional[int] = None,
        rule_actions: Optional[Sequence[ForwardingRuleRuleActionArgs]] = None,
        rule_conditions: Optional[Sequence[ForwardingRuleRuleConditionArgs]] = None) -> ForwardingRule
func GetForwardingRule(ctx *Context, name string, id IDInput, state *ForwardingRuleState, opts ...ResourceOption) (*ForwardingRule, error)
public static ForwardingRule Get(string name, Input<string> id, ForwardingRuleState? state, CustomResourceOptions? opts = null)
public static ForwardingRule get(String name, Output<String> id, ForwardingRuleState 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 Global Accelerator instance.

ForwardingRuleId string

Forwarding Policy ID.

ForwardingRuleName string

Forwarding policy name. The length of the name is 2-128 English or Chinese characters. It must start with uppercase and lowercase letters or Chinese characters. It can contain numbers, half width period (.), underscores (_) And dash (-).

ForwardingRuleStatus string

Forwarding Policy Status.

ListenerId string

The ID of the listener.

Priority int

Forwarding policy priority.

RuleActions List<Pulumi.AliCloud.Ga.Inputs.ForwardingRuleRuleActionArgs>

Forward action.

RuleConditions List<Pulumi.AliCloud.Ga.Inputs.ForwardingRuleRuleConditionArgs>

Forwarding condition list.

AcceleratorId string

The ID of the Global Accelerator instance.

ForwardingRuleId string

Forwarding Policy ID.

ForwardingRuleName string

Forwarding policy name. The length of the name is 2-128 English or Chinese characters. It must start with uppercase and lowercase letters or Chinese characters. It can contain numbers, half width period (.), underscores (_) And dash (-).

ForwardingRuleStatus string

Forwarding Policy Status.

ListenerId string

The ID of the listener.

Priority int

Forwarding policy priority.

RuleActions []ForwardingRuleRuleActionArgs

Forward action.

RuleConditions []ForwardingRuleRuleConditionArgs

Forwarding condition list.

acceleratorId String

The ID of the Global Accelerator instance.

forwardingRuleId String

Forwarding Policy ID.

forwardingRuleName String

Forwarding policy name. The length of the name is 2-128 English or Chinese characters. It must start with uppercase and lowercase letters or Chinese characters. It can contain numbers, half width period (.), underscores (_) And dash (-).

forwardingRuleStatus String

Forwarding Policy Status.

listenerId String

The ID of the listener.

priority Integer

Forwarding policy priority.

ruleActions List<ForwardingRuleRuleActionArgs>

Forward action.

ruleConditions List<ForwardingRuleRuleConditionArgs>

Forwarding condition list.

acceleratorId string

The ID of the Global Accelerator instance.

forwardingRuleId string

Forwarding Policy ID.

forwardingRuleName string

Forwarding policy name. The length of the name is 2-128 English or Chinese characters. It must start with uppercase and lowercase letters or Chinese characters. It can contain numbers, half width period (.), underscores (_) And dash (-).

forwardingRuleStatus string

Forwarding Policy Status.

listenerId string

The ID of the listener.

priority number

Forwarding policy priority.

ruleActions ForwardingRuleRuleActionArgs[]

Forward action.

ruleConditions ForwardingRuleRuleConditionArgs[]

Forwarding condition list.

accelerator_id str

The ID of the Global Accelerator instance.

forwarding_rule_id str

Forwarding Policy ID.

forwarding_rule_name str

Forwarding policy name. The length of the name is 2-128 English or Chinese characters. It must start with uppercase and lowercase letters or Chinese characters. It can contain numbers, half width period (.), underscores (_) And dash (-).

forwarding_rule_status str

Forwarding Policy Status.

listener_id str

The ID of the listener.

priority int

Forwarding policy priority.

rule_actions Sequence[ForwardingRuleRuleActionArgs]

Forward action.

rule_conditions Sequence[ForwardingRuleRuleConditionArgs]

Forwarding condition list.

acceleratorId String

The ID of the Global Accelerator instance.

forwardingRuleId String

Forwarding Policy ID.

forwardingRuleName String

Forwarding policy name. The length of the name is 2-128 English or Chinese characters. It must start with uppercase and lowercase letters or Chinese characters. It can contain numbers, half width period (.), underscores (_) And dash (-).

forwardingRuleStatus String

Forwarding Policy Status.

listenerId String

The ID of the listener.

priority Number

Forwarding policy priority.

ruleActions List<Property Map>

Forward action.

ruleConditions List<Property Map>

Forwarding condition list.

Supporting Types

ForwardingRuleRuleAction

ForwardGroupConfig Pulumi.AliCloud.Ga.Inputs.ForwardingRuleRuleActionForwardGroupConfig

Forwarding configuration.

Order int

Forwarding priority.

RuleActionType string

Forward action type. Default: forwardgroup.

ForwardGroupConfig ForwardingRuleRuleActionForwardGroupConfig

Forwarding configuration.

Order int

Forwarding priority.

RuleActionType string

Forward action type. Default: forwardgroup.

forwardGroupConfig ForwardingRuleRuleActionForwardGroupConfig

Forwarding configuration.

order Integer

Forwarding priority.

ruleActionType String

Forward action type. Default: forwardgroup.

forwardGroupConfig ForwardingRuleRuleActionForwardGroupConfig

Forwarding configuration.

order number

Forwarding priority.

ruleActionType string

Forward action type. Default: forwardgroup.

forward_group_config ForwardingRuleRuleActionForwardGroupConfig

Forwarding configuration.

order int

Forwarding priority.

rule_action_type str

Forward action type. Default: forwardgroup.

forwardGroupConfig Property Map

Forwarding configuration.

order Number

Forwarding priority.

ruleActionType String

Forward action type. Default: forwardgroup.

ForwardingRuleRuleActionForwardGroupConfig

serverGroupTuples List<Property Map>

Terminal node group configuration.

ForwardingRuleRuleActionForwardGroupConfigServerGroupTuple

EndpointGroupId string

Terminal node group ID.

EndpointGroupId string

Terminal node group ID.

endpointGroupId String

Terminal node group ID.

endpointGroupId string

Terminal node group ID.

endpoint_group_id str

Terminal node group ID.

endpointGroupId String

Terminal node group ID.

ForwardingRuleRuleCondition

RuleConditionType string

Forwarding condition type. Valid value: Host, Path.

HostConfigs List<Pulumi.AliCloud.Ga.Inputs.ForwardingRuleRuleConditionHostConfig>

Domain name configuration information.

PathConfig Pulumi.AliCloud.Ga.Inputs.ForwardingRuleRuleConditionPathConfig

Path configuration information.

RuleConditionType string

Forwarding condition type. Valid value: Host, Path.

HostConfigs []ForwardingRuleRuleConditionHostConfig

Domain name configuration information.

PathConfig ForwardingRuleRuleConditionPathConfig

Path configuration information.

ruleConditionType String

Forwarding condition type. Valid value: Host, Path.

hostConfigs List<ForwardingRuleRuleConditionHostConfig>

Domain name configuration information.

pathConfig ForwardingRuleRuleConditionPathConfig

Path configuration information.

ruleConditionType string

Forwarding condition type. Valid value: Host, Path.

hostConfigs ForwardingRuleRuleConditionHostConfig[]

Domain name configuration information.

pathConfig ForwardingRuleRuleConditionPathConfig

Path configuration information.

rule_condition_type str

Forwarding condition type. Valid value: Host, Path.

host_configs Sequence[ForwardingRuleRuleConditionHostConfig]

Domain name configuration information.

path_config ForwardingRuleRuleConditionPathConfig

Path configuration information.

ruleConditionType String

Forwarding condition type. Valid value: Host, Path.

hostConfigs List<Property Map>

Domain name configuration information.

pathConfig Property Map

Path configuration information.

ForwardingRuleRuleConditionHostConfig

Values List<string>

The domain name is 3-128 characters long, which can contain letters, numbers, dashes (-) and width period (.), and supports the use of asterisk (*) and width question mark (?) as wildcard characters.

Values []string

The domain name is 3-128 characters long, which can contain letters, numbers, dashes (-) and width period (.), and supports the use of asterisk (*) and width question mark (?) as wildcard characters.

values List<String>

The domain name is 3-128 characters long, which can contain letters, numbers, dashes (-) and width period (.), and supports the use of asterisk (*) and width question mark (?) as wildcard characters.

values string[]

The domain name is 3-128 characters long, which can contain letters, numbers, dashes (-) and width period (.), and supports the use of asterisk (*) and width question mark (?) as wildcard characters.

values Sequence[str]

The domain name is 3-128 characters long, which can contain letters, numbers, dashes (-) and width period (.), and supports the use of asterisk (*) and width question mark (?) as wildcard characters.

values List<String>

The domain name is 3-128 characters long, which can contain letters, numbers, dashes (-) and width period (.), and supports the use of asterisk (*) and width question mark (?) as wildcard characters.

ForwardingRuleRuleConditionPathConfig

Values List<string>

The domain name is 3-128 characters long, which can contain letters, numbers, dashes (-) and width period (.), and supports the use of asterisk (*) and width question mark (?) as wildcard characters.

Values []string

The domain name is 3-128 characters long, which can contain letters, numbers, dashes (-) and width period (.), and supports the use of asterisk (*) and width question mark (?) as wildcard characters.

values List<String>

The domain name is 3-128 characters long, which can contain letters, numbers, dashes (-) and width period (.), and supports the use of asterisk (*) and width question mark (?) as wildcard characters.

values string[]

The domain name is 3-128 characters long, which can contain letters, numbers, dashes (-) and width period (.), and supports the use of asterisk (*) and width question mark (?) as wildcard characters.

values Sequence[str]

The domain name is 3-128 characters long, which can contain letters, numbers, dashes (-) and width period (.), and supports the use of asterisk (*) and width question mark (?) as wildcard characters.

values List<String>

The domain name is 3-128 characters long, which can contain letters, numbers, dashes (-) and width period (.), and supports the use of asterisk (*) and width question mark (?) as wildcard characters.

Import

Ga Forwarding Rule can be imported using the id, e.g.

 $ pulumi import alicloud:ga/forwardingRule:ForwardingRule example <id>

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.