Skip to content

get_data_automation_library_entity async

get_data_automation_library_entity(
    library_arn: DataAutomationLibraryArn,
    entity_type: EntityType,
    entity_id: EntityId,
    *,
    config_overrides: Optional[AsyncBedrockDataAutomationClientConfig] = None,
) -> GetDataAutomationLibraryEntityResponse

Gets an existing entity based on entity type from the library

Parameters:

  • library_arn (DataAutomationLibraryArn) –

    ARN generated at the server side when a DataAutomationLibrary is created

  • entity_type (EntityType) –

    The entity type for which the entity is requested

  • entity_id (EntityId) –

    Unique identifier for the entity

Raises:

Source code in docs_src/capo_bedrock_data_automation/_services/async_bedrock_data_automation.py
async def get_data_automation_library_entity(
    self,
    library_arn: "capo_bedrock_data_automation.types.data_automation_library_arn.DataAutomationLibraryArn",
    entity_type: "capo_bedrock_data_automation.types.entity_type.EntityType",
    entity_id: "capo_bedrock_data_automation.types.entity_id.EntityId",
    *,
    config_overrides: Optional[AsyncBedrockDataAutomationClientConfig] = None,
) -> "capo_bedrock_data_automation.types.get_data_automation_library_entity_response.GetDataAutomationLibraryEntityResponse":
    """Gets an existing entity based on entity type from the library

    Args:
        library_arn: ARN generated at the server side when a DataAutomationLibrary is created
        entity_type: The entity type for which the entity is requested
        entity_id: Unique identifier for the entity

    Raises:
        capo_bedrock_data_automation.errors.access_denied_exception.AccessDeniedException: This exception is thrown when a request is denied per access permissions
        capo_bedrock_data_automation.errors.internal_server_exception.InternalServerException: This exception is thrown if there was an unexpected error during processing of request
        capo_bedrock_data_automation.errors.resource_not_found_exception.ResourceNotFoundException: This exception is thrown when a resource referenced by the operation does not exist
        capo_bedrock_data_automation.errors.throttling_exception.ThrottlingException: This exception is thrown when the number of requests exceeds the limit
        capo_bedrock_data_automation.errors.validation_exception.ValidationException: This exception is thrown when the request's input validation fails
        capo_bedrock_data_automation.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_bedrock_data_automation.types.get_data_automation_library_entity_request.GetDataAutomationLibraryEntityRequest]",
    ) -> AsyncOperationResponse[
        "capo_bedrock_data_automation.types.get_data_automation_library_entity_response.GetDataAutomationLibraryEntityResponse"
    ]:
        import capo_bedrock_data_automation._operations.amazon_bedrock_keystone_build_time_service.get_data_automation_library_entity

        (
            output,
            http_response,
        ) = await capo_bedrock_data_automation._operations.amazon_bedrock_keystone_build_time_service.get_data_automation_library_entity.async_get_data_automation_library_entity(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_bedrock_data_automation.types.get_data_automation_library_entity_response.GetDataAutomationLibraryEntityResponse",
    ) -> dict[str, Any]:
        import capo_bedrock_data_automation.types.get_data_automation_library_entity_response

        return capo_bedrock_data_automation.types.get_data_automation_library_entity_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "GetDataAutomationLibraryEntity", redact_output=_redact_output
        ),
    )
    input_: capo_bedrock_data_automation.types.get_data_automation_library_entity_request.GetDataAutomationLibraryEntityRequest = {
        "library_arn": library_arn,
        "entity_type": entity_type,
        "entity_id": entity_id,
    }

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