Skip to content
v2.277.0

TimeRangeProperty Struct ​

A time range during which an AWS-initiated maintenance event may occur.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const timeRangeProperty: ec2.CfnInstanceEventWindow.TimeRangeProperty = {
  endHour: 123,
  endWeekDay: 'endWeekDay',
  startHour: 123,
  startWeekDay: 'startWeekDay',
};
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_ec2 as ec2

time_range_property = ec2.CfnInstanceEventWindow.TimeRangeProperty(
    end_hour=123,
    end_week_day="endWeekDay",
    start_hour=123,
    start_week_day="startWeekDay"
)
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.ec2.*;

TimeRangeProperty timeRangeProperty = TimeRangeProperty.builder()
        .endHour(123)
        .endWeekDay("endWeekDay")
        .startHour(123)
        .startWeekDay("startWeekDay")
        .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.EC2;

var timeRangeProperty = new TimeRangeProperty {
    EndHour = 123,
    EndWeekDay = "endWeekDay",
    StartHour = 123,
    StartWeekDay = "startWeekDay"
};
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"

timeRangeProperty := &TimeRangeProperty{
	EndHour: jsii.Number(123),
	EndWeekDay: jsii.String("endWeekDay"),
	StartHour: jsii.Number(123),
	StartWeekDay: jsii.String("startWeekDay"),
}

Properties ​

endHouroptionalnumberend_houroptionalint | floatendHouroptionalNumberEndHouroptionaldoubleEndHouroptional*float64 #
The hour when the time range ends.
endWeekDayoptionalstringend_week_dayoptionalstrendWeekDayoptionalStringEndWeekDayoptionalstringEndWeekDayoptional*string #
The day on which the time range ends.
startHouroptionalnumberstart_houroptionalint | floatstartHouroptionalNumberStartHouroptionaldoubleStartHouroptional*float64 #
The hour when the time range begins.
startWeekDayoptionalstringstart_week_dayoptionalstrstartWeekDayoptionalStringStartWeekDayoptionalstringStartWeekDayoptional*string #
The day on which the time range begins.