Skip to content

list_blueprints

list_blueprints(
    *,
    config_overrides: Optional[BedrockDataAutomationClientConfig] = None,
    blueprint_arn: Optional[BlueprintArn] = None,
    resource_owner: Optional[ResourceOwner] = None,
    blueprint_stage_filter: Optional[BlueprintStageFilter] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
    project_filter: Optional[DataAutomationProjectFilter] = None,
) -> ListBlueprintsResponse

Lists all existing Amazon Bedrock Data Automation Blueprints

Raises:

Source code in docs_src/capo_bedrock_data_automation/_services/bedrock_data_automation.py
def list_blueprints(
    self,
    *,
    config_overrides: Optional[BedrockDataAutomationClientConfig] = None,
    blueprint_arn: Optional[
        "capo_bedrock_data_automation.types.blueprint_arn.BlueprintArn"
    ] = None,
    resource_owner: Optional[
        "capo_bedrock_data_automation.types.resource_owner.ResourceOwner"
    ] = None,
    blueprint_stage_filter: Optional[
        "capo_bedrock_data_automation.types.blueprint_stage_filter.BlueprintStageFilter"
    ] = 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_filter: Optional[
        "capo_bedrock_data_automation.types.data_automation_project_filter.DataAutomationProjectFilter"
    ] = None,
) -> "capo_bedrock_data_automation.types.list_blueprints_response.ListBlueprintsResponse":
    """Lists all existing Amazon Bedrock Data Automation Blueprints

    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.
    """

    def _handler(
        req: "OperationRequest[capo_bedrock_data_automation.types.list_blueprints_request.ListBlueprintsRequest]",
    ) -> OperationResponse[
        "capo_bedrock_data_automation.types.list_blueprints_response.ListBlueprintsResponse"
    ]:
        import capo_bedrock_data_automation._operations.amazon_bedrock_keystone_build_time_service.list_blueprints

        output, http_response = (
            capo_bedrock_data_automation._operations.amazon_bedrock_keystone_build_time_service.list_blueprints.list_blueprints(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

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

        return capo_bedrock_data_automation.types.list_blueprints_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("ListBlueprints", redact_output=_redact_output),
    )
    input_: capo_bedrock_data_automation.types.list_blueprints_request.ListBlueprintsRequest = {}
    if blueprint_arn is not None:
        input_["blueprint_arn"] = blueprint_arn
    if resource_owner is not None:
        input_["resource_owner"] = resource_owner
    if blueprint_stage_filter is not None:
        input_["blueprint_stage_filter"] = blueprint_stage_filter
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token
    if project_filter is not None:
        input_["project_filter"] = project_filter

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output