Skip to content

Commit 53dce70

Browse files
Daily Sync with Botocore v1.40.72 on 2025/11/13 (#349)
1 parent bc13db9 commit 53dce70

File tree

4 files changed

+16
-19
lines changed

4 files changed

+16
-19
lines changed

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

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4974,7 +4974,7 @@
49744974
"type":"string",
49754975
"max":2048,
49764976
"min":1,
4977-
"pattern":"arn:aws(-cn|-us-gov|-iso-f)?:sagemaker:[a-z0-9\\-]{9,16}:[0-9]{12}:algorithm/[\\S]{1,2048}"
4977+
"pattern":"arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]{9,16}:[0-9]{12}:algorithm/[\\S]{1,2048}"
49784978
},
49794979
"AlgorithmImage":{
49804980
"type":"string",
@@ -8850,6 +8850,7 @@
88508850
"ml.p5e.48xlarge",
88518851
"ml.p5en.48xlarge",
88528852
"ml.p6-b200.48xlarge",
8853+
"ml.trn2.3xlarge",
88538854
"ml.trn2.48xlarge",
88548855
"ml.c6i.large",
88558856
"ml.c6i.xlarge",
@@ -9470,7 +9471,7 @@
94709471
"type":"string",
94719472
"max":2048,
94729473
"min":1,
9473-
"pattern":"arn:aws(-cn|-us-gov|-iso-f)?:sagemaker:[a-z0-9\\-]{9,16}:[0-9]{12}:code-repository/[\\S]{1,2048}"
9474+
"pattern":"arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]{9,16}:[0-9]{12}:code-repository/[\\S]{1,2048}"
94749475
},
94759476
"CodeRepositoryContains":{
94769477
"type":"string",
@@ -13039,8 +13040,7 @@
1303913040
"required":[
1304013041
"TrainingJobName",
1304113042
"RoleArn",
13042-
"OutputDataConfig",
13043-
"StoppingCondition"
13043+
"OutputDataConfig"
1304413044
],
1304513045
"members":{
1304613046
"TrainingJobName":{
@@ -19342,8 +19342,6 @@
1934219342
"ModelArtifacts",
1934319343
"TrainingJobStatus",
1934419344
"SecondaryStatus",
19345-
"AlgorithmSpecification",
19346-
"ResourceConfig",
1934719345
"StoppingCondition",
1934819346
"CreationTime"
1934919347
],
@@ -31204,7 +31202,7 @@
3120431202
"type":"string",
3120531203
"max":258,
3120631204
"min":20,
31207-
"pattern":"arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:ml-reservation/.*"
31205+
"pattern":"arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:[a-z0-9\\-]{1,14}/.*"
3120831206
},
3120931207
"MlTools":{
3121031208
"type":"string",
@@ -32322,7 +32320,7 @@
3232232320
"type":"string",
3232332321
"max":2048,
3232432322
"min":1,
32325-
"pattern":"arn:aws(-cn|-us-gov|-iso-f)?:sagemaker:[a-z0-9\\-]{9,16}:[0-9]{12}:model-package/[\\S]{1,2048}"
32323+
"pattern":"arn:arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]{9,16}:[0-9]{12}:model-package/[\\S]{1,2048}"
3232632324
},
3232732325
"ModelPackageArnList":{
3232832326
"type":"list",
@@ -32332,7 +32330,6 @@
3233232330
},
3233332331
"ModelPackageContainerDefinition":{
3233432332
"type":"structure",
32335-
"required":["Image"],
3233632333
"members":{
3233732334
"ContainerHostname":{
3233832335
"shape":"ContainerHostname",
@@ -32436,7 +32433,7 @@
3243632433
"type":"string",
3243732434
"max":2048,
3243832435
"min":1,
32439-
"pattern":"arn:aws(-cn|-us-gov|-iso-f)?:sagemaker:[a-z0-9\\-]{9,16}:[0-9]{12}:model-package-group/[\\S]{1,2048}"
32436+
"pattern":"arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]{9,16}:[0-9]{12}:model-package-group/[\\S]{1,2048}"
3244032437
},
3244132438
"ModelPackageGroupSortBy":{
3244232439
"type":"string",
@@ -37099,7 +37096,7 @@
3709937096
"type":"string",
3710037097
"max":2048,
3710137098
"min":1,
37102-
"pattern":"arn:aws(-cn|-us-gov|-iso-f)?:sagemaker:[a-z0-9\\-]{9,16}:[0-9]{12}:project/[\\S]{1,2048}"
37099+
"pattern":"arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]{9,16}:[0-9]{12}:project/[\\S]{1,2048}"
3710337100
},
3710437101
"ProjectEntityName":{
3710537102
"type":"string",

src/sagemaker_core/main/config_schema.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -801,14 +801,14 @@
801801
"model_artifacts": {
802802
"s3_model_artifacts": {"type": "string"}
803803
},
804-
"resource_config": {
805-
"volume_kms_key_id": {"type": "string"}
806-
},
807804
"role_arn": {"type": "string"},
808805
"output_data_config": {
809806
"s3_output_path": {"type": "string"},
810807
"kms_key_id": {"type": "string"},
811808
},
809+
"resource_config": {
810+
"volume_kms_key_id": {"type": "string"}
811+
},
812812
"vpc_config": {
813813
"security_group_ids": {
814814
"type": "array",

src/sagemaker_core/main/resources.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28339,18 +28339,18 @@ class TrainingJob(Base):
2833928339
model_artifacts: Information about the Amazon S3 location that is configured for storing model artifacts.
2834028340
training_job_status: The status of the training job. SageMaker provides the following training job statuses: InProgress - The training is in progress. Completed - The training job has completed. Failed - The training job has failed. To see the reason for the failure, see the FailureReason field in the response to a DescribeTrainingJobResponse call. Stopping - The training job is stopping. Stopped - The training job has stopped. For more detailed information, see SecondaryStatus.
2834128341
secondary_status: Provides detailed information about the state of the training job. For detailed information on the secondary status of the training job, see StatusMessage under SecondaryStatusTransition. SageMaker provides primary statuses and secondary statuses that apply to each of them: InProgress Starting - Starting the training job. Downloading - An optional stage for algorithms that support File training input mode. It indicates that data is being downloaded to the ML storage volumes. Training - Training is in progress. Interrupted - The job stopped because the managed spot training instances were interrupted. Uploading - Training is complete and the model artifacts are being uploaded to the S3 location. Completed Completed - The training job has completed. Failed Failed - The training job has failed. The reason for the failure is returned in the FailureReason field of DescribeTrainingJobResponse. Stopped MaxRuntimeExceeded - The job stopped because it exceeded the maximum allowed runtime. MaxWaitTimeExceeded - The job stopped because it exceeded the maximum allowed wait time. Stopped - The training job has stopped. Stopping Stopping - Stopping the training job. Valid values for SecondaryStatus are subject to change. We no longer support the following secondary statuses: LaunchingMLInstances PreparingTraining DownloadingTrainingImage
28342-
algorithm_specification: Information about the algorithm used for training, and algorithm metadata.
28343-
resource_config: Resources, including ML compute instances and ML storage volumes, that are configured for model training.
2834428342
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.
2834528343
creation_time: A timestamp that indicates when the training job was created.
2834628344
tuning_job_arn: The Amazon Resource Name (ARN) of the associated hyperparameter tuning job if the training job was launched by a hyperparameter tuning job.
2834728345
labeling_job_arn: The Amazon Resource Name (ARN) of the SageMaker Ground Truth labeling job that created the transform or training job.
2834828346
auto_ml_job_arn: The Amazon Resource Name (ARN) of an AutoML job.
2834928347
failure_reason: If the training job failed, the reason it failed.
2835028348
hyper_parameters: Algorithm-specific parameters.
28349+
algorithm_specification: Information about the algorithm used for training, and algorithm metadata.
2835128350
role_arn: The Amazon Web Services Identity and Access Management (IAM) role configured for the training job.
2835228351
input_data_config: An array of Channel objects that describes each data input channel.
2835328352
output_data_config: The S3 path where model artifacts that you configured when creating the job are stored. SageMaker creates subfolders for model artifacts.
28353+
resource_config: Resources, including ML compute instances and ML storage volumes, that are configured for model training.
2835428354
warm_pool_status: The status of the warm pool associated with the training job.
2835528355
vpc_config: A VpcConfig object that specifies the VPC that this training job has access to. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.
2835628356
training_start_time: Indicates the time when the training job starts on training instances. You are billed for the time interval between this time and the value of TrainingEndTime. The start time in CloudWatch Logs might be later than this time. The difference is due to the time it takes to download the training data and to the size of the training container.
@@ -28479,12 +28479,12 @@ def create(
2847928479
training_job_name: str,
2848028480
role_arn: str,
2848128481
output_data_config: shapes.OutputDataConfig,
28482-
stopping_condition: shapes.StoppingCondition,
2848328482
hyper_parameters: Optional[Dict[str, str]] = Unassigned(),
2848428483
algorithm_specification: Optional[shapes.AlgorithmSpecification] = Unassigned(),
2848528484
input_data_config: Optional[List[shapes.Channel]] = Unassigned(),
2848628485
resource_config: Optional[shapes.ResourceConfig] = Unassigned(),
2848728486
vpc_config: Optional[shapes.VpcConfig] = Unassigned(),
28487+
stopping_condition: Optional[shapes.StoppingCondition] = Unassigned(),
2848828488
tags: Optional[List[shapes.Tag]] = Unassigned(),
2848928489
enable_network_isolation: Optional[bool] = Unassigned(),
2849028490
enable_inter_container_traffic_encryption: Optional[bool] = Unassigned(),
@@ -28513,12 +28513,12 @@ def create(
2851328513
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.
2851428514
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.
2851528515
output_data_config: Specifies the path to the S3 location where you want to store model artifacts. SageMaker creates subfolders for the artifacts.
28516-
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.
2851728516
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.
2851828517
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.
2851928518
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.
2852028519
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.
2852128520
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.
28521+
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.
2852228522
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.
2852328523
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.
2852428524
enable_inter_container_traffic_encryption: To encrypt all communications between ML compute instances in distributed training, choose True. Encryption provides greater security for distributed training, but training might take longer. How long it takes depends on the amount of communication between compute instances, especially if you use a deep learning algorithm in distributed training. For more information, see Protect Communications Between ML Compute Instances in a Distributed Training Job.

src/sagemaker_core/main/shapes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,8 +657,8 @@ class ModelPackageContainerDefinition(Base):
657657
model_data_e_tag: The ETag associated with Model Data URL.
658658
"""
659659

660-
image: str
661660
container_hostname: Optional[str] = Unassigned()
661+
image: Optional[str] = Unassigned()
662662
image_digest: Optional[str] = Unassigned()
663663
model_data_url: Optional[str] = Unassigned()
664664
model_data_source: Optional[ModelDataSource] = Unassigned()

0 commit comments

Comments
 (0)