update_rotation
¶
update_rotation(
rotation_id: SsmContactsArn,
recurrence: RecurrenceSettings,
*,
config_overrides: Optional[SSMContactsClientConfig] = None,
contact_ids: Optional[RotationContactsArnList] = None,
start_time: Optional[DateTime] = None,
time_zone_id: Optional[TimeZoneId] = None,
) -> UpdateRotationResult
Updates the information specified for an on-call rotation.
Parameters:
-
rotation_id(SsmContactsArn) –The Amazon Resource Name (ARN) of the rotation to update.
-
contact_ids(Optional[RotationContactsArnList], default:None) –The Amazon Resource Names (ARNs) of the contacts to include in the updated rotation.
Only the
PERSONALcontact type is supported. The contact typesESCALATIONandONCALL_SCHEDULEare not supported for this operation.The order in which you list the contacts is their shift order in the rotation schedule.
-
start_time(Optional[DateTime], default:None) –The date and time the rotation goes into effect.
-
time_zone_id(Optional[TimeZoneId], default:None) –The time zone to base the updated rotation’s activity on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA website.
Designators for time zones that don’t support Daylight Savings Time Rules, such as Pacific Standard Time (PST), aren't supported.
-
recurrence(RecurrenceSettings) –Information about how long the updated rotation lasts before restarting at the beginning of the shift order.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this operation.
-
ConflictException–Updating or deleting a resource causes an inconsistent state.
-
InternalServerException–Unexpected error occurred while processing the request.
-
ResourceNotFoundException–Request references a resource that doesn't exist.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm_contacts/_services/ssm_contacts.py
2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 | |