# WindowProperty

The start and end time of the time exclusion window.

- Source: Generated at build time
- Type last changed: v2.186.0 · 27 Mar 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_applicationsignals as applicationsignals } from 'aws-cdk-lib';
const windowProperty: applicationsignals.CfnServiceLevelObjective.WindowProperty = {
  duration: 123,
  durationUnit: 'durationUnit',
};
```

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_applicationsignals as applicationsignals

window_property = applicationsignals.CfnServiceLevelObjective.WindowProperty(
    duration=123,
    duration_unit="durationUnit"
)
```

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.applicationsignals.*;

WindowProperty windowProperty = WindowProperty.builder()
        .duration(123)
        .durationUnit("durationUnit")
        .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.ApplicationSignals;

var windowProperty = new WindowProperty {
    Duration = 123,
    DurationUnit = "durationUnit"
};
```

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"

windowProperty := &WindowProperty{
	Duration: jsii.Number(123),
	DurationUnit: jsii.String("durationUnit"),
}
```

## Properties

- `duration`: number (required) — The start and end time of the time exclusion window.

- `durationUnit`: string (required) — The unit of measurement to use during the time window exclusion.
