import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface GitlabInstanceConfig extends cdktf.TerraformMetaArguments { /** * An email of admin user in Gitlab. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#admin_email GitlabInstance#admin_email} */ readonly adminEmail: string; /** * A login of admin user in Gitlab. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#admin_login GitlabInstance#admin_login} */ readonly adminLogin: string; /** * Approval rules configuration. One of: NONE, BASIC, STANDARD, ADVANCED. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#approval_rules_id GitlabInstance#approval_rules_id} */ readonly approvalRulesId: string; /** * Approval rules token. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#approval_rules_token GitlabInstance#approval_rules_token} */ readonly approvalRulesToken?: string; /** * Auto backups retain period in days. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#backup_retain_period_days GitlabInstance#backup_retain_period_days} */ readonly backupRetainPeriodDays: number; /** * The `true` value means that resource is protected from accidental deletion. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#deletion_protection GitlabInstance#deletion_protection} */ readonly deletionProtection?: boolean | cdktf.IResolvable; /** * The resource description. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#description GitlabInstance#description} */ readonly description?: string; /** * Amount of disk storage available to a instance in GB. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#disk_size GitlabInstance#disk_size} */ readonly diskSize: number; /** * Domain of the Gitlab instance. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#domain GitlabInstance#domain} */ readonly domain: string; /** * The folder identifier that resource belongs to. If it is not provided, the default provider `folder-id` is used. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#folder_id GitlabInstance#folder_id} */ readonly folderId?: string; /** * A set of key/value label pairs which assigned to resource. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#labels GitlabInstance#labels} */ readonly labels?: { [key: string]: string; }; /** * The `true` value means that untagged images will be deleted during maintenance. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#maintenance_delete_untagged GitlabInstance#maintenance_delete_untagged} */ readonly maintenanceDeleteUntagged?: boolean | cdktf.IResolvable; /** * The resource name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#name GitlabInstance#name} */ readonly name: string; /** * ID of the preset for computational resources available to the instance (CPU, memory etc.). One of: s2.micro, s2.small, s2.medium, s2.large. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#resource_preset_id GitlabInstance#resource_preset_id} */ readonly resourcePresetId: string; /** * ID of the subnet where the GitLab instance is located. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#subnet_id GitlabInstance#subnet_id} */ readonly subnetId: string; /** * timeouts block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#timeouts GitlabInstance#timeouts} */ readonly timeouts?: GitlabInstanceTimeouts; } export interface GitlabInstanceTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#create GitlabInstance#create} */ readonly create?: string; /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#delete GitlabInstance#delete} */ readonly delete?: string; /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#update GitlabInstance#update} */ readonly update?: string; } export declare function gitlabInstanceTimeoutsToTerraform(struct?: GitlabInstanceTimeouts | cdktf.IResolvable): any; export declare function gitlabInstanceTimeoutsToHclTerraform(struct?: GitlabInstanceTimeouts | cdktf.IResolvable): any; export declare class GitlabInstanceTimeoutsOutputReference 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(): GitlabInstanceTimeouts | cdktf.IResolvable | undefined; set internalValue(value: GitlabInstanceTimeouts | cdktf.IResolvable | undefined); private _create?; get create(): string; set create(value: string); resetCreate(): void; get createInput(): string; private _delete?; get delete(): string; set delete(value: string); resetDelete(): void; get deleteInput(): string; private _update?; get update(): string; set update(value: string); resetUpdate(): void; get updateInput(): string; } /** * Represents a {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance yandex_gitlab_instance} */ export declare class GitlabInstance extends cdktf.TerraformResource { static readonly tfResourceType = "yandex_gitlab_instance"; /** * Generates CDKTF code for importing a GitlabInstance 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 GitlabInstance to import * @param importFromId The id of the existing GitlabInstance that should be imported. Refer to the {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/gitlab_instance#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the GitlabInstance 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/gitlab_instance yandex_gitlab_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 GitlabInstanceConfig */ constructor(scope: Construct, id: string, config: GitlabInstanceConfig); private _adminEmail?; get adminEmail(): string; set adminEmail(value: string); get adminEmailInput(): string; private _adminLogin?; get adminLogin(): string; set adminLogin(value: string); get adminLoginInput(): string; private _approvalRulesId?; get approvalRulesId(): string; set approvalRulesId(value: string); get approvalRulesIdInput(): string; private _approvalRulesToken?; get approvalRulesToken(): string; set approvalRulesToken(value: string); resetApprovalRulesToken(): void; get approvalRulesTokenInput(): string; private _backupRetainPeriodDays?; get backupRetainPeriodDays(): number; set backupRetainPeriodDays(value: number); get backupRetainPeriodDaysInput(): number; get createdAt(): any; private _deletionProtection?; get deletionProtection(): boolean | cdktf.IResolvable; set deletionProtection(value: boolean | cdktf.IResolvable); resetDeletionProtection(): void; get deletionProtectionInput(): any; private _description?; get description(): string; set description(value: string); resetDescription(): void; get descriptionInput(): string; private _diskSize?; get diskSize(): number; set diskSize(value: number); get diskSizeInput(): number; private _domain?; get domain(): string; set domain(value: string); get domainInput(): string; private _folderId?; get folderId(): string; set folderId(value: string); resetFolderId(): void; get folderIdInput(): string; get gitlabVersion(): any; get id(): any; private _labels?; get labels(): { [key: string]: string; }; set labels(value: { [key: string]: string; }); resetLabels(): void; get labelsInput(): { [key: string]: string; }; private _maintenanceDeleteUntagged?; get maintenanceDeleteUntagged(): boolean | cdktf.IResolvable; set maintenanceDeleteUntagged(value: boolean | cdktf.IResolvable); resetMaintenanceDeleteUntagged(): void; get maintenanceDeleteUntaggedInput(): any; private _name?; get name(): string; set name(value: string); get nameInput(): string; private _resourcePresetId?; get resourcePresetId(): string; set resourcePresetId(value: string); get resourcePresetIdInput(): string; get status(): any; private _subnetId?; get subnetId(): string; set subnetId(value: string); get subnetIdInput(): string; get updatedAt(): any; private _timeouts; get timeouts(): GitlabInstanceTimeoutsOutputReference; putTimeouts(value: GitlabInstanceTimeouts): void; resetTimeouts(): void; get timeoutsInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }