import * as core from "@terrascript/core"; export interface MaintenanceWindowArgs extends core.ResourceArgs { /** * (Optional) Whether targets must be registered with the Maintenance Window before tasks can be define * d for those targets. */ allowUnassociatedTargets?: boolean | core.BooleanOut; /** * (Required) The number of hours before the end of the Maintenance Window that Systems Manager stops s * cheduling new tasks for execution. */ cutoff: number | core.NumberOut; /** * (Optional) A description for the maintenance window. */ description?: string | core.StringOut; /** * (Required) The duration of the Maintenance Window in hours. */ duration: number | core.NumberOut; /** * (Optional) Whether the maintenance window is enabled. Default: `true`. */ enabled?: boolean | core.BooleanOut; /** * (Optional) Timestamp in [ISO-8601 extended format](https://www.iso.org/iso-8601-date-and-time-format * .html) when to no longer run the maintenance window. */ endDate?: string | core.StringOut; /** * (Required) The name of the maintenance window. */ name: string | core.StringOut; /** * (Required) The schedule of the Maintenance Window in the form of a [cron](https://docs.aws.amazon.co * m/systems-manager/latest/userguide/sysman-maintenance-cron.html) or rate expression. */ schedule: string | core.StringOut; /** * (Optional) The number of days to wait after the date and time specified by a CRON expression before * running the maintenance window. */ scheduleOffset?: number | core.NumberOut; /** * (Optional) Timezone for schedule in [Internet Assigned Numbers Authority (IANA) Time Zone Database f * ormat](https://www.iana.org/time-zones). For example: `America/Los_Angeles`, `etc/UTC`, or `Asia/Seo * ul`. */ scheduleTimezone?: string | core.StringOut; /** * (Optional) Timestamp in [ISO-8601 extended format](https://www.iso.org/iso-8601-date-and-time-format * .html) when to begin the maintenance window. */ startDate?: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class MaintenanceWindow extends core.Resource { /** * (Optional) Whether targets must be registered with the Maintenance Window before tasks can be define * d for those targets. */ @core.attr(Boolean) public allowUnassociatedTargets?: boolean | core.BooleanOut; /** * (Required) The number of hours before the end of the Maintenance Window that Systems Manager stops s * cheduling new tasks for execution. */ @core.attr(Number) public cutoff!: number | core.NumberOut; /** * (Optional) A description for the maintenance window. */ @core.attr(String) public description?: string | core.StringOut; /** * (Required) The duration of the Maintenance Window in hours. */ @core.attr(Number) public duration!: number | core.NumberOut; /** * (Optional) Whether the maintenance window is enabled. Default: `true`. */ @core.attr(Boolean) public enabled?: boolean | core.BooleanOut; /** * (Optional) Timestamp in [ISO-8601 extended format](https://www.iso.org/iso-8601-date-and-time-format * .html) when to no longer run the maintenance window. */ @core.attr(String) public endDate?: string | core.StringOut; /** * The ID of the maintenance window. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the maintenance window. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) The schedule of the Maintenance Window in the form of a [cron](https://docs.aws.amazon.co * m/systems-manager/latest/userguide/sysman-maintenance-cron.html) or rate expression. */ @core.attr(String) public schedule!: string | core.StringOut; /** * (Optional) The number of days to wait after the date and time specified by a CRON expression before * running the maintenance window. */ @core.attr(Number) public scheduleOffset?: number | core.NumberOut; /** * (Optional) Timezone for schedule in [Internet Assigned Numbers Authority (IANA) Time Zone Database f * ormat](https://www.iana.org/time-zones). For example: `America/Los_Angeles`, `etc/UTC`, or `Asia/Seo * ul`. */ @core.attr(String) public scheduleTimezone?: string | core.StringOut; /** * (Optional) Timestamp in [ISO-8601 extended format](https://www.iso.org/iso-8601-date-and-time-format * .html) when to begin the maintenance window. */ @core.attr(String) public startDate?: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; constructor(name: string, args?: MaintenanceWindowArgs) { super(name, "aws_ssm_maintenance_window", args); } public override getNamespace(): string { return "aws_ssm"; } }