Collects customer feedback about the specified insight.
Parameters:
-
insight_feedback
(Optional[InsightFeedback], default:
None
)
–
The feedback from customers is about the recommendations in this insight.
Raises:
Source code in docs_src/capo_devops_guru/_services/async_dev_ops_guru.py
| async def put_feedback(
self,
*,
config_overrides: Optional[AsyncDevOpsGuruClientConfig] = None,
insight_feedback: Optional[
"capo_devops_guru.types.insight_feedback.InsightFeedback"
] = None,
) -> "capo_devops_guru.types.put_feedback_response.PutFeedbackResponse":
"""<p> Collects customer feedback about the specified insight. </p>
Args:
insight_feedback: <p> The feedback from customers is about the recommendations in this insight. </p>
Raises:
capo_devops_guru.errors.access_denied_exception.AccessDeniedException: <p> You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access Management</a> in the <i>IAM User Guide</i>. </p>
capo_devops_guru.errors.conflict_exception.ConflictException: <p> An exception that is thrown when a conflict occurs. </p>
capo_devops_guru.errors.internal_server_exception.InternalServerException: <p>An internal failure in an Amazon service occurred.</p>
capo_devops_guru.errors.resource_not_found_exception.ResourceNotFoundException: <p>A requested resource could not be found</p>
capo_devops_guru.errors.throttling_exception.ThrottlingException: <p>The request was denied due to a request throttling.</p>
capo_devops_guru.errors.validation_exception.ValidationException: <p> Contains information about data passed in to a field during a request that is not valid. </p>
capo_devops_guru.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_devops_guru.types.put_feedback_request.PutFeedbackRequest]",
) -> AsyncOperationResponse[
"capo_devops_guru.types.put_feedback_response.PutFeedbackResponse"
]:
import capo_devops_guru._operations.capstone_control_plane_service.put_feedback
(
output,
http_response,
) = await capo_devops_guru._operations.capstone_control_plane_service.put_feedback.async_put_feedback(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("PutFeedback")
)
input_: capo_devops_guru.types.put_feedback_request.PutFeedbackRequest = {}
if insight_feedback is not None:
input_["insight_feedback"] = insight_feedback
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|