import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface TcrServiceAccountConfig extends cdktf.TerraformMetaArguments { /** * Service account description. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tcr_service_account#description TcrServiceAccount#description} */ readonly description?: string; /** * whether to disable Service accounts. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tcr_service_account#disable TcrServiceAccount#disable} */ readonly disable?: boolean | cdktf.IResolvable; /** * expiration date (unit: day), calculated from the current time, priority is higher than ExpiresAt Service account description. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tcr_service_account#duration TcrServiceAccount#duration} */ readonly duration?: number; /** * Service account expiration time (time stamp, unit: milliseconds). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tcr_service_account#expires_at TcrServiceAccount#expires_at} */ readonly expiresAt?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tcr_service_account#id TcrServiceAccount#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; /** * Service account name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tcr_service_account#name TcrServiceAccount#name} */ readonly name: string; /** * Password of the service account. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tcr_service_account#password TcrServiceAccount#password} */ readonly password?: string; /** * instance id. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tcr_service_account#registry_id TcrServiceAccount#registry_id} */ readonly registryId: string; /** * Tag description list. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tcr_service_account#tags TcrServiceAccount#tags} */ readonly tags?: { [key: string]: string; }; /** * permissions block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tcr_service_account#permissions TcrServiceAccount#permissions} */ readonly permissions: TcrServiceAccountPermissions[] | cdktf.IResolvable; } export interface TcrServiceAccountPermissions { /** * Actions, currently support: `tcr:PushRepository`, `tcr:PullRepository`, `tcr:CreateRepository`, `tcr:CreateHelmChart`, `tcr:DescribeHelmCharts`. Note: This field may return null, indicating that no valid value can be obtained. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tcr_service_account#actions TcrServiceAccount#actions} */ readonly actions: string[]; /** * resource path, currently only supports Namespace. Note: This field may return null, indicating that no valid value can be obtained. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tcr_service_account#resource TcrServiceAccount#resource} */ readonly resource: string; } export declare function tcrServiceAccountPermissionsToTerraform(struct?: TcrServiceAccountPermissions | cdktf.IResolvable): any; export declare function tcrServiceAccountPermissionsToHclTerraform(struct?: TcrServiceAccountPermissions | cdktf.IResolvable): any; export declare class TcrServiceAccountPermissionsOutputReference 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(): TcrServiceAccountPermissions | cdktf.IResolvable | undefined; set internalValue(value: TcrServiceAccountPermissions | cdktf.IResolvable | undefined); private _actions?; get actions(): string[]; set actions(value: string[]); get actionsInput(): string[]; private _resource?; get resource(): string; set resource(value: string); get resourceInput(): string; } export declare class TcrServiceAccountPermissionsList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: TcrServiceAccountPermissions[] | 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): TcrServiceAccountPermissionsOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tcr_service_account tencentcloud_tcr_service_account} */ export declare class TcrServiceAccount extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_tcr_service_account"; /** * Generates CDKTF code for importing a TcrServiceAccount 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 TcrServiceAccount to import * @param importFromId The id of the existing TcrServiceAccount that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/tcr_service_account#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the TcrServiceAccount 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/tcr_service_account tencentcloud_tcr_service_account} 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 TcrServiceAccountConfig */ constructor(scope: Construct, id: string, config: TcrServiceAccountConfig); private _description?; get description(): string; set description(value: string); resetDescription(): void; get descriptionInput(): string; private _disable?; get disable(): boolean | cdktf.IResolvable; set disable(value: boolean | cdktf.IResolvable); resetDisable(): void; get disableInput(): any; private _duration?; get duration(): number; set duration(value: number); resetDuration(): void; get durationInput(): number; private _expiresAt?; get expiresAt(): number; set expiresAt(value: number); resetExpiresAt(): void; get expiresAtInput(): number; 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 _password?; get password(): string; set password(value: string); resetPassword(): void; get passwordInput(): string; private _registryId?; get registryId(): string; set registryId(value: string); get registryIdInput(): string; private _tags?; get tags(): { [key: string]: string; }; set tags(value: { [key: string]: string; }); resetTags(): void; get tagsInput(): { [key: string]: string; }; private _permissions; get permissions(): TcrServiceAccountPermissionsList; putPermissions(value: TcrServiceAccountPermissions[] | cdktf.IResolvable): void; get permissionsInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }