// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Identity and Access Management */ export interface DataAwsIamServerCertificateConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/iam_server_certificate.html#latest DataAwsIamServerCertificate#latest} */ readonly latest?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/iam_server_certificate.html#name DataAwsIamServerCertificate#name} */ readonly name?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/iam_server_certificate.html#name_prefix DataAwsIamServerCertificate#name_prefix} */ readonly namePrefix?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/iam_server_certificate.html#path_prefix DataAwsIamServerCertificate#path_prefix} */ readonly pathPrefix?: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/iam_server_certificate.html aws_iam_server_certificate} */ export class DataAwsIamServerCertificate extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_iam_server_certificate"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/iam_server_certificate.html aws_iam_server_certificate} Data Source * * @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 DataAwsIamServerCertificateConfig = {} */ public constructor(scope: Construct, id: string, config: DataAwsIamServerCertificateConfig = {}) { super(scope, id, { terraformResourceType: 'aws_iam_server_certificate', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._latest = config.latest; this._name = config.name; this._namePrefix = config.namePrefix; this._pathPrefix = config.pathPrefix; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // certificate_body - computed: true, optional: false, required: false public get certificateBody() { return this.getStringAttribute('certificate_body'); } // certificate_chain - computed: true, optional: false, required: false public get certificateChain() { return this.getStringAttribute('certificate_chain'); } // expiration_date - computed: true, optional: false, required: false public get expirationDate() { return this.getStringAttribute('expiration_date'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // latest - computed: false, optional: true, required: false private _latest?: boolean | cdktf.IResolvable; public get latest() { return this.getBooleanAttribute('latest') as any; } public set latest(value: boolean | cdktf.IResolvable) { this._latest = value; } public resetLatest() { this._latest = undefined; } // Temporarily expose input value. Use with caution. public get latestInput() { return this._latest; } // name - computed: true, optional: true, required: false private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } public resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // name_prefix - computed: false, optional: true, required: false private _namePrefix?: string; public get namePrefix() { return this.getStringAttribute('name_prefix'); } public set namePrefix(value: string) { this._namePrefix = value; } public resetNamePrefix() { this._namePrefix = undefined; } // Temporarily expose input value. Use with caution. public get namePrefixInput() { return this._namePrefix; } // path - computed: true, optional: false, required: false public get path() { return this.getStringAttribute('path'); } // path_prefix - computed: false, optional: true, required: false private _pathPrefix?: string; public get pathPrefix() { return this.getStringAttribute('path_prefix'); } public set pathPrefix(value: string) { this._pathPrefix = value; } public resetPathPrefix() { this._pathPrefix = undefined; } // Temporarily expose input value. Use with caution. public get pathPrefixInput() { return this._pathPrefix; } // upload_date - computed: true, optional: false, required: false public get uploadDate() { return this.getStringAttribute('upload_date'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { latest: cdktf.booleanToTerraform(this._latest), name: cdktf.stringToTerraform(this._name), name_prefix: cdktf.stringToTerraform(this._namePrefix), path_prefix: cdktf.stringToTerraform(this._pathPrefix), }; } }