sagemaker-core 1.0.25__tar.gz → 1.0.27__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.
- {sagemaker_core-1.0.25/src/sagemaker_core.egg-info → sagemaker_core-1.0.27}/PKG-INFO +3 -2
- sagemaker_core-1.0.27/VERSION +1 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/code_injection/shape_dag.py +53 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/config_schema.py +4 -1
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/resources.py +120 -1
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/shapes.py +19 -2
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27/src/sagemaker_core.egg-info}/PKG-INFO +3 -2
- sagemaker_core-1.0.25/VERSION +0 -1
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/LICENSE +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/MANIFEST.in +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/README.rst +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/pyproject.toml +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/setup.cfg +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/__init__.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/_version.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/helper/__init__.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/helper/session_helper.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/__init__.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/code_injection/__init__.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/code_injection/base.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/code_injection/codec.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/code_injection/constants.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/exceptions.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/intelligent_defaults_helper.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/logs.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/user_agent.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/utils.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/resources/__init__.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/shapes/__init__.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/tools/__init__.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/tools/codegen.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/tools/constants.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/tools/data_extractor.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/tools/method.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/tools/resources_codegen.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/tools/resources_extractor.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/tools/shapes_codegen.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/tools/shapes_extractor.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/tools/templates.py +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core.egg-info/SOURCES.txt +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core.egg-info/dependency_links.txt +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core.egg-info/requires.txt +0 -0
- {sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: sagemaker-core
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.27
|
|
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
|
|
@@ -28,6 +28,7 @@ Requires-Dist: black<25.0.0,>=24.3.0; extra == "codegen"
|
|
|
28
28
|
Requires-Dist: pandas<3.0.0,>=2.0.0; extra == "codegen"
|
|
29
29
|
Requires-Dist: pytest<9.0.0,>=8.0.0; extra == "codegen"
|
|
30
30
|
Requires-Dist: pylint<4.0.0,>=3.0.0; extra == "codegen"
|
|
31
|
+
Dynamic: license-file
|
|
31
32
|
|
|
32
33
|
.. image:: https://github.com/aws/sagemaker-python-sdk/raw/master/branding/icon/sagemaker-banner.png
|
|
33
34
|
:height: 100px
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.0.27
|
{sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/code_injection/shape_dag.py
RENAMED
|
@@ -2070,6 +2070,7 @@ SHAPE_DAG = {
|
|
|
2070
2070
|
"CreateDomainResponse": {
|
|
2071
2071
|
"members": [
|
|
2072
2072
|
{"name": "DomainArn", "shape": "DomainArn", "type": "string"},
|
|
2073
|
+
{"name": "DomainId", "shape": "DomainId", "type": "string"},
|
|
2073
2074
|
{"name": "Url", "shape": "String1024", "type": "string"},
|
|
2074
2075
|
],
|
|
2075
2076
|
"type": "structure",
|
|
@@ -2811,6 +2812,7 @@ SHAPE_DAG = {
|
|
|
2811
2812
|
{"name": "Name", "shape": "PartnerAppName", "type": "string"},
|
|
2812
2813
|
{"name": "Type", "shape": "PartnerAppType", "type": "string"},
|
|
2813
2814
|
{"name": "ExecutionRoleArn", "shape": "RoleArn", "type": "string"},
|
|
2815
|
+
{"name": "KmsKeyId", "shape": "KmsKeyId", "type": "string"},
|
|
2814
2816
|
{
|
|
2815
2817
|
"name": "MaintenanceConfig",
|
|
2816
2818
|
"shape": "PartnerAppMaintenanceConfig",
|
|
@@ -4712,6 +4714,7 @@ SHAPE_DAG = {
|
|
|
4712
4714
|
{"name": "HubContentStatus", "shape": "HubContentStatus", "type": "string"},
|
|
4713
4715
|
{"name": "FailureReason", "shape": "FailureReason", "type": "string"},
|
|
4714
4716
|
{"name": "CreationTime", "shape": "Timestamp", "type": "timestamp"},
|
|
4717
|
+
{"name": "LastModifiedTime", "shape": "Timestamp", "type": "timestamp"},
|
|
4715
4718
|
],
|
|
4716
4719
|
"type": "structure",
|
|
4717
4720
|
},
|
|
@@ -5494,7 +5497,9 @@ SHAPE_DAG = {
|
|
|
5494
5497
|
{"name": "Type", "shape": "PartnerAppType", "type": "string"},
|
|
5495
5498
|
{"name": "Status", "shape": "PartnerAppStatus", "type": "string"},
|
|
5496
5499
|
{"name": "CreationTime", "shape": "Timestamp", "type": "timestamp"},
|
|
5500
|
+
{"name": "LastModifiedTime", "shape": "Timestamp", "type": "timestamp"},
|
|
5497
5501
|
{"name": "ExecutionRoleArn", "shape": "RoleArn", "type": "string"},
|
|
5502
|
+
{"name": "KmsKeyId", "shape": "KmsKeyId", "type": "string"},
|
|
5498
5503
|
{"name": "BaseUrl", "shape": "String2048", "type": "string"},
|
|
5499
5504
|
{
|
|
5500
5505
|
"name": "MaintenanceConfig",
|
|
@@ -7024,6 +7029,10 @@ SHAPE_DAG = {
|
|
|
7024
7029
|
"value_shape": "ConfigValue",
|
|
7025
7030
|
"value_type": "string",
|
|
7026
7031
|
},
|
|
7032
|
+
"HubAccessConfig": {
|
|
7033
|
+
"members": [{"name": "HubContentArn", "shape": "HubContentArn", "type": "string"}],
|
|
7034
|
+
"type": "structure",
|
|
7035
|
+
},
|
|
7027
7036
|
"HubContentDependency": {
|
|
7028
7037
|
"members": [
|
|
7029
7038
|
{"name": "DependencyOriginPath", "shape": "DependencyOriginPath", "type": "string"},
|
|
@@ -7659,6 +7668,7 @@ SHAPE_DAG = {
|
|
|
7659
7668
|
{"name": "HubContentDescription", "shape": "HubContentDescription", "type": "string"},
|
|
7660
7669
|
{"name": "HubContentMarkdown", "shape": "HubContentMarkdown", "type": "string"},
|
|
7661
7670
|
{"name": "HubContentDocument", "shape": "HubContentDocument", "type": "string"},
|
|
7671
|
+
{"name": "SupportStatus", "shape": "HubContentSupportStatus", "type": "string"},
|
|
7662
7672
|
{
|
|
7663
7673
|
"name": "HubContentSearchKeywords",
|
|
7664
7674
|
"shape": "HubContentSearchKeywordList",
|
|
@@ -13182,6 +13192,8 @@ SHAPE_DAG = {
|
|
|
13182
13192
|
{"name": "S3DataDistributionType", "shape": "S3DataDistribution", "type": "string"},
|
|
13183
13193
|
{"name": "AttributeNames", "shape": "AttributeNames", "type": "list"},
|
|
13184
13194
|
{"name": "InstanceGroupNames", "shape": "InstanceGroupNames", "type": "list"},
|
|
13195
|
+
{"name": "ModelAccessConfig", "shape": "ModelAccessConfig", "type": "structure"},
|
|
13196
|
+
{"name": "HubAccessConfig", "shape": "HubAccessConfig", "type": "structure"},
|
|
13185
13197
|
],
|
|
13186
13198
|
"type": "structure",
|
|
13187
13199
|
},
|
|
@@ -14991,6 +15003,47 @@ SHAPE_DAG = {
|
|
|
14991
15003
|
],
|
|
14992
15004
|
"type": "structure",
|
|
14993
15005
|
},
|
|
15006
|
+
"UpdateHubContentReferenceRequest": {
|
|
15007
|
+
"members": [
|
|
15008
|
+
{"name": "HubName", "shape": "HubNameOrArn", "type": "string"},
|
|
15009
|
+
{"name": "HubContentName", "shape": "HubContentName", "type": "string"},
|
|
15010
|
+
{"name": "HubContentType", "shape": "HubContentType", "type": "string"},
|
|
15011
|
+
{"name": "MinVersion", "shape": "HubContentVersion", "type": "string"},
|
|
15012
|
+
],
|
|
15013
|
+
"type": "structure",
|
|
15014
|
+
},
|
|
15015
|
+
"UpdateHubContentReferenceResponse": {
|
|
15016
|
+
"members": [
|
|
15017
|
+
{"name": "HubArn", "shape": "HubArn", "type": "string"},
|
|
15018
|
+
{"name": "HubContentArn", "shape": "HubContentArn", "type": "string"},
|
|
15019
|
+
],
|
|
15020
|
+
"type": "structure",
|
|
15021
|
+
},
|
|
15022
|
+
"UpdateHubContentRequest": {
|
|
15023
|
+
"members": [
|
|
15024
|
+
{"name": "HubName", "shape": "HubNameOrArn", "type": "string"},
|
|
15025
|
+
{"name": "HubContentName", "shape": "HubContentName", "type": "string"},
|
|
15026
|
+
{"name": "HubContentType", "shape": "HubContentType", "type": "string"},
|
|
15027
|
+
{"name": "HubContentVersion", "shape": "HubContentVersion", "type": "string"},
|
|
15028
|
+
{"name": "HubContentDisplayName", "shape": "HubContentDisplayName", "type": "string"},
|
|
15029
|
+
{"name": "HubContentDescription", "shape": "HubContentDescription", "type": "string"},
|
|
15030
|
+
{"name": "HubContentMarkdown", "shape": "HubContentMarkdown", "type": "string"},
|
|
15031
|
+
{
|
|
15032
|
+
"name": "HubContentSearchKeywords",
|
|
15033
|
+
"shape": "HubContentSearchKeywordList",
|
|
15034
|
+
"type": "list",
|
|
15035
|
+
},
|
|
15036
|
+
{"name": "SupportStatus", "shape": "HubContentSupportStatus", "type": "string"},
|
|
15037
|
+
],
|
|
15038
|
+
"type": "structure",
|
|
15039
|
+
},
|
|
15040
|
+
"UpdateHubContentResponse": {
|
|
15041
|
+
"members": [
|
|
15042
|
+
{"name": "HubArn", "shape": "HubArn", "type": "string"},
|
|
15043
|
+
{"name": "HubContentArn", "shape": "HubContentArn", "type": "string"},
|
|
15044
|
+
],
|
|
15045
|
+
"type": "structure",
|
|
15046
|
+
},
|
|
14994
15047
|
"UpdateHubRequest": {
|
|
14995
15048
|
"members": [
|
|
14996
15049
|
{"name": "HubName", "shape": "HubNameOrArn", "type": "string"},
|
|
@@ -756,7 +756,10 @@ SAGEMAKER_PYTHON_SDK_CONFIG_SCHEMA = {
|
|
|
756
756
|
},
|
|
757
757
|
"PartnerApp": {
|
|
758
758
|
"type": "object",
|
|
759
|
-
"properties": {
|
|
759
|
+
"properties": {
|
|
760
|
+
"execution_role_arn": {"type": "string"},
|
|
761
|
+
"kms_key_id": {"type": "string"},
|
|
762
|
+
},
|
|
760
763
|
},
|
|
761
764
|
"Pipeline": {
|
|
762
765
|
"type": "object",
|
|
@@ -12221,6 +12221,7 @@ class HubContent(Base):
|
|
|
12221
12221
|
hub_content_search_keywords: The searchable keywords for the hub content.
|
|
12222
12222
|
hub_content_dependencies: The location of any dependencies that the hub content has, such as scripts, model artifacts, datasets, or notebooks.
|
|
12223
12223
|
failure_reason: The failure reason if importing hub content failed.
|
|
12224
|
+
last_modified_time: The last modified time of the hub content.
|
|
12224
12225
|
|
|
12225
12226
|
"""
|
|
12226
12227
|
|
|
@@ -12242,6 +12243,7 @@ class HubContent(Base):
|
|
|
12242
12243
|
hub_content_status: Optional[str] = Unassigned()
|
|
12243
12244
|
failure_reason: Optional[str] = Unassigned()
|
|
12244
12245
|
creation_time: Optional[datetime.datetime] = Unassigned()
|
|
12246
|
+
last_modified_time: Optional[datetime.datetime] = Unassigned()
|
|
12245
12247
|
hub_name: Optional[str] = Unassigned()
|
|
12246
12248
|
|
|
12247
12249
|
def get_name(self) -> str:
|
|
@@ -12360,6 +12362,63 @@ class HubContent(Base):
|
|
|
12360
12362
|
transform(response, "DescribeHubContentResponse", self)
|
|
12361
12363
|
return self
|
|
12362
12364
|
|
|
12365
|
+
@Base.add_validate_call
|
|
12366
|
+
def update(
|
|
12367
|
+
self,
|
|
12368
|
+
hub_content_type: str,
|
|
12369
|
+
hub_content_version: str,
|
|
12370
|
+
hub_content_display_name: Optional[str] = Unassigned(),
|
|
12371
|
+
hub_content_description: Optional[str] = Unassigned(),
|
|
12372
|
+
hub_content_markdown: Optional[str] = Unassigned(),
|
|
12373
|
+
hub_content_search_keywords: Optional[List[str]] = Unassigned(),
|
|
12374
|
+
support_status: Optional[str] = Unassigned(),
|
|
12375
|
+
) -> Optional["HubContent"]:
|
|
12376
|
+
"""
|
|
12377
|
+
Update a HubContent resource
|
|
12378
|
+
|
|
12379
|
+
Returns:
|
|
12380
|
+
The HubContent resource.
|
|
12381
|
+
|
|
12382
|
+
Raises:
|
|
12383
|
+
botocore.exceptions.ClientError: This exception is raised for AWS service related errors.
|
|
12384
|
+
The error message and error code can be parsed from the exception as follows:
|
|
12385
|
+
```
|
|
12386
|
+
try:
|
|
12387
|
+
# AWS service call here
|
|
12388
|
+
except botocore.exceptions.ClientError as e:
|
|
12389
|
+
error_message = e.response['Error']['Message']
|
|
12390
|
+
error_code = e.response['Error']['Code']
|
|
12391
|
+
```
|
|
12392
|
+
ResourceInUse: Resource being accessed is in use.
|
|
12393
|
+
ResourceNotFound: Resource being access is not found.
|
|
12394
|
+
"""
|
|
12395
|
+
|
|
12396
|
+
logger.info("Updating hub_content resource.")
|
|
12397
|
+
client = Base.get_sagemaker_client()
|
|
12398
|
+
|
|
12399
|
+
operation_input_args = {
|
|
12400
|
+
"HubName": self.hub_name,
|
|
12401
|
+
"HubContentName": self.hub_content_name,
|
|
12402
|
+
"HubContentType": hub_content_type,
|
|
12403
|
+
"HubContentVersion": hub_content_version,
|
|
12404
|
+
"HubContentDisplayName": hub_content_display_name,
|
|
12405
|
+
"HubContentDescription": hub_content_description,
|
|
12406
|
+
"HubContentMarkdown": hub_content_markdown,
|
|
12407
|
+
"HubContentSearchKeywords": hub_content_search_keywords,
|
|
12408
|
+
"SupportStatus": support_status,
|
|
12409
|
+
}
|
|
12410
|
+
logger.debug(f"Input request: {operation_input_args}")
|
|
12411
|
+
# serialize the input request
|
|
12412
|
+
operation_input_args = serialize(operation_input_args)
|
|
12413
|
+
logger.debug(f"Serialized input request: {operation_input_args}")
|
|
12414
|
+
|
|
12415
|
+
# create the resource
|
|
12416
|
+
response = client.update_hub_content(**operation_input_args)
|
|
12417
|
+
logger.debug(f"Response: {response}")
|
|
12418
|
+
self.refresh()
|
|
12419
|
+
|
|
12420
|
+
return self
|
|
12421
|
+
|
|
12363
12422
|
@Base.add_validate_call
|
|
12364
12423
|
def delete(
|
|
12365
12424
|
self,
|
|
@@ -12400,7 +12459,7 @@ class HubContent(Base):
|
|
|
12400
12459
|
@Base.add_validate_call
|
|
12401
12460
|
def wait_for_status(
|
|
12402
12461
|
self,
|
|
12403
|
-
target_status: Literal["Supported", "Deprecated"],
|
|
12462
|
+
target_status: Literal["Supported", "Deprecated", "Restricted"],
|
|
12404
12463
|
poll: int = 5,
|
|
12405
12464
|
timeout: Optional[int] = None,
|
|
12406
12465
|
) -> None:
|
|
@@ -12461,6 +12520,7 @@ class HubContent(Base):
|
|
|
12461
12520
|
hub_content_display_name: Optional[str] = Unassigned(),
|
|
12462
12521
|
hub_content_description: Optional[str] = Unassigned(),
|
|
12463
12522
|
hub_content_markdown: Optional[str] = Unassigned(),
|
|
12523
|
+
support_status: Optional[str] = Unassigned(),
|
|
12464
12524
|
hub_content_search_keywords: Optional[List[str]] = Unassigned(),
|
|
12465
12525
|
tags: Optional[List[Tag]] = Unassigned(),
|
|
12466
12526
|
session: Optional[Session] = None,
|
|
@@ -12479,6 +12539,7 @@ class HubContent(Base):
|
|
|
12479
12539
|
hub_content_display_name: The display name of the hub content to import.
|
|
12480
12540
|
hub_content_description: A description of the hub content to import.
|
|
12481
12541
|
hub_content_markdown: A string that provides a description of the hub content. This string can include links, tables, and standard markdown formating.
|
|
12542
|
+
support_status: The status of the hub content resource.
|
|
12482
12543
|
hub_content_search_keywords: The searchable keywords of the hub content.
|
|
12483
12544
|
tags: Any tags associated with the hub content.
|
|
12484
12545
|
session: Boto3 session.
|
|
@@ -12517,6 +12578,7 @@ class HubContent(Base):
|
|
|
12517
12578
|
"HubContentDescription": hub_content_description,
|
|
12518
12579
|
"HubContentMarkdown": hub_content_markdown,
|
|
12519
12580
|
"HubContentDocument": hub_content_document,
|
|
12581
|
+
"SupportStatus": support_status,
|
|
12520
12582
|
"HubContentSearchKeywords": hub_content_search_keywords,
|
|
12521
12583
|
"Tags": tags,
|
|
12522
12584
|
}
|
|
@@ -12714,6 +12776,56 @@ class HubContentReference(Base):
|
|
|
12714
12776
|
transformed_response = transform(response, "CreateHubContentReferenceResponse")
|
|
12715
12777
|
return cls(**operation_input_args, **transformed_response)
|
|
12716
12778
|
|
|
12779
|
+
@Base.add_validate_call
|
|
12780
|
+
def update(
|
|
12781
|
+
self,
|
|
12782
|
+
hub_content_type: str,
|
|
12783
|
+
min_version: Optional[str] = Unassigned(),
|
|
12784
|
+
) -> Optional["HubContentReference"]:
|
|
12785
|
+
"""
|
|
12786
|
+
Update a HubContentReference resource
|
|
12787
|
+
|
|
12788
|
+
Parameters:
|
|
12789
|
+
hub_content_type: The content type of the resource that you want to update. Only specify a ModelReference resource for this API. To update a Model or Notebook resource, use the UpdateHubContent API instead.
|
|
12790
|
+
|
|
12791
|
+
Returns:
|
|
12792
|
+
The HubContentReference resource.
|
|
12793
|
+
|
|
12794
|
+
Raises:
|
|
12795
|
+
botocore.exceptions.ClientError: This exception is raised for AWS service related errors.
|
|
12796
|
+
The error message and error code can be parsed from the exception as follows:
|
|
12797
|
+
```
|
|
12798
|
+
try:
|
|
12799
|
+
# AWS service call here
|
|
12800
|
+
except botocore.exceptions.ClientError as e:
|
|
12801
|
+
error_message = e.response['Error']['Message']
|
|
12802
|
+
error_code = e.response['Error']['Code']
|
|
12803
|
+
```
|
|
12804
|
+
ResourceInUse: Resource being accessed is in use.
|
|
12805
|
+
ResourceNotFound: Resource being access is not found.
|
|
12806
|
+
"""
|
|
12807
|
+
|
|
12808
|
+
logger.info("Updating hub_content_reference resource.")
|
|
12809
|
+
client = Base.get_sagemaker_client()
|
|
12810
|
+
|
|
12811
|
+
operation_input_args = {
|
|
12812
|
+
"HubName": self.hub_name,
|
|
12813
|
+
"HubContentName": self.hub_content_name,
|
|
12814
|
+
"HubContentType": hub_content_type,
|
|
12815
|
+
"MinVersion": min_version,
|
|
12816
|
+
}
|
|
12817
|
+
logger.debug(f"Input request: {operation_input_args}")
|
|
12818
|
+
# serialize the input request
|
|
12819
|
+
operation_input_args = serialize(operation_input_args)
|
|
12820
|
+
logger.debug(f"Serialized input request: {operation_input_args}")
|
|
12821
|
+
|
|
12822
|
+
# create the resource
|
|
12823
|
+
response = client.update_hub_content_reference(**operation_input_args)
|
|
12824
|
+
logger.debug(f"Response: {response}")
|
|
12825
|
+
self.refresh()
|
|
12826
|
+
|
|
12827
|
+
return self
|
|
12828
|
+
|
|
12717
12829
|
@Base.add_validate_call
|
|
12718
12830
|
def delete(
|
|
12719
12831
|
self,
|
|
@@ -23528,7 +23640,9 @@ class PartnerApp(Base):
|
|
|
23528
23640
|
type: The type of SageMaker Partner AI App. Must be one of the following: lakera-guard, comet, deepchecks-llm-evaluation, or fiddler.
|
|
23529
23641
|
status: The status of the SageMaker Partner AI App.
|
|
23530
23642
|
creation_time: The time that the SageMaker Partner AI App was created.
|
|
23643
|
+
last_modified_time: The time that the SageMaker Partner AI App was last modified.
|
|
23531
23644
|
execution_role_arn: The ARN of the IAM role associated with the SageMaker Partner AI App.
|
|
23645
|
+
kms_key_id: The Amazon Web Services KMS customer managed key used to encrypt the data at rest associated with SageMaker Partner AI Apps.
|
|
23532
23646
|
base_url: The URL of the SageMaker Partner AI App that the Application SDK uses to support in-app calls for the user.
|
|
23533
23647
|
maintenance_config: Maintenance configuration settings for the SageMaker Partner AI App.
|
|
23534
23648
|
tier: The instance type and size of the cluster attached to the SageMaker Partner AI App.
|
|
@@ -23545,7 +23659,9 @@ class PartnerApp(Base):
|
|
|
23545
23659
|
type: Optional[str] = Unassigned()
|
|
23546
23660
|
status: Optional[str] = Unassigned()
|
|
23547
23661
|
creation_time: Optional[datetime.datetime] = Unassigned()
|
|
23662
|
+
last_modified_time: Optional[datetime.datetime] = Unassigned()
|
|
23548
23663
|
execution_role_arn: Optional[str] = Unassigned()
|
|
23664
|
+
kms_key_id: Optional[str] = Unassigned()
|
|
23549
23665
|
base_url: Optional[str] = Unassigned()
|
|
23550
23666
|
maintenance_config: Optional[PartnerAppMaintenanceConfig] = Unassigned()
|
|
23551
23667
|
tier: Optional[str] = Unassigned()
|
|
@@ -23594,6 +23710,7 @@ class PartnerApp(Base):
|
|
|
23594
23710
|
execution_role_arn: str,
|
|
23595
23711
|
tier: str,
|
|
23596
23712
|
auth_type: str,
|
|
23713
|
+
kms_key_id: Optional[str] = Unassigned(),
|
|
23597
23714
|
maintenance_config: Optional[PartnerAppMaintenanceConfig] = Unassigned(),
|
|
23598
23715
|
application_config: Optional[PartnerAppConfig] = Unassigned(),
|
|
23599
23716
|
enable_iam_session_based_identity: Optional[bool] = Unassigned(),
|
|
@@ -23611,6 +23728,7 @@ class PartnerApp(Base):
|
|
|
23611
23728
|
execution_role_arn: The ARN of the IAM role that the partner application uses.
|
|
23612
23729
|
tier: Indicates the instance type and size of the cluster attached to the SageMaker Partner AI App.
|
|
23613
23730
|
auth_type: The authorization type that users use to access the SageMaker Partner AI App.
|
|
23731
|
+
kms_key_id: SageMaker Partner AI Apps uses Amazon Web Services KMS to encrypt data at rest using an Amazon Web Services managed key by default. For more control, specify a customer managed key.
|
|
23614
23732
|
maintenance_config: Maintenance configuration settings for the SageMaker Partner AI App.
|
|
23615
23733
|
application_config: Configuration settings for the SageMaker Partner AI App.
|
|
23616
23734
|
enable_iam_session_based_identity: When set to TRUE, the SageMaker Partner AI App sets the Amazon Web Services IAM session name or the authenticated IAM user as the identity of the SageMaker Partner AI App user.
|
|
@@ -23648,6 +23766,7 @@ class PartnerApp(Base):
|
|
|
23648
23766
|
"Name": name,
|
|
23649
23767
|
"Type": type,
|
|
23650
23768
|
"ExecutionRoleArn": execution_role_arn,
|
|
23769
|
+
"KmsKeyId": kms_key_id,
|
|
23651
23770
|
"MaintenanceConfig": maintenance_config,
|
|
23652
23771
|
"Tier": tier,
|
|
23653
23772
|
"ApplicationConfig": application_config,
|
|
@@ -835,6 +835,19 @@ class AlgorithmSummary(Base):
|
|
|
835
835
|
algorithm_description: Optional[str] = Unassigned()
|
|
836
836
|
|
|
837
837
|
|
|
838
|
+
class HubAccessConfig(Base):
|
|
839
|
+
"""
|
|
840
|
+
HubAccessConfig
|
|
841
|
+
The configuration for a private hub model reference that points to a public SageMaker JumpStart model. For more information about private hubs, see Private curated hubs for foundation model access control in JumpStart.
|
|
842
|
+
|
|
843
|
+
Attributes
|
|
844
|
+
----------------------
|
|
845
|
+
hub_content_arn: The ARN of your private model hub content. This should be a ModelReference resource type that points to a SageMaker JumpStart public hub model.
|
|
846
|
+
"""
|
|
847
|
+
|
|
848
|
+
hub_content_arn: str
|
|
849
|
+
|
|
850
|
+
|
|
838
851
|
class S3DataSource(Base):
|
|
839
852
|
"""
|
|
840
853
|
S3DataSource
|
|
@@ -847,6 +860,8 @@ class S3DataSource(Base):
|
|
|
847
860
|
s3_data_distribution_type: If you want SageMaker to replicate the entire dataset on each ML compute instance that is launched for model training, specify FullyReplicated. If you want SageMaker to replicate a subset of data on each ML compute instance that is launched for model training, specify ShardedByS3Key. If there are n ML compute instances launched for a training job, each instance gets approximately 1/n of the number of S3 objects. In this case, model training on each machine uses only the subset of training data. Don't choose more ML compute instances for training than available S3 objects. If you do, some nodes won't get any data and you will pay for nodes that aren't getting any training data. This applies in both File and Pipe modes. Keep this in mind when developing algorithms. In distributed training, where you use multiple ML compute EC2 instances, you might choose ShardedByS3Key. If the algorithm requires copying training data to the ML storage volume (when TrainingInputMode is set to File), this copies 1/n of the number of objects.
|
|
848
861
|
attribute_names: A list of one or more attribute names to use that are found in a specified augmented manifest file.
|
|
849
862
|
instance_group_names: A list of names of instance groups that get data from the S3 data source.
|
|
863
|
+
model_access_config
|
|
864
|
+
hub_access_config: The configuration for a private hub model reference that points to a SageMaker JumpStart public hub model.
|
|
850
865
|
"""
|
|
851
866
|
|
|
852
867
|
s3_data_type: str
|
|
@@ -854,6 +869,8 @@ class S3DataSource(Base):
|
|
|
854
869
|
s3_data_distribution_type: Optional[str] = Unassigned()
|
|
855
870
|
attribute_names: Optional[List[str]] = Unassigned()
|
|
856
871
|
instance_group_names: Optional[List[str]] = Unassigned()
|
|
872
|
+
model_access_config: Optional[ModelAccessConfig] = Unassigned()
|
|
873
|
+
hub_access_config: Optional[HubAccessConfig] = Unassigned()
|
|
857
874
|
|
|
858
875
|
|
|
859
876
|
class FileSystemDataSource(Base):
|
|
@@ -4368,7 +4385,7 @@ class KernelGatewayAppSettings(Base):
|
|
|
4368
4385
|
Attributes
|
|
4369
4386
|
----------------------
|
|
4370
4387
|
default_resource_spec: The default instance type and the Amazon Resource Name (ARN) of the default SageMaker AI image used by the KernelGateway app. The Amazon SageMaker AI Studio UI does not use the default instance type value set here. The default instance type set here is used when Apps are created using the CLI or CloudFormation and the instance type parameter value is not passed.
|
|
4371
|
-
custom_images: A list of custom SageMaker AI images that are configured to run as a KernelGateway app.
|
|
4388
|
+
custom_images: A list of custom SageMaker AI images that are configured to run as a KernelGateway app. The maximum number of custom images are as follows. On a domain level: 200 On a space level: 5 On a user profile level: 5
|
|
4372
4389
|
lifecycle_config_arns: The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the the user profile or domain. To remove a Lifecycle Config, you must set LifecycleConfigArns to an empty list.
|
|
4373
4390
|
"""
|
|
4374
4391
|
|
|
@@ -7101,7 +7118,7 @@ class ProcessingOutputConfig(Base):
|
|
|
7101
7118
|
Attributes
|
|
7102
7119
|
----------------------
|
|
7103
7120
|
outputs: An array of outputs configuring the data to upload from the processing container.
|
|
7104
|
-
kms_key_id: The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt the processing job output. KmsKeyId can be an ID of a KMS key, ARN of a KMS key,
|
|
7121
|
+
kms_key_id: The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt the processing job output. KmsKeyId can be an ID of a KMS key, ARN of a KMS key, or alias of a KMS key. The KmsKeyId is applied to all outputs.
|
|
7105
7122
|
"""
|
|
7106
7123
|
|
|
7107
7124
|
outputs: List[ProcessingOutput]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: sagemaker-core
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.27
|
|
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
|
|
@@ -28,6 +28,7 @@ Requires-Dist: black<25.0.0,>=24.3.0; extra == "codegen"
|
|
|
28
28
|
Requires-Dist: pandas<3.0.0,>=2.0.0; extra == "codegen"
|
|
29
29
|
Requires-Dist: pytest<9.0.0,>=8.0.0; extra == "codegen"
|
|
30
30
|
Requires-Dist: pylint<4.0.0,>=3.0.0; extra == "codegen"
|
|
31
|
+
Dynamic: license-file
|
|
31
32
|
|
|
32
33
|
.. image:: https://github.com/aws/sagemaker-python-sdk/raw/master/branding/icon/sagemaker-banner.png
|
|
33
34
|
:height: 100px
|
sagemaker_core-1.0.25/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.0.25
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/code_injection/__init__.py
RENAMED
|
File without changes
|
{sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/code_injection/base.py
RENAMED
|
File without changes
|
{sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/code_injection/codec.py
RENAMED
|
File without changes
|
{sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/main/code_injection/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/tools/resources_codegen.py
RENAMED
|
File without changes
|
{sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/tools/resources_extractor.py
RENAMED
|
File without changes
|
|
File without changes
|
{sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core/tools/shapes_extractor.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_core-1.0.25 → sagemaker_core-1.0.27}/src/sagemaker_core.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|