sagemaker-core 1.0.42__py3-none-any.whl → 1.0.44__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.

@@ -1516,7 +1516,7 @@ class IamIdentity(Base):
1516
1516
  class UserContext(Base):
1517
1517
  """
1518
1518
  UserContext
1519
- Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.
1519
+ Information about the user who created or modified a SageMaker resource.
1520
1520
 
1521
1521
  Attributes
1522
1522
  ----------------------
@@ -3552,6 +3552,121 @@ class ClusterOrchestrator(Base):
3552
3552
  eks: ClusterOrchestratorEksConfig
3553
3553
 
3554
3554
 
3555
+ class FSxLustreConfig(Base):
3556
+ """
3557
+ FSxLustreConfig
3558
+ Configuration settings for an Amazon FSx for Lustre file system to be used with the cluster.
3559
+
3560
+ Attributes
3561
+ ----------------------
3562
+ size_in_gi_b: The storage capacity of the Amazon FSx for Lustre file system, specified in gibibytes (GiB).
3563
+ per_unit_storage_throughput: The throughput capacity of the Amazon FSx for Lustre file system, measured in MB/s per TiB of storage.
3564
+ """
3565
+
3566
+ size_in_gi_b: int
3567
+ per_unit_storage_throughput: int
3568
+
3569
+
3570
+ class EnvironmentConfigDetails(Base):
3571
+ """
3572
+ EnvironmentConfigDetails
3573
+ The configuration details for the restricted instance groups (RIG) environment.
3574
+
3575
+ Attributes
3576
+ ----------------------
3577
+ f_sx_lustre_config: Configuration settings for an Amazon FSx for Lustre file system to be used with the cluster.
3578
+ s3_output_path: The Amazon S3 path where output data from the restricted instance group (RIG) environment will be stored.
3579
+ """
3580
+
3581
+ f_sx_lustre_config: Optional[FSxLustreConfig] = Unassigned()
3582
+ s3_output_path: Optional[str] = Unassigned()
3583
+
3584
+
3585
+ class ClusterRestrictedInstanceGroupDetails(Base):
3586
+ """
3587
+ ClusterRestrictedInstanceGroupDetails
3588
+ The instance group details of the restricted instance group (RIG).
3589
+
3590
+ Attributes
3591
+ ----------------------
3592
+ current_count: The number of instances that are currently in the restricted instance group of a SageMaker HyperPod cluster.
3593
+ target_count: The number of instances you specified to add to the restricted instance group of a SageMaker HyperPod cluster.
3594
+ instance_group_name: The name of the restricted instance group of a SageMaker HyperPod cluster.
3595
+ instance_type: The instance type of the restricted instance group of a SageMaker HyperPod cluster.
3596
+ execution_role: The execution role for the restricted instance group to assume.
3597
+ threads_per_core: The number you specified to TreadsPerCore in CreateCluster for enabling or disabling multithreading. For instance types that support multithreading, you can specify 1 for disabling multithreading and 2 for enabling multithreading. For more information, see the reference table of CPU cores and threads per CPU core per instance type in the Amazon Elastic Compute Cloud User Guide.
3598
+ instance_storage_configs: The additional storage configurations for the instances in the SageMaker HyperPod cluster restricted instance group.
3599
+ on_start_deep_health_checks: A flag indicating whether deep health checks should be performed when the cluster's restricted instance group is created or updated.
3600
+ status: The current status of the cluster's restricted instance group. InService: The restricted instance group is active and healthy. Creating: The restricted instance group is being provisioned. Updating: The restricted instance group is being updated. Failed: The restricted instance group has failed to provision or is no longer healthy. Degraded: The restricted instance group is degraded, meaning that some instances have failed to provision or are no longer healthy. Deleting: The restricted instance group is being deleted.
3601
+ training_plan_arn: The Amazon Resource Name (ARN) of the training plan to filter clusters by. For more information about reserving GPU capacity for your SageMaker HyperPod clusters using Amazon SageMaker Training Plan, see CreateTrainingPlan .
3602
+ training_plan_status: The current status of the training plan associated with this cluster restricted instance group.
3603
+ override_vpc_config
3604
+ scheduled_update_config
3605
+ environment_config: The configuration for the restricted instance groups (RIG) environment.
3606
+ """
3607
+
3608
+ current_count: Optional[int] = Unassigned()
3609
+ target_count: Optional[int] = Unassigned()
3610
+ instance_group_name: Optional[str] = Unassigned()
3611
+ instance_type: Optional[str] = Unassigned()
3612
+ execution_role: Optional[str] = Unassigned()
3613
+ threads_per_core: Optional[int] = Unassigned()
3614
+ instance_storage_configs: Optional[List[ClusterInstanceStorageConfig]] = Unassigned()
3615
+ on_start_deep_health_checks: Optional[List[str]] = Unassigned()
3616
+ status: Optional[str] = Unassigned()
3617
+ training_plan_arn: Optional[str] = Unassigned()
3618
+ training_plan_status: Optional[str] = Unassigned()
3619
+ override_vpc_config: Optional[VpcConfig] = Unassigned()
3620
+ scheduled_update_config: Optional[ScheduledUpdateConfig] = Unassigned()
3621
+ environment_config: Optional[EnvironmentConfigDetails] = Unassigned()
3622
+
3623
+
3624
+ class EnvironmentConfig(Base):
3625
+ """
3626
+ EnvironmentConfig
3627
+ The configuration for the restricted instance groups (RIG) environment.
3628
+
3629
+ Attributes
3630
+ ----------------------
3631
+ f_sx_lustre_config: Configuration settings for an Amazon FSx for Lustre file system to be used with the cluster.
3632
+ """
3633
+
3634
+ f_sx_lustre_config: Optional[FSxLustreConfig] = Unassigned()
3635
+
3636
+
3637
+ class ClusterRestrictedInstanceGroupSpecification(Base):
3638
+ """
3639
+ ClusterRestrictedInstanceGroupSpecification
3640
+ The specifications of a restricted instance group that you need to define.
3641
+
3642
+ Attributes
3643
+ ----------------------
3644
+ instance_count: Specifies the number of instances to add to the restricted instance group of a SageMaker HyperPod cluster.
3645
+ instance_group_name: Specifies the name of the restricted instance group.
3646
+ instance_type: Specifies the instance type of the restricted instance group.
3647
+ execution_role: Specifies an IAM execution role to be assumed by the restricted instance group.
3648
+ threads_per_core: The number you specified to TreadsPerCore in CreateCluster for enabling or disabling multithreading. For instance types that support multithreading, you can specify 1 for disabling multithreading and 2 for enabling multithreading. For more information, see the reference table of CPU cores and threads per CPU core per instance type in the Amazon Elastic Compute Cloud User Guide.
3649
+ instance_storage_configs: Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster restricted instance group.
3650
+ on_start_deep_health_checks: A flag indicating whether deep health checks should be performed when the cluster restricted instance group is created or updated.
3651
+ training_plan_arn: The Amazon Resource Name (ARN) of the training plan to filter clusters by. For more information about reserving GPU capacity for your SageMaker HyperPod clusters using Amazon SageMaker Training Plan, see CreateTrainingPlan .
3652
+ override_vpc_config
3653
+ scheduled_update_config
3654
+ environment_config: The configuration for the restricted instance groups (RIG) environment.
3655
+ """
3656
+
3657
+ instance_count: int
3658
+ instance_group_name: str
3659
+ instance_type: str
3660
+ execution_role: str
3661
+ environment_config: EnvironmentConfig
3662
+ threads_per_core: Optional[int] = Unassigned()
3663
+ instance_storage_configs: Optional[List[ClusterInstanceStorageConfig]] = Unassigned()
3664
+ on_start_deep_health_checks: Optional[List[str]] = Unassigned()
3665
+ training_plan_arn: Optional[str] = Unassigned()
3666
+ override_vpc_config: Optional[VpcConfig] = Unassigned()
3667
+ scheduled_update_config: Optional[ScheduledUpdateConfig] = Unassigned()
3668
+
3669
+
3555
3670
  class ClusterSchedulerConfigSummary(Base):
3556
3671
  """
