Returns a list of all Amazon EMR Studios associated with the Amazon Web Services account. The list includes details such as ID, Studio Access URL, and creation time for each Studio.
Parameters:
-
marker
(Optional[Marker], default:
None
)
–
The pagination token that indicates the set of results to retrieve.
Raises:
Source code in docs_src/capo_emr/_services/async_emr.py
| async def list_studios(
self,
*,
config_overrides: Optional[AsyncEMRClientConfig] = None,
marker: Optional["capo_emr.types.marker.Marker"] = None,
) -> "capo_emr.types.list_studios_output.ListStudiosOutput":
"""<p>Returns a list of all Amazon EMR Studios associated with the Amazon Web Services account. The list includes details such as ID, Studio Access URL, and creation time for each Studio.</p>
Args:
marker: <p>The pagination token that indicates the set of results to retrieve.</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.list_studios_input.ListStudiosInput]",
) -> AsyncOperationResponse[
"capo_emr.types.list_studios_output.ListStudiosOutput"
]:
import capo_emr._operations.elastic_map_reduce.list_studios
(
output,
http_response,
) = await capo_emr._operations.elastic_map_reduce.list_studios.async_list_studios(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListStudios")
)
input_: capo_emr.types.list_studios_input.ListStudiosInput = {}
if marker is not None:
input_["marker"] = marker
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|