1. Packages
  2. Volcengine
  3. API Docs
  4. rds_postgresql
  5. Allowlist
Volcengine v0.0.40 published on Wednesday, Dec 24, 2025 by Volcengine
volcengine logo
Volcengine v0.0.40 published on Wednesday, Dec 24, 2025 by Volcengine

    Provides a resource to manage rds postgresql allowlist

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.rds_postgresql.Allowlist("foo", {
        allowLists: ["10.0.0.0/24"],
        allowListDesc: "acc-test",
        allowListName: "acc-test-allowlist",
        allowListType: "IPv4",
        securityGroupBindInfos: [{
            bindMode: "IngressDirectionIp",
            securityGroupId: "sg-1jojfhw8rca9s1n7ampztrq6w",
        }],
    });
    const example = new volcengine.rds_postgresql.Allowlist("example", {
        allowListName: "unify_new",
        instanceIds: [
            "postgres-72715e0d9f58",
            "postgres-eb3a578a6d73",
        ],
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.rds_postgresql.Allowlist("foo",
        allow_lists=["10.0.0.0/24"],
        allow_list_desc="acc-test",
        allow_list_name="acc-test-allowlist",
        allow_list_type="IPv4",
        security_group_bind_infos=[volcengine.rds_postgresql.AllowlistSecurityGroupBindInfoArgs(
            bind_mode="IngressDirectionIp",
            security_group_id="sg-1jojfhw8rca9s1n7ampztrq6w",
        )])
    example = volcengine.rds_postgresql.Allowlist("example",
        allow_list_name="unify_new",
        instance_ids=[
            "postgres-72715e0d9f58",
            "postgres-eb3a578a6d73",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rds_postgresql"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rds_postgresql.NewAllowlist(ctx, "foo", &rds_postgresql.AllowlistArgs{
    			AllowLists: pulumi.StringArray{
    				pulumi.String("10.0.0.0/24"),
    			},
    			AllowListDesc: pulumi.String("acc-test"),
    			AllowListName: pulumi.String("acc-test-allowlist"),
    			AllowListType: pulumi.String("IPv4"),
    			SecurityGroupBindInfos: rds_postgresql.AllowlistSecurityGroupBindInfoArray{
    				&rds_postgresql.AllowlistSecurityGroupBindInfoArgs{
    					BindMode:        pulumi.String("IngressDirectionIp"),
    					SecurityGroupId: pulumi.String("sg-1jojfhw8rca9s1n7ampztrq6w"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = rds_postgresql.NewAllowlist(ctx, "example", &rds_postgresql.AllowlistArgs{
    			AllowListName: pulumi.String("unify_new"),
    			InstanceIds: pulumi.StringArray{
    				pulumi.String("postgres-72715e0d9f58"),
    				pulumi.String("postgres-eb3a578a6d73"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Rds_postgresql.Allowlist("foo", new()
        {
            AllowLists = new[]
            {
                "10.0.0.0/24",
            },
            AllowListDesc = "acc-test",
            AllowListName = "acc-test-allowlist",
            AllowListType = "IPv4",
            SecurityGroupBindInfos = new[]
            {
                new Volcengine.Rds_postgresql.Inputs.AllowlistSecurityGroupBindInfoArgs
                {
                    BindMode = "IngressDirectionIp",
                    SecurityGroupId = "sg-1jojfhw8rca9s1n7ampztrq6w",
                },
            },
        });
    
        var example = new Volcengine.Rds_postgresql.Allowlist("example", new()
        {
            AllowListName = "unify_new",
            InstanceIds = new[]
            {
                "postgres-72715e0d9f58",
                "postgres-eb3a578a6d73",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.rds_postgresql.Allowlist;
    import com.pulumi.volcengine.rds_postgresql.AllowlistArgs;
    import com.pulumi.volcengine.rds_postgresql.inputs.AllowlistSecurityGroupBindInfoArgs;
    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 foo = new Allowlist("foo", AllowlistArgs.builder()        
                .allowLists("10.0.0.0/24")
                .allowListDesc("acc-test")
                .allowListName("acc-test-allowlist")
                .allowListType("IPv4")
                .securityGroupBindInfos(AllowlistSecurityGroupBindInfoArgs.builder()
                    .bindMode("IngressDirectionIp")
                    .securityGroupId("sg-1jojfhw8rca9s1n7ampztrq6w")
                    .build())
                .build());
    
            var example = new Allowlist("example", AllowlistArgs.builder()        
                .allowListName("unify_new")
                .instanceIds(            
                    "postgres-72715e0d9f58",
                    "postgres-eb3a578a6d73")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: volcengine:rds_postgresql:Allowlist
        properties:
          allowLists:
            - 10.0.0.0/24
          allowListDesc: acc-test
          allowListName: acc-test-allowlist
          allowListType: IPv4
          securityGroupBindInfos:
            - bindMode: IngressDirectionIp
              securityGroupId: sg-1jojfhw8rca9s1n7ampztrq6w
      example:
        type: volcengine:rds_postgresql:Allowlist
        properties:
          allowListName: unify_new
          instanceIds:
            - postgres-72715e0d9f58
            - postgres-eb3a578a6d73
    

    Create Allowlist Resource

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

    Constructor syntax

    new Allowlist(name: string, args: AllowlistArgs, opts?: CustomResourceOptions);
    @overload
    def Allowlist(resource_name: str,
                  args: AllowlistArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Allowlist(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  allow_list_name: Optional[str] = None,
                  allow_list_category: Optional[str] = None,
                  allow_list_desc: Optional[str] = None,
                  allow_list_type: Optional[str] = None,
                  allow_lists: Optional[Sequence[str]] = None,
                  instance_ids: Optional[Sequence[str]] = None,
                  security_group_bind_infos: Optional[Sequence[AllowlistSecurityGroupBindInfoArgs]] = None,
                  update_security_group: Optional[bool] = None,
                  user_allow_lists: Optional[Sequence[str]] = None)
    func NewAllowlist(ctx *Context, name string, args AllowlistArgs, opts ...ResourceOption) (*Allowlist, error)
    public Allowlist(string name, AllowlistArgs args, CustomResourceOptions? opts = null)
    public Allowlist(String name, AllowlistArgs args)
    public Allowlist(String name, AllowlistArgs args, CustomResourceOptions options)
    
    type: volcengine:rds_postgresql:Allowlist
    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 AllowlistArgs
    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 AllowlistArgs
    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 AllowlistArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AllowlistArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AllowlistArgs
    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 volcengineAllowlistResource = new Volcengine.Rds_postgresql.Allowlist("volcengineAllowlistResource", new()
    {
        AllowListName = "string",
        AllowListCategory = "string",
        AllowListDesc = "string",
        AllowListType = "string",
        AllowLists = new[]
        {
            "string",
        },
        InstanceIds = new[]
        {
            "string",
        },
        SecurityGroupBindInfos = new[]
        {
            new Volcengine.Rds_postgresql.Inputs.AllowlistSecurityGroupBindInfoArgs
            {
                BindMode = "string",
                SecurityGroupId = "string",
                IpLists = new[]
                {
                    "string",
                },
                SecurityGroupName = "string",
            },
        },
        UpdateSecurityGroup = false,
        UserAllowLists = new[]
        {
            "string",
        },
    });
    
    example, err := rds_postgresql.NewAllowlist(ctx, "volcengineAllowlistResource", &rds_postgresql.AllowlistArgs{
    	AllowListName:     pulumi.String("string"),
    	AllowListCategory: pulumi.String("string"),
    	AllowListDesc:     pulumi.String("string"),
    	AllowListType:     pulumi.String("string"),
    	AllowLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	InstanceIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SecurityGroupBindInfos: rds_postgresql.AllowlistSecurityGroupBindInfoArray{
    		&rds_postgresql.AllowlistSecurityGroupBindInfoArgs{
    			BindMode:        pulumi.String("string"),
    			SecurityGroupId: pulumi.String("string"),
    			IpLists: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			SecurityGroupName: pulumi.String("string"),
    		},
    	},
    	UpdateSecurityGroup: pulumi.Bool(false),
    	UserAllowLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var volcengineAllowlistResource = new com.pulumi.volcengine.rds_postgresql.Allowlist("volcengineAllowlistResource", com.pulumi.volcengine.rds_postgresql.AllowlistArgs.builder()
        .allowListName("string")
        .allowListCategory("string")
        .allowListDesc("string")
        .allowListType("string")
        .allowLists("string")
        .instanceIds("string")
        .securityGroupBindInfos(AllowlistSecurityGroupBindInfoArgs.builder()
            .bindMode("string")
            .securityGroupId("string")
            .ipLists("string")
            .securityGroupName("string")
            .build())
        .updateSecurityGroup(false)
        .userAllowLists("string")
        .build());
    
    volcengine_allowlist_resource = volcengine.rds_postgresql.Allowlist("volcengineAllowlistResource",
        allow_list_name="string",
        allow_list_category="string",
        allow_list_desc="string",
        allow_list_type="string",
        allow_lists=["string"],
        instance_ids=["string"],
        security_group_bind_infos=[{
            "bind_mode": "string",
            "security_group_id": "string",
            "ip_lists": ["string"],
            "security_group_name": "string",
        }],
        update_security_group=False,
        user_allow_lists=["string"])
    
    const volcengineAllowlistResource = new volcengine.rds_postgresql.Allowlist("volcengineAllowlistResource", {
        allowListName: "string",
        allowListCategory: "string",
        allowListDesc: "string",
        allowListType: "string",
        allowLists: ["string"],
        instanceIds: ["string"],
        securityGroupBindInfos: [{
            bindMode: "string",
            securityGroupId: "string",
            ipLists: ["string"],
            securityGroupName: "string",
        }],
        updateSecurityGroup: false,
        userAllowLists: ["string"],
    });
    
    type: volcengine:rds_postgresql:Allowlist
    properties:
        allowListCategory: string
        allowListDesc: string
        allowListName: string
        allowListType: string
        allowLists:
            - string
        instanceIds:
            - string
        securityGroupBindInfos:
            - bindMode: string
              ipLists:
                - string
              securityGroupId: string
              securityGroupName: string
        updateSecurityGroup: false
        userAllowLists:
            - string
    

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

    AllowListName string
    The name of the postgresql allow list.
    AllowListCategory string
    The category of the allow list. Valid values: Ordinary, Default. When this parameter is used as a request parameter, there is no default value.
    AllowListDesc string
    The description of the postgresql allow list.
    AllowListType string
    The type of IP address in the whitelist. Currently only IPv4 addresses are supported.
    AllowLists List<string>
    Enter an IP address or a range of IP addresses in CIDR format. This field cannot be used together with the user_allow_list field.
    InstanceIds List<string>
    IDs of PostgreSQL instances to unify allowlists. When set, creation uses UnifyNewAllowList to merge existing instance allowlists into a new one. Supports merging and generating allowlists of up to 300 instances.
    SecurityGroupBindInfos List<AllowlistSecurityGroupBindInfo>
    The information of security groups to bind with the allow list.
    UpdateSecurityGroup bool
    Whether to update the security groups bound to the allowlist when modifying.
    UserAllowLists List<string>
    IP addresses outside security groups to be added to the allowlist. Cannot be used with allow_list.
    AllowListName string
    The name of the postgresql allow list.
    AllowListCategory string
    The category of the allow list. Valid values: Ordinary, Default. When this parameter is used as a request parameter, there is no default value.
    AllowListDesc string
    The description of the postgresql allow list.
    AllowListType string
    The type of IP address in the whitelist. Currently only IPv4 addresses are supported.
    AllowLists []string
    Enter an IP address or a range of IP addresses in CIDR format. This field cannot be used together with the user_allow_list field.
    InstanceIds []string
    IDs of PostgreSQL instances to unify allowlists. When set, creation uses UnifyNewAllowList to merge existing instance allowlists into a new one. Supports merging and generating allowlists of up to 300 instances.
    SecurityGroupBindInfos []AllowlistSecurityGroupBindInfoArgs
    The information of security groups to bind with the allow list.
    UpdateSecurityGroup bool
    Whether to update the security groups bound to the allowlist when modifying.
    UserAllowLists []string
    IP addresses outside security groups to be added to the allowlist. Cannot be used with allow_list.
    allowListName String
    The name of the postgresql allow list.
    allowListCategory String
    The category of the allow list. Valid values: Ordinary, Default. When this parameter is used as a request parameter, there is no default value.
    allowListDesc String
    The description of the postgresql allow list.
    allowListType String
    The type of IP address in the whitelist. Currently only IPv4 addresses are supported.
    allowLists List<String>
    Enter an IP address or a range of IP addresses in CIDR format. This field cannot be used together with the user_allow_list field.
    instanceIds List<String>
    IDs of PostgreSQL instances to unify allowlists. When set, creation uses UnifyNewAllowList to merge existing instance allowlists into a new one. Supports merging and generating allowlists of up to 300 instances.
    securityGroupBindInfos List<AllowlistSecurityGroupBindInfo>
    The information of security groups to bind with the allow list.
    updateSecurityGroup Boolean
    Whether to update the security groups bound to the allowlist when modifying.
    userAllowLists List<String>
    IP addresses outside security groups to be added to the allowlist. Cannot be used with allow_list.
    allowListName string
    The name of the postgresql allow list.
    allowListCategory string
    The category of the allow list. Valid values: Ordinary, Default. When this parameter is used as a request parameter, there is no default value.
    allowListDesc string
    The description of the postgresql allow list.
    allowListType string
    The type of IP address in the whitelist. Currently only IPv4 addresses are supported.
    allowLists string[]
    Enter an IP address or a range of IP addresses in CIDR format. This field cannot be used together with the user_allow_list field.
    instanceIds string[]
    IDs of PostgreSQL instances to unify allowlists. When set, creation uses UnifyNewAllowList to merge existing instance allowlists into a new one. Supports merging and generating allowlists of up to 300 instances.
    securityGroupBindInfos AllowlistSecurityGroupBindInfo[]
    The information of security groups to bind with the allow list.
    updateSecurityGroup boolean
    Whether to update the security groups bound to the allowlist when modifying.
    userAllowLists string[]
    IP addresses outside security groups to be added to the allowlist. Cannot be used with allow_list.
    allow_list_name str
    The name of the postgresql allow list.
    allow_list_category str
    The category of the allow list. Valid values: Ordinary, Default. When this parameter is used as a request parameter, there is no default value.
    allow_list_desc str
    The description of the postgresql allow list.
    allow_list_type str
    The type of IP address in the whitelist. Currently only IPv4 addresses are supported.
    allow_lists Sequence[str]
    Enter an IP address or a range of IP addresses in CIDR format. This field cannot be used together with the user_allow_list field.
    instance_ids Sequence[str]
    IDs of PostgreSQL instances to unify allowlists. When set, creation uses UnifyNewAllowList to merge existing instance allowlists into a new one. Supports merging and generating allowlists of up to 300 instances.
    security_group_bind_infos Sequence[AllowlistSecurityGroupBindInfoArgs]
    The information of security groups to bind with the allow list.
    update_security_group bool
    Whether to update the security groups bound to the allowlist when modifying.
    user_allow_lists Sequence[str]
    IP addresses outside security groups to be added to the allowlist. Cannot be used with allow_list.
    allowListName String
    The name of the postgresql allow list.
    allowListCategory String
    The category of the allow list. Valid values: Ordinary, Default. When this parameter is used as a request parameter, there is no default value.
    allowListDesc String
    The description of the postgresql allow list.
    allowListType String
    The type of IP address in the whitelist. Currently only IPv4 addresses are supported.
    allowLists List<String>
    Enter an IP address or a range of IP addresses in CIDR format. This field cannot be used together with the user_allow_list field.
    instanceIds List<String>
    IDs of PostgreSQL instances to unify allowlists. When set, creation uses UnifyNewAllowList to merge existing instance allowlists into a new one. Supports merging and generating allowlists of up to 300 instances.
    securityGroupBindInfos List<Property Map>
    The information of security groups to bind with the allow list.
    updateSecurityGroup Boolean
    Whether to update the security groups bound to the allowlist when modifying.
    userAllowLists List<String>
    IP addresses outside security groups to be added to the allowlist. Cannot be used with allow_list.

    Outputs

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

    AssociatedInstanceNum int
    The total number of instances bound under the whitelist.
    AssociatedInstances List<AllowlistAssociatedInstance>
    The list of postgresql instances.
    Id string
    The provider-assigned unique ID for this managed resource.
    AssociatedInstanceNum int
    The total number of instances bound under the whitelist.
    AssociatedInstances []AllowlistAssociatedInstance
    The list of postgresql instances.
    Id string
    The provider-assigned unique ID for this managed resource.
    associatedInstanceNum Integer
    The total number of instances bound under the whitelist.
    associatedInstances List<AllowlistAssociatedInstance>
    The list of postgresql instances.
    id String
    The provider-assigned unique ID for this managed resource.
    associatedInstanceNum number
    The total number of instances bound under the whitelist.
    associatedInstances AllowlistAssociatedInstance[]
    The list of postgresql instances.
    id string
    The provider-assigned unique ID for this managed resource.
    associated_instance_num int
    The total number of instances bound under the whitelist.
    associated_instances Sequence[AllowlistAssociatedInstance]
    The list of postgresql instances.
    id str
    The provider-assigned unique ID for this managed resource.
    associatedInstanceNum Number
    The total number of instances bound under the whitelist.
    associatedInstances List<Property Map>
    The list of postgresql instances.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Allowlist Resource

    Get an existing Allowlist 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?: AllowlistState, opts?: CustomResourceOptions): Allowlist
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allow_list_category: Optional[str] = None,
            allow_list_desc: Optional[str] = None,
            allow_list_name: Optional[str] = None,
            allow_list_type: Optional[str] = None,
            allow_lists: Optional[Sequence[str]] = None,
            associated_instance_num: Optional[int] = None,
            associated_instances: Optional[Sequence[AllowlistAssociatedInstanceArgs]] = None,
            instance_ids: Optional[Sequence[str]] = None,
            security_group_bind_infos: Optional[Sequence[AllowlistSecurityGroupBindInfoArgs]] = None,
            update_security_group: Optional[bool] = None,
            user_allow_lists: Optional[Sequence[str]] = None) -> Allowlist
    func GetAllowlist(ctx *Context, name string, id IDInput, state *AllowlistState, opts ...ResourceOption) (*Allowlist, error)
    public static Allowlist Get(string name, Input<string> id, AllowlistState? state, CustomResourceOptions? opts = null)
    public static Allowlist get(String name, Output<String> id, AllowlistState state, CustomResourceOptions options)
    resources:  _:    type: volcengine:rds_postgresql:Allowlist    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:
    AllowListCategory string
    The category of the allow list. Valid values: Ordinary, Default. When this parameter is used as a request parameter, there is no default value.
    AllowListDesc string
    The description of the postgresql allow list.
    AllowListName string
    The name of the postgresql allow list.
    AllowListType string
    The type of IP address in the whitelist. Currently only IPv4 addresses are supported.
    AllowLists List<string>
    Enter an IP address or a range of IP addresses in CIDR format. This field cannot be used together with the user_allow_list field.
    AssociatedInstanceNum int
    The total number of instances bound under the whitelist.
    AssociatedInstances List<AllowlistAssociatedInstance>
    The list of postgresql instances.
    InstanceIds List<string>
    IDs of PostgreSQL instances to unify allowlists. When set, creation uses UnifyNewAllowList to merge existing instance allowlists into a new one. Supports merging and generating allowlists of up to 300 instances.
    SecurityGroupBindInfos List<AllowlistSecurityGroupBindInfo>
    The information of security groups to bind with the allow list.
    UpdateSecurityGroup bool
    Whether to update the security groups bound to the allowlist when modifying.
    UserAllowLists List<string>
    IP addresses outside security groups to be added to the allowlist. Cannot be used with allow_list.
    AllowListCategory string
    The category of the allow list. Valid values: Ordinary, Default. When this parameter is used as a request parameter, there is no default value.
    AllowListDesc string
    The description of the postgresql allow list.
    AllowListName string
    The name of the postgresql allow list.
    AllowListType string
    The type of IP address in the whitelist. Currently only IPv4 addresses are supported.
    AllowLists []string
    Enter an IP address or a range of IP addresses in CIDR format. This field cannot be used together with the user_allow_list field.
    AssociatedInstanceNum int
    The total number of instances bound under the whitelist.
    AssociatedInstances []AllowlistAssociatedInstanceArgs
    The list of postgresql instances.
    InstanceIds []string
    IDs of PostgreSQL instances to unify allowlists. When set, creation uses UnifyNewAllowList to merge existing instance allowlists into a new one. Supports merging and generating allowlists of up to 300 instances.
    SecurityGroupBindInfos []AllowlistSecurityGroupBindInfoArgs
    The information of security groups to bind with the allow list.
    UpdateSecurityGroup bool
    Whether to update the security groups bound to the allowlist when modifying.
    UserAllowLists []string
    IP addresses outside security groups to be added to the allowlist. Cannot be used with allow_list.
    allowListCategory String
    The category of the allow list. Valid values: Ordinary, Default. When this parameter is used as a request parameter, there is no default value.
    allowListDesc String
    The description of the postgresql allow list.
    allowListName String
    The name of the postgresql allow list.
    allowListType String
    The type of IP address in the whitelist. Currently only IPv4 addresses are supported.
    allowLists List<String>
    Enter an IP address or a range of IP addresses in CIDR format. This field cannot be used together with the user_allow_list field.
    associatedInstanceNum Integer
    The total number of instances bound under the whitelist.
    associatedInstances List<AllowlistAssociatedInstance>
    The list of postgresql instances.
    instanceIds List<String>
    IDs of PostgreSQL instances to unify allowlists. When set, creation uses UnifyNewAllowList to merge existing instance allowlists into a new one. Supports merging and generating allowlists of up to 300 instances.
    securityGroupBindInfos List<AllowlistSecurityGroupBindInfo>
    The information of security groups to bind with the allow list.
    updateSecurityGroup Boolean
    Whether to update the security groups bound to the allowlist when modifying.
    userAllowLists List<String>
    IP addresses outside security groups to be added to the allowlist. Cannot be used with allow_list.
    allowListCategory string
    The category of the allow list. Valid values: Ordinary, Default. When this parameter is used as a request parameter, there is no default value.
    allowListDesc string
    The description of the postgresql allow list.
    allowListName string
    The name of the postgresql allow list.
    allowListType string
    The type of IP address in the whitelist. Currently only IPv4 addresses are supported.
    allowLists string[]
    Enter an IP address or a range of IP addresses in CIDR format. This field cannot be used together with the user_allow_list field.
    associatedInstanceNum number
    The total number of instances bound under the whitelist.
    associatedInstances AllowlistAssociatedInstance[]
    The list of postgresql instances.
    instanceIds string[]
    IDs of PostgreSQL instances to unify allowlists. When set, creation uses UnifyNewAllowList to merge existing instance allowlists into a new one. Supports merging and generating allowlists of up to 300 instances.
    securityGroupBindInfos AllowlistSecurityGroupBindInfo[]
    The information of security groups to bind with the allow list.
    updateSecurityGroup boolean
    Whether to update the security groups bound to the allowlist when modifying.
    userAllowLists string[]
    IP addresses outside security groups to be added to the allowlist. Cannot be used with allow_list.
    allow_list_category str
    The category of the allow list. Valid values: Ordinary, Default. When this parameter is used as a request parameter, there is no default value.
    allow_list_desc str
    The description of the postgresql allow list.
    allow_list_name str
    The name of the postgresql allow list.
    allow_list_type str
    The type of IP address in the whitelist. Currently only IPv4 addresses are supported.
    allow_lists Sequence[str]
    Enter an IP address or a range of IP addresses in CIDR format. This field cannot be used together with the user_allow_list field.
    associated_instance_num int
    The total number of instances bound under the whitelist.
    associated_instances Sequence[AllowlistAssociatedInstanceArgs]
    The list of postgresql instances.
    instance_ids Sequence[str]
    IDs of PostgreSQL instances to unify allowlists. When set, creation uses UnifyNewAllowList to merge existing instance allowlists into a new one. Supports merging and generating allowlists of up to 300 instances.
    security_group_bind_infos Sequence[AllowlistSecurityGroupBindInfoArgs]
    The information of security groups to bind with the allow list.
    update_security_group bool
    Whether to update the security groups bound to the allowlist when modifying.
    user_allow_lists Sequence[str]
    IP addresses outside security groups to be added to the allowlist. Cannot be used with allow_list.
    allowListCategory String
    The category of the allow list. Valid values: Ordinary, Default. When this parameter is used as a request parameter, there is no default value.
    allowListDesc String
    The description of the postgresql allow list.
    allowListName String
    The name of the postgresql allow list.
    allowListType String
    The type of IP address in the whitelist. Currently only IPv4 addresses are supported.
    allowLists List<String>
    Enter an IP address or a range of IP addresses in CIDR format. This field cannot be used together with the user_allow_list field.
    associatedInstanceNum Number
    The total number of instances bound under the whitelist.
    associatedInstances List<Property Map>
    The list of postgresql instances.
    instanceIds List<String>
    IDs of PostgreSQL instances to unify allowlists. When set, creation uses UnifyNewAllowList to merge existing instance allowlists into a new one. Supports merging and generating allowlists of up to 300 instances.
    securityGroupBindInfos List<Property Map>
    The information of security groups to bind with the allow list.
    updateSecurityGroup Boolean
    Whether to update the security groups bound to the allowlist when modifying.
    userAllowLists List<String>
    IP addresses outside security groups to be added to the allowlist. Cannot be used with allow_list.

    Supporting Types

    AllowlistAssociatedInstance, AllowlistAssociatedInstanceArgs

    InstanceId string
    The id of the postgresql instance.
    InstanceName string
    The name of the postgresql instance.
    Vpc string
    The id of the vpc.
    InstanceId string
    The id of the postgresql instance.
    InstanceName string
    The name of the postgresql instance.
    Vpc string
    The id of the vpc.
    instanceId String
    The id of the postgresql instance.
    instanceName String
    The name of the postgresql instance.
    vpc String
    The id of the vpc.
    instanceId string
    The id of the postgresql instance.
    instanceName string
    The name of the postgresql instance.
    vpc string
    The id of the vpc.
    instance_id str
    The id of the postgresql instance.
    instance_name str
    The name of the postgresql instance.
    vpc str
    The id of the vpc.
    instanceId String
    The id of the postgresql instance.
    instanceName String
    The name of the postgresql instance.
    vpc String
    The id of the vpc.

    AllowlistSecurityGroupBindInfo, AllowlistSecurityGroupBindInfoArgs

    BindMode string
    The binding mode of the security group. Valid values: IngressDirectionIp, AssociateEcsIp.
    SecurityGroupId string
    The ID of the security group.
    IpLists List<string>
    IP addresses in the security group.
    SecurityGroupName string
    The name of the security group.
    BindMode string
    The binding mode of the security group. Valid values: IngressDirectionIp, AssociateEcsIp.
    SecurityGroupId string
    The ID of the security group.
    IpLists []string
    IP addresses in the security group.
    SecurityGroupName string
    The name of the security group.
    bindMode String
    The binding mode of the security group. Valid values: IngressDirectionIp, AssociateEcsIp.
    securityGroupId String
    The ID of the security group.
    ipLists List<String>
    IP addresses in the security group.
    securityGroupName String
    The name of the security group.
    bindMode string
    The binding mode of the security group. Valid values: IngressDirectionIp, AssociateEcsIp.
    securityGroupId string
    The ID of the security group.
    ipLists string[]
    IP addresses in the security group.
    securityGroupName string
    The name of the security group.
    bind_mode str
    The binding mode of the security group. Valid values: IngressDirectionIp, AssociateEcsIp.
    security_group_id str
    The ID of the security group.
    ip_lists Sequence[str]
    IP addresses in the security group.
    security_group_name str
    The name of the security group.
    bindMode String
    The binding mode of the security group. Valid values: IngressDirectionIp, AssociateEcsIp.
    securityGroupId String
    The ID of the security group.
    ipLists List<String>
    IP addresses in the security group.
    securityGroupName String
    The name of the security group.

    Import

    RdsPostgresqlAllowlist can be imported using the id, e.g.

    $ pulumi import volcengine:rds_postgresql/allowlist:Allowlist default resource_id
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.40 published on Wednesday, Dec 24, 2025 by Volcengine
      Meet Neo: Your AI Platform Teammate