3557
3672
  ClusterSchedulerConfigSummary
@@ -11500,6 +11615,29 @@ class Parameter(Base):
11500
11615
  value: str
11501
11616
 
11502
11617
 
11618
+ class PipelineVersionSummary(Base):
11619
+ """
11620
+ PipelineVersionSummary
11621
+ The summary of the pipeline version.
11622
+
11623
+ Attributes
11624
+ ----------------------
11625
+ pipeline_arn: The Amazon Resource Name (ARN) of the pipeline.
11626
+ pipeline_version_id: The ID of the pipeline version.
11627
+ creation_time: The creation time of the pipeline version.
11628
+ pipeline_version_description: The description of the pipeline version.
11629
+ pipeline_version_display_name: The display name of the pipeline version.
11630
+ last_execution_pipeline_execution_arn: The Amazon Resource Name (ARN) of the most recent pipeline execution created from this pipeline version.
11631
+ """
11632
+
11633
+ pipeline_arn: Optional[str] = Unassigned()
11634
+ pipeline_version_id: Optional[int] = Unassigned()
11635
+ creation_time: Optional[datetime.datetime] = Unassigned()
11636
+ pipeline_version_description: Optional[str] = Unassigned()
11637
+ pipeline_version_display_name: Optional[str] = Unassigned()
11638
+ last_execution_pipeline_execution_arn: Optional[str] = Unassigned()
11639
+
11640
+
11503
11641
  class PipelineSummary(Base):
