Skip to content

get_automated_discovery_configuration async

get_automated_discovery_configuration(
    *, config_overrides: Optional[AsyncMacie2ClientConfig] = None
) -> GetAutomatedDiscoveryConfigurationResponse

Retrieves the configuration settings and status of automated sensitive data discovery for an organization or standalone account.

Raises:

  • AccessDeniedException –

    Provides information about an error that occurred due to insufficient access to a specified resource.

  • InternalServerException –

    Provides information about an error that occurred due to an unknown internal server error, exception, or failure.

  • ThrottlingException –

    Provides information about an error that occurred because too many requests were sent during a certain amount of time.

  • ValidationException –

    Provides information about an error that occurred due to a syntax error in a request.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_macie2/_services/async_macie2.py
async def get_automated_discovery_configuration(
    self, *, config_overrides: Optional[AsyncMacie2ClientConfig] = None
) -> "capo_macie2.types.get_automated_discovery_configuration_response.GetAutomatedDiscoveryConfigurationResponse":
    """<p>Retrieves the configuration settings and status of automated sensitive data discovery for an organization or standalone account.</p>

    Raises:
        capo_macie2.errors.access_denied_exception.AccessDeniedException: <p>Provides information about an error that occurred due to insufficient access to a specified resource.</p>
        capo_macie2.errors.internal_server_exception.InternalServerException: <p>Provides information about an error that occurred due to an unknown internal server error, exception, or failure.</p>
        capo_macie2.errors.throttling_exception.ThrottlingException: <p>Provides information about an error that occurred because too many requests were sent during a certain amount of time.</p>
        capo_macie2.errors.validation_exception.ValidationException: <p>Provides information about an error that occurred due to a syntax error in a request.</p>
        capo_macie2.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_macie2.types.get_automated_discovery_configuration_request.GetAutomatedDiscoveryConfigurationRequest]",
    ) -> AsyncOperationResponse[
        "capo_macie2.types.get_automated_discovery_configuration_response.GetAutomatedDiscoveryConfigurationResponse"
    ]:
        import capo_macie2._operations.macie2.get_automated_discovery_configuration

        (
            output,
            http_response,
        ) = await capo_macie2._operations.macie2.get_automated_discovery_configuration.async_get_automated_discovery_configuration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetAutomatedDiscoveryConfiguration")
    )
    input_: capo_macie2.types.get_automated_discovery_configuration_request.GetAutomatedDiscoveryConfigurationRequest = {}

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