Retrieves the description of a specific support action.
Parameters:
-
action
(Action)
–
The name of the support action to retrieve.
Raises:
Source code in docs_src/capo_supportauthz/_services/async_support_auth_z.py
| async def get_action(
self,
action: "capo_supportauthz.types.action.Action",
*,
config_overrides: Optional[AsyncSupportAuthZClientConfig] = None,
) -> "capo_supportauthz.types.get_action_output.GetActionOutput":
"""<p>Retrieves the description of a specific support action.</p>
Args:
action: <p>The name of the support action to retrieve.</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.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource does not exist.</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.get_action_input.GetActionInput]",
) -> AsyncOperationResponse[
"capo_supportauthz.types.get_action_output.GetActionOutput"
]:
import capo_supportauthz._operations.support_auth_z.get_action
(
output,
http_response,
) = await capo_supportauthz._operations.support_auth_z.get_action.async_get_action(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetAction")
)
input_: capo_supportauthz.types.get_action_input.GetActionInput = {
"action": action
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|