sagemaker-core 1.0.7__py3-none-any.whl → 1.0.8__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.
@@ -6573,7 +6573,24 @@ SHAPE_DAG = {
6573
6573
  },
6574
6574
  "Groups": {"member_shape": "Group", "member_type": "string", "type": "list"},
6575
6575
  "HiddenAppTypesList": {"member_shape": "AppType", "member_type": "string", "type": "list"},
6576
+ "HiddenInstanceTypesList": {
6577
+ "member_shape": "AppInstanceType",
6578
+ "member_type": "string",
6579
+ "type": "list",
6580
+ },
6576
6581
  "HiddenMlToolsList": {"member_shape": "MlTools", "member_type": "string", "type": "list"},
6582
+ "HiddenSageMakerImage": {
6583
+ "members": [
6584
+ {"name": "SageMakerImageName", "shape": "SageMakerImageName", "type": "string"},
6585
+ {"name": "VersionAliases", "shape": "VersionAliasesList", "type": "list"},
6586
+ ],
6587
+ "type": "structure",
6588
+ },
6589
+ "HiddenSageMakerImageVersionAliasesList": {
6590
+ "member_shape": "HiddenSageMakerImage",
6591
+ "member_type": "structure",
6592
+ "type": "list",
6593
+ },
6577
6594
  "HolidayConfig": {
6578
6595
  "member_shape": "HolidayConfigAttributes",
6579
6596
  "member_type": "structure",
@@ -13135,6 +13152,12 @@ SHAPE_DAG = {
13135
13152
  "members": [
13136
13153
  {"name": "HiddenMlTools", "shape": "HiddenMlToolsList", "type": "list"},
13137
13154
  {"name": "HiddenAppTypes", "shape": "HiddenAppTypesList", "type": "list"},
13155
+ {"name": "HiddenInstanceTypes", "shape": "HiddenInstanceTypesList", "type": "list"},
13156
+ {
13157
+ "name": "HiddenSageMakerImageVersionAliases",
13158
+ "shape": "HiddenSageMakerImageVersionAliasesList",
13159
+ "type": "list",
13160
+ },
13138
13161
  ],
13139
13162
  "type": "structure",
13140
13163
  },
@@ -14701,6 +14724,11 @@ SHAPE_DAG = {
14701
14724
  "members": [{"name": "Dimension", "shape": "Dimension", "type": "integer"}],
14702
14725
  "type": "structure",
14703
14726
  },
14727
+ "VersionAliasesList": {
14728
+ "member_shape": "ImageVersionAliasPattern",
14729
+ "member_type": "string",
14730
+ "type": "list",
14731
+ },
14704
14732
  "Vertex": {
14705
14733
  "members": [
14706
14734
  {"name": "Arn", "shape": "AssociationEntityArn", "type": "string"},
@@ -16518,6 +16518,7 @@ class Model(Base):
16518
16518
  "s3_data_source": {
16519
16519
  "s3_uri": {"type": "string"},
16520
16520
  "s3_data_type": {"type": "string"},
16521
+ "manifest_s3_uri": {"type": "string"},
16521
16522
  }
16522
16523
  }
16523
16524
  },
@@ -27953,6 +27954,55 @@ class TrialComponent(Base):
27953
27954
  response = client.batch_put_metrics(**operation_input_args)
27954
27955
  logger.debug(f"Response: {response}")
27955
27956
 
27957
+ @classmethod
27958
+ @Base.add_validate_call
27959
+ def batch_get_metrics(
27960
+ cls,
27961
+ metric_queries: List[MetricQuery],
27962
+ session: Optional[Session] = None,
27963
+ region: Optional[str] = None,
27964
+ ) -> Optional[BatchGetMetricsResponse]:
27965
+ """
27966
+ Used to retrieve training metrics from SageMaker.
27967
+
27968
+ Parameters:
27969
+ metric_queries: Queries made to retrieve training metrics from SageMaker.
27970
+ session: Boto3 session.
27971
+ region: Region name.
27972
+
27973
+ Returns:
27974
+ BatchGetMetricsResponse
27975
+
27976
+ Raises:
27977
+ botocore.exceptions.ClientError: This exception is raised for AWS service related errors.
27978
+ The error message and error code can be parsed from the exception as follows:
27979
+ ```
27980
+ try:
27981
+ # AWS service call here
27982
+ except botocore.exceptions.ClientError as e:
27983
+ error_message = e.response['Error']['Message']
27984
+ error_code = e.response['Error']['Code']
27985
+ ```
27986
+ """
27987
+
27988
+ operation_input_args = {
27989
+ "MetricQueries": metric_queries,
27990
+ }
27991
+ # serialize the input request
27992
+ operation_input_args = serialize(operation_input_args)
27993
+ logger.debug(f"Serialized input request: {operation_input_args}")
27994
+
27995
+ client = Base.get_sagemaker_client(
27996
+ session=session, region_name=region, service_name="sagemaker-metrics"
27997
+ )
27998
+
27999
+ logger.debug(f"Calling batch_get_metrics API")
28000
+ response = client.batch_get_metrics(**operation_input_args)
28001
+ logger.debug(f"Response: {response}")
28002
+
28003
+ transformed_response = transform(response, "BatchGetMetricsResponse")
28004
+ return BatchGetMetricsResponse(**transformed_response)
28005
+
27956
28006
 
27957
28007
  class UserProfile(Base):
27958
28008
  """
@@ -406,6 +406,18 @@ class MetricQueryResult(Base):
406
406
  message: Optional[str] = Unassigned()
407
407
 
408
408
 
409
+ class BatchGetMetricsResponse(Base):
410
+ """
411
+ BatchGetMetricsResponse
412
+
413
+ Attributes
414
+ ----------------------
415
+ metric_query_results: The results of a query to retrieve training metrics from SageMaker.
416
+ """
417
+
418
+ metric_query_results: Optional[List[MetricQueryResult]] = Unassigned()
419
+
420
+
409
421
  class BatchPutMetricsError(Base):
410
422
  """
411
423
  BatchPutMetricsError
@@ -4304,6 +4316,21 @@ class CustomFileSystemConfig(Base):
4304
4316
  efs_file_system_config: Optional[EFSFileSystemConfig] = Unassigned()
4305
4317
 
4306
4318
 
4319
+ class HiddenSageMakerImage(Base):
4320
+ """
4321
+ HiddenSageMakerImage
4322
+ The SageMaker images that are hidden from the Studio user interface. You must specify the SageMaker image name and version aliases.
4323
+
4324
+ Attributes
4325
+ ----------------------
4326
+ sage_maker_image_name: The SageMaker image name that you are hiding from the Studio user interface.
4327
+ version_aliases: The version aliases you are hiding from the Studio user interface.
4328
+ """
4329
+
4330
+ sage_maker_image_name: Optional[str] = Unassigned()
4331
+ version_aliases: Optional[List[str]] = Unassigned()
4332
+
4333
+
4307
4334
  class StudioWebPortalSettings(Base):
4308
4335
  """
4309
4336
  StudioWebPortalSettings
@@ -4313,10 +4340,14 @@ class StudioWebPortalSettings(Base):
4313
4340
  ----------------------
4314
4341
  hidden_ml_tools: The machine learning tools that are hidden from the Studio left navigation pane.
4315
4342
  hidden_app_types: The Applications supported in Studio that are hidden from the Studio left navigation pane.
4343
+ hidden_instance_types: The instance types you are hiding from the Studio user interface.
4344
+ hidden_sage_maker_image_version_aliases: The version aliases you are hiding from the Studio user interface.
4316
4345
  """
4317
4346
 
4318
4347
  hidden_ml_tools: Optional[List[str]] = Unassigned()
4319
4348
  hidden_app_types: Optional[List[str]] = Unassigned()
4349
+ hidden_instance_types: Optional[List[str]] = Unassigned()
4350
+ hidden_sage_maker_image_version_aliases: Optional[List[HiddenSageMakerImage]] = Unassigned()
4320
4351
 
4321
4352
 
4322
4353
  class UserSettings(Base):
@@ -5849,15 +5880,15 @@ class HumanTaskConfig(Base):
5849
5880
 
5850
5881
  workteam_arn: str
5851
5882
  ui_config: UiConfig
5852
- pre_human_task_lambda_arn: str
5853
5883
  task_title: str
5854
5884
  task_description: str
5855
5885
  number_of_human_workers_per_data_object: int
5856
5886
  task_time_limit_in_seconds: int
5857
- annotation_consolidation_config: AnnotationConsolidationConfig
5887
+ pre_human_task_lambda_arn: Optional[str] = Unassigned()
5858
5888
  task_keywords: Optional[List[str]] = Unassigned()
5859
5889
  task_availability_lifetime_in_seconds: Optional[int] = Unassigned()
5860
5890
  max_concurrent_task_count: Optional[int] = Unassigned()
5891
+ annotation_consolidation_config: Optional[AnnotationConsolidationConfig] = Unassigned()
5861
5892
  public_workforce_task_price: Optional[PublicWorkforceTaskPrice] = Unassigned()
5862
5893
 
5863
5894
 
@@ -9979,7 +10010,7 @@ class LabelingJobSummary(Base):
9979
10010
  labeling_job_status: str
9980
10011
  label_counters: LabelCounters
9981
10012
  workteam_arn: str
9982
- pre_human_task_lambda_arn: str
10013
+ pre_human_task_lambda_arn: Optional[str] = Unassigned()
9983
10014
  annotation_consolidation_lambda_arn: Optional[str] = Unassigned()
9984
10015
  failure_reason: Optional[str] = Unassigned()
9985
10016
  labeling_job_output: Optional[LabelingJobOutput] = Unassigned()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sagemaker-core
3
- Version: 1.0.7
3
+ Version: 1.0.8
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
@@ -6,15 +6,15 @@ sagemaker_core/main/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
6
6
  sagemaker_core/main/config_schema.py,sha256=TeGoTobT4yotEVyfguLF0IdKYlOymsDZ45ySxXiCDuw,56998
7
7
  sagemaker_core/main/exceptions.py,sha256=87DUlrmHxaWoiYNlpNY9ixxFMPRk_dIGPsA2e_xdVwQ,5602
8
8
  sagemaker_core/main/intelligent_defaults_helper.py,sha256=5SDM6UavZtp-k5LhqRL7GRIDgzFB5UsC_p7YuiSPK9A,8334
9
- sagemaker_core/main/resources.py,sha256=S4wuM705rkah3cFO-kfWAXPgYq7SI3PG2Qh6ZHtfTfk,1314805
10
- sagemaker_core/main/shapes.py,sha256=75mSyS_bGPAIcFFwWD5b_Hc4TBNFgNKJGKzcNnY33ro,694903
9
+ sagemaker_core/main/resources.py,sha256=VjjmTLzPcjjg3c8-1g9Fv88Gpwimd9KuNq02378B6cE,1316658
10
+ sagemaker_core/main/shapes.py,sha256=Groaj8psouJwQpRljmZIDeRM6fyU6p2J3wgjzcvQ_5k,696205
11
11
  sagemaker_core/main/user_agent.py,sha256=4sZybDXkzRoZnOnVDQ8p8zFTfiRJdsH7amDWInVQ4xU,2708
12
12
  sagemaker_core/main/utils.py,sha256=lXkJyiCow5uf32l0EmkimB0RKVk2BS7OM2fYoLsOfD4,18346
13
13
  sagemaker_core/main/code_injection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  sagemaker_core/main/code_injection/base.py,sha256=11_Jif0nOzfbLGlXaacKf-wcizzfS64U0OSZGoVffFU,1733
15
15
  sagemaker_core/main/code_injection/codec.py,sha256=2DjmeD2uND307UqDefvVEpE0rZ8yfFU3Bi3TvQCQveI,7658
16
16
  sagemaker_core/main/code_injection/constants.py,sha256=2ICExGge8vAWx7lSTW0JGh-bH1korkvpOpDu5M63eI4,980
17
- sagemaker_core/main/code_injection/shape_dag.py,sha256=hyvmKI2IWBEt21fCQrpSmi4d1YzOpfiG5CGNwRpsziY,656883
17
+ sagemaker_core/main/code_injection/shape_dag.py,sha256=0OoQzH_r_TAYR2-KUKGQnGMD4U9Cb-NRMxc_SORIOdw,657895
18
18
  sagemaker_core/resources/__init__.py,sha256=EAYTFMN-nPjnPjjBbhIUeaL67FLKNPd7qbcbl9VIrws,31
19
19
  sagemaker_core/shapes/__init__.py,sha256=RnbIu9eTxKt-DNsOFJabrWIgrrtS9_SdAozP9JBl_ic,28
20
20
  sagemaker_core/tools/__init__.py,sha256=xX79JImxCVzrWMnjgntLCve2G5I-R4pRar5s20kT9Rs,56
@@ -27,8 +27,8 @@ sagemaker_core/tools/resources_extractor.py,sha256=hN61ehZbPnhFW-2FIVDi7NsEz4rLv
27
27
  sagemaker_core/tools/shapes_codegen.py,sha256=_ve959bwH8usZ6dPlpXxi2on9t0hLpcmhRWnaWHCWMQ,11745
28
28
  sagemaker_core/tools/shapes_extractor.py,sha256=4KjgDmhlPM4G1f1NeYbORKlXs1s7Q_sm_NK31S_ROQ0,11950
29
29
  sagemaker_core/tools/templates.py,sha256=nze_A01EpegYUwoR_gRv2qBNKNFruBY8L3RiIX5lz3M,22458
30
- sagemaker_core-1.0.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
31
- sagemaker_core-1.0.7.dist-info/METADATA,sha256=v4aXFGELDKUqmf_ZdLBgMzzqulDx2TXKJ_p83nKsxTE,4877
32
- sagemaker_core-1.0.7.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
33
- sagemaker_core-1.0.7.dist-info/top_level.txt,sha256=R3GAZZ1zC5JxqdE_0x2Lu_WYi2Xfke7VsiP3L5zngfA,15
34
- sagemaker_core-1.0.7.dist-info/RECORD,,
30
+ sagemaker_core-1.0.8.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
31
+ sagemaker_core-1.0.8.dist-info/METADATA,sha256=MvlRWwl72_MVfsHjlrirz1RooJ1vJBuyCrZe_HDJr9s,4877
32
+ sagemaker_core-1.0.8.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
33
+ sagemaker_core-1.0.8.dist-info/top_level.txt,sha256=R3GAZZ1zC5JxqdE_0x2Lu_WYi2Xfke7VsiP3L5zngfA,15
34
+ sagemaker_core-1.0.8.dist-info/RECORD,,