sagemaker-core 1.0.7__tar.gz → 1.0.9__tar.gz

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.

Files changed (42) hide show
  1. {sagemaker_core-1.0.7/src/sagemaker_core.egg-info → sagemaker_core-1.0.9}/PKG-INFO +1 -1
  2. sagemaker_core-1.0.9/VERSION +1 -0
  3. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/main/code_injection/shape_dag.py +31 -0
  4. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/main/resources.py +57 -0
  5. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/main/shapes.py +34 -3
  6. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9/src/sagemaker_core.egg-info}/PKG-INFO +1 -1
  7. sagemaker_core-1.0.7/VERSION +0 -1
  8. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/LICENSE +0 -0
  9. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/MANIFEST.in +0 -0
  10. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/README.rst +0 -0
  11. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/pyproject.toml +0 -0
  12. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/setup.cfg +0 -0
  13. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/__init__.py +0 -0
  14. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/_version.py +0 -0
  15. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/helper/__init__.py +0 -0
  16. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/helper/session_helper.py +0 -0
  17. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/main/__init__.py +0 -0
  18. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/main/code_injection/__init__.py +0 -0
  19. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/main/code_injection/base.py +0 -0
  20. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/main/code_injection/codec.py +0 -0
  21. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/main/code_injection/constants.py +0 -0
  22. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/main/config_schema.py +0 -0
  23. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/main/exceptions.py +0 -0
  24. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/main/intelligent_defaults_helper.py +0 -0
  25. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/main/user_agent.py +0 -0
  26. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/main/utils.py +0 -0
  27. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/resources/__init__.py +0 -0
  28. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/shapes/__init__.py +0 -0
  29. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/tools/__init__.py +0 -0
  30. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/tools/codegen.py +0 -0
  31. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/tools/constants.py +0 -0
  32. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/tools/data_extractor.py +0 -0
  33. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/tools/method.py +0 -0
  34. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/tools/resources_codegen.py +0 -0
  35. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/tools/resources_extractor.py +0 -0
  36. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/tools/shapes_codegen.py +0 -0
  37. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/tools/shapes_extractor.py +0 -0
  38. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core/tools/templates.py +0 -0
  39. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core.egg-info/SOURCES.txt +0 -0
  40. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core.egg-info/dependency_links.txt +0 -0
  41. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core.egg-info/requires.txt +0 -0
  42. {sagemaker_core-1.0.7 → sagemaker_core-1.0.9}/src/sagemaker_core.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sagemaker-core
3
- Version: 1.0.7
3
+ Version: 1.0.9
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
@@ -0,0 +1 @@
1
+ 1.0.9
@@ -1884,6 +1884,7 @@ SHAPE_DAG = {
1884
1884
  "shape": "AppSecurityGroupManagement",
1885
1885
  "type": "string",
1886
1886
  },
1887
+ {"name": "TagPropagation", "shape": "TagPropagation", "type": "string"},
1887
1888
  {"name": "DefaultSpaceSettings", "shape": "DefaultSpaceSettings", "type": "structure"},
1888
1889
  ],
1889
1890
  "type": "structure",
@@ -4125,6 +4126,7 @@ SHAPE_DAG = {
4125
4126
  "shape": "AppSecurityGroupManagement",
4126
4127
  "type": "string",
4127
4128
  },
4129
+ {"name": "TagPropagation", "shape": "TagPropagation", "type": "string"},
4128
4130
  {"name": "DefaultSpaceSettings", "shape": "DefaultSpaceSettings", "type": "structure"},
4129
4131
  ],
4130
4132
  "type": "structure",
@@ -6573,7 +6575,24 @@ SHAPE_DAG = {
6573
6575
  },
6574
6576
  "Groups": {"member_shape": "Group", "member_type": "string", "type": "list"},
6575
6577
  "HiddenAppTypesList": {"member_shape": "AppType", "member_type": "string", "type": "list"},
6578
+ "HiddenInstanceTypesList": {
6579
+ "member_shape": "AppInstanceType",
6580
+ "member_type": "string",
6581
+ "type": "list",
6582
+ },
6576
6583
  "HiddenMlToolsList": {"member_shape": "MlTools", "member_type": "string", "type": "list"},
