import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface KmsKeyConfig extends cdktf.TerraformMetaArguments { /** * Name of CMK. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be a letter or number. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/kms_key#alias KmsKey#alias} */ readonly alias: string; /** * Description of CMK. The maximum is 1024 bytes. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/kms_key#description KmsKey#description} */ readonly description?: string; /** * The HSM cluster ID corresponding to KMS Advanced Edition (only valid for KMS Exclusive/Managed Edition service instances). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/kms_key#hsm_cluster_id KmsKey#hsm_cluster_id} */ readonly hsmClusterId?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/kms_key#id KmsKey#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; /** * Specify whether to archive key. Default value is `false`. This field is conflict with `is_enabled`, valid when key_state is `Enabled`, `Disabled`, `Archived`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/kms_key#is_archived KmsKey#is_archived} */ readonly isArchived?: boolean | cdktf.IResolvable; /** * Specify whether to enable key. Default value is `false`. This field is conflict with `is_archived`, valid when key_state is `Enabled`, `Disabled`, `Archived`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/kms_key#is_enabled KmsKey#is_enabled} */ readonly isEnabled?: boolean | cdktf.IResolvable; /** * Specify whether to enable key rotation, valid when key_usage is `ENCRYPT_DECRYPT`. Default value is `false`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/kms_key#key_rotation_enabled KmsKey#key_rotation_enabled} */ readonly keyRotationEnabled?: boolean | cdktf.IResolvable; /** * Usage of CMK. Available values include `ENCRYPT_DECRYPT`, `ASYMMETRIC_DECRYPT_RSA_2048`, `ASYMMETRIC_DECRYPT_SM2`, `ASYMMETRIC_SIGN_VERIFY_SM2`, `ASYMMETRIC_SIGN_VERIFY_RSA_2048`, `ASYMMETRIC_SIGN_VERIFY_ECC`. Default value is `ENCRYPT_DECRYPT`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/kms_key#key_usage KmsKey#key_usage} */ readonly keyUsage?: string; /** * Duration in days after which the key is deleted after destruction of the resource, must be between 7 and 30 days. Defaults to 7 days. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/kms_key#pending_delete_window_in_days KmsKey#pending_delete_window_in_days} */ readonly pendingDeleteWindowInDays?: number; /** * Tags of CMK. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/kms_key#tags KmsKey#tags} */ readonly tags?: { [key: string]: string; }; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/kms_key tencentcloud_kms_key} */ export declare class KmsKey extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_kms_key"; /** * Generates CDKTF code for importing a KmsKey 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 KmsKey to import * @param importFromId The id of the existing KmsKey that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/kms_key#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the KmsKey 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/kms_key tencentcloud_kms_key} 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 KmsKeyConfig */ constructor(scope: Construct, id: string, config: KmsKeyConfig); private _alias?; get alias(): string; set alias(value: string); get aliasInput(): string; private _description?; get description(): string; set description(value: string); resetDescription(): void; get descriptionInput(): string; private _hsmClusterId?; get hsmClusterId(): string; set hsmClusterId(value: string); resetHsmClusterId(): void; get hsmClusterIdInput(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _isArchived?; get isArchived(): boolean | cdktf.IResolvable; set isArchived(value: boolean | cdktf.IResolvable); resetIsArchived(): void; get isArchivedInput(): any; private _isEnabled?; get isEnabled(): boolean | cdktf.IResolvable; set isEnabled(value: boolean | cdktf.IResolvable); resetIsEnabled(): void; get isEnabledInput(): any; private _keyRotationEnabled?; get keyRotationEnabled(): boolean | cdktf.IResolvable; set keyRotationEnabled(value: boolean | cdktf.IResolvable); resetKeyRotationEnabled(): void; get keyRotationEnabledInput(): any; get keyState(): any; private _keyUsage?; get keyUsage(): string; set keyUsage(value: string); resetKeyUsage(): void; get keyUsageInput(): string; private _pendingDeleteWindowInDays?; get pendingDeleteWindowInDays(): number; set pendingDeleteWindowInDays(value: number); resetPendingDeleteWindowInDays(): void; get pendingDeleteWindowInDaysInput(): number; private _tags?; get tags(): { [key: string]: string; }; set tags(value: { [key: string]: string; }); resetTags(): void; get tagsInput(): { [key: string]: string; }; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }