// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS X-Ray */ export interface XrayEncryptionConfigConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/xray_encryption_config.html#key_id XrayEncryptionConfig#key_id} */ readonly keyId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/xray_encryption_config.html#type XrayEncryptionConfig#type} */ readonly type: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/xray_encryption_config.html aws_xray_encryption_config} */ export class XrayEncryptionConfig extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_xray_encryption_config"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/xray_encryption_config.html aws_xray_encryption_config} 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 XrayEncryptionConfigConfig */ public constructor(scope: Construct, id: string, config: XrayEncryptionConfigConfig) { super(scope, id, { terraformResourceType: 'aws_xray_encryption_config', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._keyId = config.keyId; this._type = config.type; } // ========== // ATTRIBUTES // ========== // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // key_id - computed: false, optional: true, required: false private _keyId?: string; public get keyId() { return this.getStringAttribute('key_id'); } public set keyId(value: string) { this._keyId = value; } public resetKeyId() { this._keyId = undefined; } // Temporarily expose input value. Use with caution. public get keyIdInput() { return this._keyId; } // type - computed: false, optional: false, required: true private _type?: string; public get type() { return this.getStringAttribute('type'); } public set type(value: string) { this._type = value; } // Temporarily expose input value. Use with caution. public get typeInput() { return this._type; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { key_id: cdktf.stringToTerraform(this._keyId), type: cdktf.stringToTerraform(this._type), }; } }