6584
+ "HiddenSageMakerImage": {
6585
+ "members": [
6586
+ {"name": "SageMakerImageName", "shape": "SageMakerImageName", "type": "string"},
6587
+ {"name": "VersionAliases", "shape": "VersionAliasesList", "type": "list"},
6588
+ ],
6589
+ "type": "structure",
6590
+ },
6591
+ "HiddenSageMakerImageVersionAliasesList": {
6592
+ "member_shape": "HiddenSageMakerImage",
6593
+ "member_type": "structure",
6594
+ "type": "list",
6595
+ },
6577
6596
  "HolidayConfig": {
6578
6597
  "member_shape": "HolidayConfigAttributes",
6579
6598
  "member_type": "structure",
@@ -13135,6 +13154,12 @@ SHAPE_DAG = {
13135
13154
  "members": [
13136
13155
  {"name": "HiddenMlTools", "shape": "HiddenMlToolsList", "type": "list"},
13137
13156
  {"name": "HiddenAppTypes", "shape": "HiddenAppTypesList", "type": "list"},
13157
+ {"name": "HiddenInstanceTypes", "shape": "HiddenInstanceTypesList", "type": "list"},
13158
+ {
13159
+ "name": "HiddenSageMakerImageVersionAliases",
13160
+ "shape": "HiddenSageMakerImageVersionAliasesList",
13161
+ "type": "list",
13162
+ },
13138
13163
  ],
13139
13164
  "type": "structure",
13140
13165
  },
@@ -14059,6 +14084,7 @@ SHAPE_DAG = {
14059
14084
  {"name": "DefaultSpaceSettings", "shape": "DefaultSpaceSettings", "type": "structure"},
14060
14085
  {"name": "SubnetIds", "shape": "Subnets", "type": "list"},
14061
14086
  {"name": "AppNetworkAccessType", "shape": "AppNetworkAccessType", "type": "string"},
14087
+ {"name": "TagPropagation", "shape": "TagPropagation", "type": "string"},
14062
14088
  ],
14063
14089
  "type": "structure",
14064
14090
  },
@@ -14701,6 +14727,11 @@ SHAPE_DAG = {
14701
14727
  "members": [{"name": "Dimension", "shape": "Dimension", "type": "integer"}],
14702
14728
  "type": "structure",
14703
14729
  },
14730
+ "VersionAliasesList": {
14731
+ "member_shape": "ImageVersionAliasPattern",
14732
+ "member_type": "string",
14733
+ "type": "list",
14734
+ },
14704
14735
  "Vertex": {
14705
14736
  "members": [
14706
14737
  {"name": "Arn", "shape": "AssociationEntityArn", "type": "string"},
@@ -6147,6 +6147,7 @@ class Domain(Base):
6147
6147
  vpc_id: The ID of the Amazon Virtual Private Cloud (VPC) that the domain uses for communication.
6148
6148
  kms_key_id: The Amazon Web Services KMS customer managed key used to encrypt the EFS volume attached to the domain.
6149
6149
  app_security_group_management: The entity that creates and manages the required security groups for inter-app communication in VPCOnly mode. Required when CreateDomain.AppNetworkAccessType is VPCOnly and DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is provided.
6150
+ tag_propagation: Indicates whether custom tag propagation is supported for the domain.
6150
6151
  default_space_settings: The default settings used to create a space.
6151
6152
 
6152
6153
  """
@@ -6172,6 +6173,7 @@ class Domain(Base):
6172
6173
  vpc_id: Optional[str] = Unassigned()
6173
6174
  kms_key_id: Optional[str] = Unassigned()
6174
6175
  app_security_group_management: Optional[str] = Unassigned()
6176
+ tag_propagation: Optional[str] = Unassigned()
6175
6177
  default_space_settings: Optional[DefaultSpaceSettings] = Unassigned()
6176
6178
 
6177
6179
  def get_name(self) -> str:
@@ -6270,6 +6272,7 @@ class Domain(Base):
6270
6272
  home_efs_file_system_kms_key_id: Optional[str] = Unassigned(),
6271
6273
  kms_key_id: Optional[str] = Unassigned(),
6272
6274
  app_security_group_management: Optional[str] = Unassigned(),
6275
+ tag_propagation: Optional[str] = Unassigned(),
6273
6276
  default_space_settings: Optional[DefaultSpaceSettings] = Unassigned(),
6274
6277
  session: Optional[Session] = None,
6275
6278
  region: Optional[str] = None,
@@ -6289,6 +6292,7 @@ class Domain(Base):
6289
6292
  home_efs_file_system_kms_key_id: Use KmsKeyId.
6290
6293
  kms_key_id: SageMaker uses Amazon Web Services KMS to encrypt EFS and EBS volumes attached to the domain with an Amazon Web Services managed key by default. For more control, specify a customer managed key.
6291
6294
  app_security_group_management: The entity that creates and manages the required security groups for inter-app communication in VPCOnly mode. Required when CreateDomain.AppNetworkAccessType is VPCOnly and DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is provided. If setting up the domain for use with RStudio, this value must be set to Service.
6295
+ tag_propagation: Indicates whether custom tag propagation is supported for the domain. Defaults to DISABLED.
6292
6296
  default_space_settings: The default settings used to create a space.
6293
6297
  session: Boto3 session.
6294
6298
  region: Region name.
@@ -6330,6 +6334,7 @@ class Domain(Base):
6330
6334
  "HomeEfsFileSystemKmsKeyId": home_efs_file_system_kms_key_id,
6331
6335
  "KmsKeyId": kms_key_id,
6332
6336
  "AppSecurityGroupManagement": app_security_group_management,
6337
+ "TagPropagation": tag_propagation,
6333
6338
  "DefaultSpaceSettings": default_space_settings,
6334
6339
  }
6335
6340
 
@@ -6446,6 +6451,7 @@ class Domain(Base):
6446
6451
  default_space_settings: Optional[DefaultSpaceSettings] = Unassigned(),
6447
6452
  subnet_ids: Optional[List[str]] = Unassigned(),
6448
6453
  app_network_access_type: Optional[str] = Unassigned(),
6454
+ tag_propagation: Optional[str] = Unassigned(),
6449
6455
  ) -> Optional["Domain"]:
6450
6456
  """
6451
6457
  Update a Domain resource
@@ -6482,6 +6488,7 @@ class Domain(Base):
6482
6488
  "DefaultSpaceSettings": default_space_settings,
6483
6489
  "SubnetIds": subnet_ids,
6484
6490
  "AppNetworkAccessType": app_network_access_type,
6491
+ "TagPropagation": tag_propagation,
6485
6492
  }
6486
6493
  logger.debug(f"Input request: {operation_input_args}")
6487
6494
  # serialize the input request
@@ -16518,6 +16525,7 @@ class Model(Base):
16518
16525
  "s3_data_source": {
16519
16526
  "s3_uri": {"type": "string"},
16520
16527
  "s3_data_type": {"type": "string"},
16528
+ "manifest_s3_uri": {"type": "string"},
16521
16529
  }
16522
16530
  }
