Skip to content
v2.278.0

ShiftCoverageProperty Struct ​

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

Example ​

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
# 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
// 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();
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
// 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 ​

coverageTimesIResolvable | IResolvable | CfnRotation.CoverageTimeProperty[]coverage_timestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CoverageTimeProperty]]]coverageTimesIResolvableCoverageTimesIResolvableCoverageTimesinterface{} required #
The start and end times of the shift.
dayOfWeekstringday_of_weekstrdayOfWeekStringDayOfWeekstringDayOfWeek*string required #
A list of days on which the schedule is active.