import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface MongodbStandbyInstanceConfig extends cdktf.TerraformMetaArguments { /** * Auto renew flag. Valid values are `0`(NOTIFY_AND_MANUAL_RENEW), `1`(NOTIFY_AND_AUTO_RENEW) and `2`(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is `0`. Note: only works for PREPAID instance. Only supports`0` and `1` for creation. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mongodb_standby_instance#auto_renew_flag MongodbStandbyInstance#auto_renew_flag} */ readonly autoRenewFlag?: number; /** * The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mongodb_standby_instance#available_zone MongodbStandbyInstance#available_zone} */ readonly availableZone: string; /** * The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mongodb_standby_instance#charge_type MongodbStandbyInstance#charge_type} */ readonly chargeType?: string; /** * Indicates the main instance ID of standby instances. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mongodb_standby_instance#father_instance_id MongodbStandbyInstance#father_instance_id} */ readonly fatherInstanceId: string; /** * Indicates the region of main instance. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mongodb_standby_instance#father_instance_region MongodbStandbyInstance#father_instance_region} */ readonly fatherInstanceRegion: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mongodb_standby_instance#id MongodbStandbyInstance#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; /** * Switch time for instance configuration changes. * - 0: When the adjustment is completed, perform the configuration task immediately. Default is 0. * - 1: Perform reconfiguration tasks within the maintenance time window. * Note: Adjusting the number of nodes and slices does not support changes within the maintenance window. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mongodb_standby_instance#in_maintenance MongodbStandbyInstance#in_maintenance} */ readonly inMaintenance?: number; /** * Name of the Mongodb instance. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mongodb_standby_instance#instance_name MongodbStandbyInstance#instance_name} */ readonly instanceName: string; /** * Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mongodb_standby_instance#memory MongodbStandbyInstance#memory} */ readonly memory: number; /** * The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when charge_type is set to `PREPAID`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mongodb_standby_instance#prepaid_period MongodbStandbyInstance#prepaid_period} */ readonly prepaidPeriod?: number; /** * ID of the project which the instance belongs. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mongodb_standby_instance#project_id MongodbStandbyInstance#project_id} */ readonly projectId?: number; /** * ID of the security group. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mongodb_standby_instance#security_groups MongodbStandbyInstance#security_groups} */ readonly securityGroups?: string[]; /** * ID of the subnet within this VPC. The value is required if `vpc_id` is set. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mongodb_standby_instance#subnet_id MongodbStandbyInstance#subnet_id} */ readonly subnetId?: string; /** * The tags of the Mongodb. Key name `project` is system reserved and can't be used. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mongodb_standby_instance#tags MongodbStandbyInstance#tags} */ readonly tags?: { [key: string]: string; }; /** * Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mongodb_standby_instance#volume MongodbStandbyInstance#volume} */ readonly volume: number; /** * ID of the VPC. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mongodb_standby_instance#vpc_id MongodbStandbyInstance#vpc_id} */ readonly vpcId?: string; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mongodb_standby_instance tencentcloud_mongodb_standby_instance} */ export declare class MongodbStandbyInstance extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_mongodb_standby_instance"; /** * Generates CDKTF code for importing a MongodbStandbyInstance 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 MongodbStandbyInstance to import * @param importFromId The id of the existing MongodbStandbyInstance that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mongodb_standby_instance#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the MongodbStandbyInstance 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/resources/mongodb_standby_instance tencentcloud_mongodb_standby_instance} Resource * * @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 MongodbStandbyInstanceConfig */ constructor(scope: Construct, id: string, config: MongodbStandbyInstanceConfig); private _autoRenewFlag?; get autoRenewFlag(): number; set autoRenewFlag(value: number); resetAutoRenewFlag(): void; get autoRenewFlagInput(): number; private _availableZone?; get availableZone(): string; set availableZone(value: string); get availableZoneInput(): string; private _chargeType?; get chargeType(): string; set chargeType(value: string); resetChargeType(): void; get chargeTypeInput(): string; get createTime(): any; get engineVersion(): any; private _fatherInstanceId?; get fatherInstanceId(): string; set fatherInstanceId(value: string); get fatherInstanceIdInput(): string; private _fatherInstanceRegion?; get fatherInstanceRegion(): string; set fatherInstanceRegion(value: string); get fatherInstanceRegionInput(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _inMaintenance?; get inMaintenance(): number; set inMaintenance(value: number); resetInMaintenance(): void; get inMaintenanceInput(): number; private _instanceName?; get instanceName(): string; set instanceName(value: string); get instanceNameInput(): string; get machineType(): any; private _memory?; get memory(): number; set memory(value: number); get memoryInput(): number; private _prepaidPeriod?; get prepaidPeriod(): number; set prepaidPeriod(value: number); resetPrepaidPeriod(): void; get prepaidPeriodInput(): number; private _projectId?; get projectId(): number; set projectId(value: number); resetProjectId(): void; get projectIdInput(): number; private _securityGroups?; get securityGroups(): string[]; set securityGroups(value: string[]); resetSecurityGroups(): void; get securityGroupsInput(): string[]; get status(): any; private _subnetId?; get subnetId(): string; set subnetId(value: string); resetSubnetId(): void; get subnetIdInput(): string; private _tags?; get tags(): { [key: string]: string; }; set tags(value: { [key: string]: string; }); resetTags(): void; get tagsInput(): { [key: string]: string; }; get vip(): any; private _volume?; get volume(): number; set volume(value: number); get volumeInput(): number; private _vpcId?; get vpcId(): string; set vpcId(value: string); resetVpcId(): void; get vpcIdInput(): string; get vport(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }