sagemaker-core 1.0.13__py3-none-any.whl → 1.0.14__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of sagemaker-core might be problematic. Click here for more details.
- sagemaker_core/main/resources.py +50 -0
- sagemaker_core/main/shapes.py +14 -0
- {sagemaker_core-1.0.13.dist-info → sagemaker_core-1.0.14.dist-info}/METADATA +1 -1
- {sagemaker_core-1.0.13.dist-info → sagemaker_core-1.0.14.dist-info}/RECORD +7 -7
- {sagemaker_core-1.0.13.dist-info → sagemaker_core-1.0.14.dist-info}/WHEEL +1 -1
- {sagemaker_core-1.0.13.dist-info → sagemaker_core-1.0.14.dist-info}/LICENSE +0 -0
- {sagemaker_core-1.0.13.dist-info → sagemaker_core-1.0.14.dist-info}/top_level.txt +0 -0
sagemaker_core/main/resources.py
CHANGED
|
@@ -3855,6 +3855,56 @@ class Cluster(Base):
|
|
|
3855
3855
|
response = client.update_cluster_software(**operation_input_args)
|
|
3856
3856
|
logger.debug(f"Response: {response}")
|
|
3857
3857
|
|
|
3858
|
+
@Base.add_validate_call
|
|
3859
|
+
def batch_delete_nodes(
|
|
3860
|
+
self,
|
|
3861
|
+
node_ids: List[str],
|
|
3862
|
+
session: Optional[Session] = None,
|
|
3863
|
+
region: Optional[str] = None,
|
|
3864
|
+
) -> Optional[BatchDeleteClusterNodesResponse]:
|
|
3865
|
+
"""
|
|
3866
|
+
Deletes specific nodes within a SageMaker HyperPod cluster.
|
|
3867
|
+
|
|
3868
|
+
Parameters:
|
|
3869
|
+
node_ids: A list of node IDs to be deleted from the specified cluster. For SageMaker HyperPod clusters using the Slurm workload manager, you cannot remove instances that are configured as Slurm controller nodes.
|
|
3870
|
+
session: Boto3 session.
|
|
3871
|
+
region: Region name.
|
|
3872
|
+
|
|
3873
|
+
Returns:
|
|
3874
|
+
BatchDeleteClusterNodesResponse
|
|
3875
|
+
|
|
3876
|
+
Raises:
|
|
3877
|
+
botocore.exceptions.ClientError: This exception is raised for AWS service related errors.
|
|
3878
|
+
The error message and error code can be parsed from the exception as follows:
|
|
3879
|
+
```
|
|
3880
|
+
try:
|
|
3881
|
+
# AWS service call here
|
|
3882
|
+
except botocore.exceptions.ClientError as e:
|
|
3883
|
+
error_message = e.response['Error']['Message']
|
|
3884
|
+
error_code = e.response['Error']['Code']
|
|
3885
|
+
```
|
|
3886
|
+
ResourceNotFound: Resource being access is not found.
|
|
3887
|
+
"""
|
|
3888
|
+
|
|
3889
|
+
operation_input_args = {
|
|
3890
|
+
"ClusterName": self.cluster_name,
|
|
3891
|
+
"NodeIds": node_ids,
|
|
3892
|
+
}
|
|
3893
|
+
# serialize the input request
|
|
3894
|
+
operation_input_args = serialize(operation_input_args)
|
|
3895
|
+
logger.debug(f"Serialized input request: {operation_input_args}")
|
|
3896
|
+
|
|
3897
|
+
client = Base.get_sagemaker_client(
|
|
3898
|
+
session=session, region_name=region, service_name="sagemaker"
|
|
3899
|
+
)
|
|
3900
|
+
|
|
3901
|
+
logger.debug(f"Calling batch_delete_cluster_nodes API")
|
|
3902
|
+
response = client.batch_delete_cluster_nodes(**operation_input_args)
|
|
3903
|
+
logger.debug(f"Response: {response}")
|
|
3904
|
+
|
|
3905
|
+
transformed_response = transform(response, "BatchDeleteClusterNodesResponse")
|
|
3906
|
+
return BatchDeleteClusterNodesResponse(**transformed_response)
|
|
3907
|
+
|
|
3858
3908
|
|
|
3859
3909
|
class CodeRepository(Base):
|
|
3860
3910
|
"""
|
sagemaker_core/main/shapes.py
CHANGED
|
@@ -2377,6 +2377,20 @@ class BatchDeleteClusterNodesError(Base):
|
|
|
2377
2377
|
node_id: str
|
|
2378
2378
|
|
|
2379
2379
|
|
|
2380
|
+
class BatchDeleteClusterNodesResponse(Base):
|
|
2381
|
+
"""
|
|
2382
|
+
BatchDeleteClusterNodesResponse
|
|
2383
|
+
|
|
2384
|
+
Attributes
|
|
2385
|
+
----------------------
|
|
2386
|
+
failed: A list of errors encountered when deleting the specified nodes.
|
|
2387
|
+
successful: A list of node IDs that were successfully deleted from the specified cluster.
|
|
2388
|
+
"""
|
|
2389
|
+
|
|
2390
|
+
failed: Optional[List[BatchDeleteClusterNodesError]] = Unassigned()
|
|
2391
|
+
successful: Optional[List[str]] = Unassigned()
|
|
2392
|
+
|
|
2393
|
+
|
|
2380
2394
|
class BatchDescribeModelPackageError(Base):
|
|
2381
2395
|
"""
|
|
2382
2396
|
BatchDescribeModelPackageError
|
|
@@ -7,8 +7,8 @@ sagemaker_core/main/config_schema.py,sha256=TeGoTobT4yotEVyfguLF0IdKYlOymsDZ45yS
|
|
|
7
7
|
sagemaker_core/main/exceptions.py,sha256=87DUlrmHxaWoiYNlpNY9ixxFMPRk_dIGPsA2e_xdVwQ,5602
|
|
8
8
|
sagemaker_core/main/intelligent_defaults_helper.py,sha256=5SDM6UavZtp-k5LhqRL7GRIDgzFB5UsC_p7YuiSPK9A,8334
|
|
9
9
|
sagemaker_core/main/logs.py,sha256=yfEH7uP91nbE1lefymOlBr81ziBzsDSIOF2Qyd54FJE,6241
|
|
10
|
-
sagemaker_core/main/resources.py,sha256=
|
|
11
|
-
sagemaker_core/main/shapes.py,sha256=
|
|
10
|
+
sagemaker_core/main/resources.py,sha256=idwGeRbSSO7Acwtd0y_zOkIxOrMlJvwxx-gL0k7GlS8,1323921
|
|
11
|
+
sagemaker_core/main/shapes.py,sha256=Vge1sJb41xqpOFdCnzl8JNdIOwPflgr0Ioy2IKhP01g,699286
|
|
12
12
|
sagemaker_core/main/user_agent.py,sha256=4sZybDXkzRoZnOnVDQ8p8zFTfiRJdsH7amDWInVQ4xU,2708
|
|
13
13
|
sagemaker_core/main/utils.py,sha256=LCFDM6oxf6_e1i-_Dgtkm3ehl7YfoEpJ2kTTFTL6iOU,18471
|
|
14
14
|
sagemaker_core/main/code_injection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -28,8 +28,8 @@ sagemaker_core/tools/resources_extractor.py,sha256=hN61ehZbPnhFW-2FIVDi7NsEz4rLv
|
|
|
28
28
|
sagemaker_core/tools/shapes_codegen.py,sha256=_ve959bwH8usZ6dPlpXxi2on9t0hLpcmhRWnaWHCWMQ,11745
|
|
29
29
|
sagemaker_core/tools/shapes_extractor.py,sha256=4KjgDmhlPM4G1f1NeYbORKlXs1s7Q_sm_NK31S_ROQ0,11950
|
|
30
30
|
sagemaker_core/tools/templates.py,sha256=yX2RQKeClgYwKS5Qu_mDpnWJIBCuj0yELrdm95aiTpk,23262
|
|
31
|
-
sagemaker_core-1.0.
|
|
32
|
-
sagemaker_core-1.0.
|
|
33
|
-
sagemaker_core-1.0.
|
|
34
|
-
sagemaker_core-1.0.
|
|
35
|
-
sagemaker_core-1.0.
|
|
31
|
+
sagemaker_core-1.0.14.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
32
|
+
sagemaker_core-1.0.14.dist-info/METADATA,sha256=626z-hexHS0uj3CGQtc_f02Obevywo2OdAUISjfogz8,4878
|
|
33
|
+
sagemaker_core-1.0.14.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
|
34
|
+
sagemaker_core-1.0.14.dist-info/top_level.txt,sha256=R3GAZZ1zC5JxqdE_0x2Lu_WYi2Xfke7VsiP3L5zngfA,15
|
|
35
|
+
sagemaker_core-1.0.14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|