1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ga
  5. ForwardingRule
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.ga.ForwardingRule

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    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 since v1.120.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const region = config.get("region") || "cn-hangzhou";
    const name = config.get("name") || "tf-example";
    const default = alicloud.getRegions({
        current: true,
    });
    const exampleAccelerator = new alicloud.ga.Accelerator("exampleAccelerator", {
        duration: 3,
        spec: "2",
        acceleratorName: name,
        autoUseCoupon: false,
        description: name,
        autoRenewDuration: 2,
        renewalStatus: "AutoRenewal",
    });
    const exampleBandwidthPackage = new alicloud.ga.BandwidthPackage("exampleBandwidthPackage", {
        type: "Basic",
        bandwidth: 20,
        bandwidthType: "Basic",
        duration: "1",
        autoPay: true,
        paymentType: "Subscription",
        autoUseCoupon: false,
        bandwidthPackageName: name,
        description: name,
    });
    const exampleBandwidthPackageAttachment = new alicloud.ga.BandwidthPackageAttachment("exampleBandwidthPackageAttachment", {
        acceleratorId: exampleAccelerator.id,
        bandwidthPackageId: exampleBandwidthPackage.id,
    });
    const exampleListener = new alicloud.ga.Listener("exampleListener", {
        acceleratorId: exampleBandwidthPackageAttachment.acceleratorId,
        clientAffinity: "SOURCE_IP",
        description: name,
        protocol: "HTTP",
        proxyProtocol: true,
        portRanges: [{
            fromPort: 60,
            toPort: 60,
        }],
    });
    const exampleEipAddress = new alicloud.ecs.EipAddress("exampleEipAddress", {
        bandwidth: "10",
        internetChargeType: "PayByBandwidth",
    });
    const virtual = new alicloud.ga.EndpointGroup("virtual", {
        acceleratorId: exampleAccelerator.id,
        endpointConfigurations: [{
            endpoint: exampleEipAddress.ipAddress,
            type: "PublicIp",
            weight: 20,
            enableClientipPreservation: true,
        }],
        endpointGroupRegion: _default.then(_default => _default.regions?.[0]?.id),
        listenerId: exampleListener.id,
        description: name,
        endpointGroupType: "virtual",
        endpointRequestProtocol: "HTTPS",
        healthCheckIntervalSeconds: 4,
        healthCheckPath: "/path",
        thresholdCount: 4,
        trafficPercentage: 20,
        portOverrides: {
            endpointPort: 80,
            listenerPort: 60,
        },
    });
    const exampleForwardingRule = new alicloud.ga.ForwardingRule("exampleForwardingRule", {
        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: virtual.id,
                }],
            },
        }],
        priority: 2,
        forwardingRuleName: name,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    region = config.get("region")
    if region is None:
        region = "cn-hangzhou"
    name = config.get("name")
    if name is None:
        name = "tf-example"
    default = alicloud.get_regions(current=True)
    example_accelerator = alicloud.ga.Accelerator("exampleAccelerator",
        duration=3,
        spec="2",
        accelerator_name=name,
        auto_use_coupon=False,
        description=name,
        auto_renew_duration=2,
        renewal_status="AutoRenewal")
    example_bandwidth_package = alicloud.ga.BandwidthPackage("exampleBandwidthPackage",
        type="Basic",
        bandwidth=20,
        bandwidth_type="Basic",
        duration="1",
        auto_pay=True,
        payment_type="Subscription",
        auto_use_coupon=False,
        bandwidth_package_name=name,
        description=name)
    example_bandwidth_package_attachment = alicloud.ga.BandwidthPackageAttachment("exampleBandwidthPackageAttachment",
        accelerator_id=example_accelerator.id,
        bandwidth_package_id=example_bandwidth_package.id)
    example_listener = alicloud.ga.Listener("exampleListener",
        accelerator_id=example_bandwidth_package_attachment.accelerator_id,
        client_affinity="SOURCE_IP",
        description=name,
        protocol="HTTP",
        proxy_protocol=True,
        port_ranges=[alicloud.ga.ListenerPortRangeArgs(
            from_port=60,
            to_port=60,
        )])
    example_eip_address = alicloud.ecs.EipAddress("exampleEipAddress",
        bandwidth="10",
        internet_charge_type="PayByBandwidth")
    virtual = alicloud.ga.EndpointGroup("virtual",
        accelerator_id=example_accelerator.id,
        endpoint_configurations=[alicloud.ga.EndpointGroupEndpointConfigurationArgs(
            endpoint=example_eip_address.ip_address,
            type="PublicIp",
            weight=20,
            enable_clientip_preservation=True,
        )],
        endpoint_group_region=default.regions[0].id,
        listener_id=example_listener.id,
        description=name,
        endpoint_group_type="virtual",
        endpoint_request_protocol="HTTPS",
        health_check_interval_seconds=4,
        health_check_path="/path",
        threshold_count=4,
        traffic_percentage=20,
        port_overrides=alicloud.ga.EndpointGroupPortOverridesArgs(
            endpoint_port=80,
            listener_port=60,
        ))
    example_forwarding_rule = alicloud.ga.ForwardingRule("exampleForwardingRule",
        accelerator_id=example_accelerator.id,
        listener_id=example_listener.id,
        rule_conditions=[
            alicloud.ga.ForwardingRuleRuleConditionArgs(
                rule_condition_type="Path",
                path_config=alicloud.ga.ForwardingRuleRuleConditionPathConfigArgs(
                    values=["/testpathconfig"],
                ),
            ),
            alicloud.ga.ForwardingRuleRuleConditionArgs(
                rule_condition_type="Host",
                host_configs=[alicloud.ga.ForwardingRuleRuleConditionHostConfigArgs(
                    values=["www.test.com"],
                )],
            ),
        ],
        rule_actions=[alicloud.ga.ForwardingRuleRuleActionArgs(
            order=40,
            rule_action_type="ForwardGroup",
            forward_group_config=alicloud.ga.ForwardingRuleRuleActionForwardGroupConfigArgs(
                server_group_tuples=[alicloud.ga.ForwardingRuleRuleActionForwardGroupConfigServerGroupTupleArgs(
                    endpoint_group_id=virtual.id,
                )],
            ),
        )],
        priority=2,
        forwarding_rule_name=name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ga"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		region := "cn-hangzhou"
    		if param := cfg.Get("region"); param != "" {
    			region = param
    		}
    		name := "tf-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{
    			Current: pulumi.BoolRef(true),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		exampleAccelerator, err := ga.NewAccelerator(ctx, "exampleAccelerator", &ga.AcceleratorArgs{
    			Duration:          pulumi.Int(3),
    			Spec:              pulumi.String("2"),
    			AcceleratorName:   pulumi.String(name),
    			AutoUseCoupon:     pulumi.Bool(false),
    			Description:       pulumi.String(name),
    			AutoRenewDuration: pulumi.Int(2),
    			RenewalStatus:     pulumi.String("AutoRenewal"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleBandwidthPackage, err := ga.NewBandwidthPackage(ctx, "exampleBandwidthPackage", &ga.BandwidthPackageArgs{
    			Type:                 pulumi.String("Basic"),
    			Bandwidth:            pulumi.Int(20),
    			BandwidthType:        pulumi.String("Basic"),
    			Duration:             pulumi.String("1"),
    			AutoPay:              pulumi.Bool(true),
    			PaymentType:          pulumi.String("Subscription"),
    			AutoUseCoupon:        pulumi.Bool(false),
    			BandwidthPackageName: pulumi.String(name),
    			Description:          pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		exampleBandwidthPackageAttachment, err := ga.NewBandwidthPackageAttachment(ctx, "exampleBandwidthPackageAttachment", &ga.BandwidthPackageAttachmentArgs{
    			AcceleratorId:      exampleAccelerator.ID(),
    			BandwidthPackageId: exampleBandwidthPackage.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		exampleListener, err := ga.NewListener(ctx, "exampleListener", &ga.ListenerArgs{
    			AcceleratorId:  exampleBandwidthPackageAttachment.AcceleratorId,
    			ClientAffinity: pulumi.String("SOURCE_IP"),
    			Description:    pulumi.String(name),
    			Protocol:       pulumi.String("HTTP"),
    			ProxyProtocol:  pulumi.Bool(true),
    			PortRanges: ga.ListenerPortRangeArray{
    				&ga.ListenerPortRangeArgs{
    					FromPort: pulumi.Int(60),
    					ToPort:   pulumi.Int(60),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleEipAddress, err := ecs.NewEipAddress(ctx, "exampleEipAddress", &ecs.EipAddressArgs{
    			Bandwidth:          pulumi.String("10"),
    			InternetChargeType: pulumi.String("PayByBandwidth"),
    		})
    		if err != nil {
    			return err
    		}
    		virtual, err := ga.NewEndpointGroup(ctx, "virtual", &ga.EndpointGroupArgs{
    			AcceleratorId: exampleAccelerator.ID(),
    			EndpointConfigurations: ga.EndpointGroupEndpointConfigurationArray{
    				&ga.EndpointGroupEndpointConfigurationArgs{
    					Endpoint:                   exampleEipAddress.IpAddress,
    					Type:                       pulumi.String("PublicIp"),
    					Weight:                     pulumi.Int(20),
    					EnableClientipPreservation: pulumi.Bool(true),
    				},
    			},
    			EndpointGroupRegion:        pulumi.String(_default.Regions[0].Id),
    			ListenerId:                 exampleListener.ID(),
    			Description:                pulumi.String(name),
    			EndpointGroupType:          pulumi.String("virtual"),
    			EndpointRequestProtocol:    pulumi.String("HTTPS"),
    			HealthCheckIntervalSeconds: pulumi.Int(4),
    			HealthCheckPath:            pulumi.String("/path"),
    			ThresholdCount:             pulumi.Int(4),
    			TrafficPercentage:          pulumi.Int(20),
    			PortOverrides: &ga.EndpointGroupPortOverridesArgs{
    				EndpointPort: pulumi.Int(80),
    				ListenerPort: pulumi.Int(60),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ga.NewForwardingRule(ctx, "exampleForwardingRule", &ga.ForwardingRuleArgs{
    			AcceleratorId: exampleAccelerator.ID(),
    			ListenerId:    exampleListener.ID(),
    			RuleConditions: ga.ForwardingRuleRuleConditionArray{
    				&ga.ForwardingRuleRuleConditionArgs{
    					RuleConditionType: pulumi.String("Path"),
    					PathConfig: &ga.ForwardingRuleRuleConditionPathConfigArgs{
    						Values: pulumi.StringArray{
    							pulumi.String("/testpathconfig"),
    						},
    					},
    				},
    				&ga.ForwardingRuleRuleConditionArgs{
    					RuleConditionType: pulumi.String("Host"),
    					HostConfigs: ga.ForwardingRuleRuleConditionHostConfigArray{
    						&ga.ForwardingRuleRuleConditionHostConfigArgs{
    							Values: pulumi.StringArray{
    								pulumi.String("www.test.com"),
    							},
    						},
    					},
    				},
    			},
    			RuleActions: ga.ForwardingRuleRuleActionArray{
    				&ga.ForwardingRuleRuleActionArgs{
    					Order:          pulumi.Int(40),
    					RuleActionType: pulumi.String("ForwardGroup"),
    					ForwardGroupConfig: &ga.ForwardingRuleRuleActionForwardGroupConfigArgs{
    						ServerGroupTuples: ga.ForwardingRuleRuleActionForwardGroupConfigServerGroupTupleArray{
    							&ga.ForwardingRuleRuleActionForwardGroupConfigServerGroupTupleArgs{
    								EndpointGroupId: virtual.ID(),
    							},
    						},
    					},
    				},
    			},
    			Priority:           pulumi.Int(2),
    			ForwardingRuleName: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var region = config.Get("region") ?? "cn-hangzhou";
        var name = config.Get("name") ?? "tf-example";
        var @default = AliCloud.GetRegions.Invoke(new()
        {
            Current = true,
        });
    
        var exampleAccelerator = new AliCloud.Ga.Accelerator("exampleAccelerator", new()
        {
            Duration = 3,
            Spec = "2",
            AcceleratorName = name,
            AutoUseCoupon = false,
            Description = name,
            AutoRenewDuration = 2,
            RenewalStatus = "AutoRenewal",
        });
    
        var exampleBandwidthPackage = new AliCloud.Ga.BandwidthPackage("exampleBandwidthPackage", new()
        {
            Type = "Basic",
            Bandwidth = 20,
            BandwidthType = "Basic",
            Duration = "1",
            AutoPay = true,
            PaymentType = "Subscription",
            AutoUseCoupon = false,
            BandwidthPackageName = name,
            Description = name,
        });
    
        var exampleBandwidthPackageAttachment = new AliCloud.Ga.BandwidthPackageAttachment("exampleBandwidthPackageAttachment", new()
        {
            AcceleratorId = exampleAccelerator.Id,
            BandwidthPackageId = exampleBandwidthPackage.Id,
        });
    
        var exampleListener = new AliCloud.Ga.Listener("exampleListener", new()
        {
            AcceleratorId = exampleBandwidthPackageAttachment.AcceleratorId,
            ClientAffinity = "SOURCE_IP",
            Description = name,
            Protocol = "HTTP",
            ProxyProtocol = true,
            PortRanges = new[]
            {
                new AliCloud.Ga.Inputs.ListenerPortRangeArgs
                {
                    FromPort = 60,
                    ToPort = 60,
                },
            },
        });
    
        var exampleEipAddress = new AliCloud.Ecs.EipAddress("exampleEipAddress", new()
        {
            Bandwidth = "10",
            InternetChargeType = "PayByBandwidth",
        });
    
        var @virtual = new AliCloud.Ga.EndpointGroup("virtual", new()
        {
            AcceleratorId = exampleAccelerator.Id,
            EndpointConfigurations = new[]
            {
                new AliCloud.Ga.Inputs.EndpointGroupEndpointConfigurationArgs
                {
                    Endpoint = exampleEipAddress.IpAddress,
                    Type = "PublicIp",
                    Weight = 20,
                    EnableClientipPreservation = true,
                },
            },
            EndpointGroupRegion = @default.Apply(@default => @default.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Id)),
            ListenerId = exampleListener.Id,
            Description = name,
            EndpointGroupType = "virtual",
            EndpointRequestProtocol = "HTTPS",
            HealthCheckIntervalSeconds = 4,
            HealthCheckPath = "/path",
            ThresholdCount = 4,
            TrafficPercentage = 20,
            PortOverrides = new AliCloud.Ga.Inputs.EndpointGroupPortOverridesArgs
            {
                EndpointPort = 80,
                ListenerPort = 60,
            },
        });
    
        var exampleForwardingRule = new AliCloud.Ga.ForwardingRule("exampleForwardingRule", new()
        {
            AcceleratorId = exampleAccelerator.Id,
            ListenerId = exampleListener.Id,
            RuleConditions = new[]
            {
                new AliCloud.Ga.Inputs.ForwardingRuleRuleConditionArgs
                {
                    RuleConditionType = "Path",
                    PathConfig = new AliCloud.Ga.Inputs.ForwardingRuleRuleConditionPathConfigArgs
                    {
                        Values = new[]
                        {
                            "/testpathconfig",
                        },
                    },
                },
                new AliCloud.Ga.Inputs.ForwardingRuleRuleConditionArgs
                {
                    RuleConditionType = "Host",
                    HostConfigs = new[]
                    {
                        new AliCloud.Ga.Inputs.ForwardingRuleRuleConditionHostConfigArgs
                        {
                            Values = new[]
                            {
                                "www.test.com",
                            },
                        },
                    },
                },
            },
            RuleActions = new[]
            {
                new AliCloud.Ga.Inputs.ForwardingRuleRuleActionArgs
                {
                    Order = 40,
                    RuleActionType = "ForwardGroup",
                    ForwardGroupConfig = new AliCloud.Ga.Inputs.ForwardingRuleRuleActionForwardGroupConfigArgs
                    {
                        ServerGroupTuples = new[]
                        {
                            new AliCloud.Ga.Inputs.ForwardingRuleRuleActionForwardGroupConfigServerGroupTupleArgs
                            {
                                EndpointGroupId = @virtual.Id,
                            },
                        },
                    },
                },
            },
            Priority = 2,
            ForwardingRuleName = name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetRegionsArgs;
    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.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 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) {
            final var config = ctx.config();
            final var region = config.get("region").orElse("cn-hangzhou");
            final var name = config.get("name").orElse("tf-example");
            final var default = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
                .current(true)
                .build());
    
            var exampleAccelerator = new Accelerator("exampleAccelerator", AcceleratorArgs.builder()        
                .duration(3)
                .spec("2")
                .acceleratorName(name)
                .autoUseCoupon(false)
                .description(name)
                .autoRenewDuration("2")
                .renewalStatus("AutoRenewal")
                .build());
    
            var exampleBandwidthPackage = new BandwidthPackage("exampleBandwidthPackage", BandwidthPackageArgs.builder()        
                .type("Basic")
                .bandwidth(20)
                .bandwidthType("Basic")
                .duration(1)
                .autoPay(true)
                .paymentType("Subscription")
                .autoUseCoupon(false)
                .bandwidthPackageName(name)
                .description(name)
                .build());
    
            var exampleBandwidthPackageAttachment = new BandwidthPackageAttachment("exampleBandwidthPackageAttachment", BandwidthPackageAttachmentArgs.builder()        
                .acceleratorId(exampleAccelerator.id())
                .bandwidthPackageId(exampleBandwidthPackage.id())
                .build());
    
            var exampleListener = new Listener("exampleListener", ListenerArgs.builder()        
                .acceleratorId(exampleBandwidthPackageAttachment.acceleratorId())
                .clientAffinity("SOURCE_IP")
                .description(name)
                .protocol("HTTP")
                .proxyProtocol(true)
                .portRanges(ListenerPortRangeArgs.builder()
                    .fromPort(60)
                    .toPort(60)
                    .build())
                .build());
    
            var exampleEipAddress = new EipAddress("exampleEipAddress", EipAddressArgs.builder()        
                .bandwidth("10")
                .internetChargeType("PayByBandwidth")
                .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(default_.regions()[0].id())
                .listenerId(exampleListener.id())
                .description(name)
                .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(virtual.id())
                            .build())
                        .build())
                    .build())
                .priority(2)
                .forwardingRuleName(name)
                .build());
    
        }
    }
    
    configuration:
      region:
        type: string
        default: cn-hangzhou
      name:
        type: string
        default: tf-example
    resources:
      exampleAccelerator:
        type: alicloud:ga:Accelerator
        properties:
          duration: 3
          spec: '2'
          acceleratorName: ${name}
          autoUseCoupon: false
          description: ${name}
          autoRenewDuration: '2'
          renewalStatus: AutoRenewal
      exampleBandwidthPackage:
        type: alicloud:ga:BandwidthPackage
        properties:
          type: Basic
          bandwidth: 20
          bandwidthType: Basic
          duration: 1
          autoPay: true
          paymentType: Subscription
          autoUseCoupon: false
          bandwidthPackageName: ${name}
          description: ${name}
      exampleBandwidthPackageAttachment:
        type: alicloud:ga:BandwidthPackageAttachment
        properties:
          acceleratorId: ${exampleAccelerator.id}
          bandwidthPackageId: ${exampleBandwidthPackage.id}
      exampleListener:
        type: alicloud:ga:Listener
        properties:
          acceleratorId: ${exampleBandwidthPackageAttachment.acceleratorId}
          clientAffinity: SOURCE_IP
          description: ${name}
          protocol: HTTP
          proxyProtocol: true
          portRanges:
            - fromPort: 60
              toPort: 60
      exampleEipAddress:
        type: alicloud:ecs:EipAddress
        properties:
          bandwidth: '10'
          internetChargeType: PayByBandwidth
      virtual:
        type: alicloud:ga:EndpointGroup
        properties:
          acceleratorId: ${exampleAccelerator.id}
          endpointConfigurations:
            - endpoint: ${exampleEipAddress.ipAddress}
              type: PublicIp
              weight: '20'
              enableClientipPreservation: true
          endpointGroupRegion: ${default.regions[0].id}
          listenerId: ${exampleListener.id}
          description: ${name}
          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: ${virtual.id}
          priority: 2
          forwardingRuleName: ${name}
    variables:
      default:
        fn::invoke:
          Function: alicloud:getRegions
          Arguments:
            current: true
    

    Create 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.ForwardingRuleRuleAction>
    Forward action. See rule_actions below.
    RuleConditions List<Pulumi.AliCloud.Ga.Inputs.ForwardingRuleRuleCondition>
    Forwarding condition list. See rule_conditions below.
    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. See rule_actions below.
    RuleConditions []ForwardingRuleRuleConditionArgs
    Forwarding condition list. See rule_conditions below.
    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<ForwardingRuleRuleAction>
    Forward action. See rule_actions below.
    ruleConditions List<ForwardingRuleRuleCondition>
    Forwarding condition list. See rule_conditions below.
    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 ForwardingRuleRuleAction[]
    Forward action. See rule_actions below.
    ruleConditions ForwardingRuleRuleCondition[]
    Forwarding condition list. See rule_conditions below.
    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. See rule_actions below.
    rule_conditions Sequence[ForwardingRuleRuleConditionArgs]
    Forwarding condition list. See rule_conditions below.
    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. See rule_actions below.
    ruleConditions List<Property Map>
    Forwarding condition list. See rule_conditions below.
    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 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.ForwardingRuleRuleAction>
    Forward action. See rule_actions below.
    RuleConditions List<Pulumi.AliCloud.Ga.Inputs.ForwardingRuleRuleCondition>
    Forwarding condition list. See rule_conditions below.
    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. See rule_actions below.
    RuleConditions []ForwardingRuleRuleConditionArgs
    Forwarding condition list. See rule_conditions below.
    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<ForwardingRuleRuleAction>
    Forward action. See rule_actions below.
    ruleConditions List<ForwardingRuleRuleCondition>
    Forwarding condition list. See rule_conditions below.
    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 ForwardingRuleRuleAction[]
    Forward action. See rule_actions below.
    ruleConditions ForwardingRuleRuleCondition[]
    Forwarding condition list. See rule_conditions below.
    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. See rule_actions below.
    rule_conditions Sequence[ForwardingRuleRuleConditionArgs]
    Forwarding condition list. See rule_conditions below.
    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. See rule_actions below.
    ruleConditions List<Property Map>
    Forwarding condition list. See rule_conditions below.

    Supporting Types

    ForwardingRuleRuleAction, ForwardingRuleRuleActionArgs

    Order int
    Forwarding priority.
    RuleActionType string
    Forward action type.
    ForwardGroupConfig Pulumi.AliCloud.Ga.Inputs.ForwardingRuleRuleActionForwardGroupConfig

    Forwarding configuration. See forward_group_config below.

    NOTE: From version 1.207.0, We recommend that you do not use forward_group_config, and we recommend that you use the rule_action_type and rule_action_value to configure forwarding actions.

    RuleActionValue string
    The value of the forwarding action type. For more information, see How to use it.
    Order int
    Forwarding priority.
    RuleActionType string
    Forward action type.
    ForwardGroupConfig ForwardingRuleRuleActionForwardGroupConfig

    Forwarding configuration. See forward_group_config below.

    NOTE: From version 1.207.0, We recommend that you do not use forward_group_config, and we recommend that you use the rule_action_type and rule_action_value to configure forwarding actions.

    RuleActionValue string
    The value of the forwarding action type. For more information, see How to use it.
    order Integer
    Forwarding priority.
    ruleActionType String
    Forward action type.
    forwardGroupConfig ForwardingRuleRuleActionForwardGroupConfig

    Forwarding configuration. See forward_group_config below.

    NOTE: From version 1.207.0, We recommend that you do not use forward_group_config, and we recommend that you use the rule_action_type and rule_action_value to configure forwarding actions.

    ruleActionValue String
    The value of the forwarding action type. For more information, see How to use it.
    order number
    Forwarding priority.
    ruleActionType string
    Forward action type.
    forwardGroupConfig ForwardingRuleRuleActionForwardGroupConfig

    Forwarding configuration. See forward_group_config below.

    NOTE: From version 1.207.0, We recommend that you do not use forward_group_config, and we recommend that you use the rule_action_type and rule_action_value to configure forwarding actions.

    ruleActionValue string
    The value of the forwarding action type. For more information, see How to use it.
    order int
    Forwarding priority.
    rule_action_type str
    Forward action type.
    forward_group_config ForwardingRuleRuleActionForwardGroupConfig

    Forwarding configuration. See forward_group_config below.

    NOTE: From version 1.207.0, We recommend that you do not use forward_group_config, and we recommend that you use the rule_action_type and rule_action_value to configure forwarding actions.

    rule_action_value str
    The value of the forwarding action type. For more information, see How to use it.
    order Number
    Forwarding priority.
    ruleActionType String
    Forward action type.
    forwardGroupConfig Property Map

    Forwarding configuration. See forward_group_config below.

    NOTE: From version 1.207.0, We recommend that you do not use forward_group_config, and we recommend that you use the rule_action_type and rule_action_value to configure forwarding actions.

    ruleActionValue String
    The value of the forwarding action type. For more information, see How to use it.

    ForwardingRuleRuleActionForwardGroupConfig, ForwardingRuleRuleActionForwardGroupConfigArgs

    ServerGroupTuples List<Pulumi.AliCloud.Ga.Inputs.ForwardingRuleRuleActionForwardGroupConfigServerGroupTuple>
    The information about the endpoint group. See server_group_tuples below.
    ServerGroupTuples []ForwardingRuleRuleActionForwardGroupConfigServerGroupTuple
    The information about the endpoint group. See server_group_tuples below.
    serverGroupTuples List<ForwardingRuleRuleActionForwardGroupConfigServerGroupTuple>
    The information about the endpoint group. See server_group_tuples below.
    serverGroupTuples ForwardingRuleRuleActionForwardGroupConfigServerGroupTuple[]
    The information about the endpoint group. See server_group_tuples below.
    server_group_tuples Sequence[ForwardingRuleRuleActionForwardGroupConfigServerGroupTuple]
    The information about the endpoint group. See server_group_tuples below.
    serverGroupTuples List<Property Map>
    The information about the endpoint group. See server_group_tuples below.

    ForwardingRuleRuleActionForwardGroupConfigServerGroupTuple, ForwardingRuleRuleActionForwardGroupConfigServerGroupTupleArgs

    EndpointGroupId string
    The ID of the endpoint group.
    EndpointGroupId string
    The ID of the endpoint group.
    endpointGroupId String
    The ID of the endpoint group.
    endpointGroupId string
    The ID of the endpoint group.
    endpoint_group_id str
    The ID of the endpoint group.
    endpointGroupId String
    The ID of the endpoint group.

    ForwardingRuleRuleCondition, ForwardingRuleRuleConditionArgs

    RuleConditionType string
    The type of the forwarding conditions. Valid values: Host, Path.
    HostConfigs List<Pulumi.AliCloud.Ga.Inputs.ForwardingRuleRuleConditionHostConfig>
    The configuration of the domain name. See host_config below.
    PathConfig Pulumi.AliCloud.Ga.Inputs.ForwardingRuleRuleConditionPathConfig
    The configuration of the path. See path_config below.
    RuleConditionType string
    The type of the forwarding conditions. Valid values: Host, Path.
    HostConfigs []ForwardingRuleRuleConditionHostConfig
    The configuration of the domain name. See host_config below.
    PathConfig ForwardingRuleRuleConditionPathConfig
    The configuration of the path. See path_config below.
    ruleConditionType String
    The type of the forwarding conditions. Valid values: Host, Path.
    hostConfigs List<ForwardingRuleRuleConditionHostConfig>
    The configuration of the domain name. See host_config below.
    pathConfig ForwardingRuleRuleConditionPathConfig
    The configuration of the path. See path_config below.
    ruleConditionType string
    The type of the forwarding conditions. Valid values: Host, Path.
    hostConfigs ForwardingRuleRuleConditionHostConfig[]
    The configuration of the domain name. See host_config below.
    pathConfig ForwardingRuleRuleConditionPathConfig
    The configuration of the path. See path_config below.
    rule_condition_type str
    The type of the forwarding conditions. Valid values: Host, Path.
    host_configs Sequence[ForwardingRuleRuleConditionHostConfig]
    The configuration of the domain name. See host_config below.
    path_config ForwardingRuleRuleConditionPathConfig
    The configuration of the path. See path_config below.
    ruleConditionType String
    The type of the forwarding conditions. Valid values: Host, Path.
    hostConfigs List<Property Map>
    The configuration of the domain name. See host_config below.
    pathConfig Property Map
    The configuration of the path. See path_config below.

    ForwardingRuleRuleConditionHostConfig, ForwardingRuleRuleConditionHostConfigArgs

    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, ForwardingRuleRuleConditionPathConfigArgs

    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 <accelerator_id>:<listener_id>:<forwarding_rule_id>
    

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi