sagemaker-core 1.0.12__tar.gz → 1.0.14__tar.gz
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-1.0.12/src/sagemaker_core.egg-info → sagemaker_core-1.0.14}/PKG-INFO +1 -1
- sagemaker_core-1.0.14/VERSION +1 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/code_injection/shape_dag.py +29 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/resources.py +50 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/shapes.py +33 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14/src/sagemaker_core.egg-info}/PKG-INFO +1 -1
- sagemaker_core-1.0.12/VERSION +0 -1
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/LICENSE +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/MANIFEST.in +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/README.rst +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/pyproject.toml +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/setup.cfg +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/__init__.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/_version.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/helper/__init__.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/helper/session_helper.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/__init__.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/code_injection/__init__.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/code_injection/base.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/code_injection/codec.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/code_injection/constants.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/config_schema.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/exceptions.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/intelligent_defaults_helper.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/logs.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/user_agent.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/utils.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/resources/__init__.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/shapes/__init__.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/tools/__init__.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/tools/codegen.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/tools/constants.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/tools/data_extractor.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/tools/method.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/tools/resources_codegen.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/tools/resources_extractor.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/tools/shapes_codegen.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/tools/shapes_extractor.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/tools/templates.py +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core.egg-info/SOURCES.txt +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core.egg-info/dependency_links.txt +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core.egg-info/requires.txt +0 -0
- {sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.0.14
|
{sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/code_injection/shape_dag.py
RENAMED
|
@@ -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
|
|
sagemaker_core-1.0.12/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.0.12
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/code_injection/__init__.py
RENAMED
|
File without changes
|
{sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/code_injection/base.py
RENAMED
|
File without changes
|
{sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/code_injection/codec.py
RENAMED
|
File without changes
|
{sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/main/code_injection/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/tools/resources_codegen.py
RENAMED
|
File without changes
|
{sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/tools/resources_extractor.py
RENAMED
|
File without changes
|
|
File without changes
|
{sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core/tools/shapes_extractor.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_core-1.0.12 → sagemaker_core-1.0.14}/src/sagemaker_core.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|