Class CfnRotation

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-09-24T10:56:40.533Z") @Stability(Stable) public class CfnRotation extends CfnResource implements IInspectable, ITaggable
Specifies a rotation in an on-call schedule.

Template example : We recommend creating all Incident Manager Contacts resources 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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the Rotation resource.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getContactIds

      @Stability(Stable) @NotNull public List<String> getContactIds()
      The Amazon Resource Names (ARNs) of the contacts to add to the rotation.
    • setContactIds

      @Stability(Stable) public void setContactIds(@NotNull List<String> value)
      The Amazon Resource Names (ARNs) of the contacts to add to the rotation.
    • getName

      @Stability(Stable) @NotNull public String getName()
      The name for the rotation.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name for the rotation.
    • getRecurrence

      @Stability(Stable) @NotNull public Object getRecurrence()
      Information about the rule that specifies when shift team members rotate.
    • setRecurrence

      @Stability(Stable) public void setRecurrence(@NotNull IResolvable value)
      Information about the rule that specifies when shift team members rotate.
    • setRecurrence

      @Stability(Stable) public void setRecurrence(@NotNull CfnRotation.RecurrenceSettingsProperty value)
      Information about the rule that specifies when shift team members rotate.
    • getStartTime

      @Stability(Stable) @NotNull public String getStartTime()
      The date and time the rotation goes into effect.
    • setStartTime

      @Stability(Stable) public void setStartTime(@NotNull String value)
      The date and time the rotation goes into effect.
    • getTimeZoneId

      @Stability(Stable) @NotNull public String getTimeZoneId()
      The time zone to base the rotation’s activity on, in Internet Assigned Numbers Authority (IANA) format.
    • setTimeZoneId

      @Stability(Stable) public void setTimeZoneId(@NotNull String value)
      The time zone to base the rotation’s activity on, in Internet Assigned Numbers Authority (IANA) format.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      Optional metadata to assign to the rotation.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      Optional metadata to assign to the rotation.