1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ddos
  5. BgpPolicy
Alibaba Cloud v3.59.0 published on Friday, Jul 12, 2024 by Pulumi

alicloud.ddos.BgpPolicy

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.59.0 published on Friday, Jul 12, 2024 by Pulumi

    Provides a Ddos Bgp Policy resource.

    Ddos protection policy.

    For information about Ddos Bgp Policy and how to use it, see What is Policy.

    NOTE: Available since v1.226.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf_exampleacc_bgp32594";
    const policyName = config.get("policyName") || "example_l4_policy";
    const _default = new alicloud.ddos.BgpPolicy("default", {
        content: {
            enableDefense: false,
            layer4RuleLists: [{
                method: "hex",
                match: "1",
                action: "1",
                limited: 0,
                conditionLists: [{
                    arg: "3C",
                    position: 1,
                    depth: 2,
                }],
                name: "11",
                priority: 10,
            }],
        },
        type: "l4",
        policyName: "tf_exampleacc_bgp32594",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf_exampleacc_bgp32594"
    policy_name = config.get("policyName")
    if policy_name is None:
        policy_name = "example_l4_policy"
    default = alicloud.ddos.BgpPolicy("default",
        content=alicloud.ddos.BgpPolicyContentArgs(
            enable_defense=False,
            layer4_rule_lists=[alicloud.ddos.BgpPolicyContentLayer4RuleListArgs(
                method="hex",
                match="1",
                action="1",
                limited=0,
                condition_lists=[alicloud.ddos.BgpPolicyContentLayer4RuleListConditionListArgs(
                    arg="3C",
                    position=1,
                    depth=2,
                )],
                name="11",
                priority=10,
            )],
        ),
        type="l4",
        policy_name="tf_exampleacc_bgp32594")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ddos"
    	"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, "")
    		name := "tf_exampleacc_bgp32594"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		policyName := "example_l4_policy"
    		if param := cfg.Get("policyName"); param != "" {
    			policyName = param
    		}
    		_, err := ddos.NewBgpPolicy(ctx, "default", &ddos.BgpPolicyArgs{
    			Content: &ddos.BgpPolicyContentArgs{
    				EnableDefense: pulumi.Bool(false),
    				Layer4RuleLists: ddos.BgpPolicyContentLayer4RuleListArray{
    					&ddos.BgpPolicyContentLayer4RuleListArgs{
    						Method:  pulumi.String("hex"),
    						Match:   pulumi.String("1"),
    						Action:  pulumi.String("1"),
    						Limited: pulumi.Int(0),
    						ConditionLists: ddos.BgpPolicyContentLayer4RuleListConditionListArray{
    							&ddos.BgpPolicyContentLayer4RuleListConditionListArgs{
    								Arg:      pulumi.String("3C"),
    								Position: pulumi.Int(1),
    								Depth:    pulumi.Int(2),
    							},
    						},
    						Name:     pulumi.String("11"),
    						Priority: pulumi.Int(10),
    					},
    				},
    			},
    			Type:       pulumi.String("l4"),
    			PolicyName: pulumi.String("tf_exampleacc_bgp32594"),
    		})
    		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 name = config.Get("name") ?? "tf_exampleacc_bgp32594";
        var policyName = config.Get("policyName") ?? "example_l4_policy";
        var @default = new AliCloud.Ddos.BgpPolicy("default", new()
        {
            Content = new AliCloud.Ddos.Inputs.BgpPolicyContentArgs
            {
                EnableDefense = false,
                Layer4RuleLists = new[]
                {
                    new AliCloud.Ddos.Inputs.BgpPolicyContentLayer4RuleListArgs
                    {
                        Method = "hex",
                        Match = "1",
                        Action = "1",
                        Limited = 0,
                        ConditionLists = new[]
                        {
                            new AliCloud.Ddos.Inputs.BgpPolicyContentLayer4RuleListConditionListArgs
                            {
                                Arg = "3C",
                                Position = 1,
                                Depth = 2,
                            },
                        },
                        Name = "11",
                        Priority = 10,
                    },
                },
            },
            Type = "l4",
            PolicyName = "tf_exampleacc_bgp32594",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.ddos.BgpPolicy;
    import com.pulumi.alicloud.ddos.BgpPolicyArgs;
    import com.pulumi.alicloud.ddos.inputs.BgpPolicyContentArgs;
    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 name = config.get("name").orElse("tf_exampleacc_bgp32594");
            final var policyName = config.get("policyName").orElse("example_l4_policy");
            var default_ = new BgpPolicy("default", BgpPolicyArgs.builder()
                .content(BgpPolicyContentArgs.builder()
                    .enableDefense("false")
                    .layer4RuleLists(BgpPolicyContentLayer4RuleListArgs.builder()
                        .method("hex")
                        .match("1")
                        .action("1")
                        .limited("0")
                        .conditionLists(BgpPolicyContentLayer4RuleListConditionListArgs.builder()
                            .arg("3C")
                            .position("1")
                            .depth("2")
                            .build())
                        .name("11")
                        .priority("10")
                        .build())
                    .build())
                .type("l4")
                .policyName("tf_exampleacc_bgp32594")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf_exampleacc_bgp32594
      policyName:
        type: string
        default: example_l4_policy
    resources:
      default:
        type: alicloud:ddos:BgpPolicy
        properties:
          content:
            enableDefense: 'false'
            layer4RuleLists:
              - method: hex
                match: '1'
                action: '1'
                limited: '0'
                conditionLists:
                  - arg: 3C
                    position: '1'
                    depth: '2'
                name: '11'
                priority: '10'
          type: l4
          policyName: tf_exampleacc_bgp32594
    

    Create BgpPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new BgpPolicy(name: string, args: BgpPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def BgpPolicy(resource_name: str,
                  args: BgpPolicyArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def BgpPolicy(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  policy_name: Optional[str] = None,
                  type: Optional[str] = None,
                  content: Optional[BgpPolicyContentArgs] = None)
    func NewBgpPolicy(ctx *Context, name string, args BgpPolicyArgs, opts ...ResourceOption) (*BgpPolicy, error)
    public BgpPolicy(string name, BgpPolicyArgs args, CustomResourceOptions? opts = null)
    public BgpPolicy(String name, BgpPolicyArgs args)
    public BgpPolicy(String name, BgpPolicyArgs args, CustomResourceOptions options)
    
    type: alicloud:ddos:BgpPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

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

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var bgpPolicyResource = new AliCloud.Ddos.BgpPolicy("bgpPolicyResource", new()
    {
        PolicyName = "string",
        Type = "string",
        Content = new AliCloud.Ddos.Inputs.BgpPolicyContentArgs
        {
            BlackIpListExpireAt = 0,
            EnableDefense = false,
            EnableDropIcmp = false,
            EnableIntelligence = false,
            FingerPrintRuleLists = new[]
            {
                new AliCloud.Ddos.Inputs.BgpPolicyContentFingerPrintRuleListArgs
                {
                    SeqNo = 0,
                    DstPortStart = 0,
                    SrcPortStart = 0,
                    MatchAction = "string",
                    MaxPktLen = 0,
                    MinPktLen = 0,
                    DstPortEnd = 0,
                    SrcPortEnd = 0,
                    Protocol = "string",
                    Offset = 0,
                    RateValue = 0,
                    PayloadBytes = "string",
                    FingerPrintRuleId = "string",
                },
            },
            IntelligenceLevel = "string",
            Layer4RuleLists = new[]
            {
                new AliCloud.Ddos.Inputs.BgpPolicyContentLayer4RuleListArgs
                {
                    Action = "string",
                    ConditionLists = new[]
                    {
                        new AliCloud.Ddos.Inputs.BgpPolicyContentLayer4RuleListConditionListArgs
                        {
                            Arg = "string",
                            Depth = 0,
                            Position = 0,
                        },
                    },
                    Limited = 0,
                    Match = "string",
                    Method = "string",
                    Name = "string",
                    Priority = 0,
                },
            },
            PortRuleLists = new[]
            {
                new AliCloud.Ddos.Inputs.BgpPolicyContentPortRuleListArgs
                {
                    DstPortEnd = 0,
                    DstPortStart = 0,
                    MatchAction = "string",
                    Protocol = "string",
                    SeqNo = 0,
                    SrcPortEnd = 0,
                    SrcPortStart = 0,
                    PortRuleId = "string",
                },
            },
            ReflectBlockUdpPortLists = new[]
            {
                0,
            },
            RegionBlockCountryLists = new[]
            {
                0,
            },
            RegionBlockProvinceLists = new[]
            {
                0,
            },
            SourceBlockLists = new[]
            {
                new AliCloud.Ddos.Inputs.BgpPolicyContentSourceBlockListArgs
                {
                    BlockExpireSeconds = 0,
                    EverySeconds = 0,
                    ExceedLimitTimes = 0,
                    Type = 0,
                },
            },
            SourceLimit = new AliCloud.Ddos.Inputs.BgpPolicyContentSourceLimitArgs
            {
                Bps = 0,
                Pps = 0,
                SynBps = 0,
                SynPps = 0,
            },
            WhitenGfbrNets = false,
        },
    });
    
    example, err := ddos.NewBgpPolicy(ctx, "bgpPolicyResource", &ddos.BgpPolicyArgs{
    	PolicyName: pulumi.String("string"),
    	Type:       pulumi.String("string"),
    	Content: &ddos.BgpPolicyContentArgs{
    		BlackIpListExpireAt: pulumi.Int(0),
    		EnableDefense:       pulumi.Bool(false),
    		EnableDropIcmp:      pulumi.Bool(false),
    		EnableIntelligence:  pulumi.Bool(false),
    		FingerPrintRuleLists: ddos.BgpPolicyContentFingerPrintRuleListArray{
    			&ddos.BgpPolicyContentFingerPrintRuleListArgs{
    				SeqNo:             pulumi.Int(0),
    				DstPortStart:      pulumi.Int(0),
    				SrcPortStart:      pulumi.Int(0),
    				MatchAction:       pulumi.String("string"),
    				MaxPktLen:         pulumi.Int(0),
    				MinPktLen:         pulumi.Int(0),
    				DstPortEnd:        pulumi.Int(0),
    				SrcPortEnd:        pulumi.Int(0),
    				Protocol:          pulumi.String("string"),
    				Offset:            pulumi.Int(0),
    				RateValue:         pulumi.Int(0),
    				PayloadBytes:      pulumi.String("string"),
    				FingerPrintRuleId: pulumi.String("string"),
    			},
    		},
    		IntelligenceLevel: pulumi.String("string"),
    		Layer4RuleLists: ddos.BgpPolicyContentLayer4RuleListArray{
    			&ddos.BgpPolicyContentLayer4RuleListArgs{
    				Action: pulumi.String("string"),
    				ConditionLists: ddos.BgpPolicyContentLayer4RuleListConditionListArray{
    					&ddos.BgpPolicyContentLayer4RuleListConditionListArgs{
    						Arg:      pulumi.String("string"),
    						Depth:    pulumi.Int(0),
    						Position: pulumi.Int(0),
    					},
    				},
    				Limited:  pulumi.Int(0),
    				Match:    pulumi.String("string"),
    				Method:   pulumi.String("string"),
    				Name:     pulumi.String("string"),
    				Priority: pulumi.Int(0),
    			},
    		},
    		PortRuleLists: ddos.BgpPolicyContentPortRuleListArray{
    			&ddos.BgpPolicyContentPortRuleListArgs{
    				DstPortEnd:   pulumi.Int(0),
    				DstPortStart: pulumi.Int(0),
    				MatchAction:  pulumi.String("string"),
    				Protocol:     pulumi.String("string"),
    				SeqNo:        pulumi.Int(0),
    				SrcPortEnd:   pulumi.Int(0),
    				SrcPortStart: pulumi.Int(0),
    				PortRuleId:   pulumi.String("string"),
    			},
    		},
    		ReflectBlockUdpPortLists: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    		RegionBlockCountryLists: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    		RegionBlockProvinceLists: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    		SourceBlockLists: ddos.BgpPolicyContentSourceBlockListArray{
    			&ddos.BgpPolicyContentSourceBlockListArgs{
    				BlockExpireSeconds: pulumi.Int(0),
    				EverySeconds:       pulumi.Int(0),
    				ExceedLimitTimes:   pulumi.Int(0),
    				Type:               pulumi.Int(0),
    			},
    		},
    		SourceLimit: &ddos.BgpPolicyContentSourceLimitArgs{
    			Bps:    pulumi.Int(0),
    			Pps:    pulumi.Int(0),
    			SynBps: pulumi.Int(0),
    			SynPps: pulumi.Int(0),
    		},
    		WhitenGfbrNets: pulumi.Bool(false),
    	},
    })
    
    var bgpPolicyResource = new BgpPolicy("bgpPolicyResource", BgpPolicyArgs.builder()
        .policyName("string")
        .type("string")
        .content(BgpPolicyContentArgs.builder()
            .blackIpListExpireAt(0)
            .enableDefense(false)
            .enableDropIcmp(false)
            .enableIntelligence(false)
            .fingerPrintRuleLists(BgpPolicyContentFingerPrintRuleListArgs.builder()
                .seqNo(0)
                .dstPortStart(0)
                .srcPortStart(0)
                .matchAction("string")
                .maxPktLen(0)
                .minPktLen(0)
                .dstPortEnd(0)
                .srcPortEnd(0)
                .protocol("string")
                .offset(0)
                .rateValue(0)
                .payloadBytes("string")
                .fingerPrintRuleId("string")
                .build())
            .intelligenceLevel("string")
            .layer4RuleLists(BgpPolicyContentLayer4RuleListArgs.builder()
                .action("string")
                .conditionLists(BgpPolicyContentLayer4RuleListConditionListArgs.builder()
                    .arg("string")
                    .depth(0)
                    .position(0)
                    .build())
                .limited(0)
                .match("string")
                .method("string")
                .name("string")
                .priority(0)
                .build())
            .portRuleLists(BgpPolicyContentPortRuleListArgs.builder()
                .dstPortEnd(0)
                .dstPortStart(0)
                .matchAction("string")
                .protocol("string")
                .seqNo(0)
                .srcPortEnd(0)
                .srcPortStart(0)
                .portRuleId("string")
                .build())
            .reflectBlockUdpPortLists(0)
            .regionBlockCountryLists(0)
            .regionBlockProvinceLists(0)
            .sourceBlockLists(BgpPolicyContentSourceBlockListArgs.builder()
                .blockExpireSeconds(0)
                .everySeconds(0)
                .exceedLimitTimes(0)
                .type(0)
                .build())
            .sourceLimit(BgpPolicyContentSourceLimitArgs.builder()
                .bps(0)
                .pps(0)
                .synBps(0)
                .synPps(0)
                .build())
            .whitenGfbrNets(false)
            .build())
        .build());
    
    bgp_policy_resource = alicloud.ddos.BgpPolicy("bgpPolicyResource",
        policy_name="string",
        type="string",
        content=alicloud.ddos.BgpPolicyContentArgs(
            black_ip_list_expire_at=0,
            enable_defense=False,
            enable_drop_icmp=False,
            enable_intelligence=False,
            finger_print_rule_lists=[alicloud.ddos.BgpPolicyContentFingerPrintRuleListArgs(
                seq_no=0,
                dst_port_start=0,
                src_port_start=0,
                match_action="string",
                max_pkt_len=0,
                min_pkt_len=0,
                dst_port_end=0,
                src_port_end=0,
                protocol="string",
                offset=0,
                rate_value=0,
                payload_bytes="string",
                finger_print_rule_id="string",
            )],
            intelligence_level="string",
            layer4_rule_lists=[alicloud.ddos.BgpPolicyContentLayer4RuleListArgs(
                action="string",
                condition_lists=[alicloud.ddos.BgpPolicyContentLayer4RuleListConditionListArgs(
                    arg="string",
                    depth=0,
                    position=0,
                )],
                limited=0,
                match="string",
                method="string",
                name="string",
                priority=0,
            )],
            port_rule_lists=[alicloud.ddos.BgpPolicyContentPortRuleListArgs(
                dst_port_end=0,
                dst_port_start=0,
                match_action="string",
                protocol="string",
                seq_no=0,
                src_port_end=0,
                src_port_start=0,
                port_rule_id="string",
            )],
            reflect_block_udp_port_lists=[0],
            region_block_country_lists=[0],
            region_block_province_lists=[0],
            source_block_lists=[alicloud.ddos.BgpPolicyContentSourceBlockListArgs(
                block_expire_seconds=0,
                every_seconds=0,
                exceed_limit_times=0,
                type=0,
            )],
            source_limit=alicloud.ddos.BgpPolicyContentSourceLimitArgs(
                bps=0,
                pps=0,
                syn_bps=0,
                syn_pps=0,
            ),
            whiten_gfbr_nets=False,
        ))
    
    const bgpPolicyResource = new alicloud.ddos.BgpPolicy("bgpPolicyResource", {
        policyName: "string",
        type: "string",
        content: {
            blackIpListExpireAt: 0,
            enableDefense: false,
            enableDropIcmp: false,
            enableIntelligence: false,
            fingerPrintRuleLists: [{
                seqNo: 0,
                dstPortStart: 0,
                srcPortStart: 0,
                matchAction: "string",
                maxPktLen: 0,
                minPktLen: 0,
                dstPortEnd: 0,
                srcPortEnd: 0,
                protocol: "string",
                offset: 0,
                rateValue: 0,
                payloadBytes: "string",
                fingerPrintRuleId: "string",
            }],
            intelligenceLevel: "string",
            layer4RuleLists: [{
                action: "string",
                conditionLists: [{
                    arg: "string",
                    depth: 0,
                    position: 0,
                }],
                limited: 0,
                match: "string",
                method: "string",
                name: "string",
                priority: 0,
            }],
            portRuleLists: [{
                dstPortEnd: 0,
                dstPortStart: 0,
                matchAction: "string",
                protocol: "string",
                seqNo: 0,
                srcPortEnd: 0,
                srcPortStart: 0,
                portRuleId: "string",
            }],
            reflectBlockUdpPortLists: [0],
            regionBlockCountryLists: [0],
            regionBlockProvinceLists: [0],
            sourceBlockLists: [{
                blockExpireSeconds: 0,
                everySeconds: 0,
                exceedLimitTimes: 0,
                type: 0,
            }],
            sourceLimit: {
                bps: 0,
                pps: 0,
                synBps: 0,
                synPps: 0,
            },
            whitenGfbrNets: false,
        },
    });
    
    type: alicloud:ddos:BgpPolicy
    properties:
        content:
            blackIpListExpireAt: 0
            enableDefense: false
            enableDropIcmp: false
            enableIntelligence: false
            fingerPrintRuleLists:
                - dstPortEnd: 0
                  dstPortStart: 0
                  fingerPrintRuleId: string
                  matchAction: string
                  maxPktLen: 0
                  minPktLen: 0
                  offset: 0
                  payloadBytes: string
                  protocol: string
                  rateValue: 0
                  seqNo: 0
                  srcPortEnd: 0
                  srcPortStart: 0
            intelligenceLevel: string
            layer4RuleLists:
                - action: string
                  conditionLists:
                    - arg: string
                      depth: 0
                      position: 0
                  limited: 0
                  match: string
                  method: string
                  name: string
                  priority: 0
            portRuleLists:
                - dstPortEnd: 0
                  dstPortStart: 0
                  matchAction: string
                  portRuleId: string
                  protocol: string
                  seqNo: 0
                  srcPortEnd: 0
                  srcPortStart: 0
            reflectBlockUdpPortLists:
                - 0
            regionBlockCountryLists:
                - 0
            regionBlockProvinceLists:
                - 0
            sourceBlockLists:
                - blockExpireSeconds: 0
                  everySeconds: 0
                  exceedLimitTimes: 0
                  type: 0
            sourceLimit:
                bps: 0
                pps: 0
                synBps: 0
                synPps: 0
            whitenGfbrNets: false
        policyName: string
        type: string
    

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

    PolicyName string
    The name of the resource
    Type string
    Type
    Content Pulumi.AliCloud.Ddos.Inputs.BgpPolicyContent
    Configuration Content See content below.
    PolicyName string
    The name of the resource
    Type string
    Type
    Content BgpPolicyContentArgs
    Configuration Content See content below.
    policyName String
    The name of the resource
    type String
    Type
    content BgpPolicyContent
    Configuration Content See content below.
    policyName string
    The name of the resource
    type string
    Type
    content BgpPolicyContent
    Configuration Content See content below.
    policy_name str
    The name of the resource
    type str
    Type
    content BgpPolicyContentArgs
    Configuration Content See content below.
    policyName String
    The name of the resource
    type String
    Type
    content Property Map
    Configuration Content See content below.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing BgpPolicy Resource

    Get an existing BgpPolicy 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?: BgpPolicyState, opts?: CustomResourceOptions): BgpPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            content: Optional[BgpPolicyContentArgs] = None,
            policy_name: Optional[str] = None,
            type: Optional[str] = None) -> BgpPolicy
    func GetBgpPolicy(ctx *Context, name string, id IDInput, state *BgpPolicyState, opts ...ResourceOption) (*BgpPolicy, error)
    public static BgpPolicy Get(string name, Input<string> id, BgpPolicyState? state, CustomResourceOptions? opts = null)
    public static BgpPolicy get(String name, Output<String> id, BgpPolicyState 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:
    Content Pulumi.AliCloud.Ddos.Inputs.BgpPolicyContent
    Configuration Content See content below.
    PolicyName string
    The name of the resource
    Type string
    Type
    Content BgpPolicyContentArgs
    Configuration Content See content below.
    PolicyName string
    The name of the resource
    Type string
    Type
    content BgpPolicyContent
    Configuration Content See content below.
    policyName String
    The name of the resource
    type String
    Type
    content BgpPolicyContent
    Configuration Content See content below.
    policyName string
    The name of the resource
    type string
    Type
    content BgpPolicyContentArgs
    Configuration Content See content below.
    policy_name str
    The name of the resource
    type str
    Type
    content Property Map
    Configuration Content See content below.
    policyName String
    The name of the resource
    type String
    Type

    Supporting Types

    BgpPolicyContent, BgpPolicyContentArgs

    BlackIpListExpireAt int
    Blacklist and whitelist timeout.
    EnableDefense bool
    Whether to enable L4 protection.
    EnableDropIcmp bool
    Switch to discard ICMP.
    EnableIntelligence bool
    Whether the intelligent switch is on.
    FingerPrintRuleLists List<Pulumi.AliCloud.Ddos.Inputs.BgpPolicyContentFingerPrintRuleList>
    Fingerprint Rules. See finger_print_rule_list below.
    IntelligenceLevel string
    Smart mode. Valid values: weak, hard, and default.
    Layer4RuleLists List<Pulumi.AliCloud.Ddos.Inputs.BgpPolicyContentLayer4RuleList>
    L4 protection rules. See layer4_rule_list below.
    PortRuleLists List<Pulumi.AliCloud.Ddos.Inputs.BgpPolicyContentPortRuleList>
    Port Rule List. See port_rule_list below.
    ReflectBlockUdpPortLists List<int>
    Reflective port filtering.
    RegionBlockCountryLists List<int>
    List of Regional Banned Countries.
    RegionBlockProvinceLists List<int>
    List of Prohibited Provinces by Region.
    SourceBlockLists List<Pulumi.AliCloud.Ddos.Inputs.BgpPolicyContentSourceBlockList>
    Source pull Black. See source_block_list below.
    SourceLimit Pulumi.AliCloud.Ddos.Inputs.BgpPolicyContentSourceLimit
    Do not fill in when the source speed limit is deleted. See source_limit below.
    WhitenGfbrNets bool
    Add white high protection back to source network segment switch.
    BlackIpListExpireAt int
    Blacklist and whitelist timeout.
    EnableDefense bool
    Whether to enable L4 protection.
    EnableDropIcmp bool
    Switch to discard ICMP.
    EnableIntelligence bool
    Whether the intelligent switch is on.
    FingerPrintRuleLists []BgpPolicyContentFingerPrintRuleList
    Fingerprint Rules. See finger_print_rule_list below.
    IntelligenceLevel string
    Smart mode. Valid values: weak, hard, and default.
    Layer4RuleLists []BgpPolicyContentLayer4RuleList
    L4 protection rules. See layer4_rule_list below.
    PortRuleLists []BgpPolicyContentPortRuleList
    Port Rule List. See port_rule_list below.
    ReflectBlockUdpPortLists []int
    Reflective port filtering.
    RegionBlockCountryLists []int
    List of Regional Banned Countries.
    RegionBlockProvinceLists []int
    List of Prohibited Provinces by Region.
    SourceBlockLists []BgpPolicyContentSourceBlockList
    Source pull Black. See source_block_list below.
    SourceLimit BgpPolicyContentSourceLimit
    Do not fill in when the source speed limit is deleted. See source_limit below.
    WhitenGfbrNets bool
    Add white high protection back to source network segment switch.
    blackIpListExpireAt Integer
    Blacklist and whitelist timeout.
    enableDefense Boolean
    Whether to enable L4 protection.
    enableDropIcmp Boolean
    Switch to discard ICMP.
    enableIntelligence Boolean
    Whether the intelligent switch is on.
    fingerPrintRuleLists List<BgpPolicyContentFingerPrintRuleList>
    Fingerprint Rules. See finger_print_rule_list below.
    intelligenceLevel String
    Smart mode. Valid values: weak, hard, and default.
    layer4RuleLists List<BgpPolicyContentLayer4RuleList>
    L4 protection rules. See layer4_rule_list below.
    portRuleLists List<BgpPolicyContentPortRuleList>
    Port Rule List. See port_rule_list below.
    reflectBlockUdpPortLists List<Integer>
    Reflective port filtering.
    regionBlockCountryLists List<Integer>
    List of Regional Banned Countries.
    regionBlockProvinceLists List<Integer>
    List of Prohibited Provinces by Region.
    sourceBlockLists List<BgpPolicyContentSourceBlockList>
    Source pull Black. See source_block_list below.
    sourceLimit BgpPolicyContentSourceLimit
    Do not fill in when the source speed limit is deleted. See source_limit below.
    whitenGfbrNets Boolean
    Add white high protection back to source network segment switch.
    blackIpListExpireAt number
    Blacklist and whitelist timeout.
    enableDefense boolean
    Whether to enable L4 protection.
    enableDropIcmp boolean
    Switch to discard ICMP.
    enableIntelligence boolean
    Whether the intelligent switch is on.
    fingerPrintRuleLists BgpPolicyContentFingerPrintRuleList[]
    Fingerprint Rules. See finger_print_rule_list below.
    intelligenceLevel string
    Smart mode. Valid values: weak, hard, and default.
    layer4RuleLists BgpPolicyContentLayer4RuleList[]
    L4 protection rules. See layer4_rule_list below.
    portRuleLists BgpPolicyContentPortRuleList[]
    Port Rule List. See port_rule_list below.
    reflectBlockUdpPortLists number[]
    Reflective port filtering.
    regionBlockCountryLists number[]
    List of Regional Banned Countries.
    regionBlockProvinceLists number[]
    List of Prohibited Provinces by Region.
    sourceBlockLists BgpPolicyContentSourceBlockList[]
    Source pull Black. See source_block_list below.
    sourceLimit BgpPolicyContentSourceLimit
    Do not fill in when the source speed limit is deleted. See source_limit below.
    whitenGfbrNets boolean
    Add white high protection back to source network segment switch.
    black_ip_list_expire_at int
    Blacklist and whitelist timeout.
    enable_defense bool
    Whether to enable L4 protection.
    enable_drop_icmp bool
    Switch to discard ICMP.
    enable_intelligence bool
    Whether the intelligent switch is on.
    finger_print_rule_lists Sequence[BgpPolicyContentFingerPrintRuleList]
    Fingerprint Rules. See finger_print_rule_list below.
    intelligence_level str
    Smart mode. Valid values: weak, hard, and default.
    layer4_rule_lists Sequence[BgpPolicyContentLayer4RuleList]
    L4 protection rules. See layer4_rule_list below.
    port_rule_lists Sequence[BgpPolicyContentPortRuleList]
    Port Rule List. See port_rule_list below.
    reflect_block_udp_port_lists Sequence[int]
    Reflective port filtering.
    region_block_country_lists Sequence[int]
    List of Regional Banned Countries.
    region_block_province_lists Sequence[int]
    List of Prohibited Provinces by Region.
    source_block_lists Sequence[BgpPolicyContentSourceBlockList]
    Source pull Black. See source_block_list below.
    source_limit BgpPolicyContentSourceLimit
    Do not fill in when the source speed limit is deleted. See source_limit below.
    whiten_gfbr_nets bool
    Add white high protection back to source network segment switch.
    blackIpListExpireAt Number
    Blacklist and whitelist timeout.
    enableDefense Boolean
    Whether to enable L4 protection.
    enableDropIcmp Boolean
    Switch to discard ICMP.
    enableIntelligence Boolean
    Whether the intelligent switch is on.
    fingerPrintRuleLists List<Property Map>
    Fingerprint Rules. See finger_print_rule_list below.
    intelligenceLevel String
    Smart mode. Valid values: weak, hard, and default.
    layer4RuleLists List<Property Map>
    L4 protection rules. See layer4_rule_list below.
    portRuleLists List<Property Map>
    Port Rule List. See port_rule_list below.
    reflectBlockUdpPortLists List<Number>
    Reflective port filtering.
    regionBlockCountryLists List<Number>
    List of Regional Banned Countries.
    regionBlockProvinceLists List<Number>
    List of Prohibited Provinces by Region.
    sourceBlockLists List<Property Map>
    Source pull Black. See source_block_list below.
    sourceLimit Property Map
    Do not fill in when the source speed limit is deleted. See source_limit below.
    whitenGfbrNets Boolean
    Add white high protection back to source network segment switch.

    BgpPolicyContentFingerPrintRuleList, BgpPolicyContentFingerPrintRuleListArgs

    dstPortEnd Integer
    dstPortStart Integer
    matchAction String
    maxPktLen Integer
    minPktLen Integer
    protocol String
    seqNo Integer
    srcPortEnd Integer
    srcPortStart Integer
    fingerPrintRuleId String
    offset Integer
    payloadBytes String
    rateValue Integer
    dstPortEnd number
    dstPortStart number
    matchAction string
    maxPktLen number
    minPktLen number
    protocol string
    seqNo number
    srcPortEnd number
    srcPortStart number
    fingerPrintRuleId string
    offset number
    payloadBytes string
    rateValue number
    dstPortEnd Number
    dstPortStart Number
    matchAction String
    maxPktLen Number
    minPktLen Number
    protocol String
    seqNo Number
    srcPortEnd Number
    srcPortStart Number
    fingerPrintRuleId String
    offset Number
    payloadBytes String
    rateValue Number

    BgpPolicyContentLayer4RuleList, BgpPolicyContentLayer4RuleListArgs

    BgpPolicyContentLayer4RuleListConditionList, BgpPolicyContentLayer4RuleListConditionListArgs

    Arg string
    Depth int
    Position int
    Arg string
    Depth int
    Position int
    arg String
    depth Integer
    position Integer
    arg string
    depth number
    position number
    arg str
    depth int
    position int
    arg String
    depth Number
    position Number

    BgpPolicyContentPortRuleList, BgpPolicyContentPortRuleListArgs

    dstPortEnd Integer
    dstPortStart Integer
    matchAction String
    protocol String
    seqNo Integer
    srcPortEnd Integer
    srcPortStart Integer
    portRuleId String
    dstPortEnd number
    dstPortStart number
    matchAction string
    protocol string
    seqNo number
    srcPortEnd number
    srcPortStart number
    portRuleId string
    dstPortEnd Number
    dstPortStart Number
    matchAction String
    protocol String
    seqNo Number
    srcPortEnd Number
    srcPortStart Number
    portRuleId String

    BgpPolicyContentSourceBlockList, BgpPolicyContentSourceBlockListArgs

    blockExpireSeconds Integer
    everySeconds Integer
    exceedLimitTimes Integer
    type Integer
    Type

    BgpPolicyContentSourceLimit, BgpPolicyContentSourceLimitArgs

    Bps int
    Pps int
    SynBps int
    SynPps int
    Bps int
    Pps int
    SynBps int
    SynPps int
    bps Integer
    pps Integer
    synBps Integer
    synPps Integer
    bps number
    pps number
    synBps number
    synPps number
    bps int
    pps int
    syn_bps int
    syn_pps int
    bps Number
    pps Number
    synBps Number
    synPps Number

    Import

    Ddos Bgp Policy can be imported using the id, e.g.

    $ pulumi import alicloud:ddos/bgpPolicy:BgpPolicy example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.59.0 published on Friday, Jul 12, 2024 by Pulumi