Modifies the configuration of an existing analyzer.
This action is not supported for external access analyzers.
Parameters:
-
analyzer_name
(AnalyzerName)
–
The name of the analyzer to modify.
Raises:
Source code in docs_src/capo_accessanalyzer/_services/async_access_analyzer.py
| async def update_analyzer(
self,
analyzer_name: "capo_accessanalyzer.types.analyzer_name.AnalyzerName",
*,
config_overrides: Optional[AsyncAccessAnalyzerClientConfig] = None,
configuration: Optional[
"capo_accessanalyzer.types.analyzer_configuration.AnalyzerConfiguration"
] = None,
) -> "capo_accessanalyzer.types.update_analyzer_response.UpdateAnalyzerResponse":
"""<p>Modifies the configuration of an existing analyzer.</p> <note> <p>This action is not supported for external access analyzers.</p> </note>
Args:
analyzer_name: <p>The name of the analyzer to modify.</p>
Raises:
capo_accessanalyzer.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_accessanalyzer.errors.conflict_exception.ConflictException: <p>A conflict exception error.</p>
capo_accessanalyzer.errors.internal_server_exception.InternalServerException: <p>Internal server error.</p>
capo_accessanalyzer.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource could not be found.</p>
capo_accessanalyzer.errors.throttling_exception.ThrottlingException: <p>Throttling limit exceeded error.</p>
capo_accessanalyzer.errors.validation_exception.ValidationException: <p>Validation exception error.</p>
capo_accessanalyzer.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_accessanalyzer.types.update_analyzer_request.UpdateAnalyzerRequest]",
) -> AsyncOperationResponse[
"capo_accessanalyzer.types.update_analyzer_response.UpdateAnalyzerResponse"
]:
import capo_accessanalyzer._operations.access_analyzer.update_analyzer
(
output,
http_response,
) = await capo_accessanalyzer._operations.access_analyzer.update_analyzer.async_update_analyzer(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateAnalyzer")
)
input_: capo_accessanalyzer.types.update_analyzer_request.UpdateAnalyzerRequest = {
"analyzer_name": analyzer_name
}
if configuration is not None:
input_["configuration"] = configuration
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|