Retrieves information about an override to an on-call rotation.
Parameters:
-
rotation_id
(SsmContactsArn)
–
The Amazon Resource Name (ARN) of the overridden rotation to retrieve information about.
-
rotation_override_id
(Uuid)
–
The Amazon Resource Name (ARN) of the on-call rotation override to retrieve information about.
Raises:
Source code in docs_src/capo_ssm_contacts/_services/ssm_contacts.py
| def get_rotation_override(
self,
rotation_id: "capo_ssm_contacts.types.ssm_contacts_arn.SsmContactsArn",
rotation_override_id: "capo_ssm_contacts.types.uuid.Uuid",
*,
config_overrides: Optional[SSMContactsClientConfig] = None,
) -> (
"capo_ssm_contacts.types.get_rotation_override_result.GetRotationOverrideResult"
):
"""<p>Retrieves information about an override to an on-call rotation.</p>
Args:
rotation_id: <p>The Amazon Resource Name (ARN) of the overridden rotation to retrieve information about.</p>
rotation_override_id: <p>The Amazon Resource Name (ARN) of the on-call rotation override to retrieve information about.</p>
Raises:
capo_ssm_contacts.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient access to perform this operation.</p>
capo_ssm_contacts.errors.internal_server_exception.InternalServerException: <p>Unexpected error occurred while processing the request.</p>
capo_ssm_contacts.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource that doesn't exist.</p>
capo_ssm_contacts.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_ssm_contacts.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
capo_ssm_contacts.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_ssm_contacts.types.get_rotation_override_request.GetRotationOverrideRequest]",
) -> OperationResponse[
"capo_ssm_contacts.types.get_rotation_override_result.GetRotationOverrideResult"
]:
import capo_ssm_contacts._operations.ssm_contacts.get_rotation_override
output, http_response = (
capo_ssm_contacts._operations.ssm_contacts.get_rotation_override.get_rotation_override(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetRotationOverride")
)
input_: capo_ssm_contacts.types.get_rotation_override_request.GetRotationOverrideRequest = {
"rotation_id": rotation_id,
"rotation_override_id": rotation_override_id,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|