// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * Prometheus */ export interface PrometheusWorkspaceConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/prometheus_workspace.html#alias PrometheusWorkspace#alias} */ readonly alias?: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/prometheus_workspace.html aws_prometheus_workspace} */ export class PrometheusWorkspace extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_prometheus_workspace"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/prometheus_workspace.html aws_prometheus_workspace} 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 PrometheusWorkspaceConfig = {} */ public constructor(scope: Construct, id: string, config: PrometheusWorkspaceConfig = {}) { super(scope, id, { terraformResourceType: 'aws_prometheus_workspace', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._alias = config.alias; } // ========== // ATTRIBUTES // ========== // alias - computed: false, optional: true, required: false private _alias?: string; public get alias() { return this.getStringAttribute('alias'); } public set alias(value: string) { this._alias = value; } public resetAlias() { this._alias = undefined; } // Temporarily expose input value. Use with caution. public get aliasInput() { return this._alias; } // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // prometheus_endpoint - computed: true, optional: false, required: false public get prometheusEndpoint() { return this.getStringAttribute('prometheus_endpoint'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { alias: cdktf.stringToTerraform(this._alias), }; } }