Returns the resolution path of an engagement. For example, the escalation plan engaged in an incident might target an on-call schedule that includes several contacts in a rotation, but just one contact on-call when the incident starts. The resolution path indicates the hierarchy of escalation plan > on-call schedule > contact.
Parameters:
-
next_token
(Optional[PaginationToken], default:
None
)
–
A token to start the list. Use this token to get the next set of results.
-
page_id
(SsmContactsArn)
–
The Amazon Resource Name (ARN) of the contact engaged for the incident.
Raises:
Source code in docs_src/capo_ssm_contacts/_services/async_ssm_contacts.py
| async def list_page_resolutions(
self,
page_id: "capo_ssm_contacts.types.ssm_contacts_arn.SsmContactsArn",
*,
config_overrides: Optional[AsyncSSMContactsClientConfig] = None,
next_token: Optional[
"capo_ssm_contacts.types.pagination_token.PaginationToken"
] = None,
) -> (
"capo_ssm_contacts.types.list_page_resolutions_result.ListPageResolutionsResult"
):
"""<p>Returns the resolution path of an engagement. For example, the escalation plan engaged in an incident might target an on-call schedule that includes several contacts in a rotation, but just one contact on-call when the incident starts. The resolution path indicates the hierarchy of <i>escalation plan > on-call schedule > contact</i>.</p>
Args:
next_token: <p>A token to start the list. Use this token to get the next set of results.</p>
page_id: <p>The Amazon Resource Name (ARN) of the contact engaged for the incident.</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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_ssm_contacts.types.list_page_resolutions_request.ListPageResolutionsRequest]",
) -> AsyncOperationResponse[
"capo_ssm_contacts.types.list_page_resolutions_result.ListPageResolutionsResult"
]:
import capo_ssm_contacts._operations.ssm_contacts.list_page_resolutions
(
output,
http_response,
) = await capo_ssm_contacts._operations.ssm_contacts.list_page_resolutions.async_list_page_resolutions(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListPageResolutions")
)
input_: capo_ssm_contacts.types.list_page_resolutions_request.ListPageResolutionsRequest = {
"page_id": page_id
}
if next_token is not None:
input_["next_token"] = next_token
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|