cursus.steps.configs.config_bedrock_batch_processing_step¶
Bedrock Batch Processing Step Configuration
This module implements the configuration class for the Bedrock Batch Processing step using the three-tier design pattern for optimal user experience and maintainability.
- class BedrockBatchProcessingConfig(*, author, bucket, role, region, service_name, pipeline_version, model_class='xgboost', current_date=<factory>, framework_version='2.1.2', py_version='py310', source_dir=None, enable_caching=False, use_secure_pypi=False, max_runtime_seconds=172800, project_root_folder, processing_instance_count=1, processing_volume_size=500, processing_instance_type_large='ml.m5.4xlarge', processing_instance_type_small='ml.m5.2xlarge', use_large_processing_instance=False, skip_volume_kms=None, processing_source_dir=None, processing_entry_point='bedrock_batch_processing.py', processing_script_arguments=None, processing_framework_version='1.2-1', bedrock_batch_role_arn, job_type='training', bedrock_primary_model_id='anthropic.claude-sonnet-4-5-20250929-v1:0', bedrock_fallback_model_id='anthropic.claude-sonnet-4-20250514-v1:0', bedrock_inference_profile_arn=None, bedrock_inference_profile_required_models=<factory>, bedrock_max_tokens=32768, bedrock_temperature=1.0, bedrock_top_p=0.999, bedrock_batch_size=10, bedrock_max_retries=3, bedrock_output_column_prefix='llm_', bedrock_skip_error_records=False, bedrock_concurrency_mode='sequential', bedrock_max_concurrent_workers=5, bedrock_rate_limit_per_second=10, bedrock_batch_mode='auto', bedrock_batch_threshold=1000, bedrock_batch_timeout_hours=24, bedrock_max_records_per_job=45000, bedrock_max_concurrent_batch_jobs=20, bedrock_max_input_field_length=400000, bedrock_truncation_enabled=True, bedrock_log_truncations=True, **extra_data)[source]¶
Bases:
ProcessingStepConfigBaseConfiguration for Bedrock Batch Processing step using three-tier design.
This step processes input data through AWS Bedrock models using batch inference capabilities with automatic fallback to real-time processing. Integrates with generated prompt templates and validation schemas from the Bedrock Prompt Template Generation step. Provides cost-efficient processing for large datasets.
Tier 1: Essential user inputs (required) Tier 2: System inputs with defaults (optional) Tier 3: Derived fields (private with property access)
- property effective_inference_profile_required_models: List[str]¶
Get effective list of models requiring inference profiles with auto-detection.
- property bedrock_environment_variables: Dict[str, str]¶
Get environment variables for the Bedrock batch processing step.
- classmethod validate_inference_profile_models(v)[source]¶
Validate inference profile required models list.
- get_public_init_fields()[source]¶
Override get_public_init_fields to include Bedrock batch-specific fields. Gets a dictionary of public fields suitable for initializing a child config.
- Returns:
Dictionary of field names to values for child initialization
- Return type:
Dict[str, Any]
- is_production_ready()[source]¶
Check if configuration is production-ready.
- Returns:
True if configuration has production-ready settings
- Return type:
- get_performance_estimate()[source]¶
Get estimated performance characteristics including batch processing.
- Returns:
Performance estimates and recommendations
- Return type:
Dict[str, Any]
- get_batch_processing_info()[source]¶
Get detailed batch processing configuration information.
- Returns:
Batch processing details and recommendations
- Return type:
Dict[str, Any]
- get_job_arguments()[source]¶
CLI args — config is the single source (FZ 31e1d3h). job_type + batch/retry overrides.
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'allow', 'protected_namespaces': (), 'validate_assignment': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.