Skip to content

Commit 4f0fe61

Browse files
Daily Sync with Botocore v1.40.67 on 2025/11/06 (#347)
1 parent bc0e21e commit 4f0fe61

File tree

4 files changed

+38
-7
lines changed

4 files changed

+38
-7
lines changed

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

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8627,7 +8627,16 @@
86278627
"DesiredImageId":{
86288628
"shape":"ImageId",
86298629
"documentation":"<p>The ID of the Amazon Machine Image (AMI) desired for the instance group.</p>"
8630-
}
8630+
},
8631+
"TargetStateCount":{
8632+
"shape":"ClusterInstanceCount",
8633+
"documentation":"<p>The number of nodes running a specific image ID since the last software update request.</p>"
8634+
},
8635+
"SoftwareUpdateStatus":{
8636+
"shape":"SoftwareUpdateStatus",
8637+
"documentation":"<p>Status of the last software udpate request.</p>"
8638+
},
8639+
"ActiveSoftwareUpdateConfig":{"shape":"DeploymentConfiguration"}
86318640
},
86328641
"documentation":"<p>Details of an instance group in a SageMaker HyperPod cluster.</p>"
86338642
},
@@ -13029,10 +13038,8 @@
1302913038
"type":"structure",
1303013039
"required":[
1303113040
"TrainingJobName",
13032-
"AlgorithmSpecification",
1303313041
"RoleArn",
1303413042
"OutputDataConfig",
13035-
"ResourceConfig",
1303613043
"StoppingCondition"
1303713044
],
1303813045
"members":{
@@ -39748,6 +39755,17 @@
3974839755
"min":0,
3974939756
"pattern":"arn:aws[a-z\\-]*:sns:[a-z0-9\\-]*:[0-9]{12}:[a-zA-Z0-9_.-]+"
3975039757
},
39758+
"SoftwareUpdateStatus":{
39759+
"type":"string",
39760+
"enum":[
39761+
"Pending",
39762+
"InProgress",
39763+
"Succeeded",
39764+
"Failed",
39765+
"RollbackInProgress",
39766+
"RollbackComplete"
39767+
]
39768+
},
3975139769
"SortActionsBy":{
3975239770
"type":"string",
3975339771
"enum":[

src/sagemaker_core/main/code_injection/shape_dag.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,6 +1531,13 @@
15311531
},
15321532
{"name": "CurrentImageId", "shape": "ImageId", "type": "string"},
15331533
{"name": "DesiredImageId", "shape": "ImageId", "type": "string"},
1534+
{"name": "TargetStateCount", "shape": "ClusterInstanceCount", "type": "integer"},
1535+
{"name": "SoftwareUpdateStatus", "shape": "SoftwareUpdateStatus", "type": "string"},
1536+
{
1537+
"name": "ActiveSoftwareUpdateConfig",
1538+
"shape": "DeploymentConfiguration",
1539+
"type": "structure",
1540+
},
15341541
],
15351542
"type": "structure",
15361543
},