11504
11642
  """
11505
11643
  PipelineSummary
@@ -12316,6 +12454,8 @@ class PipelineExecution(Base):
12316
12454
  parallelism_configuration: The parallelism configuration applied to the pipeline execution.
12317
12455
  selective_execution_config: The selective execution configuration applied to the pipeline run.
12318
12456
  pipeline_parameters: Contains a list of pipeline parameters. This list can be empty.
12457
+ pipeline_version_id: The ID of the pipeline version that started this execution.
12458
+ pipeline_version_display_name: The display name of the pipeline version that started this execution.
12319
12459
  """
12320
12460
 
12321
12461
  pipeline_arn: Optional[str] = Unassigned()
@@ -12332,6 +12472,41 @@ class PipelineExecution(Base):
12332
12472
  parallelism_configuration: Optional[ParallelismConfiguration] = Unassigned()
12333
12473
  selective_execution_config: Optional[SelectiveExecutionConfig] = Unassigned()
12334
12474
  pipeline_parameters: Optional[List[Parameter]] = Unassigned()
12475
+ pipeline_version_id: Optional[int] = Unassigned()
12476
+ pipeline_version_display_name: Optional[str] = Unassigned()
12477
+
12478
+
12479
+ class PipelineVersion(Base):
12480
+ """
12481
+ PipelineVersion
12482
+ The version of the pipeline.
12483
+
12484
+ Attributes
12485
+ ----------------------
12486
+ pipeline_arn: The Amazon Resource Name (ARN) of the pipeline.
12487
+ pipeline_version_id: The ID of the pipeline version.
12488
+ pipeline_version_display_name: The display name of the pipeline version.
12489
+ pipeline_version_description: The description of the pipeline version.
12490
+ creation_time: The creation time of the pipeline version.
12491
+ last_modified_time: The time when the pipeline version was last modified.
12492
+ created_by
12493
+ last_modified_by
12494
+ last_executed_pipeline_execution_arn: The Amazon Resource Name (ARN) of the most recent pipeline execution created from this pipeline version.
12495
+ last_executed_pipeline_execution_display_name: The display name of the most recent pipeline execution created from this pipeline version.
12496
+ last_executed_pipeline_execution_status: The status of the most recent pipeline execution created from this pipeline version.
12497
+ """
12498
+
12499
+ pipeline_arn: Optional[str] = Unassigned()
12500
+ pipeline_version_id: Optional[int] = Unassigned()
12501
+ pipeline_version_display_name: Optional[str] = Unassigned()
12502
+ pipeline_version_description: Optional[str] = Unassigned()
12503
+ creation_time: Optional[datetime.datetime] = Unassigned()
12504
+ last_modified_time: Optional[datetime.datetime] = Unassigned()
12505
+ created_by: Optional[UserContext] = Unassigned()
12506
+ last_modified_by: Optional[UserContext] = Unassigned()
12507
+ last_executed_pipeline_execution_arn: Optional[str] = Unassigned()
12508
+ last_executed_pipeline_execution_display_name: Optional[str] = Unassigned()
12509
+ last_executed_pipeline_execution_status: Optional[str] = Unassigned()
12335
12510
 
12336
12511
 
12337
12512
  class ProcessingJob(Base):
@@ -12844,6 +13019,7 @@ class SearchRecord(Base):
12844
13019
  model_package_group
12845
13020
  pipeline
12846
13021
  pipeline_execution
13022
+ pipeline_version: The version of the pipeline.
12847
13023
  feature_group
12848
13024
  feature_metadata: The feature metadata used to search through the features.
12849
13025
  project: The properties of a project.
