Skip to content

batch_get_custom_data_identifiers async

batch_get_custom_data_identifiers(
    *,
    config_overrides: Optional[AsyncMacie2ClientConfig] = None,
    ids: Optional[__listOf__string] = None,
) -> BatchGetCustomDataIdentifiersResponse

Retrieves information about one or more custom data identifiers.

Parameters:

  • ids (Optional[__listOf__string], default: None ) –

    An array of custom data identifier IDs, one for each custom data identifier to retrieve information about.

Raises:

  • AccessDeniedException –

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

  • ConflictException –

    Provides information about an error that occurred due to a versioning conflict for a specified resource.

  • InternalServerException –

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

  • ResourceNotFoundException –

    Provides information about an error that occurred because a specified resource wasn't found.

  • ServiceQuotaExceededException –

    Provides information about an error that occurred due to one or more service quotas for an account.

  • 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 batch_get_custom_data_identifiers(
    self,
    *,
    config_overrides: Optional[AsyncMacie2ClientConfig] = None,
    ids: Optional["capo_macie2.types.__list_of__string.__listOf__string"] = None,
) -> "capo_macie2.types.batch_get_custom_data_identifiers_response.BatchGetCustomDataIdentifiersResponse":
    """<p>Retrieves information about one or more custom data identifiers.</p>

    Args:
        ids: <p>An array of custom data identifier IDs, one for each custom data identifier to retrieve information about.</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.conflict_exception.ConflictException: <p>Provides information about an error that occurred due to a versioning conflict for 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.resource_not_found_exception.ResourceNotFoundException: <p>Provides information about an error that occurred because a specified resource wasn't found.</p>
        capo_macie2.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>Provides information about an error that occurred due to one or more service quotas for an account.</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.batch_get_custom_data_identifiers_request.BatchGetCustomDataIdentifiersRequest]",
    ) -> AsyncOperationResponse[
        "capo_macie2.types.batch_get_custom_data_identifiers_response.BatchGetCustomDataIdentifiersResponse"
    ]:
        import capo_macie2._operations.macie2.batch_get_custom_data_identifiers

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("BatchGetCustomDataIdentifiers")
    )
    input_: capo_macie2.types.batch_get_custom_data_identifiers_request.BatchGetCustomDataIdentifiersRequest = {}
    if ids is not None:
        input_["ids"] = ids

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