import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface DataTencentcloudPostgresqlBackupDownloadUrlsConfig extends cdktf.TerraformMetaArguments { /** * Unique backup ID. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/postgresql_backup_download_urls#backup_id DataTencentcloudPostgresqlBackupDownloadUrls#backup_id} */ readonly backupId: string; /** * Backup type. Valid values: `LogBackup`, `BaseBackup`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/postgresql_backup_download_urls#backup_type DataTencentcloudPostgresqlBackupDownloadUrls#backup_type} */ readonly backupType: string; /** * Instance ID. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/postgresql_backup_download_urls#db_instance_id DataTencentcloudPostgresqlBackupDownloadUrls#db_instance_id} */ readonly dbInstanceId: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/postgresql_backup_download_urls#id DataTencentcloudPostgresqlBackupDownloadUrls#id} * * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. */ readonly id?: string; /** * Used to save results. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/postgresql_backup_download_urls#result_output_file DataTencentcloudPostgresqlBackupDownloadUrls#result_output_file} */ readonly resultOutputFile?: string; /** * Validity period of a URL, which is 12 hours by default. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/postgresql_backup_download_urls#url_expire_time DataTencentcloudPostgresqlBackupDownloadUrls#url_expire_time} */ readonly urlExpireTime?: number; /** * backup_download_restriction block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/postgresql_backup_download_urls#backup_download_restriction DataTencentcloudPostgresqlBackupDownloadUrls#backup_download_restriction} */ readonly backupDownloadRestriction?: DataTencentcloudPostgresqlBackupDownloadUrlsBackupDownloadRestriction; } export interface DataTencentcloudPostgresqlBackupDownloadUrlsBackupDownloadRestriction { /** * Whether IP is allowed. Valid values: `ALLOW` (allow), `DENY` (deny). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/postgresql_backup_download_urls#ip_restriction_effect DataTencentcloudPostgresqlBackupDownloadUrls#ip_restriction_effect} */ readonly ipRestrictionEffect?: string; /** * Whether it is allowed to download IP list of the backup files. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/postgresql_backup_download_urls#ip_set DataTencentcloudPostgresqlBackupDownloadUrls#ip_set} */ readonly ipSet?: string[]; /** * Type of the network restrictions for downloading backup files. Valid values: `NONE` (backups can be downloaded over both private and public networks), `INTRANET` (backups can only be downloaded over the private network), `CUSTOMIZE` (backups can be downloaded over specified VPCs or at specified IPs). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/postgresql_backup_download_urls#restriction_type DataTencentcloudPostgresqlBackupDownloadUrls#restriction_type} */ readonly restrictionType?: string; /** * Whether it is allowed to download the VPC ID list of the backup files. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/postgresql_backup_download_urls#vpc_id_set DataTencentcloudPostgresqlBackupDownloadUrls#vpc_id_set} */ readonly vpcIdSet?: string[]; /** * Whether VPC is allowed. Valid values: `ALLOW` (allow), `DENY` (deny). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/postgresql_backup_download_urls#vpc_restriction_effect DataTencentcloudPostgresqlBackupDownloadUrls#vpc_restriction_effect} */ readonly vpcRestrictionEffect?: string; } export declare function dataTencentcloudPostgresqlBackupDownloadUrlsBackupDownloadRestrictionToTerraform(struct?: DataTencentcloudPostgresqlBackupDownloadUrlsBackupDownloadRestrictionOutputReference | DataTencentcloudPostgresqlBackupDownloadUrlsBackupDownloadRestriction): any; export declare function dataTencentcloudPostgresqlBackupDownloadUrlsBackupDownloadRestrictionToHclTerraform(struct?: DataTencentcloudPostgresqlBackupDownloadUrlsBackupDownloadRestrictionOutputReference | DataTencentcloudPostgresqlBackupDownloadUrlsBackupDownloadRestriction): any; export declare class DataTencentcloudPostgresqlBackupDownloadUrlsBackupDownloadRestrictionOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string); get internalValue(): DataTencentcloudPostgresqlBackupDownloadUrlsBackupDownloadRestriction | undefined; set internalValue(value: DataTencentcloudPostgresqlBackupDownloadUrlsBackupDownloadRestriction | undefined); private _ipRestrictionEffect?; get ipRestrictionEffect(): string; set ipRestrictionEffect(value: string); resetIpRestrictionEffect(): void; get ipRestrictionEffectInput(): string; private _ipSet?; get ipSet(): string[]; set ipSet(value: string[]); resetIpSet(): void; get ipSetInput(): string[]; private _restrictionType?; get restrictionType(): string; set restrictionType(value: string); resetRestrictionType(): void; get restrictionTypeInput(): string; private _vpcIdSet?; get vpcIdSet(): string[]; set vpcIdSet(value: string[]); resetVpcIdSet(): void; get vpcIdSetInput(): string[]; private _vpcRestrictionEffect?; get vpcRestrictionEffect(): string; set vpcRestrictionEffect(value: string); resetVpcRestrictionEffect(): void; get vpcRestrictionEffectInput(): string; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/postgresql_backup_download_urls tencentcloud_postgresql_backup_download_urls} */ export declare class DataTencentcloudPostgresqlBackupDownloadUrls extends cdktf.TerraformDataSource { static readonly tfResourceType = "tencentcloud_postgresql_backup_download_urls"; /** * Generates CDKTF code for importing a DataTencentcloudPostgresqlBackupDownloadUrls resource upon running "cdktf plan " * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the DataTencentcloudPostgresqlBackupDownloadUrls to import * @param importFromId The id of the existing DataTencentcloudPostgresqlBackupDownloadUrls that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/postgresql_backup_download_urls#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DataTencentcloudPostgresqlBackupDownloadUrls to import is found */ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any; /** * Create a new {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/postgresql_backup_download_urls tencentcloud_postgresql_backup_download_urls} Data Source * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options DataTencentcloudPostgresqlBackupDownloadUrlsConfig */ constructor(scope: Construct, id: string, config: DataTencentcloudPostgresqlBackupDownloadUrlsConfig); get backupDownloadUrl(): any; private _backupId?; get backupId(): string; set backupId(value: string); get backupIdInput(): string; private _backupType?; get backupType(): string; set backupType(value: string); get backupTypeInput(): string; private _dbInstanceId?; get dbInstanceId(): string; set dbInstanceId(value: string); get dbInstanceIdInput(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _resultOutputFile?; get resultOutputFile(): string; set resultOutputFile(value: string); resetResultOutputFile(): void; get resultOutputFileInput(): string; private _urlExpireTime?; get urlExpireTime(): number; set urlExpireTime(value: number); resetUrlExpireTime(): void; get urlExpireTimeInput(): number; private _backupDownloadRestriction; get backupDownloadRestriction(): DataTencentcloudPostgresqlBackupDownloadUrlsBackupDownloadRestrictionOutputReference; putBackupDownloadRestriction(value: DataTencentcloudPostgresqlBackupDownloadUrlsBackupDownloadRestriction): void; resetBackupDownloadRestriction(): void; get backupDownloadRestrictionInput(): DataTencentcloudPostgresqlBackupDownloadUrlsBackupDownloadRestriction; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }