async def update_analysis_template(
self,
membership_identifier: "capo_cleanrooms.types.membership_identifier.MembershipIdentifier",
analysis_template_identifier: "capo_cleanrooms.types.analysis_template_identifier.AnalysisTemplateIdentifier",
*,
config_overrides: Optional[AsyncCleanRoomsClientConfig] = None,
description: Optional[
"capo_cleanrooms.types.resource_description.ResourceDescription"
] = None,
) -> "capo_cleanrooms.types.update_analysis_template_output.UpdateAnalysisTemplateOutput":
"""<p>Updates the analysis template metadata.</p>
Args:
membership_identifier: <p>The identifier for a membership resource.</p>
analysis_template_identifier: <p>The identifier for the analysis template resource.</p>
description: <p>A new description for the analysis template.</p>
Raises:
capo_cleanrooms.errors.access_denied_exception.AccessDeniedException: <p>Caller does not have sufficient access to perform this action.</p>
capo_cleanrooms.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
capo_cleanrooms.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
capo_cleanrooms.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</p>
capo_cleanrooms.errors.validation_exception.ValidationException: <p>The input fails to satisfy the specified constraints.</p>
capo_cleanrooms.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_cleanrooms.types.update_analysis_template_input.UpdateAnalysisTemplateInput]",
) -> AsyncOperationResponse[
"capo_cleanrooms.types.update_analysis_template_output.UpdateAnalysisTemplateOutput"
]:
import capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.update_analysis_template
(
output,
http_response,
) = await capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.update_analysis_template.async_update_analysis_template(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
def _redact_output(
output: "capo_cleanrooms.types.update_analysis_template_output.UpdateAnalysisTemplateOutput",
) -> dict[str, Any]:
import capo_cleanrooms.types.update_analysis_template_output
return (
capo_cleanrooms.types.update_analysis_template_output.redact_sensitive(
output
)
)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("UpdateAnalysisTemplate", redact_output=_redact_output),
)
input_: capo_cleanrooms.types.update_analysis_template_input.UpdateAnalysisTemplateInput = {
"membership_identifier": membership_identifier,
"analysis_template_identifier": analysis_template_identifier,
}
if description is not None:
input_["description"] = description
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output