Skip to content

Commit 051200c

Browse files
Daily Sync with Botocore v1.36.25 on 2025/02/21 (#247)
1 parent 0de1826 commit 051200c

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

sample/sagemaker/2017-07-24/service-2.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7731,6 +7731,12 @@
77317731
"max":100,
77327732
"min":1
77337733
},
7734+
"ClusterInstanceGroupsToDelete":{
7735+
"type":"list",
7736+
"member":{"shape":"ClusterInstanceGroupName"},
7737+
"max":100,
7738+
"min":0
7739+
},
77347740
"ClusterInstancePlacement":{
77357741
"type":"structure",
77367742
"members":{
@@ -40306,6 +40312,10 @@
4030640312
"NodeRecovery":{
4030740313
"shape":"ClusterNodeRecovery",
4030840314
"documentation":"<p>The node recovery mode to be applied to the SageMaker HyperPod cluster.</p>"
40315+
},
40316+
"InstanceGroupsToDelete":{
40317+
"shape":"ClusterInstanceGroupsToDelete",
40318+
"documentation":"<p>Specify the names of the instance groups to delete. Use a single <code>,</code> as the separator between multiple names.</p>"
4030940319
}
4031040320
}
4031140321
},

src/sagemaker_core/main/code_injection/shape_dag.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,6 +1304,11 @@
13041304
"member_type": "structure",
13051305
"type": "list",
13061306
},
1307+
"ClusterInstanceGroupsToDelete": {
1308+
"member_shape": "ClusterInstanceGroupName",
1309+
"member_type": "string",
1310+
"type": "list",
1311+
},
13071312
"ClusterInstancePlacement": {
13081313
"members": [
13091314
{"name": "AvailabilityZone", "shape": "ClusterAvailabilityZone", "type": "string"},
@@ -14737,6 +14742,11 @@
1473714742
"type": "list",
1473814743
},
1473914744
{"name": "NodeRecovery", "shape": "ClusterNodeRecovery", "type": "string"},
14745+
{
14746+
"name": "InstanceGroupsToDelete",
14747+
"shape": "ClusterInstanceGroupsToDelete",
14748+
"type": "list",
14749+
},
1474014750
],
1474114751
"type": "structure",
1474214752
},

src/sagemaker_core/main/resources.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3430,10 +3430,14 @@ def update(
34303430
self,
34313431
instance_groups: List[ClusterInstanceGroupSpecification],
34323432
node_recovery: Optional[str] = Unassigned(),
3433+
instance_groups_to_delete: Optional[List[str]] = Unassigned(),
34333434
) -> Optional["Cluster"]:
34343435
"""
34353436
Update a Cluster resource
34363437

3438+
Parameters:
3439+
instance_groups_to_delete: Specify the names of the instance groups to delete. Use a single , as the separator between multiple names.
3440+
34373441
Returns:
34383442
The Cluster resource.
34393443

@@ -3459,6 +3463,7 @@ def update(
34593463
"ClusterName": self.cluster_name,
34603464
"InstanceGroups": instance_groups,
34613465
"NodeRecovery": node_recovery,
3466+
"InstanceGroupsToDelete": instance_groups_to_delete,
34623467
}
34633468
logger.debug(f"Input request: {operation_input_args}")
34643469
# serialize the input request

0 commit comments

Comments
 (0)