src/sagemaker_core/main/resources.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28473,13 +28473,13 @@ def wrapper(*args, **kwargs):
2847328473
def create(
2847428474
cls,
2847528475
training_job_name: str,
28476-
algorithm_specification: shapes.AlgorithmSpecification,
2847728476
role_arn: str,
2847828477
output_data_config: shapes.OutputDataConfig,
28479-
resource_config: shapes.ResourceConfig,
2848028478
stopping_condition: shapes.StoppingCondition,
2848128479
hyper_parameters: Optional[Dict[str, str]] = Unassigned(),
28480+
algorithm_specification: Optional[shapes.AlgorithmSpecification] = Unassigned(),
2848228481
input_data_config: Optional[List[shapes.Channel]] = Unassigned(),
28482+
resource_config: Optional[shapes.ResourceConfig] = Unassigned(),
2848328483
vpc_config: Optional[shapes.VpcConfig] = Unassigned(),
2848428484
tags: Optional[List[shapes.Tag]] = Unassigned(),
2848528485
enable_network_isolation: Optional[bool] = Unassigned(),
@@ -28507,13 +28507,13 @@ def create(
2850728507

2850828508
Parameters:
2850928509
training_job_name: The name of the training job. The name must be unique within an Amazon Web Services Region in an Amazon Web Services account.
28510-
algorithm_specification: The registry path of the Docker image that contains the training algorithm and algorithm-specific metadata, including the input mode. For more information about algorithms provided by SageMaker, see Algorithms. For information about providing your own algorithms, see Using Your Own Algorithms with Amazon SageMaker.
2851128510
role_arn: The Amazon Resource Name (ARN) of an IAM role that SageMaker can assume to perform tasks on your behalf. During model training, SageMaker needs your permission to read input data from an S3 bucket, download a Docker image that contains training code, write model artifacts to an S3 bucket, write logs to Amazon CloudWatch Logs, and publish metrics to Amazon CloudWatch. You grant permissions for all of these tasks to an IAM role. For more information, see SageMaker Roles. To be able to pass this role to SageMaker, the caller of this API must have the iam:PassRole permission.
2851228511
output_data_config: Specifies the path to the S3 location where you want to store model artifacts. SageMaker creates subfolders for the artifacts.
28513-
resource_config: The resources, including the ML compute instances and ML storage volumes, to use for model training. ML storage volumes store model artifacts and incremental states. Training algorithms might also use ML storage volumes for scratch space. If you want SageMaker to use the ML storage volume to store the training data, choose File as the TrainingInputMode in the algorithm specification. For distributed training algorithms, specify an instance count greater than 1.
2851428512
stopping_condition: Specifies a limit to how long a model training job can run. It also specifies how long a managed Spot training job has to complete. When the job reaches the time limit, SageMaker ends the training job. Use this API to cap model training costs. To stop a job, SageMaker sends the algorithm the SIGTERM signal, which delays job termination for 120 seconds. Algorithms can use this 120-second window to save the model artifacts, so the results of training are not lost.
2851528513
hyper_parameters: Algorithm-specific parameters that influence the quality of the model. You set hyperparameters before you start the learning process. For a list of hyperparameters for each training algorithm provided by SageMaker, see Algorithms. You can specify a maximum of 100 hyperparameters. Each hyperparameter is a key-value pair. Each key and value is limited to 256 characters, as specified by the Length Constraint. Do not include any security-sensitive information including account access IDs, secrets, or tokens in any hyperparameter fields. As part of the shared responsibility model, you are responsible for any potential exposure, unauthorized access, or compromise of your sensitive data if caused by any security-sensitive information included in the request hyperparameter variable or plain text fields.
28514+
algorithm_specification: The registry path of the Docker image that contains the training algorithm and algorithm-specific metadata, including the input mode. For more information about algorithms provided by SageMaker, see Algorithms. For information about providing your own algorithms, see Using Your Own Algorithms with Amazon SageMaker.
2851628515
input_data_config: An array of Channel objects. Each channel is a named input source. InputDataConfig describes the input data and its location. Algorithms can accept input data from one or more channels. For example, an algorithm might have two channels of input data, training_data and validation_data. The configuration for each channel provides the S3, EFS, or FSx location where the input data is stored. It also provides information about the stored data: the MIME type, compression method, and whether the data is wrapped in RecordIO format. Depending on the input mode that the algorithm supports, SageMaker either copies input data files from an S3 bucket to a local directory in the Docker container, or makes it available as input streams. For example, if you specify an EFS location, input data files are available as input streams. They do not need to be downloaded. Your input must be in the same Amazon Web Services region as your training job.
28516+
resource_config: The resources, including the ML compute instances and ML storage volumes, to use for model training. ML storage volumes store model artifacts and incremental states. Training algorithms might also use ML storage volumes for scratch space. If you want SageMaker to use the ML storage volume to store the training data, choose File as the TrainingInputMode in the algorithm specification. For distributed training algorithms, specify an instance count greater than 1.
2851728517
vpc_config: A VpcConfig object that specifies the VPC that you want your training job to connect to. Control access to and from your training container by configuring the VPC. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.
2851828518
tags: An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources. Do not include any security-sensitive information including account access IDs, secrets, or tokens in any tags. As part of the shared responsibility model, you are responsible for any potential exposure, unauthorized access, or compromise of your sensitive data if caused by any security-sensitive information included in the request tag variable or plain text fields.
2851928519
enable_network_isolation: Isolates the training container. No inbound or outbound network calls can be made, except for calls between peers within a training cluster for distributed training. If you enable network isolation for training jobs that are configured to use a VPC, SageMaker downloads and uploads customer data and model artifacts through the specified VPC, but the training container does not have network access.

src/sagemaker_core/main/shapes.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3723,6 +3723,9 @@ class ClusterInstanceGroupDetails(Base):
37233723
scheduled_update_config: The configuration object of the schedule that SageMaker follows when updating the AMI.
37243724
current_image_id: The ID of the Amazon Machine Image (AMI) currently in use by the instance group.
37253725
desired_image_id: The ID of the Amazon Machine Image (AMI) desired for the instance group.
3726+
target_state_count: The number of nodes running a specific image ID since the last software update request.
3727+
software_update_status: Status of the last software udpate request.
3728+
active_software_update_config
37263729
"""
37273730

37283731
current_count: Optional[int] = Unassigned()
@@ -3741,6 +3744,9 @@ class ClusterInstanceGroupDetails(Base):
37413744
scheduled_update_config: Optional[ScheduledUpdateConfig] = Unassigned()
37423745
current_image_id: Optional[str] = Unassigned()
37433746
desired_image_id: Optional[str] = Unassigned()
3747+
target_state_count: Optional[int] = Unassigned()
3748+
software_update_status: Optional[str] = Unassigned()
3749+
active_software_update_config: Optional[DeploymentConfiguration] = Unassigned()
37443750

37453751

37463752
class ClusterInstanceGroupSpecification(Base):

0 commit comments

Comments
 (0)