1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. ProtectionResource
edgecenter 0.9.4 published on Thursday, Aug 14, 2025 by edge-center

edgecenter.ProtectionResource

Explore with Pulumi AI

edgecenter logo
edgecenter 0.9.4 published on Thursday, Aug 14, 2025 by edge-center

    Represent DDoS protection resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const protectedExampleCom = new edgecenter.ProtectionResource("protectedExampleCom", {
        active: true,
        geoipLists: ["RU"],
        geoipMode: "allow",
        redirectToHttps: true,
        tls: [
            "1.2",
            "1.3",
        ],
        waf: true,
        wwwRedirect: true,
    });
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    protected_example_com = edgecenter.ProtectionResource("protectedExampleCom",
        active=True,
        geoip_lists=["RU"],
        geoip_mode="allow",
        redirect_to_https=True,
        tls=[
            "1.2",
            "1.3",
        ],
        waf=True,
        www_redirect=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := edgecenter.NewProtectionResource(ctx, "protectedExampleCom", &edgecenter.ProtectionResourceArgs{
    			Active: pulumi.Bool(true),
    			GeoipLists: pulumi.StringArray{
    				pulumi.String("RU"),
    			},
    			GeoipMode:       pulumi.String("allow"),
    			RedirectToHttps: pulumi.Bool(true),
    			Tls: pulumi.StringArray{
    				pulumi.String("1.2"),
    				pulumi.String("1.3"),
    			},
    			Waf:         pulumi.Bool(true),
    			WwwRedirect: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var protectedExampleCom = new Edgecenter.ProtectionResource("protectedExampleCom", new()
        {
            Active = true,
            GeoipLists = new[]
            {
                "RU",
            },
            GeoipMode = "allow",
            RedirectToHttps = true,
            Tls = new[]
            {
                "1.2",
                "1.3",
            },
            Waf = true,
            WwwRedirect = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.edgecenter.ProtectionResource;
    import com.pulumi.edgecenter.ProtectionResourceArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var protectedExampleCom = new ProtectionResource("protectedExampleCom", ProtectionResourceArgs.builder()
                .active(true)
                .geoipLists("RU")
                .geoipMode("allow")
                .redirectToHttps(true)
                .tls(            
                    "1.2",
                    "1.3")
                .waf(true)
                .wwwRedirect(true)
                .build());
    
        }
    }
    
    resources:
      protectedExampleCom:
        type: edgecenter:ProtectionResource
        properties:
          active: true
          geoipLists:
            - RU
          geoipMode: allow
          redirectToHttps: true
          tls:
            - '1.2'
            - '1.3'
          waf: true
          wwwRedirect: true
    

    Create ProtectionResource Resource

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

    Constructor syntax

    new ProtectionResource(name: string, args: ProtectionResourceArgs, opts?: CustomResourceOptions);
    @overload
    def ProtectionResource(resource_name: str,
                           args: ProtectionResourceArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProtectionResource(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           tls: Optional[Sequence[str]] = None,
                           http_to_origin: Optional[bool] = None,
                           geoip_mode: Optional[str] = None,
                           active: Optional[bool] = None,
                           load_balancing_type: Optional[str] = None,
                           multiple_origins: Optional[bool] = None,
                           name: Optional[str] = None,
                           protection_resource_id: Optional[str] = None,
                           redirect_to_https: Optional[bool] = None,
                           geoip_lists: Optional[Sequence[str]] = None,
                           waf: Optional[bool] = None,
                           wildcard_aliases: Optional[bool] = None,
                           www_redirect: Optional[bool] = None)
    func NewProtectionResource(ctx *Context, name string, args ProtectionResourceArgs, opts ...ResourceOption) (*ProtectionResource, error)
    public ProtectionResource(string name, ProtectionResourceArgs args, CustomResourceOptions? opts = null)
    public ProtectionResource(String name, ProtectionResourceArgs args)
    public ProtectionResource(String name, ProtectionResourceArgs args, CustomResourceOptions options)
    
    type: edgecenter:ProtectionResource
    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 ProtectionResourceArgs
    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 ProtectionResourceArgs
    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 ProtectionResourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProtectionResourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProtectionResourceArgs
    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 protectionResourceResource = new Edgecenter.ProtectionResource("protectionResourceResource", new()
    {
        Tls = new[]
        {
            "string",
        },
        HttpToOrigin = false,
        GeoipMode = "string",
        Active = false,
        LoadBalancingType = "string",
        MultipleOrigins = false,
        Name = "string",
        ProtectionResourceId = "string",
        RedirectToHttps = false,
        GeoipLists = new[]
        {
            "string",
        },
        Waf = false,
        WildcardAliases = false,
        WwwRedirect = false,
    });
    
    example, err := edgecenter.NewProtectionResource(ctx, "protectionResourceResource", &edgecenter.ProtectionResourceArgs{
    	Tls: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	HttpToOrigin:         pulumi.Bool(false),
    	GeoipMode:            pulumi.String("string"),
    	Active:               pulumi.Bool(false),
    	LoadBalancingType:    pulumi.String("string"),
    	MultipleOrigins:      pulumi.Bool(false),
    	Name:                 pulumi.String("string"),
    	ProtectionResourceId: pulumi.String("string"),
    	RedirectToHttps:      pulumi.Bool(false),
    	GeoipLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Waf:             pulumi.Bool(false),
    	WildcardAliases: pulumi.Bool(false),
    	WwwRedirect:     pulumi.Bool(false),
    })
    
    var protectionResourceResource = new ProtectionResource("protectionResourceResource", ProtectionResourceArgs.builder()
        .tls("string")
        .httpToOrigin(false)
        .geoipMode("string")
        .active(false)
        .loadBalancingType("string")
        .multipleOrigins(false)
        .name("string")
        .protectionResourceId("string")
        .redirectToHttps(false)
        .geoipLists("string")
        .waf(false)
        .wildcardAliases(false)
        .wwwRedirect(false)
        .build());
    
    protection_resource_resource = edgecenter.ProtectionResource("protectionResourceResource",
        tls=["string"],
        http_to_origin=False,
        geoip_mode="string",
        active=False,
        load_balancing_type="string",
        multiple_origins=False,
        name="string",
        protection_resource_id="string",
        redirect_to_https=False,
        geoip_lists=["string"],
        waf=False,
        wildcard_aliases=False,
        www_redirect=False)
    
    const protectionResourceResource = new edgecenter.ProtectionResource("protectionResourceResource", {
        tls: ["string"],
        httpToOrigin: false,
        geoipMode: "string",
        active: false,
        loadBalancingType: "string",
        multipleOrigins: false,
        name: "string",
        protectionResourceId: "string",
        redirectToHttps: false,
        geoipLists: ["string"],
        waf: false,
        wildcardAliases: false,
        wwwRedirect: false,
    });
    
    type: edgecenter:ProtectionResource
    properties:
        active: false
        geoipLists:
            - string
        geoipMode: string
        httpToOrigin: false
        loadBalancingType: string
        multipleOrigins: false
        name: string
        protectionResourceId: string
        redirectToHttps: false
        tls:
            - string
        waf: false
        wildcardAliases: false
        wwwRedirect: false
    

    ProtectionResource Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ProtectionResource resource accepts the following input properties:

    Tls List<string>
    The list of supported TLS versions. Available value: 1, 1.1, 1.2, 1.3.
    Active bool
    Enable or disable DDoS protection resource.
    GeoipLists List<string>
    List of countries to apply geoip_mode policy to.
    GeoipMode string
    Manage country access policy to control access to DDoS resource from the specified countries. Available values are no, allow, block.
    HttpToOrigin bool
    Whether to use HTTP to make requests to the origin. If set to false (default), HTTPS is used.
    LoadBalancingType string
    Sets load balancing type. Available values are Round Robin, Round Robin with session persistence.
    MultipleOrigins bool
    Enable or disable Multiple origins feature.
    Name string
    The DNS name of the DDoS protection resource.
    ProtectionResourceId string
    The ID of this resource.
    RedirectToHttps bool
    Enable or disable from HTTP to HTTPS
    Waf bool
    Enable or disable WAF.
    WildcardAliases bool
    Enable or disable Wildcard aliases feature.
    WwwRedirect bool
    Enable or disable redirect from WWW to the primary domain option.
    Tls []string
    The list of supported TLS versions. Available value: 1, 1.1, 1.2, 1.3.
    Active bool
    Enable or disable DDoS protection resource.
    GeoipLists []string
    List of countries to apply geoip_mode policy to.
    GeoipMode string
    Manage country access policy to control access to DDoS resource from the specified countries. Available values are no, allow, block.
    HttpToOrigin bool
    Whether to use HTTP to make requests to the origin. If set to false (default), HTTPS is used.
    LoadBalancingType string
    Sets load balancing type. Available values are Round Robin, Round Robin with session persistence.
    MultipleOrigins bool
    Enable or disable Multiple origins feature.
    Name string
    The DNS name of the DDoS protection resource.
    ProtectionResourceId string
    The ID of this resource.
    RedirectToHttps bool
    Enable or disable from HTTP to HTTPS
    Waf bool
    Enable or disable WAF.
    WildcardAliases bool
    Enable or disable Wildcard aliases feature.
    WwwRedirect bool
    Enable or disable redirect from WWW to the primary domain option.
    tls List<String>
    The list of supported TLS versions. Available value: 1, 1.1, 1.2, 1.3.
    active Boolean
    Enable or disable DDoS protection resource.
    geoipLists List<String>
    List of countries to apply geoip_mode policy to.
    geoipMode String
    Manage country access policy to control access to DDoS resource from the specified countries. Available values are no, allow, block.
    httpToOrigin Boolean
    Whether to use HTTP to make requests to the origin. If set to false (default), HTTPS is used.
    loadBalancingType String
    Sets load balancing type. Available values are Round Robin, Round Robin with session persistence.
    multipleOrigins Boolean
    Enable or disable Multiple origins feature.
    name String
    The DNS name of the DDoS protection resource.
    protectionResourceId String
    The ID of this resource.
    redirectToHttps Boolean
    Enable or disable from HTTP to HTTPS
    waf Boolean
    Enable or disable WAF.
    wildcardAliases Boolean
    Enable or disable Wildcard aliases feature.
    wwwRedirect Boolean
    Enable or disable redirect from WWW to the primary domain option.
    tls string[]
    The list of supported TLS versions. Available value: 1, 1.1, 1.2, 1.3.
    active boolean
    Enable or disable DDoS protection resource.
    geoipLists string[]
    List of countries to apply geoip_mode policy to.
    geoipMode string
    Manage country access policy to control access to DDoS resource from the specified countries. Available values are no, allow, block.
    httpToOrigin boolean
    Whether to use HTTP to make requests to the origin. If set to false (default), HTTPS is used.
    loadBalancingType string
    Sets load balancing type. Available values are Round Robin, Round Robin with session persistence.
    multipleOrigins boolean
    Enable or disable Multiple origins feature.
    name string
    The DNS name of the DDoS protection resource.
    protectionResourceId string
    The ID of this resource.
    redirectToHttps boolean
    Enable or disable from HTTP to HTTPS
    waf boolean
    Enable or disable WAF.
    wildcardAliases boolean
    Enable or disable Wildcard aliases feature.
    wwwRedirect boolean
    Enable or disable redirect from WWW to the primary domain option.
    tls Sequence[str]
    The list of supported TLS versions. Available value: 1, 1.1, 1.2, 1.3.
    active bool
    Enable or disable DDoS protection resource.
    geoip_lists Sequence[str]
    List of countries to apply geoip_mode policy to.
    geoip_mode str
    Manage country access policy to control access to DDoS resource from the specified countries. Available values are no, allow, block.
    http_to_origin bool
    Whether to use HTTP to make requests to the origin. If set to false (default), HTTPS is used.
    load_balancing_type str
    Sets load balancing type. Available values are Round Robin, Round Robin with session persistence.
    multiple_origins bool
    Enable or disable Multiple origins feature.
    name str
    The DNS name of the DDoS protection resource.
    protection_resource_id str
    The ID of this resource.
    redirect_to_https bool
    Enable or disable from HTTP to HTTPS
    waf bool
    Enable or disable WAF.
    wildcard_aliases bool
    Enable or disable Wildcard aliases feature.
    www_redirect bool
    Enable or disable redirect from WWW to the primary domain option.
    tls List<String>
    The list of supported TLS versions. Available value: 1, 1.1, 1.2, 1.3.
    active Boolean
    Enable or disable DDoS protection resource.
    geoipLists List<String>
    List of countries to apply geoip_mode policy to.
    geoipMode String
    Manage country access policy to control access to DDoS resource from the specified countries. Available values are no, allow, block.
    httpToOrigin Boolean
    Whether to use HTTP to make requests to the origin. If set to false (default), HTTPS is used.
    loadBalancingType String
    Sets load balancing type. Available values are Round Robin, Round Robin with session persistence.
    multipleOrigins Boolean
    Enable or disable Multiple origins feature.
    name String
    The DNS name of the DDoS protection resource.
    protectionResourceId String
    The ID of this resource.
    redirectToHttps Boolean
    Enable or disable from HTTP to HTTPS
    waf Boolean
    Enable or disable WAF.
    wildcardAliases Boolean
    Enable or disable Wildcard aliases feature.
    wwwRedirect Boolean
    Enable or disable redirect from WWW to the primary domain option.

    Outputs

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

    Client string
    Client ID.
    Enabled bool
    Whether resource is enabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ip string
    Resources's protected IP address.
    Status string
    Show resource status.
    WaitForLe double
    Number of seconds after which LE certificate can be issued.
    Client string
    Client ID.
    Enabled bool
    Whether resource is enabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ip string
    Resources's protected IP address.
    Status string
    Show resource status.
    WaitForLe float64
    Number of seconds after which LE certificate can be issued.
    client String
    Client ID.
    enabled Boolean
    Whether resource is enabled.
    id String
    The provider-assigned unique ID for this managed resource.
    ip String
    Resources's protected IP address.
    status String
    Show resource status.
    waitForLe Double
    Number of seconds after which LE certificate can be issued.
    client string
    Client ID.
    enabled boolean
    Whether resource is enabled.
    id string
    The provider-assigned unique ID for this managed resource.
    ip string
    Resources's protected IP address.
    status string
    Show resource status.
    waitForLe number
    Number of seconds after which LE certificate can be issued.
    client str
    Client ID.
    enabled bool
    Whether resource is enabled.
    id str
    The provider-assigned unique ID for this managed resource.
    ip str
    Resources's protected IP address.
    status str
    Show resource status.
    wait_for_le float
    Number of seconds after which LE certificate can be issued.
    client String
    Client ID.
    enabled Boolean
    Whether resource is enabled.
    id String
    The provider-assigned unique ID for this managed resource.
    ip String
    Resources's protected IP address.
    status String
    Show resource status.
    waitForLe Number
    Number of seconds after which LE certificate can be issued.

    Look up Existing ProtectionResource Resource

    Get an existing ProtectionResource 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?: ProtectionResourceState, opts?: CustomResourceOptions): ProtectionResource
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            active: Optional[bool] = None,
            client: Optional[str] = None,
            enabled: Optional[bool] = None,
            geoip_lists: Optional[Sequence[str]] = None,
            geoip_mode: Optional[str] = None,
            http_to_origin: Optional[bool] = None,
            ip: Optional[str] = None,
            load_balancing_type: Optional[str] = None,
            multiple_origins: Optional[bool] = None,
            name: Optional[str] = None,
            protection_resource_id: Optional[str] = None,
            redirect_to_https: Optional[bool] = None,
            status: Optional[str] = None,
            tls: Optional[Sequence[str]] = None,
            waf: Optional[bool] = None,
            wait_for_le: Optional[float] = None,
            wildcard_aliases: Optional[bool] = None,
            www_redirect: Optional[bool] = None) -> ProtectionResource
    func GetProtectionResource(ctx *Context, name string, id IDInput, state *ProtectionResourceState, opts ...ResourceOption) (*ProtectionResource, error)
    public static ProtectionResource Get(string name, Input<string> id, ProtectionResourceState? state, CustomResourceOptions? opts = null)
    public static ProtectionResource get(String name, Output<String> id, ProtectionResourceState state, CustomResourceOptions options)
    resources:  _:    type: edgecenter:ProtectionResource    get:      id: ${id}
    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:
    Active bool
    Enable or disable DDoS protection resource.
    Client string
    Client ID.
    Enabled bool
    Whether resource is enabled.
    GeoipLists List<string>
    List of countries to apply geoip_mode policy to.
    GeoipMode string
    Manage country access policy to control access to DDoS resource from the specified countries. Available values are no, allow, block.
    HttpToOrigin bool
    Whether to use HTTP to make requests to the origin. If set to false (default), HTTPS is used.
    Ip string
    Resources's protected IP address.
    LoadBalancingType string
    Sets load balancing type. Available values are Round Robin, Round Robin with session persistence.
    MultipleOrigins bool
    Enable or disable Multiple origins feature.
    Name string
    The DNS name of the DDoS protection resource.
    ProtectionResourceId string
    The ID of this resource.
    RedirectToHttps bool
    Enable or disable from HTTP to HTTPS
    Status string
    Show resource status.
    Tls List<string>
    The list of supported TLS versions. Available value: 1, 1.1, 1.2, 1.3.
    Waf bool
    Enable or disable WAF.
    WaitForLe double
    Number of seconds after which LE certificate can be issued.
    WildcardAliases bool
    Enable or disable Wildcard aliases feature.
    WwwRedirect bool
    Enable or disable redirect from WWW to the primary domain option.
    Active bool
    Enable or disable DDoS protection resource.
    Client string
    Client ID.
    Enabled bool
    Whether resource is enabled.
    GeoipLists []string
    List of countries to apply geoip_mode policy to.
    GeoipMode string
    Manage country access policy to control access to DDoS resource from the specified countries. Available values are no, allow, block.
    HttpToOrigin bool
    Whether to use HTTP to make requests to the origin. If set to false (default), HTTPS is used.
    Ip string
    Resources's protected IP address.
    LoadBalancingType string
    Sets load balancing type. Available values are Round Robin, Round Robin with session persistence.
    MultipleOrigins bool
    Enable or disable Multiple origins feature.
    Name string
    The DNS name of the DDoS protection resource.
    ProtectionResourceId string
    The ID of this resource.
    RedirectToHttps bool
    Enable or disable from HTTP to HTTPS
    Status string
    Show resource status.
    Tls []string
    The list of supported TLS versions. Available value: 1, 1.1, 1.2, 1.3.
    Waf bool
    Enable or disable WAF.
    WaitForLe float64
    Number of seconds after which LE certificate can be issued.
    WildcardAliases bool
    Enable or disable Wildcard aliases feature.
    WwwRedirect bool
    Enable or disable redirect from WWW to the primary domain option.
    active Boolean
    Enable or disable DDoS protection resource.
    client String
    Client ID.
    enabled Boolean
    Whether resource is enabled.
    geoipLists List<String>
    List of countries to apply geoip_mode policy to.
    geoipMode String
    Manage country access policy to control access to DDoS resource from the specified countries. Available values are no, allow, block.
    httpToOrigin Boolean
    Whether to use HTTP to make requests to the origin. If set to false (default), HTTPS is used.
    ip String
    Resources's protected IP address.
    loadBalancingType String
    Sets load balancing type. Available values are Round Robin, Round Robin with session persistence.
    multipleOrigins Boolean
    Enable or disable Multiple origins feature.
    name String
    The DNS name of the DDoS protection resource.
    protectionResourceId String
    The ID of this resource.
    redirectToHttps Boolean
    Enable or disable from HTTP to HTTPS
    status String
    Show resource status.
    tls List<String>
    The list of supported TLS versions. Available value: 1, 1.1, 1.2, 1.3.
    waf Boolean
    Enable or disable WAF.
    waitForLe Double
    Number of seconds after which LE certificate can be issued.
    wildcardAliases Boolean
    Enable or disable Wildcard aliases feature.
    wwwRedirect Boolean
    Enable or disable redirect from WWW to the primary domain option.
    active boolean
    Enable or disable DDoS protection resource.
    client string
    Client ID.
    enabled boolean
    Whether resource is enabled.
    geoipLists string[]
    List of countries to apply geoip_mode policy to.
    geoipMode string
    Manage country access policy to control access to DDoS resource from the specified countries. Available values are no, allow, block.
    httpToOrigin boolean
    Whether to use HTTP to make requests to the origin. If set to false (default), HTTPS is used.
    ip string
    Resources's protected IP address.
    loadBalancingType string
    Sets load balancing type. Available values are Round Robin, Round Robin with session persistence.
    multipleOrigins boolean
    Enable or disable Multiple origins feature.
    name string
    The DNS name of the DDoS protection resource.
    protectionResourceId string
    The ID of this resource.
    redirectToHttps boolean
    Enable or disable from HTTP to HTTPS
    status string
    Show resource status.
    tls string[]
    The list of supported TLS versions. Available value: 1, 1.1, 1.2, 1.3.
    waf boolean
    Enable or disable WAF.
    waitForLe number
    Number of seconds after which LE certificate can be issued.
    wildcardAliases boolean
    Enable or disable Wildcard aliases feature.
    wwwRedirect boolean
    Enable or disable redirect from WWW to the primary domain option.
    active bool
    Enable or disable DDoS protection resource.
    client str
    Client ID.
    enabled bool
    Whether resource is enabled.
    geoip_lists Sequence[str]
    List of countries to apply geoip_mode policy to.
    geoip_mode str
    Manage country access policy to control access to DDoS resource from the specified countries. Available values are no, allow, block.
    http_to_origin bool
    Whether to use HTTP to make requests to the origin. If set to false (default), HTTPS is used.
    ip str
    Resources's protected IP address.
    load_balancing_type str
    Sets load balancing type. Available values are Round Robin, Round Robin with session persistence.
    multiple_origins bool
    Enable or disable Multiple origins feature.
    name str
    The DNS name of the DDoS protection resource.
    protection_resource_id str
    The ID of this resource.
    redirect_to_https bool
    Enable or disable from HTTP to HTTPS
    status str
    Show resource status.
    tls Sequence[str]
    The list of supported TLS versions. Available value: 1, 1.1, 1.2, 1.3.
    waf bool
    Enable or disable WAF.
    wait_for_le float
    Number of seconds after which LE certificate can be issued.
    wildcard_aliases bool
    Enable or disable Wildcard aliases feature.
    www_redirect bool
    Enable or disable redirect from WWW to the primary domain option.
    active Boolean
    Enable or disable DDoS protection resource.
    client String
    Client ID.
    enabled Boolean
    Whether resource is enabled.
    geoipLists List<String>
    List of countries to apply geoip_mode policy to.
    geoipMode String
    Manage country access policy to control access to DDoS resource from the specified countries. Available values are no, allow, block.
    httpToOrigin Boolean
    Whether to use HTTP to make requests to the origin. If set to false (default), HTTPS is used.
    ip String
    Resources's protected IP address.
    loadBalancingType String
    Sets load balancing type. Available values are Round Robin, Round Robin with session persistence.
    multipleOrigins Boolean
    Enable or disable Multiple origins feature.
    name String
    The DNS name of the DDoS protection resource.
    protectionResourceId String
    The ID of this resource.
    redirectToHttps Boolean
    Enable or disable from HTTP to HTTPS
    status String
    Show resource status.
    tls List<String>
    The list of supported TLS versions. Available value: 1, 1.1, 1.2, 1.3.
    waf Boolean
    Enable or disable WAF.
    waitForLe Number
    Number of seconds after which LE certificate can be issued.
    wildcardAliases Boolean
    Enable or disable Wildcard aliases feature.
    wwwRedirect Boolean
    Enable or disable redirect from WWW to the primary domain option.

    Import

    import using <resource_id> format

    $ pulumi import edgecenter:index/protectionResource:ProtectionResource protected_example_com 12345
    

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

    Package Details

    Repository
    edgecenter edge-center/terraform-provider-edgecenter
    License
    Notes
    This Pulumi package is based on the edgecenter Terraform Provider.
    edgecenter logo
    edgecenter 0.9.4 published on Thursday, Aug 14, 2025 by edge-center