Removes an Amazon EMR Studio from the Studio metadata store.
Parameters:
Raises:
Source code in docs_src/capo_emr/_services/async_emr.py
| async def delete_studio(
self,
*,
config_overrides: Optional[AsyncEMRClientConfig] = None,
studio_id: Optional[
"capo_emr.types.xml_string_max_len256.XmlStringMaxLen256"
] = None,
) -> None:
"""<p>Removes an Amazon EMR Studio from the Studio metadata store.</p>
Args:
studio_id: <p>The ID of the Amazon EMR Studio.</p>
Raises:
capo_emr.errors.internal_server_exception.InternalServerException: <p>This exception occurs when there is an internal failure in the Amazon EMR service.</p>
capo_emr.errors.invalid_request_exception.InvalidRequestException: <p>This exception occurs when there is something wrong with user input.</p>
capo_emr.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_emr.types.delete_studio_input.DeleteStudioInput]",
) -> AsyncOperationResponse[None]:
import capo_emr._operations.elastic_map_reduce.delete_studio
(
output,
http_response,
) = await capo_emr._operations.elastic_map_reduce.delete_studio.async_delete_studio(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteStudio")
)
input_: capo_emr.types.delete_studio_input.DeleteStudioInput = {}
if studio_id is not None:
input_["studio_id"] = studio_id
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|