16523
16531
  },
@@ -27953,6 +27961,55 @@ class TrialComponent(Base):
27953
27961
  response = client.batch_put_metrics(**operation_input_args)
27954
27962
  logger.debug(f"Response: {response}")
27955
27963
 
27964
+ @classmethod
27965
+ @Base.add_validate_call
27966
+ def batch_get_metrics(
27967
+ cls,
27968
+ metric_queries: List[MetricQuery],
27969
+ session: Optional[Session] = None,
27970
+ region: Optional[str] = None,
27971
+ ) -> Optional[BatchGetMetricsResponse]:
27972
+ """
27973
+ Used to retrieve training metrics from SageMaker.
27974
+
27975
+ Parameters:
27976
+ metric_queries: Queries made to retrieve training metrics from SageMaker.
27977
+ session: Boto3 session.
27978
+ region: Region name.
27979
+
27980
+ Returns:
27981
+ BatchGetMetricsResponse
27982
+
27983
+ Raises:
27984
+ botocore.exceptions.ClientError: This exception is raised for AWS service related errors.
27985
+ The error message and error code can be parsed from the exception as follows:
27986
+ ```
27987
+ try:
27988
+ # AWS service call here
27989
+ except botocore.exceptions.ClientError as e:
27990
+ error_message = e.response['Error']['Message']
27991
+ error_code = e.response['Error']['Code']
27992
+ ```
27993
+ """
27994
+
27995
+ operation_input_args = {
27996
+ "MetricQueries": metric_queries,
27997
+ }
27998
+ # serialize the input request
27999
+ operation_input_args = serialize(operation_input_args)
28000
+ logger.debug(f"Serialized input request: {operation_input_args}")
28001
+
28002
+ client = Base.get_sagemaker_client(
28003
+ session=session, region_name=region, service_name="sagemaker-metrics"
28004
+ )
28005
+
28006
+ logger.debug(f"Calling batch_get_metrics API")
28007
+ response = client.batch_get_metrics(**operation_input_args)
28008
+ logger.debug(f"Response: {response}")
28009
+
28010
+ transformed_response = transform(response, "BatchGetMetricsResponse")
28011
+ return BatchGetMetricsResponse(**transformed_response)
28012
+
27956
28013
 
27957
28014
  class UserProfile(Base):
27958
28015
  """
@@ -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.9
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
@@ -1 +0,0 @@
1
- 1.0.7
File without changes
File without changes