// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Key Management Service */ export interface KmsReplicaExternalKeyConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/kms_replica_external_key.html#bypass_policy_lockout_safety_check KmsReplicaExternalKey#bypass_policy_lockout_safety_check} */ readonly bypassPolicyLockoutSafetyCheck?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/kms_replica_external_key.html#deletion_window_in_days KmsReplicaExternalKey#deletion_window_in_days} */ readonly deletionWindowInDays?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/kms_replica_external_key.html#description KmsReplicaExternalKey#description} */ readonly description?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/kms_replica_external_key.html#enabled KmsReplicaExternalKey#enabled} */ readonly enabled?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/kms_replica_external_key.html#key_material_base64 KmsReplicaExternalKey#key_material_base64} */ readonly keyMaterialBase64?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/kms_replica_external_key.html#policy KmsReplicaExternalKey#policy} */ readonly policy?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/kms_replica_external_key.html#primary_key_arn KmsReplicaExternalKey#primary_key_arn} */ readonly primaryKeyArn: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/kms_replica_external_key.html#tags KmsReplicaExternalKey#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/kms_replica_external_key.html#tags_all KmsReplicaExternalKey#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/kms_replica_external_key.html#valid_to KmsReplicaExternalKey#valid_to} */ readonly validTo?: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/kms_replica_external_key.html aws_kms_replica_external_key} */ export class KmsReplicaExternalKey extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_kms_replica_external_key"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/kms_replica_external_key.html aws_kms_replica_external_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 KmsReplicaExternalKeyConfig */ public constructor(scope: Construct, id: string, config: KmsReplicaExternalKeyConfig) { super(scope, id, { terraformResourceType: 'aws_kms_replica_external_key', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._bypassPolicyLockoutSafetyCheck = config.bypassPolicyLockoutSafetyCheck; this._deletionWindowInDays = config.deletionWindowInDays; this._description = config.description; this._enabled = config.enabled; this._keyMaterialBase64 = config.keyMaterialBase64; this._policy = config.policy; this._primaryKeyArn = config.primaryKeyArn; this._tags = config.tags; this._tagsAll = config.tagsAll; this._validTo = config.validTo; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // bypass_policy_lockout_safety_check - computed: false, optional: true, required: false private _bypassPolicyLockoutSafetyCheck?: boolean | cdktf.IResolvable; public get bypassPolicyLockoutSafetyCheck() { return this.getBooleanAttribute('bypass_policy_lockout_safety_check') as any; } public set bypassPolicyLockoutSafetyCheck(value: boolean | cdktf.IResolvable) { this._bypassPolicyLockoutSafetyCheck = value; } public resetBypassPolicyLockoutSafetyCheck() { this._bypassPolicyLockoutSafetyCheck = undefined; } // Temporarily expose input value. Use with caution. public get bypassPolicyLockoutSafetyCheckInput() { return this._bypassPolicyLockoutSafetyCheck; } // deletion_window_in_days - computed: false, optional: true, required: false private _deletionWindowInDays?: number; public get deletionWindowInDays() { return this.getNumberAttribute('deletion_window_in_days'); } public set deletionWindowInDays(value: number) { this._deletionWindowInDays = value; } public resetDeletionWindowInDays() { this._deletionWindowInDays = undefined; } // Temporarily expose input value. Use with caution. public get deletionWindowInDaysInput() { return this._deletionWindowInDays; } // description - computed: false, optional: true, required: false private _description?: string; public get description() { return this.getStringAttribute('description'); } public set description(value: string) { this._description = value; } public resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. public get descriptionInput() { return this._description; } // enabled - computed: true, optional: true, required: false private _enabled?: boolean | cdktf.IResolvable; public get enabled() { return this.getBooleanAttribute('enabled') as any; } public set enabled(value: boolean | cdktf.IResolvable) { this._enabled = value; } public resetEnabled() { this._enabled = undefined; } // Temporarily expose input value. Use with caution. public get enabledInput() { return this._enabled; } // expiration_model - computed: true, optional: false, required: false public get expirationModel() { return this.getStringAttribute('expiration_model'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // key_id - computed: true, optional: false, required: false public get keyId() { return this.getStringAttribute('key_id'); } // key_material_base64 - computed: false, optional: true, required: false private _keyMaterialBase64?: string; public get keyMaterialBase64() { return this.getStringAttribute('key_material_base64'); } public set keyMaterialBase64(value: string) { this._keyMaterialBase64 = value; } public resetKeyMaterialBase64() { this._keyMaterialBase64 = undefined; } // Temporarily expose input value. Use with caution. public get keyMaterialBase64Input() { return this._keyMaterialBase64; } // key_state - computed: true, optional: false, required: false public get keyState() { return this.getStringAttribute('key_state'); } // key_usage - computed: true, optional: false, required: false public get keyUsage() { return this.getStringAttribute('key_usage'); } // policy - computed: true, optional: true, required: false private _policy?: string; public get policy() { return this.getStringAttribute('policy'); } public set policy(value: string) { this._policy = value; } public resetPolicy() { this._policy = undefined; } // Temporarily expose input value. Use with caution. public get policyInput() { return this._policy; } // primary_key_arn - computed: false, optional: false, required: true private _primaryKeyArn?: string; public get primaryKeyArn() { return this.getStringAttribute('primary_key_arn'); } public set primaryKeyArn(value: string) { this._primaryKeyArn = value; } // Temporarily expose input value. Use with caution. public get primaryKeyArnInput() { return this._primaryKeyArn; } // tags - computed: false, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // tags_all - computed: true, optional: true, required: false private _tagsAll?: { [key: string]: string } | cdktf.IResolvable; public get tagsAll() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags_all') as any; } public set tagsAll(value: { [key: string]: string } | cdktf.IResolvable) { this._tagsAll = value; } public resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. public get tagsAllInput() { return this._tagsAll; } // valid_to - computed: false, optional: true, required: false private _validTo?: string; public get validTo() { return this.getStringAttribute('valid_to'); } public set validTo(value: string) { this._validTo = value; } public resetValidTo() { this._validTo = undefined; } // Temporarily expose input value. Use with caution. public get validToInput() { return this._validTo; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { bypass_policy_lockout_safety_check: cdktf.booleanToTerraform(this._bypassPolicyLockoutSafetyCheck), deletion_window_in_days: cdktf.numberToTerraform(this._deletionWindowInDays), description: cdktf.stringToTerraform(this._description), enabled: cdktf.booleanToTerraform(this._enabled), key_material_base64: cdktf.stringToTerraform(this._keyMaterialBase64), policy: cdktf.stringToTerraform(this._policy), primary_key_arn: cdktf.stringToTerraform(this._primaryKeyArn), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), valid_to: cdktf.stringToTerraform(this._validTo), }; } }