# TimeRangeProperty

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

- Source: Generated at build time
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

TypeScript:

```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:

```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:

```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();
```

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.EC2;

var timeRangeProperty = new TimeRangeProperty {
    EndHour = 123,
    EndWeekDay = "endWeekDay",
    StartHour = 123,
    StartWeekDay = "startWeekDay"
};
```

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"

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

## Properties

- `endHour`: number — The hour when the time range ends.

- `endWeekDay`: string — The day on which the time range ends.

- `startHour`: number — The hour when the time range begins.

- `startWeekDay`: string — The day on which the time range begins.
