// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS IoT */ export interface IotCertificateConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/iot_certificate.html#active IotCertificate#active} */ readonly active: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/iot_certificate.html#csr IotCertificate#csr} */ readonly csr?: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/iot_certificate.html aws_iot_certificate} */ export class IotCertificate extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_iot_certificate"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/iot_certificate.html aws_iot_certificate} 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 IotCertificateConfig */ public constructor(scope: Construct, id: string, config: IotCertificateConfig) { super(scope, id, { terraformResourceType: 'aws_iot_certificate', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._active = config.active; this._csr = config.csr; } // ========== // ATTRIBUTES // ========== // active - computed: false, optional: false, required: true private _active?: boolean | cdktf.IResolvable; public get active() { return this.getBooleanAttribute('active') as any; } public set active(value: boolean | cdktf.IResolvable) { this._active = value; } // Temporarily expose input value. Use with caution. public get activeInput() { return this._active; } // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // certificate_pem - computed: true, optional: false, required: false public get certificatePem() { return this.getStringAttribute('certificate_pem'); } // csr - computed: false, optional: true, required: false private _csr?: string; public get csr() { return this.getStringAttribute('csr'); } public set csr(value: string) { this._csr = value; } public resetCsr() { this._csr = undefined; } // Temporarily expose input value. Use with caution. public get csrInput() { return this._csr; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // private_key - computed: true, optional: false, required: false public get privateKey() { return this.getStringAttribute('private_key'); } // public_key - computed: true, optional: false, required: false public get publicKey() { return this.getStringAttribute('public_key'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { active: cdktf.booleanToTerraform(this._active), csr: cdktf.stringToTerraform(this._csr), }; } }