Lists permit requests from AWS support operators. Use pagination to ensure that the operation returns quickly and successfully.
Parameters:
-
next_token
(Optional[NextToken], default:
None
)
–
The token for the next page of results.
-
max_results
(Optional[MaxResults], default:
None
)
–
The maximum number of results to return in a single call. Valid range is 1 to 100.
-
support_case_display_id
(Optional[SupportCaseDisplayId], default:
None
)
–
Filters the results by support case display identifier.
Raises:
Source code in docs_src/capo_supportauthz/_services/async_support_auth_z.py
| async def list_support_permit_requests(
self,
*,
config_overrides: Optional[AsyncSupportAuthZClientConfig] = None,
next_token: Optional["capo_supportauthz.types.next_token.NextToken"] = None,
max_results: Optional["capo_supportauthz.types.max_results.MaxResults"] = None,
support_case_display_id: Optional[
"capo_supportauthz.types.support_case_display_id.SupportCaseDisplayId"
] = None,
) -> "capo_supportauthz.types.list_support_permit_requests_output.ListSupportPermitRequestsOutput":
"""<p>Lists permit requests from AWS support operators. Use pagination to ensure that the operation returns quickly and successfully.</p>
Args:
next_token: <p>The token for the next page of results.</p>
max_results: <p>The maximum number of results to return in a single call. Valid range is 1 to 100.</p>
support_case_display_id: <p>Filters the results by support case display identifier.</p>
Raises:
capo_supportauthz.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient permissions to perform this operation.</p>
capo_supportauthz.errors.internal_server_exception.InternalServerException: <p>An internal service error occurred. Try again later.</p>
capo_supportauthz.errors.throttling_exception.ThrottlingException: <p>The request rate exceeded the allowed limit. Try again later.</p>
capo_supportauthz.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
capo_supportauthz.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_supportauthz.types.list_support_permit_requests_input.ListSupportPermitRequestsInput]",
) -> AsyncOperationResponse[
"capo_supportauthz.types.list_support_permit_requests_output.ListSupportPermitRequestsOutput"
]:
import capo_supportauthz._operations.support_auth_z.list_support_permit_requests
(
output,
http_response,
) = await capo_supportauthz._operations.support_auth_z.list_support_permit_requests.async_list_support_permit_requests(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListSupportPermitRequests")
)
input_: capo_supportauthz.types.list_support_permit_requests_input.ListSupportPermitRequestsInput = {}
if next_token is not None:
input_["next_token"] = next_token
if max_results is not None:
input_["max_results"] = max_results
if support_case_display_id is not None:
input_["support_case_display_id"] = support_case_display_id
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|