import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface LifecyclepolicyConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#action Lifecyclepolicy#action} */ readonly action?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#id Lifecyclepolicy#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; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#name Lifecyclepolicy#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#project_id Lifecyclepolicy#project_id} */ readonly projectId?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#project_name Lifecyclepolicy#project_name} */ readonly projectName?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#region_id Lifecyclepolicy#region_id} */ readonly regionId?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#region_name Lifecyclepolicy#region_name} */ readonly regionName?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#status Lifecyclepolicy#status} */ readonly status?: string; /** * schedule block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#schedule Lifecyclepolicy#schedule} */ readonly schedule?: LifecyclepolicySchedule[] | cdktf.IResolvable; /** * volume block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#volume Lifecyclepolicy#volume} */ readonly volume?: LifecyclepolicyVolume[] | cdktf.IResolvable; } export interface LifecyclepolicyScheduleCron { /** * Either single asterisk or comma-separated list of integers (1-31) * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#day Lifecyclepolicy#day} */ readonly day?: string; /** * Either single asterisk or comma-separated list of integers (0-6) * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#day_of_week Lifecyclepolicy#day_of_week} */ readonly dayOfWeek?: string; /** * Either single asterisk or comma-separated list of integers (0-23) * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#hour Lifecyclepolicy#hour} */ readonly hour?: string; /** * Either single asterisk or comma-separated list of integers (0-59) * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#minute Lifecyclepolicy#minute} */ readonly minute?: string; /** * Either single asterisk or comma-separated list of integers (1-12) * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#month Lifecyclepolicy#month} */ readonly month?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#timezone Lifecyclepolicy#timezone} */ readonly timezone?: string; /** * Either single asterisk or comma-separated list of integers (1-53) * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#week Lifecyclepolicy#week} */ readonly week?: string; } export declare function lifecyclepolicyScheduleCronToTerraform(struct?: LifecyclepolicyScheduleCronOutputReference | LifecyclepolicyScheduleCron): any; export declare function lifecyclepolicyScheduleCronToHclTerraform(struct?: LifecyclepolicyScheduleCronOutputReference | LifecyclepolicyScheduleCron): any; export declare class LifecyclepolicyScheduleCronOutputReference 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(): LifecyclepolicyScheduleCron | undefined; set internalValue(value: LifecyclepolicyScheduleCron | undefined); private _day?; get day(): string; set day(value: string); resetDay(): void; get dayInput(): string; private _dayOfWeek?; get dayOfWeek(): string; set dayOfWeek(value: string); resetDayOfWeek(): void; get dayOfWeekInput(): string; private _hour?; get hour(): string; set hour(value: string); resetHour(): void; get hourInput(): string; private _minute?; get minute(): string; set minute(value: string); resetMinute(): void; get minuteInput(): string; private _month?; get month(): string; set month(value: string); resetMonth(): void; get monthInput(): string; private _timezone?; get timezone(): string; set timezone(value: string); resetTimezone(): void; get timezoneInput(): string; private _week?; get week(): string; set week(value: string); resetWeek(): void; get weekInput(): string; } export interface LifecyclepolicyScheduleInterval { /** * Number of days to wait between actions * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#days Lifecyclepolicy#days} */ readonly days?: number; /** * Number of hours to wait between actions * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#hours Lifecyclepolicy#hours} */ readonly hours?: number; /** * Number of minutes to wait between actions * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#minutes Lifecyclepolicy#minutes} */ readonly minutes?: number; /** * Number of weeks to wait between actions * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#weeks Lifecyclepolicy#weeks} */ readonly weeks?: number; } export declare function lifecyclepolicyScheduleIntervalToTerraform(struct?: LifecyclepolicyScheduleIntervalOutputReference | LifecyclepolicyScheduleInterval): any; export declare function lifecyclepolicyScheduleIntervalToHclTerraform(struct?: LifecyclepolicyScheduleIntervalOutputReference | LifecyclepolicyScheduleInterval): any; export declare class LifecyclepolicyScheduleIntervalOutputReference 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(): LifecyclepolicyScheduleInterval | undefined; set internalValue(value: LifecyclepolicyScheduleInterval | undefined); private _days?; get days(): number; set days(value: number); resetDays(): void; get daysInput(): number; private _hours?; get hours(): number; set hours(value: number); resetHours(): void; get hoursInput(): number; private _minutes?; get minutes(): number; set minutes(value: number); resetMinutes(): void; get minutesInput(): number; private _weeks?; get weeks(): number; set weeks(value: number); resetWeeks(): void; get weeksInput(): number; } export interface LifecyclepolicyScheduleRetentionTime { /** * Number of days to wait before deleting snapshot * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#days Lifecyclepolicy#days} */ readonly days?: number; /** * Number of hours to wait before deleting snapshot * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#hours Lifecyclepolicy#hours} */ readonly hours?: number; /** * Number of minutes to wait before deleting snapshot * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#minutes Lifecyclepolicy#minutes} */ readonly minutes?: number; /** * Number of weeks to wait before deleting snapshot * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#weeks Lifecyclepolicy#weeks} */ readonly weeks?: number; } export declare function lifecyclepolicyScheduleRetentionTimeToTerraform(struct?: LifecyclepolicyScheduleRetentionTimeOutputReference | LifecyclepolicyScheduleRetentionTime): any; export declare function lifecyclepolicyScheduleRetentionTimeToHclTerraform(struct?: LifecyclepolicyScheduleRetentionTimeOutputReference | LifecyclepolicyScheduleRetentionTime): any; export declare class LifecyclepolicyScheduleRetentionTimeOutputReference 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(): LifecyclepolicyScheduleRetentionTime | undefined; set internalValue(value: LifecyclepolicyScheduleRetentionTime | undefined); private _days?; get days(): number; set days(value: number); resetDays(): void; get daysInput(): number; private _hours?; get hours(): number; set hours(value: number); resetHours(): void; get hoursInput(): number; private _minutes?; get minutes(): number; set minutes(value: number); resetMinutes(): void; get minutesInput(): number; private _weeks?; get weeks(): number; set weeks(value: number); resetWeeks(): void; get weeksInput(): number; } export interface LifecyclepolicySchedule { /** * Maximum number of stored resources * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#max_quantity Lifecyclepolicy#max_quantity} */ readonly maxQuantity: number; /** * Used to name snapshots. {volume_id} is substituted with volume.id on creation * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#resource_name_template Lifecyclepolicy#resource_name_template} */ readonly resourceNameTemplate?: string; /** * cron block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#cron Lifecyclepolicy#cron} */ readonly cron?: LifecyclepolicyScheduleCron; /** * interval block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#interval Lifecyclepolicy#interval} */ readonly interval?: LifecyclepolicyScheduleInterval; /** * retention_time block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#retention_time Lifecyclepolicy#retention_time} */ readonly retentionTime?: LifecyclepolicyScheduleRetentionTime; } export declare function lifecyclepolicyScheduleToTerraform(struct?: LifecyclepolicySchedule | cdktf.IResolvable): any; export declare function lifecyclepolicyScheduleToHclTerraform(struct?: LifecyclepolicySchedule | cdktf.IResolvable): any; export declare class LifecyclepolicyScheduleOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): LifecyclepolicySchedule | cdktf.IResolvable | undefined; set internalValue(value: LifecyclepolicySchedule | cdktf.IResolvable | undefined); get id(): any; private _maxQuantity?; get maxQuantity(): number; set maxQuantity(value: number); get maxQuantityInput(): number; private _resourceNameTemplate?; get resourceNameTemplate(): string; set resourceNameTemplate(value: string); resetResourceNameTemplate(): void; get resourceNameTemplateInput(): string; get type(): any; private _cron; get cron(): LifecyclepolicyScheduleCronOutputReference; putCron(value: LifecyclepolicyScheduleCron): void; resetCron(): void; get cronInput(): LifecyclepolicyScheduleCron; private _interval; get interval(): LifecyclepolicyScheduleIntervalOutputReference; putInterval(value: LifecyclepolicyScheduleInterval): void; resetInterval(): void; get intervalInput(): LifecyclepolicyScheduleInterval; private _retentionTime; get retentionTime(): LifecyclepolicyScheduleRetentionTimeOutputReference; putRetentionTime(value: LifecyclepolicyScheduleRetentionTime): void; resetRetentionTime(): void; get retentionTimeInput(): LifecyclepolicyScheduleRetentionTime; } export declare class LifecyclepolicyScheduleList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: LifecyclepolicySchedule[] | cdktf.IResolvable; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): LifecyclepolicyScheduleOutputReference; } export interface LifecyclepolicyVolume { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#id Lifecyclepolicy#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; } export declare function lifecyclepolicyVolumeToTerraform(struct?: LifecyclepolicyVolume | cdktf.IResolvable): any; export declare function lifecyclepolicyVolumeToHclTerraform(struct?: LifecyclepolicyVolume | cdktf.IResolvable): any; export declare class LifecyclepolicyVolumeOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): LifecyclepolicyVolume | cdktf.IResolvable | undefined; set internalValue(value: LifecyclepolicyVolume | cdktf.IResolvable | undefined); private _id?; get id(): string; set id(value: string); get idInput(): string; get name(): any; } export declare class LifecyclepolicyVolumeList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: LifecyclepolicyVolume[] | cdktf.IResolvable; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): LifecyclepolicyVolumeOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy gcore_lifecyclepolicy} */ export declare class Lifecyclepolicy extends cdktf.TerraformResource { static readonly tfResourceType = "gcore_lifecyclepolicy"; /** * Generates CDKTF code for importing a Lifecyclepolicy 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 Lifecyclepolicy to import * @param importFromId The id of the existing Lifecyclepolicy that should be imported. Refer to the {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the Lifecyclepolicy 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/g-core/gcore/0.32.5/docs/resources/lifecyclepolicy gcore_lifecyclepolicy} 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 LifecyclepolicyConfig */ constructor(scope: Construct, id: string, config: LifecyclepolicyConfig); private _action?; get action(): string; set action(value: string); resetAction(): void; get actionInput(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _name?; get name(): string; set name(value: string); get nameInput(): string; private _projectId?; get projectId(): number; set projectId(value: number); resetProjectId(): void; get projectIdInput(): number; private _projectName?; get projectName(): string; set projectName(value: string); resetProjectName(): void; get projectNameInput(): string; private _regionId?; get regionId(): number; set regionId(value: number); resetRegionId(): void; get regionIdInput(): number; private _regionName?; get regionName(): string; set regionName(value: string); resetRegionName(): void; get regionNameInput(): string; private _status?; get status(): string; set status(value: string); resetStatus(): void; get statusInput(): string; get userId(): any; private _schedule; get schedule(): LifecyclepolicyScheduleList; putSchedule(value: LifecyclepolicySchedule[] | cdktf.IResolvable): void; resetSchedule(): void; get scheduleInput(): any; private _volume; get volume(): LifecyclepolicyVolumeList; putVolume(value: LifecyclepolicyVolume[] | cdktf.IResolvable): void; resetVolume(): void; get volumeInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }