create_compute_quota
async
¶
create_compute_quota(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
name: Optional[EntityName] = None,
description: Optional[EntityDescription] = None,
cluster_arn: Optional[ClusterArn] = None,
compute_quota_config: Optional[ComputeQuotaConfig] = None,
compute_quota_target: Optional[ComputeQuotaTarget] = None,
activation_state: Optional[ActivationState] = None,
tags: Optional[TagList] = None,
) -> CreateComputeQuotaResponse
Create compute allocation definition. This defines how compute is allocated, shared, and borrowed for specified entities. Specifically, how to lend and borrow idle compute and assign a fair-share weight to the specified entities.
Parameters:
-
name(Optional[EntityName], default:None) –The name of the compute allocation definition. The name must be unique within the SageMaker AI HyperPod cluster specified by
ClusterArn. You can use the same name in other clusters within a Region or across Regions. -
description(Optional[EntityDescription], default:None) –Description of the compute allocation definition.
-
cluster_arn(Optional[ClusterArn], default:None) –ARN of the cluster.
-
compute_quota_config(Optional[ComputeQuotaConfig], default:None) –Configuration of the compute allocation definition. This includes the resource sharing option, and the setting to preempt low priority tasks.
-
compute_quota_target(Optional[ComputeQuotaTarget], default:None) –The target entity to allocate compute resources to.
-
activation_state(Optional[ActivationState], default:None) –The state of the compute allocation being described. Use to enable or disable compute allocation.
Default is
Enabled. -
tags(Optional[TagList], default:None) –Tags of the compute allocation definition.
Raises:
-
ConflictException–There was a conflict when you attempted to modify a SageMaker entity such as an
ExperimentorArtifact. -
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
3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 | |