# MaintenanceWindowProperty

The scheduling details for the maintenance window.

Patching and system updates take place during the maintenance window.

- Source: Generated at build time
- Type last changed: v2.217.0 · 25 Sep 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_odb as odb } from 'aws-cdk-lib';
const maintenanceWindowProperty: odb.CfnCloudExadataInfrastructure.MaintenanceWindowProperty = {
  customActionTimeoutInMins: 123,
  daysOfWeek: ['daysOfWeek'],
  hoursOfDay: [123],
  isCustomActionTimeoutEnabled: false,
  leadTimeInWeeks: 123,
  months: ['months'],
  patchingMode: 'patchingMode',
  preference: 'preference',
  weeksOfMonth: [123],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_odb as odb

maintenance_window_property = odb.CfnCloudExadataInfrastructure.MaintenanceWindowProperty(
    custom_action_timeout_in_mins=123,
    days_of_week=["daysOfWeek"],
    hours_of_day=[123],
    is_custom_action_timeout_enabled=False,
    lead_time_in_weeks=123,
    months=["months"],
    patching_mode="patchingMode",
    preference="preference",
    weeks_of_month=[123]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.odb.*;

MaintenanceWindowProperty maintenanceWindowProperty = MaintenanceWindowProperty.builder()
        .customActionTimeoutInMins(123)
        .daysOfWeek(List.of("daysOfWeek"))
        .hoursOfDay(List.of(123))
        .isCustomActionTimeoutEnabled(false)
        .leadTimeInWeeks(123)
        .months(List.of("months"))
        .patchingMode("patchingMode")
        .preference("preference")
        .weeksOfMonth(List.of(123))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ODB;

var maintenanceWindowProperty = new MaintenanceWindowProperty {
    CustomActionTimeoutInMins = 123,
    DaysOfWeek = new [] { "daysOfWeek" },
    HoursOfDay = new [] { 123 },
    IsCustomActionTimeoutEnabled = false,
    LeadTimeInWeeks = 123,
    Months = new [] { "months" },
    PatchingMode = "patchingMode",
    Preference = "preference",
    WeeksOfMonth = new [] { 123 }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

maintenanceWindowProperty := &MaintenanceWindowProperty{
	CustomActionTimeoutInMins: jsii.Number(123),
	DaysOfWeek: []*string{
		jsii.String("daysOfWeek"),
	},
	HoursOfDay: []interface{}{
		jsii.Number(123),
	},
	IsCustomActionTimeoutEnabled: jsii.Boolean(false),
	LeadTimeInWeeks: jsii.Number(123),
	Months: []*string{
		jsii.String("months"),
	},
	PatchingMode: jsii.String("patchingMode"),
	Preference: jsii.String("preference"),
	WeeksOfMonth: []interface{}{
		jsii.Number(123),
	},
}
```

## Properties

- `customActionTimeoutInMins`: number — The custom action timeout in minutes for the maintenance window.

- `daysOfWeek`: string[] — The days of the week when maintenance can be performed.

- `hoursOfDay`: number[] | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — The hours of the day when maintenance can be performed.

- `isCustomActionTimeoutEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether custom action timeout is enabled for the maintenance window.

- `leadTimeInWeeks`: number — The lead time in weeks before the maintenance window.

- `months`: string[] — The months when maintenance can be performed.

- `patchingMode`: string — The patching mode for the maintenance window.

- `preference`: string — The preference for the maintenance window scheduling.

- `weeksOfMonth`: number[] | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — The weeks of the month when maintenance can be performed.
