tencentcloud.MysqlBackupDownloadRestriction
Explore with Pulumi AI
Provides a resource to create a mysql backup_download_restriction
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.MysqlBackupDownloadRestriction("example", {
ipComparisonSymbol: "In",
limitIps: ["127.0.0.1"],
limitType: "Customize",
limitVpcs: [{
region: "ap-guangzhou",
vpcLists: ["vpc-4owdpnwr"],
}],
vpcComparisonSymbol: "In",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.MysqlBackupDownloadRestriction("example",
ip_comparison_symbol="In",
limit_ips=["127.0.0.1"],
limit_type="Customize",
limit_vpcs=[{
"region": "ap-guangzhou",
"vpc_lists": ["vpc-4owdpnwr"],
}],
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.NewMysqlBackupDownloadRestriction(ctx, "example", &tencentcloud.MysqlBackupDownloadRestrictionArgs{
IpComparisonSymbol: pulumi.String("In"),
LimitIps: pulumi.StringArray{
pulumi.String("127.0.0.1"),
},
LimitType: pulumi.String("Customize"),
LimitVpcs: tencentcloud.MysqlBackupDownloadRestrictionLimitVpcArray{
&tencentcloud.MysqlBackupDownloadRestrictionLimitVpcArgs{
Region: pulumi.String("ap-guangzhou"),
VpcLists: pulumi.StringArray{
pulumi.String("vpc-4owdpnwr"),
},
},
},
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.MysqlBackupDownloadRestriction("example", new()
{
IpComparisonSymbol = "In",
LimitIps = new[]
{
"127.0.0.1",
},
LimitType = "Customize",
LimitVpcs = new[]
{
new Tencentcloud.Inputs.MysqlBackupDownloadRestrictionLimitVpcArgs
{
Region = "ap-guangzhou",
VpcLists = new[]
{
"vpc-4owdpnwr",
},
},
},
VpcComparisonSymbol = "In",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MysqlBackupDownloadRestriction;
import com.pulumi.tencentcloud.MysqlBackupDownloadRestrictionArgs;
import com.pulumi.tencentcloud.inputs.MysqlBackupDownloadRestrictionLimitVpcArgs;
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 MysqlBackupDownloadRestriction("example", MysqlBackupDownloadRestrictionArgs.builder()
.ipComparisonSymbol("In")
.limitIps("127.0.0.1")
.limitType("Customize")
.limitVpcs(MysqlBackupDownloadRestrictionLimitVpcArgs.builder()
.region("ap-guangzhou")
.vpcLists("vpc-4owdpnwr")
.build())
.vpcComparisonSymbol("In")
.build());
}
}
resources:
example:
type: tencentcloud:MysqlBackupDownloadRestriction
properties:
ipComparisonSymbol: In
limitIps:
- 127.0.0.1
limitType: Customize
limitVpcs:
- region: ap-guangzhou
vpcLists:
- vpc-4owdpnwr
vpcComparisonSymbol: In
Create MysqlBackupDownloadRestriction Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MysqlBackupDownloadRestriction(name: string, args: MysqlBackupDownloadRestrictionArgs, opts?: CustomResourceOptions);
@overload
def MysqlBackupDownloadRestriction(resource_name: str,
args: MysqlBackupDownloadRestrictionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MysqlBackupDownloadRestriction(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[MysqlBackupDownloadRestrictionLimitVpcArgs]] = None,
mysql_backup_download_restriction_id: Optional[str] = None,
vpc_comparison_symbol: Optional[str] = None)
func NewMysqlBackupDownloadRestriction(ctx *Context, name string, args MysqlBackupDownloadRestrictionArgs, opts ...ResourceOption) (*MysqlBackupDownloadRestriction, error)
public MysqlBackupDownloadRestriction(string name, MysqlBackupDownloadRestrictionArgs args, CustomResourceOptions? opts = null)
public MysqlBackupDownloadRestriction(String name, MysqlBackupDownloadRestrictionArgs args)
public MysqlBackupDownloadRestriction(String name, MysqlBackupDownloadRestrictionArgs args, CustomResourceOptions options)
type: tencentcloud:MysqlBackupDownloadRestriction
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 MysqlBackupDownloadRestrictionArgs
- 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 MysqlBackupDownloadRestrictionArgs
- 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 MysqlBackupDownloadRestrictionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MysqlBackupDownloadRestrictionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MysqlBackupDownloadRestrictionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MysqlBackupDownloadRestriction 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 MysqlBackupDownloadRestriction resource accepts the following input properties:
- Limit
Type string - NoLimit No limit, both internal and external networks can be downloaded; LimitOnlyIntranet Only intranet can be downloaded; Customize user-defined vpc:ip can be downloaded. LimitVpc and LimitIp can be set only when the value is Customize.
- Ip
Comparison stringSymbol - In: The specified ip can be downloaded; NotIn: The specified ip cannot be downloaded. The default is In.
- Limit
Ips List<string> - ip settings to limit downloads.
- Limit
Vpcs List<MysqlBackup Download Restriction Limit Vpc> - vpc settings to limit downloads.
- Mysql
Backup stringDownload Restriction Id - ID of the resource.
- Vpc
Comparison stringSymbol - This parameter only supports In, which means that the vpc specified by LimitVpc can be downloaded. The default is In.
- Limit
Type string - NoLimit No limit, both internal and external networks can be downloaded; LimitOnlyIntranet Only intranet can be downloaded; Customize user-defined vpc:ip can be downloaded. LimitVpc and LimitIp can be set only when the value is Customize.
- Ip
Comparison stringSymbol - In: The specified ip can be downloaded; NotIn: The specified ip cannot be downloaded. The default is In.
- Limit
Ips []string - ip settings to limit downloads.
- Limit
Vpcs []MysqlBackup Download Restriction Limit Vpc Args - vpc settings to limit downloads.
- Mysql
Backup stringDownload Restriction Id - ID of the resource.
- Vpc
Comparison stringSymbol - This parameter only supports In, which means that the vpc specified by LimitVpc can be downloaded. The default is In.
- limit
Type String - NoLimit No limit, both internal and external networks can be downloaded; LimitOnlyIntranet Only intranet can be downloaded; Customize user-defined vpc:ip can be downloaded. LimitVpc and LimitIp can be set only when the value is Customize.
- ip
Comparison StringSymbol - In: The specified ip can be downloaded; NotIn: The specified ip cannot be downloaded. The default is In.
- limit
Ips List<String> - ip settings to limit downloads.
- limit
Vpcs List<MysqlBackup Download Restriction Limit Vpc> - vpc settings to limit downloads.
- mysql
Backup StringDownload Restriction Id - ID of the resource.
- vpc
Comparison StringSymbol - This parameter only supports In, which means that the vpc specified by LimitVpc can be downloaded. The default is In.
- limit
Type string - NoLimit No limit, both internal and external networks can be downloaded; LimitOnlyIntranet Only intranet can be downloaded; Customize user-defined vpc:ip can be downloaded. LimitVpc and LimitIp can be set only when the value is Customize.
- ip
Comparison stringSymbol - In: The specified ip can be downloaded; NotIn: The specified ip cannot be downloaded. The default is In.
- limit
Ips string[] - ip settings to limit downloads.
- limit
Vpcs MysqlBackup Download Restriction Limit Vpc[] - vpc settings to limit downloads.
- mysql
Backup stringDownload Restriction Id - ID of the resource.
- vpc
Comparison stringSymbol - This parameter only supports In, which means that the vpc specified by LimitVpc can be downloaded. The default is In.
- limit_
type str - NoLimit No limit, both internal and external networks can be downloaded; LimitOnlyIntranet Only intranet can be downloaded; Customize user-defined vpc:ip can be downloaded. LimitVpc and LimitIp can be set only when the value is Customize.
- ip_
comparison_ strsymbol - In: The specified ip can be downloaded; NotIn: The specified ip cannot be downloaded. The default is In.
- limit_
ips Sequence[str] - ip settings to limit downloads.
- limit_
vpcs Sequence[MysqlBackup Download Restriction Limit Vpc Args] - vpc settings to limit downloads.
- mysql_
backup_ strdownload_ restriction_ id - ID of the resource.
- vpc_
comparison_ strsymbol - This parameter only supports In, which means that the vpc specified by LimitVpc can be downloaded. The default is In.
- limit
Type String - NoLimit No limit, both internal and external networks can be downloaded; LimitOnlyIntranet Only intranet can be downloaded; Customize user-defined vpc:ip can be downloaded. LimitVpc and LimitIp can be set only when the value is Customize.
- ip
Comparison StringSymbol - In: The specified ip can be downloaded; NotIn: The specified ip cannot be downloaded. The default is In.
- limit
Ips List<String> - ip settings to limit downloads.
- limit
Vpcs List<Property Map> - vpc settings to limit downloads.
- mysql
Backup StringDownload Restriction Id - ID of the resource.
- vpc
Comparison StringSymbol - This parameter only supports In, which means that the vpc specified by LimitVpc can be downloaded. The default is In.
Outputs
All input properties are implicitly available as output properties. Additionally, the MysqlBackupDownloadRestriction 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 MysqlBackupDownloadRestriction Resource
Get an existing MysqlBackupDownloadRestriction 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?: MysqlBackupDownloadRestrictionState, opts?: CustomResourceOptions): MysqlBackupDownloadRestriction
@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[MysqlBackupDownloadRestrictionLimitVpcArgs]] = None,
mysql_backup_download_restriction_id: Optional[str] = None,
vpc_comparison_symbol: Optional[str] = None) -> MysqlBackupDownloadRestriction
func GetMysqlBackupDownloadRestriction(ctx *Context, name string, id IDInput, state *MysqlBackupDownloadRestrictionState, opts ...ResourceOption) (*MysqlBackupDownloadRestriction, error)
public static MysqlBackupDownloadRestriction Get(string name, Input<string> id, MysqlBackupDownloadRestrictionState? state, CustomResourceOptions? opts = null)
public static MysqlBackupDownloadRestriction get(String name, Output<String> id, MysqlBackupDownloadRestrictionState state, CustomResourceOptions options)
resources: _: type: tencentcloud:MysqlBackupDownloadRestriction 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 - In: The specified ip can be downloaded; NotIn: The specified ip cannot be downloaded. The default is In.
- Limit
Ips List<string> - ip settings to limit downloads.
- Limit
Type string - NoLimit No limit, both internal and external networks can be downloaded; LimitOnlyIntranet Only intranet can be downloaded; Customize user-defined vpc:ip can be downloaded. LimitVpc and LimitIp can be set only when the value is Customize.
- Limit
Vpcs List<MysqlBackup Download Restriction Limit Vpc> - vpc settings to limit downloads.
- Mysql
Backup stringDownload Restriction Id - ID of the resource.
- Vpc
Comparison stringSymbol - This parameter only supports In, which means that the vpc specified by LimitVpc can be downloaded. The default is In.
- Ip
Comparison stringSymbol - In: The specified ip can be downloaded; NotIn: The specified ip cannot be downloaded. The default is In.
- Limit
Ips []string - ip settings to limit downloads.
- Limit
Type string - NoLimit No limit, both internal and external networks can be downloaded; LimitOnlyIntranet Only intranet can be downloaded; Customize user-defined vpc:ip can be downloaded. LimitVpc and LimitIp can be set only when the value is Customize.
- Limit
Vpcs []MysqlBackup Download Restriction Limit Vpc Args - vpc settings to limit downloads.
- Mysql
Backup stringDownload Restriction Id - ID of the resource.
- Vpc
Comparison stringSymbol - This parameter only supports In, which means that the vpc specified by LimitVpc can be downloaded. The default is In.
- ip
Comparison StringSymbol - In: The specified ip can be downloaded; NotIn: The specified ip cannot be downloaded. The default is In.
- limit
Ips List<String> - ip settings to limit downloads.
- limit
Type String - NoLimit No limit, both internal and external networks can be downloaded; LimitOnlyIntranet Only intranet can be downloaded; Customize user-defined vpc:ip can be downloaded. LimitVpc and LimitIp can be set only when the value is Customize.
- limit
Vpcs List<MysqlBackup Download Restriction Limit Vpc> - vpc settings to limit downloads.
- mysql
Backup StringDownload Restriction Id - ID of the resource.
- vpc
Comparison StringSymbol - This parameter only supports In, which means that the vpc specified by LimitVpc can be downloaded. The default is In.
- ip
Comparison stringSymbol - In: The specified ip can be downloaded; NotIn: The specified ip cannot be downloaded. The default is In.
- limit
Ips string[] - ip settings to limit downloads.
- limit
Type string - NoLimit No limit, both internal and external networks can be downloaded; LimitOnlyIntranet Only intranet can be downloaded; Customize user-defined vpc:ip can be downloaded. LimitVpc and LimitIp can be set only when the value is Customize.
- limit
Vpcs MysqlBackup Download Restriction Limit Vpc[] - vpc settings to limit downloads.
- mysql
Backup stringDownload Restriction Id - ID of the resource.
- vpc
Comparison stringSymbol - This parameter only supports In, which means that the vpc specified by LimitVpc can be downloaded. The default is In.
- ip_
comparison_ strsymbol - In: The specified ip can be downloaded; NotIn: The specified ip cannot be downloaded. The default is In.
- limit_
ips Sequence[str] - ip settings to limit downloads.
- limit_
type str - NoLimit No limit, both internal and external networks can be downloaded; LimitOnlyIntranet Only intranet can be downloaded; Customize user-defined vpc:ip can be downloaded. LimitVpc and LimitIp can be set only when the value is Customize.
- limit_
vpcs Sequence[MysqlBackup Download Restriction Limit Vpc Args] - vpc settings to limit downloads.
- mysql_
backup_ strdownload_ restriction_ id - ID of the resource.
- vpc_
comparison_ strsymbol - This parameter only supports In, which means that the vpc specified by LimitVpc can be downloaded. The default is In.
- ip
Comparison StringSymbol - In: The specified ip can be downloaded; NotIn: The specified ip cannot be downloaded. The default is In.
- limit
Ips List<String> - ip settings to limit downloads.
- limit
Type String - NoLimit No limit, both internal and external networks can be downloaded; LimitOnlyIntranet Only intranet can be downloaded; Customize user-defined vpc:ip can be downloaded. LimitVpc and LimitIp can be set only when the value is Customize.
- limit
Vpcs List<Property Map> - vpc settings to limit downloads.
- mysql
Backup StringDownload Restriction Id - ID of the resource.
- vpc
Comparison StringSymbol - This parameter only supports In, which means that the vpc specified by LimitVpc can be downloaded. The default is In.
Supporting Types
MysqlBackupDownloadRestrictionLimitVpc, MysqlBackupDownloadRestrictionLimitVpcArgs
Import
mysql backup_download_restriction can be imported using the “BackupDownloadRestriction”, as follows.
$ pulumi import tencentcloud:index/mysqlBackupDownloadRestriction:MysqlBackupDownloadRestriction backup_download_restriction BackupDownloadRestriction
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.