import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface ContainerRepositoryLifecyclePolicyConfig extends cdktf.TerraformMetaArguments { /** * The resource description. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/container_repository_lifecycle_policy#description ContainerRepositoryLifecyclePolicy#description} */ readonly description?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/container_repository_lifecycle_policy#id ContainerRepositoryLifecyclePolicy#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; /** * The resource name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/container_repository_lifecycle_policy#name ContainerRepositoryLifecyclePolicy#name} */ readonly name?: string; /** * The ID of the repository that the resource belongs to. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/container_repository_lifecycle_policy#repository_id ContainerRepositoryLifecyclePolicy#repository_id} */ readonly repositoryId: string; /** * The status of lifecycle policy. Must be `active` or `disabled`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/container_repository_lifecycle_policy#status ContainerRepositoryLifecyclePolicy#status} */ readonly status: string; /** * rule block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/container_repository_lifecycle_policy#rule ContainerRepositoryLifecyclePolicy#rule} */ readonly rule?: ContainerRepositoryLifecyclePolicyRule[] | cdktf.IResolvable; /** * timeouts block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/container_repository_lifecycle_policy#timeouts ContainerRepositoryLifecyclePolicy#timeouts} */ readonly timeouts?: ContainerRepositoryLifecyclePolicyTimeouts; } export interface ContainerRepositoryLifecyclePolicyRule { /** * Description of the lifecycle policy. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/container_repository_lifecycle_policy#description ContainerRepositoryLifecyclePolicy#description} */ readonly description?: string; /** * The period of time that must pass after creating a image for it to suit the automatic deletion criteria. It must be a multiple of 24 hours. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/container_repository_lifecycle_policy#expire_period ContainerRepositoryLifecyclePolicy#expire_period} */ readonly expirePeriod?: string; /** * The number of images to be retained even if the `expire_period` already expired. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/container_repository_lifecycle_policy#retained_top ContainerRepositoryLifecyclePolicy#retained_top} */ readonly retainedTop?: number; /** * Tag to specify a filter as a regular expression. For example `.*` - all images with tags. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/container_repository_lifecycle_policy#tag_regexp ContainerRepositoryLifecyclePolicy#tag_regexp} */ readonly tagRegexp?: string; /** * If enabled, rules apply to untagged Docker images. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/container_repository_lifecycle_policy#untagged ContainerRepositoryLifecyclePolicy#untagged} */ readonly untagged?: boolean | cdktf.IResolvable; } export declare function containerRepositoryLifecyclePolicyRuleToTerraform(struct?: ContainerRepositoryLifecyclePolicyRule | cdktf.IResolvable): any; export declare function containerRepositoryLifecyclePolicyRuleToHclTerraform(struct?: ContainerRepositoryLifecyclePolicyRule | cdktf.IResolvable): any; export declare class ContainerRepositoryLifecyclePolicyRuleOutputReference 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(): ContainerRepositoryLifecyclePolicyRule | cdktf.IResolvable | undefined; set internalValue(value: ContainerRepositoryLifecyclePolicyRule | cdktf.IResolvable | undefined); private _description?; get description(): string; set description(value: string); resetDescription(): void; get descriptionInput(): string; private _expirePeriod?; get expirePeriod(): string; set expirePeriod(value: string); resetExpirePeriod(): void; get expirePeriodInput(): string; private _retainedTop?; get retainedTop(): number; set retainedTop(value: number); resetRetainedTop(): void; get retainedTopInput(): number; private _tagRegexp?; get tagRegexp(): string; set tagRegexp(value: string); resetTagRegexp(): void; get tagRegexpInput(): string; private _untagged?; get untagged(): boolean | cdktf.IResolvable; set untagged(value: boolean | cdktf.IResolvable); resetUntagged(): void; get untaggedInput(): any; } export declare class ContainerRepositoryLifecyclePolicyRuleList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: ContainerRepositoryLifecyclePolicyRule[] | 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): ContainerRepositoryLifecyclePolicyRuleOutputReference; } export interface ContainerRepositoryLifecyclePolicyTimeouts { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/container_repository_lifecycle_policy#default ContainerRepositoryLifecyclePolicy#default} */ readonly default?: string; } export declare function containerRepositoryLifecyclePolicyTimeoutsToTerraform(struct?: ContainerRepositoryLifecyclePolicyTimeouts | cdktf.IResolvable): any; export declare function containerRepositoryLifecyclePolicyTimeoutsToHclTerraform(struct?: ContainerRepositoryLifecyclePolicyTimeouts | cdktf.IResolvable): any; export declare class ContainerRepositoryLifecyclePolicyTimeoutsOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @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(): ContainerRepositoryLifecyclePolicyTimeouts | cdktf.IResolvable | undefined; set internalValue(value: ContainerRepositoryLifecyclePolicyTimeouts | cdktf.IResolvable | undefined); private _default?; get default(): string; set default(value: string); resetDefault(): void; get defaultInput(): string; } /** * Represents a {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/container_repository_lifecycle_policy yandex_container_repository_lifecycle_policy} */ export declare class ContainerRepositoryLifecyclePolicy extends cdktf.TerraformResource { static readonly tfResourceType = "yandex_container_repository_lifecycle_policy"; /** * Generates CDKTF code for importing a ContainerRepositoryLifecyclePolicy 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 ContainerRepositoryLifecyclePolicy to import * @param importFromId The id of the existing ContainerRepositoryLifecyclePolicy that should be imported. Refer to the {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/container_repository_lifecycle_policy#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the ContainerRepositoryLifecyclePolicy 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/yandex-cloud/yandex/0.177.0/docs/resources/container_repository_lifecycle_policy yandex_container_repository_lifecycle_policy} 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 ContainerRepositoryLifecyclePolicyConfig */ constructor(scope: Construct, id: string, config: ContainerRepositoryLifecyclePolicyConfig); get createdAt(): any; private _description?; get description(): string; set description(value: string); resetDescription(): void; get descriptionInput(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _name?; get name(): string; set name(value: string); resetName(): void; get nameInput(): string; private _repositoryId?; get repositoryId(): string; set repositoryId(value: string); get repositoryIdInput(): string; private _status?; get status(): string; set status(value: string); get statusInput(): string; private _rule; get rule(): ContainerRepositoryLifecyclePolicyRuleList; putRule(value: ContainerRepositoryLifecyclePolicyRule[] | cdktf.IResolvable): void; resetRule(): void; get ruleInput(): any; private _timeouts; get timeouts(): ContainerRepositoryLifecyclePolicyTimeoutsOutputReference; putTimeouts(value: ContainerRepositoryLifecyclePolicyTimeouts): void; resetTimeouts(): void; get timeoutsInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }