create_ai_workload_config
async
¶
create_ai_workload_config(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
ai_workload_config_name: Optional[AIEntityName] = None,
dataset_config: Optional[AIDatasetConfig] = None,
ai_workload_configs: Optional[AIWorkloadConfigs] = None,
tags: Optional[TagList] = None,
) -> CreateAIWorkloadConfigResponse
Creates a reusable AI workload configuration that defines datasets, data sources, and benchmark tool settings for consistent performance testing of generative AI inference deployments on Amazon SageMaker AI.
Parameters:
-
ai_workload_config_name(Optional[AIEntityName], default:None) –The name of the AI workload configuration. The name must be unique within your Amazon Web Services account in the current Amazon Web Services Region.
-
dataset_config(Optional[AIDatasetConfig], default:None) –The dataset configuration for the workload. Specify input data channels with their data sources for benchmark workloads.
-
ai_workload_configs(Optional[AIWorkloadConfigs], default:None) –The benchmark tool configuration and workload specification. Provide the specification as an inline YAML or JSON string.
-
tags(Optional[TagList], default:None) –The metadata that you apply to Amazon Web Services resources to help you categorize and organize them. Each tag consists of a key and a value, both of which you define. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference.
Raises:
-
ResourceInUse–Resource being accessed is in use.
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 | |