sagemaker-core 1.0.12__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.

@@ -749,6 +749,33 @@ SHAPE_DAG = {
749
749
  ],
750
750
  "type": "structure",
751
751
  },
752
+ "BatchDeleteClusterNodesError": {
753
+ "members": [
754
+ {"name": "Code", "shape": "BatchDeleteClusterNodesErrorCode", "type": "string"},
755
+ {"name": "Message", "shape": "String", "type": "string"},
756
+ {"name": "NodeId", "shape": "ClusterNodeId", "type": "string"},
757
+ ],
758
+ "type": "structure",
759
+ },
760
+ "BatchDeleteClusterNodesErrorList": {
761
+ "member_shape": "BatchDeleteClusterNodesError",
762
+ "member_type": "structure",
763
+ "type": "list",
764
+ },
765
+ "BatchDeleteClusterNodesRequest": {
766
+ "members": [
767
+ {"name": "ClusterName", "shape": "ClusterNameOrArn", "type": "string"},
768
+ {"name": "NodeIds", "shape": "ClusterNodeIds", "type": "list"},
769
+ ],
770
+ "type": "structure",
771
+ },
772
+ "BatchDeleteClusterNodesResponse": {
773
+ "members": [
774
+ {"name": "Failed", "shape": "BatchDeleteClusterNodesErrorList", "type": "list"},
775
+ {"name": "Successful", "shape": "ClusterNodeIds", "type": "list"},
776
+ ],
777
+ "type": "structure",
778
+ },
752
779
  "BatchDescribeModelPackageError": {
753
780
  "members": [
754
781
  {"name": "ErrorCode", "shape": "String", "type": "string"},
@@ -1322,6 +1349,7 @@ SHAPE_DAG = {
1322
1349
  ],
1323
1350
  "type": "structure",
1324
1351
  },
1352
+ "ClusterNodeIds": {"member_shape": "ClusterNodeId", "member_type": "string", "type": "list"},
1325
1353
  "ClusterNodeSummaries": {
1326
1354
  "member_shape": "ClusterNodeSummary",
1327
1355
  "member_type": "structure",
@@ -13566,6 +13594,7 @@ SHAPE_DAG = {
13566
13594
  {"name": "TrainingEndTime", "shape": "Timestamp", "type": "timestamp"},
13567
13595
  {"name": "LastModifiedTime", "shape": "Timestamp", "type": "timestamp"},
13568
13596
  {"name": "TrainingJobStatus", "shape": "TrainingJobStatus", "type": "string"},
13597
+ {"name": "SecondaryStatus", "shape": "SecondaryStatus", "type": "string"},
13569
13598
  {"name": "WarmPoolStatus", "shape": "WarmPoolStatus", "type": "structure"},
13570
13599
  ],
13571
13600
  "type": "structure",
@@ -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
  """
@@ -2360,6 +2360,37 @@ class BatchDataCaptureConfig(Base):
2360
2360
  generate_inference_id: Optional[bool] = Unassigned()
2361
2361
 
2362
2362
 
2363
+ class BatchDeleteClusterNodesError(Base):
2364
+ """
2365
+ BatchDeleteClusterNodesError
2366
+ Represents an error encountered when deleting a node from a SageMaker HyperPod cluster.
2367
+
2368
+ Attributes
2369
+ ----------------------
2370
+ code: The error code associated with the error encountered when deleting a node. The code provides information about the specific issue encountered, such as the node not being found, the node's status being invalid for deletion, or the node ID being in use by another process.
2371
+ message: A message describing the error encountered when deleting a node.
2372
+ node_id: The ID of the node that encountered an error during the deletion process.
2373
+ """
2374
+
2375
+ code: str
2376
+ message: str
2377
+ node_id: str
2378
+
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
+
2363
2394
  class BatchDescribeModelPackageError(Base):
2364
2395
  """
2365
2396
  BatchDescribeModelPackageError
@@ -10913,6 +10944,7 @@ class TrainingJobSummary(Base):
10913
10944
  training_end_time: A timestamp that shows when the training job ended. This field is set only if the training job has one of the terminal statuses (Completed, Failed, or Stopped).
10914
10945
  last_modified_time: Timestamp when the training job was last modified.
10915
10946
  training_job_status: The status of the training job.
10947
+ secondary_status: The secondary status of the training job.
10916
10948
  warm_pool_status: The status of the warm pool associated with the training job.
10917
10949
  """
10918
10950
 
@@ -10922,6 +10954,7 @@ class TrainingJobSummary(Base):
10922
10954
  training_job_status: str
10923
10955
  training_end_time: Optional[datetime.datetime] = Unassigned()
10924
10956
  last_modified_time: Optional[datetime.datetime] = Unassigned()
10957
+ secondary_status: Optional[str] = Unassigned()
10925
10958
  warm_pool_status: Optional[WarmPoolStatus] = Unassigned()
10926
10959
 
10927
10960
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sagemaker-core
3
- Version: 1.0.12
3
+ Version: 1.0.14
4
4
  Summary: An python package for sagemaker core functionalities
5
5
  Author-email: AWS <sagemaker-interests@amazon.com>
6
6
  Project-URL: Repository, https://github.com/aws/sagemaker-core.git
@@ -7,15 +7,15 @@ 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=b6oYPs-7aQxs_R5Ql_G3TGO71gQuykobmD5HpVMdlDY,1321873
11
- sagemaker_core/main/shapes.py,sha256=bhMPIF2D-8ZpP-m2HdebHj7EQcqzq9Iz0LuNSUiR8dE,698010
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
15
15
  sagemaker_core/main/code_injection/base.py,sha256=11_Jif0nOzfbLGlXaacKf-wcizzfS64U0OSZGoVffFU,1733
16
16
  sagemaker_core/main/code_injection/codec.py,sha256=2DjmeD2uND307UqDefvVEpE0rZ8yfFU3Bi3TvQCQveI,7658
17
17
  sagemaker_core/main/code_injection/constants.py,sha256=2ICExGge8vAWx7lSTW0JGh-bH1korkvpOpDu5M63eI4,980
18
- sagemaker_core/main/code_injection/shape_dag.py,sha256=Kmv27Znp4AKYoocm7urZAW2OFJboTJd2jA5FigiFM8w,659419
18
+ sagemaker_core/main/code_injection/shape_dag.py,sha256=Akn-5sH0T8ujXuiXEOJtq5agJuRk-tKoFP04qwFx-NM,660663
19
19
  sagemaker_core/resources/__init__.py,sha256=EAYTFMN-nPjnPjjBbhIUeaL67FLKNPd7qbcbl9VIrws,31
20
20
  sagemaker_core/shapes/__init__.py,sha256=RnbIu9eTxKt-DNsOFJabrWIgrrtS9_SdAozP9JBl_ic,28
21
21
  sagemaker_core/tools/__init__.py,sha256=xX79JImxCVzrWMnjgntLCve2G5I-R4pRar5s20kT9Rs,56
@@ -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.12.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
32
- sagemaker_core-1.0.12.dist-info/METADATA,sha256=D3PfM1phfSdsCn28CHTR9Flm4Yo8Ano6d6XnHYuVJbs,4878
33
- sagemaker_core-1.0.12.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
34
- sagemaker_core-1.0.12.dist-info/top_level.txt,sha256=R3GAZZ1zC5JxqdE_0x2Lu_WYi2Xfke7VsiP3L5zngfA,15
35
- sagemaker_core-1.0.12.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.3.0)
2
+ Generator: setuptools (75.5.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5