tencentcloud.RedisBackupDownloadRestriction
Explore with Pulumi AI
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:
- Limit
Type 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.
- Ip
Comparison stringSymbol - 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 List<string> - A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
- Limit
Vpcs List<RedisBackup Download Restriction Limit Vpc> - A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
- Redis
Backup stringDownload Restriction Id - ID of the resource.
- Vpc
Comparison stringSymbol - This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
- Limit
Type 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.
- Ip
Comparison stringSymbol - 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 []string - A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
- Limit
Vpcs []RedisBackup Download Restriction Limit Vpc Args - A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
- Redis
Backup stringDownload Restriction Id - ID of the resource.
- Vpc
Comparison stringSymbol - This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
- limit
Type 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.
- ip
Comparison StringSymbol - 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 List<String> - A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
- limit
Vpcs List<RedisBackup Download Restriction Limit Vpc> - A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
- redis
Backup StringDownload Restriction Id - ID of the resource.
- vpc
Comparison StringSymbol - This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
- limit
Type 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.
- ip
Comparison stringSymbol - 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 string[] - A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
- limit
Vpcs RedisBackup Download Restriction Limit Vpc[] - A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
- redis
Backup stringDownload Restriction Id - ID of the resource.
- vpc
Comparison stringSymbol - 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_ strsymbol - 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[RedisBackup Download Restriction Limit Vpc Args] - A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
- redis_
backup_ strdownload_ restriction_ id - ID of the resource.
- vpc_
comparison_ strsymbol - This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
- limit
Type 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.
- ip
Comparison StringSymbol - 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 List<String> - A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
- limit
Vpcs List<Property Map> - A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
- redis
Backup StringDownload Restriction Id - ID of the resource.
- vpc
Comparison StringSymbol - 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.
- Ip
Comparison stringSymbol - 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 List<string> - A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
- Limit
Type 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.
- Limit
Vpcs List<RedisBackup Download Restriction Limit Vpc> - A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
- Redis
Backup stringDownload Restriction Id - ID of the resource.
- Vpc
Comparison stringSymbol - This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
- Ip
Comparison stringSymbol - 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 []string - A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
- Limit
Type 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.
- Limit
Vpcs []RedisBackup Download Restriction Limit Vpc Args - A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
- Redis
Backup stringDownload Restriction Id - ID of the resource.
- Vpc
Comparison stringSymbol - This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
- ip
Comparison StringSymbol - 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 List<String> - A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
- limit
Type 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.
- limit
Vpcs List<RedisBackup Download Restriction Limit Vpc> - A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
- redis
Backup StringDownload Restriction Id - ID of the resource.
- vpc
Comparison StringSymbol - This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
- ip
Comparison stringSymbol - 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 string[] - A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
- limit
Type 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.
- limit
Vpcs RedisBackup Download Restriction Limit Vpc[] - A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
- redis
Backup stringDownload Restriction Id - ID of the resource.
- vpc
Comparison stringSymbol - This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
- ip_
comparison_ strsymbol - 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[RedisBackup Download Restriction Limit Vpc Args] - A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
- redis_
backup_ strdownload_ restriction_ id - ID of the resource.
- vpc_
comparison_ strsymbol - This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
- ip
Comparison StringSymbol - 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 List<String> - A custom VPC IP address for downloadable backup files.If the parameter LimitType is Customize, you need to configure this parameter.
- limit
Type 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.
- limit
Vpcs List<Property Map> - A custom VPC ID for a downloadable backup file.If the parameter LimitType is Customize, you need to configure this parameter.
- redis
Backup StringDownload Restriction Id - ID of the resource.
- vpc
Comparison StringSymbol - This parameter only supports entering In, which means that the custom LimitVpc can download the backup file.
Supporting Types
RedisBackupDownloadRestrictionLimitVpc, RedisBackupDownloadRestrictionLimitVpcArgs
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.