Skip to content
v2.278.0

MaintenanceWindowProperty ​

Struct External

The scheduling details for the maintenance window.

Patching and system updates take place during the maintenance window.

Example ​

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.CfnCloudAutonomousVmCluster.MaintenanceWindowProperty = {
  daysOfWeek: ['daysOfWeek'],
  hoursOfDay: [123],
  leadTimeInWeeks: 123,
  months: ['months'],
  preference: 'preference',
  weeksOfMonth: [123],
};
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.CfnCloudAutonomousVmCluster.MaintenanceWindowProperty(
    days_of_week=["daysOfWeek"],
    hours_of_day=[123],
    lead_time_in_weeks=123,
    months=["months"],
    preference="preference",
    weeks_of_month=[123]
)
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()
        .daysOfWeek(List.of("daysOfWeek"))
        .hoursOfDay(List.of(123))
        .leadTimeInWeeks(123)
        .months(List.of("months"))
        .preference("preference")
        .weeksOfMonth(List.of(123))
        .build();
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 {
    DaysOfWeek = new [] { "daysOfWeek" },
    HoursOfDay = new [] { 123 },
    LeadTimeInWeeks = 123,
    Months = new [] { "months" },
    Preference = "preference",
    WeeksOfMonth = new [] { 123 }
};
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{
	DaysOfWeek: []*string{
		jsii.String("daysOfWeek"),
	},
	HoursOfDay: []interface{}{
		jsii.Number(123),
	},
	LeadTimeInWeeks: jsii.Number(123),
	Months: []*string{
		jsii.String("months"),
	},
	Preference: jsii.String("preference"),
	WeeksOfMonth: []interface{}{
		jsii.Number(123),
	},
}

Properties ​

daysOfWeekoptionalstring[]days_of_weekoptionaltyping.List[str]daysOfWeekoptionalList<String>DaysOfWeekoptionalstring[]DaysOfWeekoptional*[]*string #
The days of the week when maintenance can be performed.
hoursOfDayoptionalnumber[] | IResolvablehours_of_dayoptionaltyping.Union[typing.List[int | float], IResolvable]hoursOfDayoptionalList<Number>HoursOfDayoptionaldouble[]HoursOfDayoptionalinterface{} #
The hours of the day when maintenance can be performed.
leadTimeInWeeksoptionalnumberlead_time_in_weeksoptionalint | floatleadTimeInWeeksoptionalNumberLeadTimeInWeeksoptionaldoubleLeadTimeInWeeksoptional*float64 #
The lead time in weeks before the maintenance window.
monthsoptionalstring[]monthsoptionaltyping.List[str]monthsoptionalList<String>Monthsoptionalstring[]Monthsoptional*[]*string #
The months when maintenance can be performed.
preferenceoptionalstringpreferenceoptionalstrpreferenceoptionalStringPreferenceoptionalstringPreferenceoptional*string #
The preference for the maintenance window scheduling.
weeksOfMonthoptionalnumber[] | IResolvableweeks_of_monthoptionaltyping.Union[typing.List[int | float], IResolvable]weeksOfMonthoptionalList<Number>WeeksOfMonthoptionaldouble[]WeeksOfMonthoptionalinterface{} #
The weeks of the month when maintenance can be performed.