Skip to content

stop_access_logging async

stop_access_logging(
    container_name: ContainerName,
    *,
    config_overrides: Optional[AsyncMediaStoreClientConfig] = None,
) -> StopAccessLoggingOutput

Stops access logging on the specified container. When you stop access logging on a container, MediaStore stops sending access logs to Amazon CloudWatch Logs. These access logs are not saved and are not retrievable.

Parameters:

  • container_name (ContainerName) –

    The name of the container that you want to stop access logging on.

Raises:

Source code in docs_src/capo_mediastore/_services/async_media_store.py
async def stop_access_logging(
    self,
    container_name: "capo_mediastore.types.container_name.ContainerName",
    *,
    config_overrides: Optional[AsyncMediaStoreClientConfig] = None,
) -> "capo_mediastore.types.stop_access_logging_output.StopAccessLoggingOutput":
    """<p>Stops access logging on the specified container. When you stop access logging on a container, MediaStore stops sending access logs to Amazon CloudWatch Logs. These access logs are not saved and are not retrievable.</p>

    Args:
        container_name: <p>The name of the container that you want to stop access logging on.</p>

    Raises:
        capo_mediastore.errors.container_in_use_exception.ContainerInUseException: <p>The container that you specified in the request already exists or is being updated.</p>
        capo_mediastore.errors.container_not_found_exception.ContainerNotFoundException: <p>The container that you specified in the request does not exist.</p>
        capo_mediastore.errors.internal_server_error.InternalServerError: <p>The service is temporarily unavailable.</p>
        capo_mediastore.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_mediastore.types.stop_access_logging_input.StopAccessLoggingInput]",
    ) -> AsyncOperationResponse[
        "capo_mediastore.types.stop_access_logging_output.StopAccessLoggingOutput"
    ]:
        import capo_mediastore._operations.media_store_20170901.stop_access_logging

        (
            output,
            http_response,
        ) = await capo_mediastore._operations.media_store_20170901.stop_access_logging.async_stop_access_logging(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("StopAccessLogging")
    )
    input_: capo_mediastore.types.stop_access_logging_input.StopAccessLoggingInput = {
        "container_name": container_name
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output