Class CfnRotation
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ssmcontacts.CfnRotation
- All Implemented Interfaces:
IInspectable,ITaggable,IRotationRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:47.679Z")
@Stability(Stable)
public class CfnRotation
extends CfnResource
implements IInspectable, IRotationRef, ITaggable
Specifies a rotation in an on-call schedule.
Template example : We recommend creating all Incident Manager
Contactsresources using a single AWS CloudFormation template. For a demonstration, see the examples for AWS::SSMContacts::Contacts .
Example:
// 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.*;
CfnRotation cfnRotation = CfnRotation.Builder.create(this, "MyCfnRotation")
.contactIds(List.of("contactIds"))
.name("name")
.recurrence(RecurrenceSettingsProperty.builder()
.numberOfOnCalls(123)
.recurrenceMultiplier(123)
// the properties below are optional
.dailySettings(List.of("dailySettings"))
.monthlySettings(List.of(MonthlySettingProperty.builder()
.dayOfMonth(123)
.handOffTime("handOffTime")
.build()))
.shiftCoverages(List.of(ShiftCoverageProperty.builder()
.coverageTimes(List.of(CoverageTimeProperty.builder()
.endTime("endTime")
.startTime("startTime")
.build()))
.dayOfWeek("dayOfWeek")
.build()))
.weeklySettings(List.of(WeeklySettingProperty.builder()
.dayOfWeek("dayOfWeek")
.handOffTime("handOffTime")
.build()))
.build())
.startTime("startTime")
.timeZoneId("timeZoneId")
// the properties below are optional
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnRotation.static interfaceInformation about when an on-call shift begins and ends.static interfaceInformation about on-call rotations that recur monthly.static interfaceInformation about when an on-call rotation is in effect and how long the rotation period lasts.static interfaceInformation about the days of the week that the on-call rotation coverage includes.static interfaceInformation about rotations that recur weekly.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ssmcontacts.IRotationRef
IRotationRef.Jsii$Default, IRotationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnRotation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnRotation(software.amazon.jsii.JsiiObjectRef objRef) CfnRotation(software.constructs.Construct scope, String id, CfnRotationProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of theRotationresource.The Amazon Resource Names (ARNs) of the contacts to add to the rotation.getName()The name for the rotation.Information about the rule that specifies when shift team members rotate.A reference to a Rotation resource.The date and time the rotation goes into effect.getTags()Tag Manager which manages the tags for this resource.Optional metadata to assign to the rotation.The time zone to base the rotation’s activity on, in Internet Assigned Numbers Authority (IANA) format.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetContactIds(List<String> value) The Amazon Resource Names (ARNs) of the contacts to add to the rotation.voidThe name for the rotation.voidsetRecurrence(IResolvable value) Information about the rule that specifies when shift team members rotate.voidInformation about the rule that specifies when shift team members rotate.voidsetStartTime(String value) The date and time the rotation goes into effect.voidsetTagsRaw(List<CfnTag> value) Optional metadata to assign to the rotation.voidsetTimeZoneId(String value) The time zone to base the rotation’s activity on, in Internet Assigned Numbers Authority (IANA) format.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnRotation
protected CfnRotation(software.amazon.jsii.JsiiObjectRef objRef) -
CfnRotation
protected CfnRotation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnRotation
@Stability(Stable) public CfnRotation(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnRotationProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of theRotationresource. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getRotationRef
A reference to a Rotation resource.- Specified by:
getRotationRefin interfaceIRotationRef
-
getTags
Tag Manager which manages the tags for this resource. -
getContactIds
The Amazon Resource Names (ARNs) of the contacts to add to the rotation. -
setContactIds
The Amazon Resource Names (ARNs) of the contacts to add to the rotation. -
getName
The name for the rotation. -
setName
The name for the rotation. -
getRecurrence
Information about the rule that specifies when shift team members rotate.Returns union: either
IResolvableorCfnRotation.RecurrenceSettingsProperty -
setRecurrence
Information about the rule that specifies when shift team members rotate. -
setRecurrence
Information about the rule that specifies when shift team members rotate. -
getStartTime
The date and time the rotation goes into effect. -
setStartTime
The date and time the rotation goes into effect. -
getTimeZoneId
The time zone to base the rotation’s activity on, in Internet Assigned Numbers Authority (IANA) format. -
setTimeZoneId
The time zone to base the rotation’s activity on, in Internet Assigned Numbers Authority (IANA) format. -
getTagsRaw
Optional metadata to assign to the rotation. -
setTagsRaw
Optional metadata to assign to the rotation.
-