// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Config */ export interface ConfigConfigurationRecorderStatusConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/config_configuration_recorder_status.html#is_enabled ConfigConfigurationRecorderStatus#is_enabled} */ readonly isEnabled: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/config_configuration_recorder_status.html#name ConfigConfigurationRecorderStatus#name} */ readonly name: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/config_configuration_recorder_status.html aws_config_configuration_recorder_status} */ export class ConfigConfigurationRecorderStatus extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_config_configuration_recorder_status"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/config_configuration_recorder_status.html aws_config_configuration_recorder_status} 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 ConfigConfigurationRecorderStatusConfig */ public constructor(scope: Construct, id: string, config: ConfigConfigurationRecorderStatusConfig) { super(scope, id, { terraformResourceType: 'aws_config_configuration_recorder_status', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._isEnabled = config.isEnabled; this._name = config.name; } // ========== // ATTRIBUTES // ========== // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // is_enabled - computed: false, optional: false, required: true private _isEnabled?: boolean | cdktf.IResolvable; public get isEnabled() { return this.getBooleanAttribute('is_enabled') as any; } public set isEnabled(value: boolean | cdktf.IResolvable) { this._isEnabled = value; } // Temporarily expose input value. Use with caution. public get isEnabledInput() { return this._isEnabled; } // name - computed: false, optional: false, required: true private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { is_enabled: cdktf.booleanToTerraform(this._isEnabled), name: cdktf.stringToTerraform(this._name), }; } }