1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. LbWhitelistV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.LbWhitelistV2

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages an enhanced load balancer whitelist resource within FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const whitelist1 = new flexibleengine.LbWhitelistV2("whitelist1", {
        enableWhitelist: true,
        listenerId: "d9415786-5f1a-428b-b35f-2f1523e146d2",
        whitelist: "192.168.11.1,192.168.0.1/24,192.168.201.18/8",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    whitelist1 = flexibleengine.LbWhitelistV2("whitelist1",
        enable_whitelist=True,
        listener_id="d9415786-5f1a-428b-b35f-2f1523e146d2",
        whitelist="192.168.11.1,192.168.0.1/24,192.168.201.18/8")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.NewLbWhitelistV2(ctx, "whitelist1", &flexibleengine.LbWhitelistV2Args{
    			EnableWhitelist: pulumi.Bool(true),
    			ListenerId:      pulumi.String("d9415786-5f1a-428b-b35f-2f1523e146d2"),
    			Whitelist:       pulumi.String("192.168.11.1,192.168.0.1/24,192.168.201.18/8"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var whitelist1 = new Flexibleengine.LbWhitelistV2("whitelist1", new()
        {
            EnableWhitelist = true,
            ListenerId = "d9415786-5f1a-428b-b35f-2f1523e146d2",
            Whitelist = "192.168.11.1,192.168.0.1/24,192.168.201.18/8",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.LbWhitelistV2;
    import com.pulumi.flexibleengine.LbWhitelistV2Args;
    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 whitelist1 = new LbWhitelistV2("whitelist1", LbWhitelistV2Args.builder()
                .enableWhitelist(true)
                .listenerId("d9415786-5f1a-428b-b35f-2f1523e146d2")
                .whitelist("192.168.11.1,192.168.0.1/24,192.168.201.18/8")
                .build());
    
        }
    }
    
    resources:
      whitelist1:
        type: flexibleengine:LbWhitelistV2
        properties:
          enableWhitelist: true
          listenerId: d9415786-5f1a-428b-b35f-2f1523e146d2
          whitelist: 192.168.11.1,192.168.0.1/24,192.168.201.18/8
    

    Create LbWhitelistV2 Resource

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

    Constructor syntax

    new LbWhitelistV2(name: string, args: LbWhitelistV2Args, opts?: CustomResourceOptions);
    @overload
    def LbWhitelistV2(resource_name: str,
                      args: LbWhitelistV2Args,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def LbWhitelistV2(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      listener_id: Optional[str] = None,
                      enable_whitelist: Optional[bool] = None,
                      lb_whitelist_v2_id: Optional[str] = None,
                      tenant_id: Optional[str] = None,
                      timeouts: Optional[LbWhitelistV2TimeoutsArgs] = None,
                      whitelist: Optional[str] = None)
    func NewLbWhitelistV2(ctx *Context, name string, args LbWhitelistV2Args, opts ...ResourceOption) (*LbWhitelistV2, error)
    public LbWhitelistV2(string name, LbWhitelistV2Args args, CustomResourceOptions? opts = null)
    public LbWhitelistV2(String name, LbWhitelistV2Args args)
    public LbWhitelistV2(String name, LbWhitelistV2Args args, CustomResourceOptions options)
    
    type: flexibleengine:LbWhitelistV2
    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 LbWhitelistV2Args
    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 LbWhitelistV2Args
    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 LbWhitelistV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LbWhitelistV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LbWhitelistV2Args
    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 lbWhitelistV2Resource = new Flexibleengine.LbWhitelistV2("lbWhitelistV2Resource", new()
    {
        ListenerId = "string",
        EnableWhitelist = false,
        LbWhitelistV2Id = "string",
        Timeouts = new Flexibleengine.Inputs.LbWhitelistV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        Whitelist = "string",
    });
    
    example, err := flexibleengine.NewLbWhitelistV2(ctx, "lbWhitelistV2Resource", &flexibleengine.LbWhitelistV2Args{
    	ListenerId:      pulumi.String("string"),
    	EnableWhitelist: pulumi.Bool(false),
    	LbWhitelistV2Id: pulumi.String("string"),
    	Timeouts: &flexibleengine.LbWhitelistV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	Whitelist: pulumi.String("string"),
    })
    
    var lbWhitelistV2Resource = new LbWhitelistV2("lbWhitelistV2Resource", LbWhitelistV2Args.builder()
        .listenerId("string")
        .enableWhitelist(false)
        .lbWhitelistV2Id("string")
        .timeouts(LbWhitelistV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .whitelist("string")
        .build());
    
    lb_whitelist_v2_resource = flexibleengine.LbWhitelistV2("lbWhitelistV2Resource",
        listener_id="string",
        enable_whitelist=False,
        lb_whitelist_v2_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        whitelist="string")
    
    const lbWhitelistV2Resource = new flexibleengine.LbWhitelistV2("lbWhitelistV2Resource", {
        listenerId: "string",
        enableWhitelist: false,
        lbWhitelistV2Id: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        whitelist: "string",
    });
    
    type: flexibleengine:LbWhitelistV2
    properties:
        enableWhitelist: false
        lbWhitelistV2Id: string
        listenerId: string
        timeouts:
            create: string
            delete: string
            update: string
        whitelist: string
    

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

    ListenerId string
    The Listener ID that the whitelist will be associated with. Changing this creates a new whitelist.
    EnableWhitelist bool
    Specify whether to enable access control.
    LbWhitelistV2Id string
    The unique ID for the whitelist.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbWhitelistV2Timeouts
    Whitelist string
    Specifies the IP addresses in the whitelist. Use commas(,) to separate the multiple IP addresses.
    ListenerId string
    The Listener ID that the whitelist will be associated with. Changing this creates a new whitelist.
    EnableWhitelist bool
    Specify whether to enable access control.
    LbWhitelistV2Id string
    The unique ID for the whitelist.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbWhitelistV2TimeoutsArgs
    Whitelist string
    Specifies the IP addresses in the whitelist. Use commas(,) to separate the multiple IP addresses.
    listenerId String
    The Listener ID that the whitelist will be associated with. Changing this creates a new whitelist.
    enableWhitelist Boolean
    Specify whether to enable access control.
    lbWhitelistV2Id String
    The unique ID for the whitelist.
    tenantId String

    Deprecated: Deprecated

    timeouts LbWhitelistV2Timeouts
    whitelist String
    Specifies the IP addresses in the whitelist. Use commas(,) to separate the multiple IP addresses.
    listenerId string
    The Listener ID that the whitelist will be associated with. Changing this creates a new whitelist.
    enableWhitelist boolean
    Specify whether to enable access control.
    lbWhitelistV2Id string
    The unique ID for the whitelist.
    tenantId string

    Deprecated: Deprecated

    timeouts LbWhitelistV2Timeouts
    whitelist string
    Specifies the IP addresses in the whitelist. Use commas(,) to separate the multiple IP addresses.
    listener_id str
    The Listener ID that the whitelist will be associated with. Changing this creates a new whitelist.
    enable_whitelist bool
    Specify whether to enable access control.
    lb_whitelist_v2_id str
    The unique ID for the whitelist.
    tenant_id str

    Deprecated: Deprecated

    timeouts LbWhitelistV2TimeoutsArgs
    whitelist str
    Specifies the IP addresses in the whitelist. Use commas(,) to separate the multiple IP addresses.
    listenerId String
    The Listener ID that the whitelist will be associated with. Changing this creates a new whitelist.
    enableWhitelist Boolean
    Specify whether to enable access control.
    lbWhitelistV2Id String
    The unique ID for the whitelist.
    tenantId String

    Deprecated: Deprecated

    timeouts Property Map
    whitelist String
    Specifies the IP addresses in the whitelist. Use commas(,) to separate the multiple IP addresses.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LbWhitelistV2 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 LbWhitelistV2 Resource

    Get an existing LbWhitelistV2 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?: LbWhitelistV2State, opts?: CustomResourceOptions): LbWhitelistV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enable_whitelist: Optional[bool] = None,
            lb_whitelist_v2_id: Optional[str] = None,
            listener_id: Optional[str] = None,
            tenant_id: Optional[str] = None,
            timeouts: Optional[LbWhitelistV2TimeoutsArgs] = None,
            whitelist: Optional[str] = None) -> LbWhitelistV2
    func GetLbWhitelistV2(ctx *Context, name string, id IDInput, state *LbWhitelistV2State, opts ...ResourceOption) (*LbWhitelistV2, error)
    public static LbWhitelistV2 Get(string name, Input<string> id, LbWhitelistV2State? state, CustomResourceOptions? opts = null)
    public static LbWhitelistV2 get(String name, Output<String> id, LbWhitelistV2State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:LbWhitelistV2    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:
    EnableWhitelist bool
    Specify whether to enable access control.
    LbWhitelistV2Id string
    The unique ID for the whitelist.
    ListenerId string
    The Listener ID that the whitelist will be associated with. Changing this creates a new whitelist.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbWhitelistV2Timeouts
    Whitelist string
    Specifies the IP addresses in the whitelist. Use commas(,) to separate the multiple IP addresses.
    EnableWhitelist bool
    Specify whether to enable access control.
    LbWhitelistV2Id string
    The unique ID for the whitelist.
    ListenerId string
    The Listener ID that the whitelist will be associated with. Changing this creates a new whitelist.
    TenantId string

    Deprecated: Deprecated

    Timeouts LbWhitelistV2TimeoutsArgs
    Whitelist string
    Specifies the IP addresses in the whitelist. Use commas(,) to separate the multiple IP addresses.
    enableWhitelist Boolean
    Specify whether to enable access control.
    lbWhitelistV2Id String
    The unique ID for the whitelist.
    listenerId String
    The Listener ID that the whitelist will be associated with. Changing this creates a new whitelist.
    tenantId String

    Deprecated: Deprecated

    timeouts LbWhitelistV2Timeouts
    whitelist String
    Specifies the IP addresses in the whitelist. Use commas(,) to separate the multiple IP addresses.
    enableWhitelist boolean
    Specify whether to enable access control.
    lbWhitelistV2Id string
    The unique ID for the whitelist.
    listenerId string
    The Listener ID that the whitelist will be associated with. Changing this creates a new whitelist.
    tenantId string

    Deprecated: Deprecated

    timeouts LbWhitelistV2Timeouts
    whitelist string
    Specifies the IP addresses in the whitelist. Use commas(,) to separate the multiple IP addresses.
    enable_whitelist bool
    Specify whether to enable access control.
    lb_whitelist_v2_id str
    The unique ID for the whitelist.
    listener_id str
    The Listener ID that the whitelist will be associated with. Changing this creates a new whitelist.
    tenant_id str

    Deprecated: Deprecated

    timeouts LbWhitelistV2TimeoutsArgs
    whitelist str
    Specifies the IP addresses in the whitelist. Use commas(,) to separate the multiple IP addresses.
    enableWhitelist Boolean
    Specify whether to enable access control.
    lbWhitelistV2Id String
    The unique ID for the whitelist.
    listenerId String
    The Listener ID that the whitelist will be associated with. Changing this creates a new whitelist.
    tenantId String

    Deprecated: Deprecated

    timeouts Property Map
    whitelist String
    Specifies the IP addresses in the whitelist. Use commas(,) to separate the multiple IP addresses.

    Supporting Types

    LbWhitelistV2Timeouts, LbWhitelistV2TimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud