Skip to content

list_data_automation_projects async

list_data_automation_projects(
    *,
    config_overrides: Optional[AsyncBedrockDataAutomationClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
    project_stage_filter: Optional[DataAutomationProjectStageFilter] = None,
    blueprint_filter: Optional[BlueprintFilter] = None,
    resource_owner: Optional[ResourceOwner] = None,
    library_filter: Optional[DataAutomationLibraryFilter] = None,
) -> ListDataAutomationProjectsResponse

Lists all existing Amazon Bedrock Data Automation Projects

Raises:

Source code in docs_src/capo_bedrock_data_automation/_services/async_bedrock_data_automation.py
async def list_data_automation_projects(
    self,
    *,
    config_overrides: Optional[AsyncBedrockDataAutomationClientConfig] = None,
    max_results: Optional[
        "capo_bedrock_data_automation.types.max_results.MaxResults"
    ] = None,
    next_token: Optional[
        "capo_bedrock_data_automation.types.next_token.NextToken"
    ] = None,
    project_stage_filter: Optional[
        "capo_bedrock_data_automation.types.data_automation_project_stage_filter.DataAutomationProjectStageFilter"
    ] = None,
    blueprint_filter: Optional[
        "capo_bedrock_data_automation.types.blueprint_filter.BlueprintFilter"
    ] = None,
    resource_owner: Optional[
        "capo_bedrock_data_automation.types.resource_owner.ResourceOwner"
    ] = None,
    library_filter: Optional[
        "capo_bedrock_data_automation.types.data_automation_library_filter.DataAutomationLibraryFilter"
    ] = None,
) -> "capo_bedrock_data_automation.types.list_data_automation_projects_response.ListDataAutomationProjectsResponse":
    """Lists all existing Amazon Bedrock Data Automation Projects

    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.list_data_automation_projects_request.ListDataAutomationProjectsRequest]",
    ) -> AsyncOperationResponse[
        "capo_bedrock_data_automation.types.list_data_automation_projects_response.ListDataAutomationProjectsResponse"
    ]:
        import capo_bedrock_data_automation._operations.amazon_bedrock_keystone_build_time_service.list_data_automation_projects

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

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

        return capo_bedrock_data_automation.types.list_data_automation_projects_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "ListDataAutomationProjects", redact_output=_redact_output
        ),
    )
    input_: capo_bedrock_data_automation.types.list_data_automation_projects_request.ListDataAutomationProjectsRequest = {}
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token
    if project_stage_filter is not None:
        input_["project_stage_filter"] = project_stage_filter
    if blueprint_filter is not None:
        input_["blueprint_filter"] = blueprint_filter
    if resource_owner is not None:
        input_["resource_owner"] = resource_owner
    if library_filter is not None:
        input_["library_filter"] = library_filter

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