@@ -12861,6 +13037,7 @@ class SearchRecord(Base):
12861
13037
  model_package_group: Optional[ModelPackageGroup] = Unassigned()
12862
13038
  pipeline: Optional[Pipeline] = Unassigned()
12863
13039
  pipeline_execution: Optional[PipelineExecution] = Unassigned()
13040
+ pipeline_version: Optional[PipelineVersion] = Unassigned()
12864
13041
  feature_group: Optional[FeatureGroup] = Unassigned()
12865
13042
  feature_metadata: Optional[FeatureMetadata] = Unassigned()
12866
13043
  project: Optional[Project] = Unassigned()
@@ -339,8 +339,11 @@ class ResourcesCodeGen:
339
339
  str: The formatted resource class.
340
340
 
341
341
  """
342
- # Initialize an empty string for the resource class
343
- resource_class = ""
342
+ resource_class = f"class {resource_name}(Base):\n"
343
+ class_documentation_string = f"Class representing resource {resource_name}\n"
344
+ basic_class_content = resource_class + add_indent(
345
+ f'"""\n{class_documentation_string}\n"""\n', 4
346
+ )
344
347
 
345
348
  # _get_class_attributes will return value only if the resource has get or get_all method
346
349
  if class_attribute_info := self._get_class_attributes(resource_name, class_methods):
@@ -348,11 +351,7 @@ class ResourcesCodeGen:
348
351
  class_attribute_info
349
352
  )
350
353
 
351
- # Start defining the class
352
- resource_class = f"class {resource_name}(Base):\n"
353
-
354
- class_documentation_string = f"Class representing resource {resource_name}\n\n"
355
- class_documentation_string += f"Attributes:\n"
354
+ class_documentation_string += f"\nAttributes:\n"
356
355
  class_documentation_string += self._get_shape_attr_documentation_string(
357
356
  attributes_and_documentation
358
357
  )
@@ -444,9 +443,12 @@ class ResourcesCodeGen:
444
443
  else:
445
444
  # If there's no 'get' or 'list' or 'create' method, generate a class with no attributes
446
445
  resource_attributes = []
447
- resource_class = f"class {resource_name}(Base):\n"
448
- class_documentation_string = f"Class representing resource {resource_name}\n"
449
- resource_class += add_indent(f'"""\n{class_documentation_string}\n"""\n', 4)
446
+ resource_class = basic_class_content
447
+
448
+ # if there are no attributes or methods including addition operations
449
+ # class need not be generated
450
+ if resource_name not in self.resource_methods:
451
+ return ""
450
452
 
451
453
  if resource_name in self.resource_methods:
452
454
  # TODO: use resource_methods for all methods
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sagemaker-core
3
- Version: 1.0.42
3
+ Version: 1.0.44
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
@@ -22,7 +22,7 @@ Requires-Dist: jsonschema<5.0.0
22
22
  Requires-Dist: platformdirs<5.0.0,>=4.0.0
23
23
  Requires-Dist: rich<15.0.0,>=14.0.0
24
24
  Requires-Dist: mock<5.0,>4.0
25
- Requires-Dist: importlib-metadata<7.0,>=1.4.0
25
+ Requires-Dist: importlib-metadata<=9.0,>=1.4.0
26
26
  Provides-Extra: codegen
27
27
  Requires-Dist: black<25.0.0,>=24.3.0; extra == "codegen"
28
28
  Requires-Dist: pandas<3.0.0,>=2.0.0; extra == "codegen"
@@ -7,15 +7,15 @@ sagemaker_core/main/config_schema.py,sha256=Wxe2gJash1rrxBomGhSYmII1LmJ3E70LIuSW
7
7
  sagemaker_core/main/default_configs_helper.py,sha256=bg_tgczX_bYzNiSlalJ6TWPTgrQYsI0uZguP5TIbPiw,8324
8
8
  sagemaker_core/main/exceptions.py,sha256=CsiM3V_Gb16grBotnu59LB6tznryPcSvAQDAOOYGc10,5563
9
9
  sagemaker_core/main/logs.py,sha256=yfEH7uP91nbE1lefymOlBr81ziBzsDSIOF2Qyd54FJE,6241
10
- sagemaker_core/main/resources.py,sha256=-LUE-aD9CqoTSQwsHE7gFbAahpqUSln0RYar93fA4mM,1435249
11
- sagemaker_core/main/shapes.py,sha256=iIZr3k0NtTFy-RihVuv6L6okV1lA0TQIw06NwjP_0g8,749407
10
+ sagemaker_core/main/resources.py,sha256=-LIYnkPoM5Ll1HvMoeLKZlASLIELrVOs0bMgGvitrTo,1452703
11
+ sagemaker_core/main/shapes.py,sha256=NJhGHaZnGmwKT51LWLkByuFLwN6ZQYLbLtcZm-mdljY,759629
12
12
  sagemaker_core/main/user_agent.py,sha256=BPYDAfDd70ObP-VAjl7aDHALHyGknkpRP21ktVr_LDw,2744
13
13
  sagemaker_core/main/utils.py,sha256=Ge_KdFKWo-qoIXlXkgLbaJbfXMVdUVHTq6BbDQn48Tw,19201
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=2YzJ-iYEzmguVaJVcZeyCR0OpTSR7UOixATrOm4MiBk,8885
17
17
  sagemaker_core/main/code_injection/constants.py,sha256=2ICExGge8vAWx7lSTW0JGh-bH1korkvpOpDu5M63eI4,980
18
- sagemaker_core/main/code_injection/shape_dag.py,sha256=lBKb84J8XAevNg65WYgGZd4BUEYw1F-1hx3ifCR5KbA,713817
18
+ sagemaker_core/main/code_injection/shape_dag.py,sha256=LP35ZbavXaV2OElPNL-0I0GfHOwmL5pdDGRc6DG-cos,723794
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
@@ -23,13 +23,13 @@ sagemaker_core/tools/codegen.py,sha256=mKWVi2pWnPxyIoWUEPYjEc9Gw7D9bCOrHqa00yzIZ
23
23
  sagemaker_core/tools/constants.py,sha256=OEL9n7G1DZ1YKZMtSxcYwFfZ8WQG1gm-c_gKjRtt0fI,3466
24
24
  sagemaker_core/tools/data_extractor.py,sha256=pNfmTA0NUA96IgfLrla7a36Qjc1NljbwgZYaOhouKqQ,2113
25
25
  sagemaker_core/tools/method.py,sha256=Ud2YeH2SPkj7xtIxBuUdRfQwCmovMUzGGkcIvzhpQeQ,805
26
- sagemaker_core/tools/resources_codegen.py,sha256=W0MHoAk26t_bRwV4_hUOJwT75Lja4R4-1uq49fPHkKc,86405
26
+ sagemaker_core/tools/resources_codegen.py,sha256=1JiA865AWO5kT-xBgYq0IS0K9xlmLqux2Lau2_auV8U,86414
27
27
  sagemaker_core/tools/resources_extractor.py,sha256=hN61ehZbPnhFW-2FIVDi7NsEz4rLvGr-WoglHQGfrug,14523
28
28
  sagemaker_core/tools/shapes_codegen.py,sha256=4lsePZpjk7M6RpJs5yar_m4z5MzwGHFrvCkdS_-R12c,12172
29
29
  sagemaker_core/tools/shapes_extractor.py,sha256=vxVKjXD3lmjrkoKiexjUnOt8ITbFxQSeiDtx7P6Qtkw,14226
30
30
  sagemaker_core/tools/templates.py,sha256=0lOIH3Rq2CXWkQhK6VenN_TE_v5p852s2kQyb_BeQxA,23460
31
- sagemaker_core-1.0.42.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
32
- sagemaker_core-1.0.42.dist-info/METADATA,sha256=fNTuxNgMhE52z2MYlruzTf9sdXdHPcRmfWiUZ8_26cQ,4870
33
- sagemaker_core-1.0.42.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
34
- sagemaker_core-1.0.42.dist-info/top_level.txt,sha256=R3GAZZ1zC5JxqdE_0x2Lu_WYi2Xfke7VsiP3L5zngfA,15
35
- sagemaker_core-1.0.42.dist-info/RECORD,,
31
+ sagemaker_core-1.0.44.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
32
+ sagemaker_core-1.0.44.dist-info/METADATA,sha256=Vpryuaj_LmTaIjntx91IRGeBAz3CSkhYShfHBBsBteo,4871
33
+ sagemaker_core-1.0.44.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
34
+ sagemaker_core-1.0.44.dist-info/top_level.txt,sha256=R3GAZZ1zC5JxqdE_0x2Lu_WYi2Xfke7VsiP3L5zngfA,15
35
+ sagemaker_core-1.0.44.dist-info/RECORD,,