# ShiftCoverageProperty

Struct · External

Information about the days of the week that the on-call rotation coverage includes.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ssmcontacts as ssmcontacts } from 'aws-cdk-lib';
const shiftCoverageProperty: ssmcontacts.CfnRotation.ShiftCoverageProperty = {
  coverageTimes: [{
    endTime: 'endTime',
    startTime: 'startTime',
  }],
  dayOfWeek: 'dayOfWeek',
};
```

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_ssmcontacts as ssmcontacts

shift_coverage_property = ssmcontacts.CfnRotation.ShiftCoverageProperty(
    coverage_times=[ssmcontacts.CfnRotation.CoverageTimeProperty(
        end_time="endTime",
        start_time="startTime"
    )],
    day_of_week="dayOfWeek"
)
```

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

ShiftCoverageProperty shiftCoverageProperty = ShiftCoverageProperty.builder()
        .coverageTimes(List.of(CoverageTimeProperty.builder()
                .endTime("endTime")
                .startTime("startTime")
                .build()))
        .dayOfWeek("dayOfWeek")
        .build();
```

C#:

```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.SSMContacts;

var shiftCoverageProperty = new ShiftCoverageProperty {
    CoverageTimes = new [] { new CoverageTimeProperty {
        EndTime = "endTime",
        StartTime = "startTime"
    } },
    DayOfWeek = "dayOfWeek"
};
```

Go:

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

shiftCoverageProperty := &ShiftCoverageProperty{
	CoverageTimes: []interface{}{
		&CoverageTimeProperty{
			EndTime: jsii.String("endTime"),
			StartTime: jsii.String("startTime"),
		},
	},
	DayOfWeek: jsii.String("dayOfWeek"),
}
```

## Properties

- `coverageTimes`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRotation.CoverageTimeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ssmcontacts.CfnRotation.CoverageTimeProperty.html)[] (required) — The start and end times of the shift.

- `dayOfWeek`: string (required) — A list of days on which the schedule is active.
