1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. RedisBackupDownloadRestriction
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.RedisBackupDownloadRestriction

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a redis backup download restriction

    Example Usage

    Modify the network information and address of the current region backup file download

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.RedisBackupDownloadRestriction("example", {
        ipComparisonSymbol: "In",
        limitIps: [
            "10.1.1.12",
            "10.1.1.13",
        ],
        limitType: "Customize",
        limitVpcs: [{
            region: "ap-guangzhou",
            vpcLists: ["vpc-pu8wqojl"],
        }],
        vpcComparisonSymbol: "In",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.RedisBackupDownloadRestriction("example",
        ip_comparison_symbol="In",
        limit_ips=[
            "10.1.1.12",
            "10.1.1.13",
        ],
        limit_type="Customize",
        limit_vpcs=[{
            "region": "ap-guangzhou",
            "vpc_lists": ["vpc-pu8wqojl"],
        }],
        vpc_comparison_symbol="In")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewRedisBackupDownloadRestriction(ctx, "example", &tencentcloud.RedisBackupDownloadRestrictionArgs{
    			IpComparisonSymbol: pulumi.String("In"),
    			LimitIps: pulumi.StringArray{
    				pulumi.String("10.1.1.12"),
    				pulumi.String("10.1.1.13"),
    			},
    			LimitType: pulumi.String("Customize"),
    			LimitVpcs: tencentcloud.RedisBackupDownloadRestrictionLimitVpcArray{
    				&tencentcloud.RedisBackupDownloadRestrictionLimitVpcArgs{
    					Region: pulumi.String("ap-guangzhou"),
    					VpcLists: pulumi.StringArray{
    						pulumi.String("vpc-pu8wqojl"),
    					},
    				},
    			},
    			VpcComparisonSymbol: pulumi.String("In"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.RedisBackupDownloadRestriction("example", new()
        {
            IpComparisonSymbol = "In",
            LimitIps = new[]
            {
                "10.1.1.12",
                "10.1.1.13",
            },
            LimitType = "Customize",
            LimitVpcs = new[]
            {
                new Tencentcloud.Inputs.RedisBackupDownloadRestrictionLimitVpcArgs
                {
                    Region = "ap-guangzhou",
                    VpcLists = new[]
                    {
                        "vpc-pu8wqojl",
                    },
                },
            },
            VpcComparisonSymbol = "In",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.RedisBackupDownloadRestriction;
    import com.pulumi.tencentcloud.RedisBackupDownloadRestrictionArgs;
    import com.pulumi.tencentcloud.inputs.RedisBackupDownloadRestrictionLimitVpcArgs;
    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 example = new RedisBackupDownloadRestriction("example", RedisBackupDownloadRestrictionArgs.builder()
                .ipComparisonSymbol("In")
                .limitIps(            
                    "10.1.1.12",
                    "10.1.1.13")
                .limitType("Customize")
                .limitVpcs(RedisBackupDownloadRestrictionLimitVpcArgs.builder()
                    .region("ap-guangzhou")
                    .vpcLists("vpc-pu8wqojl")
                    .build())
                .vpcComparisonSymbol("In")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:RedisBackupDownloadRestriction
        properties:
          ipComparisonSymbol: In
          limitIps:
            - 10.1.1.12
            - 10.1.1.13
          limitType: Customize
          limitVpcs:
            - region: ap-guangzhou
              vpcLists:
                - vpc-pu8wqojl
          vpcComparisonSymbol: In
    

    Create RedisBackupDownloadRestriction Resource

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

    Constructor syntax

    new RedisBackupDownloadRestriction(name: string, args: RedisBackupDownloadRestrictionArgs, opts?: CustomResourceOptions);
    @overload
    def RedisBackupDownloadRestriction(resource_name: str,
                                       args: RedisBackupDownloadRestrictionArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def RedisBackupDownloadRestriction(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       limit_type: Optional[str] = None,
                                       ip_comparison_symbol: Optional[str] = None,
                                       limit_ips: Optional[Sequence[str]] = None,
                                       limit_vpcs: Optional[Sequence[RedisBackupDownloadRestrictionLimitVpcArgs]] = None,
                                       redis_backup_download_restriction_id: Optional[str] = None,
                                       vpc_comparison_symbol: Optional[str] = None)
    func NewRedisBackupDownloadRestriction(ctx *Context, name string, args RedisBackupDownloadRestrictionArgs, opts ...ResourceOption) (*RedisBackupDownloadRestriction, error)
    public RedisBackupDownloadRestriction(string name, RedisBackupDownloadRestrictionArgs args, CustomResourceOptions? opts = null)
    public RedisBackupDownloadRestriction(String name, RedisBackupDownloadRestrictionArgs args)
    public RedisBackupDownloadRestriction(String name, RedisBackupDownloadRestrictionArgs args, CustomResourceOptions options)
    
    type: tencentcloud:RedisBackupDownloadRestriction
    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 RedisBackupDownloadRestrictionArgs
    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 RedisBackupDownloadRestrictionArgs
    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 RedisBackupDownloadRestrictionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RedisBackupDownloadRestrictionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RedisBackupDownloadRestrictionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    LimitType string
    Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
    IpComparisonSymbol string
    Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
    LimitIps List<string>
    A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
    LimitVpcs List<RedisBackupDownloadRestrictionLimitVpc>
    A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
    RedisBackupDownloadRestrictionId string
    ID of the resource.
    VpcComparisonSymbol string
    This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
    LimitType string
    Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
    IpComparisonSymbol string
    Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
    LimitIps []string
    A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
    LimitVpcs []RedisBackupDownloadRestrictionLimitVpcArgs
    A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
    RedisBackupDownloadRestrictionId string
    ID of the resource.
    VpcComparisonSymbol string
    This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
    limitType String
    Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
    ipComparisonSymbol String
    Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
    limitIps List<String>
    A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
    limitVpcs List<RedisBackupDownloadRestrictionLimitVpc>
    A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
    redisBackupDownloadRestrictionId String
    ID of the resource.
    vpcComparisonSymbol String
    This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
    limitType string
    Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
    ipComparisonSymbol string
    Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
    limitIps string[]
    A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
    limitVpcs RedisBackupDownloadRestrictionLimitVpc[]
    A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
    redisBackupDownloadRestrictionId string
    ID of the resource.
    vpcComparisonSymbol string
    This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
    limit_type str
    Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
    ip_comparison_symbol str
    Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
    limit_ips Sequence[str]
    A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
    limit_vpcs Sequence[RedisBackupDownloadRestrictionLimitVpcArgs]
    A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
    redis_backup_download_restriction_id str
    ID of the resource.
    vpc_comparison_symbol str
    This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
    limitType String
    Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
    ipComparisonSymbol String
    Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
    limitIps List<String>
    A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
    limitVpcs List<Property Map>
    A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
    redisBackupDownloadRestrictionId String
    ID of the resource.
    vpcComparisonSymbol String
    This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.

    Outputs

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

    Get an existing RedisBackupDownloadRestriction 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?: RedisBackupDownloadRestrictionState, opts?: CustomResourceOptions): RedisBackupDownloadRestriction
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ip_comparison_symbol: Optional[str] = None,
            limit_ips: Optional[Sequence[str]] = None,
            limit_type: Optional[str] = None,
            limit_vpcs: Optional[Sequence[RedisBackupDownloadRestrictionLimitVpcArgs]] = None,
            redis_backup_download_restriction_id: Optional[str] = None,
            vpc_comparison_symbol: Optional[str] = None) -> RedisBackupDownloadRestriction
    func GetRedisBackupDownloadRestriction(ctx *Context, name string, id IDInput, state *RedisBackupDownloadRestrictionState, opts ...ResourceOption) (*RedisBackupDownloadRestriction, error)
    public static RedisBackupDownloadRestriction Get(string name, Input<string> id, RedisBackupDownloadRestrictionState? state, CustomResourceOptions? opts = null)
    public static RedisBackupDownloadRestriction get(String name, Output<String> id, RedisBackupDownloadRestrictionState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:RedisBackupDownloadRestriction    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:
    IpComparisonSymbol string
    Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
    LimitIps List<string>
    A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
    LimitType string
    Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
    LimitVpcs List<RedisBackupDownloadRestrictionLimitVpc>
    A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
    RedisBackupDownloadRestrictionId string
    ID of the resource.
    VpcComparisonSymbol string
    This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
    IpComparisonSymbol string
    Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
    LimitIps []string
    A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
    LimitType string
    Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
    LimitVpcs []RedisBackupDownloadRestrictionLimitVpcArgs
    A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
    RedisBackupDownloadRestrictionId string
    ID of the resource.
    VpcComparisonSymbol string
    This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
    ipComparisonSymbol String
    Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
    limitIps List<String>
    A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
    limitType String
    Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
    limitVpcs List<RedisBackupDownloadRestrictionLimitVpc>
    A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
    redisBackupDownloadRestrictionId String
    ID of the resource.
    vpcComparisonSymbol String
    This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
    ipComparisonSymbol string
    Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
    limitIps string[]
    A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
    limitType string
    Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
    limitVpcs RedisBackupDownloadRestrictionLimitVpc[]
    A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
    redisBackupDownloadRestrictionId string
    ID of the resource.
    vpcComparisonSymbol string
    This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
    ip_comparison_symbol str
    Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
    limit_ips Sequence[str]
    A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
    limit_type str
    Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
    limit_vpcs Sequence[RedisBackupDownloadRestrictionLimitVpcArgs]
    A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
    redis_backup_download_restriction_id str
    ID of the resource.
    vpc_comparison_symbol str
    This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
    ipComparisonSymbol String
    Identifies whether the customized LimitIP address can download the backup file.- In: Custom IP addresses are available for download.- NotIn: Custom IPs are not available for download.
    limitIps List<String>
    A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
    limitType String
    Types of network restrictions for downloading backup files:- NoLimit: There is no limit, and backup files can be downloaded from both Tencent Cloud and internal and external networks.- LimitOnlyIntranet: Only intranet addresses automatically assigned by Tencent Cloud can download backup files.- Customize: refers to a user-defined private network downloadable backup file.
    limitVpcs List<Property Map>
    A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
    redisBackupDownloadRestrictionId String
    ID of the resource.
    vpcComparisonSymbol String
    This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.

    Supporting Types

    RedisBackupDownloadRestrictionLimitVpc, RedisBackupDownloadRestrictionLimitVpcArgs

    Region string
    Customize the region of the VPC to which the backup file is downloaded.
    VpcLists List<string>
    Customize the list of VPCs to download backup files.
    Region string
    Customize the region of the VPC to which the backup file is downloaded.
    VpcLists []string
    Customize the list of VPCs to download backup files.
    region String
    Customize the region of the VPC to which the backup file is downloaded.
    vpcLists List<String>
    Customize the list of VPCs to download backup files.
    region string
    Customize the region of the VPC to which the backup file is downloaded.
    vpcLists string[]
    Customize the list of VPCs to download backup files.
    region str
    Customize the region of the VPC to which the backup file is downloaded.
    vpc_lists Sequence[str]
    Customize the list of VPCs to download backup files.
    region String
    Customize the region of the VPC to which the backup file is downloaded.
    vpcLists List<String>
    Customize the list of VPCs to download backup files.

    Import

    redis backup download restriction can be imported using the region, e.g.

    $ pulumi import tencentcloud:index/redisBackupDownloadRestriction:RedisBackupDownloadRestriction example ap-guangzhou
    

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

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack