// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Systems Manager */ export interface SsmMaintenanceWindowConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_maintenance_window.html#allow_unassociated_targets SsmMaintenanceWindow#allow_unassociated_targets} */ readonly allowUnassociatedTargets?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_maintenance_window.html#cutoff SsmMaintenanceWindow#cutoff} */ readonly cutoff: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_maintenance_window.html#description SsmMaintenanceWindow#description} */ readonly description?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_maintenance_window.html#duration SsmMaintenanceWindow#duration} */ readonly duration: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_maintenance_window.html#enabled SsmMaintenanceWindow#enabled} */ readonly enabled?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_maintenance_window.html#end_date SsmMaintenanceWindow#end_date} */ readonly endDate?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_maintenance_window.html#name SsmMaintenanceWindow#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_maintenance_window.html#schedule SsmMaintenanceWindow#schedule} */ readonly schedule: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_maintenance_window.html#schedule_offset SsmMaintenanceWindow#schedule_offset} */ readonly scheduleOffset?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_maintenance_window.html#schedule_timezone SsmMaintenanceWindow#schedule_timezone} */ readonly scheduleTimezone?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_maintenance_window.html#start_date SsmMaintenanceWindow#start_date} */ readonly startDate?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_maintenance_window.html#tags SsmMaintenanceWindow#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_maintenance_window.html#tags_all SsmMaintenanceWindow#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/ssm_maintenance_window.html aws_ssm_maintenance_window} */ export class SsmMaintenanceWindow extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_ssm_maintenance_window"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/ssm_maintenance_window.html aws_ssm_maintenance_window} 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 SsmMaintenanceWindowConfig */ public constructor(scope: Construct, id: string, config: SsmMaintenanceWindowConfig) { super(scope, id, { terraformResourceType: 'aws_ssm_maintenance_window', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._allowUnassociatedTargets = config.allowUnassociatedTargets; this._cutoff = config.cutoff; this._description = config.description; this._duration = config.duration; this._enabled = config.enabled; this._endDate = config.endDate; this._name = config.name; this._schedule = config.schedule; this._scheduleOffset = config.scheduleOffset; this._scheduleTimezone = config.scheduleTimezone; this._startDate = config.startDate; this._tags = config.tags; this._tagsAll = config.tagsAll; } // ========== // ATTRIBUTES // ========== // allow_unassociated_targets - computed: false, optional: true, required: false private _allowUnassociatedTargets?: boolean | cdktf.IResolvable; public get allowUnassociatedTargets() { return this.getBooleanAttribute('allow_unassociated_targets') as any; } public set allowUnassociatedTargets(value: boolean | cdktf.IResolvable) { this._allowUnassociatedTargets = value; } public resetAllowUnassociatedTargets() { this._allowUnassociatedTargets = undefined; } // Temporarily expose input value. Use with caution. public get allowUnassociatedTargetsInput() { return this._allowUnassociatedTargets; } // cutoff - computed: false, optional: false, required: true private _cutoff?: number; public get cutoff() { return this.getNumberAttribute('cutoff'); } public set cutoff(value: number) { this._cutoff = value; } // Temporarily expose input value. Use with caution. public get cutoffInput() { return this._cutoff; } // description - computed: false, optional: true, required: false private _description?: string; public get description() { return this.getStringAttribute('description'); } public set description(value: string) { this._description = value; } public resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. public get descriptionInput() { return this._description; } // duration - computed: false, optional: false, required: true private _duration?: number; public get duration() { return this.getNumberAttribute('duration'); } public set duration(value: number) { this._duration = value; } // Temporarily expose input value. Use with caution. public get durationInput() { return this._duration; } // enabled - computed: false, optional: true, required: false private _enabled?: boolean | cdktf.IResolvable; public get enabled() { return this.getBooleanAttribute('enabled') as any; } public set enabled(value: boolean | cdktf.IResolvable) { this._enabled = value; } public resetEnabled() { this._enabled = undefined; } // Temporarily expose input value. Use with caution. public get enabledInput() { return this._enabled; } // end_date - computed: false, optional: true, required: false private _endDate?: string; public get endDate() { return this.getStringAttribute('end_date'); } public set endDate(value: string) { this._endDate = value; } public resetEndDate() { this._endDate = undefined; } // Temporarily expose input value. Use with caution. public get endDateInput() { return this._endDate; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // 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; } // schedule - computed: false, optional: false, required: true private _schedule?: string; public get schedule() { return this.getStringAttribute('schedule'); } public set schedule(value: string) { this._schedule = value; } // Temporarily expose input value. Use with caution. public get scheduleInput() { return this._schedule; } // schedule_offset - computed: false, optional: true, required: false private _scheduleOffset?: number; public get scheduleOffset() { return this.getNumberAttribute('schedule_offset'); } public set scheduleOffset(value: number) { this._scheduleOffset = value; } public resetScheduleOffset() { this._scheduleOffset = undefined; } // Temporarily expose input value. Use with caution. public get scheduleOffsetInput() { return this._scheduleOffset; } // schedule_timezone - computed: false, optional: true, required: false private _scheduleTimezone?: string; public get scheduleTimezone() { return this.getStringAttribute('schedule_timezone'); } public set scheduleTimezone(value: string) { this._scheduleTimezone = value; } public resetScheduleTimezone() { this._scheduleTimezone = undefined; } // Temporarily expose input value. Use with caution. public get scheduleTimezoneInput() { return this._scheduleTimezone; } // start_date - computed: false, optional: true, required: false private _startDate?: string; public get startDate() { return this.getStringAttribute('start_date'); } public set startDate(value: string) { this._startDate = value; } public resetStartDate() { this._startDate = undefined; } // Temporarily expose input value. Use with caution. public get startDateInput() { return this._startDate; } // tags - computed: false, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // tags_all - computed: true, optional: true, required: false private _tagsAll?: { [key: string]: string } | cdktf.IResolvable; public get tagsAll() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags_all') as any; } public set tagsAll(value: { [key: string]: string } | cdktf.IResolvable) { this._tagsAll = value; } public resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. public get tagsAllInput() { return this._tagsAll; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { allow_unassociated_targets: cdktf.booleanToTerraform(this._allowUnassociatedTargets), cutoff: cdktf.numberToTerraform(this._cutoff), description: cdktf.stringToTerraform(this._description), duration: cdktf.numberToTerraform(this._duration), enabled: cdktf.booleanToTerraform(this._enabled), end_date: cdktf.stringToTerraform(this._endDate), name: cdktf.stringToTerraform(this._name), schedule: cdktf.stringToTerraform(this._schedule), schedule_offset: cdktf.numberToTerraform(this._scheduleOffset), schedule_timezone: cdktf.stringToTerraform(this._scheduleTimezone), start_date: cdktf.stringToTerraform(this._startDate), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), }; } }