sagemaker-core 1.0.1__py3-none-any.whl → 1.0.3__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.
- sagemaker_core/main/code_injection/shape_dag.py +49 -3
- sagemaker_core/main/resources.py +1058 -411
- sagemaker_core/main/shapes.py +70 -2
- sagemaker_core/main/utils.py +6 -1
- sagemaker_core/tools/constants.py +2 -0
- sagemaker_core/tools/resources_codegen.py +9 -6
- sagemaker_core/tools/templates.py +24 -11
- {sagemaker_core-1.0.1.dist-info → sagemaker_core-1.0.3.dist-info}/METADATA +3 -2
- {sagemaker_core-1.0.1.dist-info → sagemaker_core-1.0.3.dist-info}/RECORD +12 -12
- {sagemaker_core-1.0.1.dist-info → sagemaker_core-1.0.3.dist-info}/WHEEL +1 -1
- {sagemaker_core-1.0.1.dist-info → sagemaker_core-1.0.3.dist-info}/LICENSE +0 -0
- {sagemaker_core-1.0.1.dist-info → sagemaker_core-1.0.3.dist-info}/top_level.txt +0 -0
sagemaker_core/main/shapes.py
CHANGED
|
@@ -18,7 +18,7 @@ from sagemaker_core.main.utils import Unassigned
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class Base(BaseModel):
|
|
21
|
-
model_config = ConfigDict(protected_namespaces=(), validate_assignment=True)
|
|
21
|
+
model_config = ConfigDict(protected_namespaces=(), validate_assignment=True, extra="forbid")
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
class ActionSource(Base):
|
|
@@ -919,6 +919,38 @@ class AppImageConfigDetails(Base):
|
|
|
919
919
|
code_editor_app_image_config: Optional[CodeEditorAppImageConfig] = Unassigned()
|
|
920
920
|
|
|
921
921
|
|
|
922
|
+
class IdleSettings(Base):
|
|
923
|
+
"""
|
|
924
|
+
IdleSettings
|
|
925
|
+
Settings related to idle shutdown of Studio applications.
|
|
926
|
+
|
|
927
|
+
Attributes
|
|
928
|
+
----------------------
|
|
929
|
+
lifecycle_management: Indicates whether idle shutdown is activated for the application type.
|
|
930
|
+
idle_timeout_in_minutes: The time that SageMaker waits after the application becomes idle before shutting it down.
|
|
931
|
+
min_idle_timeout_in_minutes: The minimum value in minutes that custom idle shutdown can be set to by the user.
|
|
932
|
+
max_idle_timeout_in_minutes: The maximum value in minutes that custom idle shutdown can be set to by the user.
|
|
933
|
+
"""
|
|
934
|
+
|
|
935
|
+
lifecycle_management: Optional[str] = Unassigned()
|
|
936
|
+
idle_timeout_in_minutes: Optional[int] = Unassigned()
|
|
937
|
+
min_idle_timeout_in_minutes: Optional[int] = Unassigned()
|
|
938
|
+
max_idle_timeout_in_minutes: Optional[int] = Unassigned()
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
class AppLifecycleManagement(Base):
|
|
942
|
+
"""
|
|
943
|
+
AppLifecycleManagement
|
|
944
|
+
Settings that are used to configure and manage the lifecycle of Amazon SageMaker Studio applications.
|
|
945
|
+
|
|
946
|
+
Attributes
|
|
947
|
+
----------------------
|
|
948
|
+
idle_settings: Settings related to idle shutdown of Studio applications.
|
|
949
|
+
"""
|
|
950
|
+
|
|
951
|
+
idle_settings: Optional[IdleSettings] = Unassigned()
|
|
952
|
+
|
|
953
|
+
|
|
922
954
|
class AppSpecification(Base):
|
|
923
955
|
"""
|
|
924
956
|
AppSpecification
|
|
@@ -2810,11 +2842,13 @@ class CodeEditorAppSettings(Base):
|
|
|
2810
2842
|
default_resource_spec
|
|
2811
2843
|
custom_images: A list of custom SageMaker images that are configured to run as a Code Editor app.
|
|
2812
2844
|
lifecycle_config_arns: The Amazon Resource Name (ARN) of the Code Editor application lifecycle configuration.
|
|
2845
|
+
app_lifecycle_management: Settings that are used to configure and manage the lifecycle of CodeEditor applications.
|
|
2813
2846
|
"""
|
|
2814
2847
|
|
|
2815
2848
|
default_resource_spec: Optional[ResourceSpec] = Unassigned()
|
|
2816
2849
|
custom_images: Optional[List[CustomImage]] = Unassigned()
|
|
2817
2850
|
lifecycle_config_arns: Optional[List[str]] = Unassigned()
|
|
2851
|
+
app_lifecycle_management: Optional[AppLifecycleManagement] = Unassigned()
|
|
2818
2852
|
|
|
2819
2853
|
|
|
2820
2854
|
class CodeRepository(Base):
|
|
@@ -3055,7 +3089,7 @@ class ContainerDefinition(Base):
|
|
|
3055
3089
|
model_data_url: The S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix). The S3 path is required for SageMaker built-in algorithms, but not if you use your own algorithms. For more information on built-in algorithms, see Common Parameters. The model artifacts must be in an S3 bucket that is in the same region as the model or endpoint you are creating. If you provide a value for this parameter, SageMaker uses Amazon Web Services Security Token Service to download model artifacts from the S3 path you provide. Amazon Web Services STS is activated in your Amazon Web Services account by default. If you previously deactivated Amazon Web Services STS for a region, you need to reactivate Amazon Web Services STS for that region. For more information, see Activating and Deactivating Amazon Web Services STS in an Amazon Web Services Region in the Amazon Web Services Identity and Access Management User Guide. If you use a built-in algorithm to create a model, SageMaker requires that you provide a S3 path to the model artifacts in ModelDataUrl.
|
|
3056
3090
|
model_data_source: Specifies the location of ML model data to deploy. Currently you cannot use ModelDataSource in conjunction with SageMaker batch transform, SageMaker serverless endpoints, SageMaker multi-model endpoints, and SageMaker Marketplace.
|
|
3057
3091
|
additional_model_data_sources: Data sources that are available to your model in addition to the one that you specify for ModelDataSource when you use the CreateModel action.
|
|
3058
|
-
environment: The environment variables to set in the Docker container. The maximum length of each key and value in the Environment map is 1024 bytes. The maximum length of all keys and values in the map, combined, is 32 KB. If you pass multiple containers to a CreateModel request, then the maximum length of all of their maps, combined, is also 32 KB.
|
|
3092
|
+
environment: The environment variables to set in the Docker container. Don't include any sensitive data in your environment variables. The maximum length of each key and value in the Environment map is 1024 bytes. The maximum length of all keys and values in the map, combined, is 32 KB. If you pass multiple containers to a CreateModel request, then the maximum length of all of their maps, combined, is also 32 KB.
|
|
3059
3093
|
model_package_name: The name or Amazon Resource Name (ARN) of the model package to use to create the model.
|
|
3060
3094
|
inference_specification_name: The inference specification name in the model package version.
|
|
3061
3095
|
multi_model_config: Specifies additional configuration for multi-model endpoints.
|
|
@@ -3736,6 +3770,7 @@ class JupyterLabAppSettings(Base):
|
|
|
3736
3770
|
custom_images: A list of custom SageMaker images that are configured to run as a JupyterLab app.
|
|
3737
3771
|
lifecycle_config_arns: The Amazon Resource Name (ARN) of the lifecycle configurations attached to the user profile or domain. To remove a lifecycle config, you must set LifecycleConfigArns to an empty list.
|
|
3738
3772
|
code_repositories: A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterLab application.
|
|
3773
|
+
app_lifecycle_management: Indicates whether idle shutdown is activated for JupyterLab applications.
|
|
3739
3774
|
emr_settings: The configuration parameters that specify the IAM roles assumed by the execution role of SageMaker (assumable roles) and the cluster instances or job execution environments (execution roles or runtime roles) to manage and access resources required for running Amazon EMR clusters or Amazon EMR Serverless applications.
|
|
3740
3775
|
"""
|
|
3741
3776
|
|
|
@@ -3743,6 +3778,7 @@ class JupyterLabAppSettings(Base):
|
|
|
3743
3778
|
custom_images: Optional[List[CustomImage]] = Unassigned()
|
|
3744
3779
|
lifecycle_config_arns: Optional[List[str]] = Unassigned()
|
|
3745
3780
|
code_repositories: Optional[List[CodeRepository]] = Unassigned()
|
|
3781
|
+
app_lifecycle_management: Optional[AppLifecycleManagement] = Unassigned()
|
|
3746
3782
|
emr_settings: Optional[EmrSettings] = Unassigned()
|
|
3747
3783
|
|
|
3748
3784
|
|
|
@@ -3856,6 +3892,7 @@ class UserSettings(Base):
|
|
|
3856
3892
|
custom_posix_user_config: Details about the POSIX identity that is used for file system operations.
|
|
3857
3893
|
custom_file_system_configs: The settings for assigning a custom file system to a user profile. Permitted users can access this file system in Amazon SageMaker Studio.
|
|
3858
3894
|
studio_web_portal_settings: Studio settings. If these settings are applied on a user level, they take priority over the settings applied on a domain level.
|
|
3895
|
+
auto_mount_home_efs: Indicates whether auto-mounting of an EFS volume is supported for the user profile. The DefaultAsDomain value is only supported for user profiles. Do not use the DefaultAsDomain value when setting this parameter for a domain.
|
|
3859
3896
|
"""
|
|
3860
3897
|
|
|
3861
3898
|
execution_role: Optional[str] = Unassigned()
|
|
@@ -3875,6 +3912,7 @@ class UserSettings(Base):
|
|
|
3875
3912
|
custom_posix_user_config: Optional[CustomPosixUserConfig] = Unassigned()
|
|
3876
3913
|
custom_file_system_configs: Optional[List[CustomFileSystemConfig]] = Unassigned()
|
|
3877
3914
|
studio_web_portal_settings: Optional[StudioWebPortalSettings] = Unassigned()
|
|
3915
|
+
auto_mount_home_efs: Optional[str] = Unassigned()
|
|
3878
3916
|
|
|
3879
3917
|
|
|
3880
3918
|
class RStudioServerProDomainSettings(Base):
|
|
@@ -6401,6 +6439,32 @@ class ServiceCatalogProvisioningDetails(Base):
|
|
|
6401
6439
|
provisioning_parameters: Optional[List[ProvisioningParameter]] = Unassigned()
|
|
6402
6440
|
|
|
6403
6441
|
|
|
6442
|
+
class SpaceIdleSettings(Base):
|
|
6443
|
+
"""
|
|
6444
|
+
SpaceIdleSettings
|
|
6445
|
+
Settings related to idle shutdown of Studio applications in a space.
|
|
6446
|
+
|
|
6447
|
+
Attributes
|
|
6448
|
+
----------------------
|
|
6449
|
+
idle_timeout_in_minutes: The time that SageMaker waits after the application becomes idle before shutting it down.
|
|
6450
|
+
"""
|
|
6451
|
+
|
|
6452
|
+
idle_timeout_in_minutes: Optional[int] = Unassigned()
|
|
6453
|
+
|
|
6454
|
+
|
|
6455
|
+
class SpaceAppLifecycleManagement(Base):
|
|
6456
|
+
"""
|
|
6457
|
+
SpaceAppLifecycleManagement
|
|
6458
|
+
Settings that are used to configure and manage the lifecycle of Amazon SageMaker Studio applications in a space.
|
|
6459
|
+
|
|
6460
|
+
Attributes
|
|
6461
|
+
----------------------
|
|
6462
|
+
idle_settings: Settings related to idle shutdown of Studio applications.
|
|
6463
|
+
"""
|
|
6464
|
+
|
|
6465
|
+
idle_settings: Optional[SpaceIdleSettings] = Unassigned()
|
|
6466
|
+
|
|
6467
|
+
|
|
6404
6468
|
class SpaceCodeEditorAppSettings(Base):
|
|
6405
6469
|
"""
|
|
6406
6470
|
SpaceCodeEditorAppSettings
|
|
@@ -6409,9 +6473,11 @@ class SpaceCodeEditorAppSettings(Base):
|
|
|
6409
6473
|
Attributes
|
|
6410
6474
|
----------------------
|
|
6411
6475
|
default_resource_spec
|
|
6476
|
+
app_lifecycle_management: Settings that are used to configure and manage the lifecycle of CodeEditor applications in a space.
|
|
6412
6477
|
"""
|
|
6413
6478
|
|
|
6414
6479
|
default_resource_spec: Optional[ResourceSpec] = Unassigned()
|
|
6480
|
+
app_lifecycle_management: Optional[SpaceAppLifecycleManagement] = Unassigned()
|
|
6415
6481
|
|
|
6416
6482
|
|
|
6417
6483
|
class SpaceJupyterLabAppSettings(Base):
|
|
@@ -6423,10 +6489,12 @@ class SpaceJupyterLabAppSettings(Base):
|
|
|
6423
6489
|
----------------------
|
|
6424
6490
|
default_resource_spec
|
|
6425
6491
|
code_repositories: A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterLab application.
|
|
6492
|
+
app_lifecycle_management: Settings that are used to configure and manage the lifecycle of JupyterLab applications in a space.
|
|
6426
6493
|
"""
|
|
6427
6494
|
|
|
6428
6495
|
default_resource_spec: Optional[ResourceSpec] = Unassigned()
|
|
6429
6496
|
code_repositories: Optional[List[CodeRepository]] = Unassigned()
|
|
6497
|
+
app_lifecycle_management: Optional[SpaceAppLifecycleManagement] = Unassigned()
|
|
6430
6498
|
|
|
6431
6499
|
|
|
6432
6500
|
class EbsStorageSettings(Base):
|
sagemaker_core/main/utils.py
CHANGED
|
@@ -267,7 +267,7 @@ def pascal_to_snake(pascal_str):
|
|
|
267
267
|
|
|
268
268
|
|
|
269
269
|
def is_not_primitive(obj):
|
|
270
|
-
return not isinstance(obj, (int, float, str, bool,
|
|
270
|
+
return not isinstance(obj, (int, float, str, bool, datetime.datetime))
|
|
271
271
|
|
|
272
272
|
|
|
273
273
|
def is_not_str_dict(obj):
|
|
@@ -438,6 +438,11 @@ class ResourceIterator(Generic[T]):
|
|
|
438
438
|
|
|
439
439
|
if self.custom_key_mapping:
|
|
440
440
|
init_data = {self.custom_key_mapping.get(k, k): v for k, v in init_data.items()}
|
|
441
|
+
|
|
442
|
+
# Filter out the fields that are not in the resource class
|
|
443
|
+
fields = self.resource_cls.__annotations__
|
|
444
|
+
init_data = {k: v for k, v in init_data.items() if k in fields}
|
|
445
|
+
|
|
441
446
|
resource_object = self.resource_cls(**init_data)
|
|
442
447
|
|
|
443
448
|
# If the resource object has refresh method, refresh and return it
|
|
@@ -56,7 +56,6 @@ from sagemaker_core.tools.templates import (
|
|
|
56
56
|
RESOURCE_BASE_CLASS_TEMPLATE,
|
|
57
57
|
RETURN_ITERATOR_TEMPLATE,
|
|
58
58
|
SERIALIZE_INPUT_TEMPLATE,
|
|
59
|
-
SERIALIZE_LIST_INPUT_TEMPLATE,
|
|
60
59
|
STOP_METHOD_TEMPLATE,
|
|
61
60
|
DELETE_METHOD_TEMPLATE,
|
|
62
61
|
WAIT_FOR_DELETE_METHOD_TEMPLATE,
|
|
@@ -897,7 +896,8 @@ class ResourcesCodeGen:
|
|
|
897
896
|
resource_name=resource_name,
|
|
898
897
|
create_args=create_args,
|
|
899
898
|
resource_lower=resource_lower,
|
|
900
|
-
|
|
899
|
+
# TODO: change service name based on the service - runtime, sagemaker, etc.
|
|
900
|
+
service_name="sagemaker",
|
|
901
901
|
operation_input_args=operation_input_args,
|
|
902
902
|
operation=operation,
|
|
903
903
|
get_args=get_args,
|
|
@@ -908,7 +908,8 @@ class ResourcesCodeGen:
|
|
|
908
908
|
resource_name=resource_name,
|
|
909
909
|
create_args=create_args,
|
|
910
910
|
resource_lower=resource_lower,
|
|
911
|
-
|
|
911
|
+
# TODO: change service name based on the service - runtime, sagemaker, etc.
|
|
912
|
+
service_name="sagemaker",
|
|
912
913
|
operation_input_args=operation_input_args,
|
|
913
914
|
operation=operation,
|
|
914
915
|
get_args=get_args,
|
|
@@ -1074,7 +1075,8 @@ class ResourcesCodeGen:
|
|
|
1074
1075
|
resource_name=resource_name,
|
|
1075
1076
|
import_args=import_args,
|
|
1076
1077
|
resource_lower=resource_lower,
|
|
1077
|
-
|
|
1078
|
+
# TODO: change service name based on the service - runtime, sagemaker, etc.
|
|
1079
|
+
service_name="sagemaker",
|
|
1078
1080
|
operation_input_args=operation_input_args,
|
|
1079
1081
|
operation=operation,
|
|
1080
1082
|
get_args=get_args,
|
|
@@ -1378,7 +1380,8 @@ class ResourcesCodeGen:
|
|
|
1378
1380
|
formatted_method = GET_METHOD_TEMPLATE.format(
|
|
1379
1381
|
docstring=docstring,
|
|
1380
1382
|
resource_name=resource_name,
|
|
1381
|
-
|
|
1383
|
+
# TODO: change service name based on the service - runtime, sagemaker, etc.
|
|
1384
|
+
service_name="sagemaker",
|
|
1382
1385
|
describe_args=describe_args,
|
|
1383
1386
|
resource_lower=resource_lower,
|
|
1384
1387
|
operation_input_args=operation_input_args,
|
|
@@ -1686,7 +1689,7 @@ class ResourcesCodeGen:
|
|
|
1686
1689
|
|
|
1687
1690
|
resource_iterator_args = ",\n".join(resource_iterator_args_list)
|
|
1688
1691
|
resource_iterator_args = add_indent(resource_iterator_args, 8)
|
|
1689
|
-
serialize_operation_input =
|
|
1692
|
+
serialize_operation_input = SERIALIZE_INPUT_TEMPLATE.format(
|
|
1690
1693
|
operation_input_args=operation_input_args
|
|
1691
1694
|
)
|
|
1692
1695
|
initialize_client = INITIALIZE_CLIENT_TEMPLATE.format(service_name=method.service_name)
|
|
@@ -291,6 +291,10 @@ def get(
|
|
|
291
291
|
operation_input_args = {{
|
|
292
292
|
{operation_input_args}
|
|
293
293
|
}}
|
|
294
|
+
# serialize the input request
|
|
295
|
+
operation_input_args = serialize(operation_input_args)
|
|
296
|
+
logger.debug(f"Serialized input request: {{operation_input_args}}")
|
|
297
|
+
|
|
294
298
|
client = Base.get_sagemaker_client(session=session, region_name=region, service_name='{service_name}')
|
|
295
299
|
response = client.{operation}(**operation_input_args)
|
|
296
300
|
|
|
@@ -312,6 +316,10 @@ def refresh(
|
|
|
312
316
|
operation_input_args = {{
|
|
313
317
|
{operation_input_args}
|
|
314
318
|
}}
|
|
319
|
+
# serialize the input request
|
|
320
|
+
operation_input_args = serialize(operation_input_args)
|
|
321
|
+
logger.debug(f"Serialized input request: {{operation_input_args}}")
|
|
322
|
+
|
|
315
323
|
client = Base.get_sagemaker_client()
|
|
316
324
|
response = client.{operation}(**operation_input_args)
|
|
317
325
|
|
|
@@ -497,6 +505,10 @@ def delete(
|
|
|
497
505
|
operation_input_args = {{
|
|
498
506
|
{operation_input_args}
|
|
499
507
|
}}
|
|
508
|
+
# serialize the input request
|
|
509
|
+
operation_input_args = serialize(operation_input_args)
|
|
510
|
+
logger.debug(f"Serialized input request: {{operation_input_args}}")
|
|
511
|
+
|
|
500
512
|
client.{operation}(**operation_input_args)
|
|
501
513
|
|
|
502
514
|
logger.info(f"Deleting {{self.__class__.__name__}} - {{self.get_name()}}")
|
|
@@ -511,6 +523,10 @@ def stop(self) -> None:
|
|
|
511
523
|
operation_input_args = {{
|
|
512
524
|
{operation_input_args}
|
|
513
525
|
}}
|
|
526
|
+
# serialize the input request
|
|
527
|
+
operation_input_args = serialize(operation_input_args)
|
|
528
|
+
logger.debug(f"Serialized input request: {{operation_input_args}}")
|
|
529
|
+
|
|
514
530
|
client.{operation}(**operation_input_args)
|
|
515
531
|
|
|
516
532
|
logger.info(f"Stopping {{self.__class__.__name__}} - {{self.get_name()}}")
|
|
@@ -532,7 +548,9 @@ def get_all(
|
|
|
532
548
|
{operation_input_args}
|
|
533
549
|
}}
|
|
534
550
|
{custom_key_mapping}
|
|
535
|
-
|
|
551
|
+
# serialize the input request
|
|
552
|
+
operation_input_args = serialize(operation_input_args)
|
|
553
|
+
logger.debug(f"Serialized input request: {{operation_input_args}}")
|
|
536
554
|
|
|
537
555
|
return ResourceIterator(
|
|
538
556
|
{resource_iterator_args}
|
|
@@ -582,7 +600,9 @@ SERIALIZE_INPUT_TEMPLATE = """
|
|
|
582
600
|
operation_input_args = {{
|
|
583
601
|
{operation_input_args}
|
|
584
602
|
}}
|
|
585
|
-
|
|
603
|
+
# serialize the input request
|
|
604
|
+
operation_input_args = serialize(operation_input_args)
|
|
605
|
+
logger.debug(f"Serialized input request: {{operation_input_args}}")"""
|
|
586
606
|
|
|
587
607
|
INITIALIZE_CLIENT_TEMPLATE = """
|
|
588
608
|
client = Base.get_sagemaker_client(session=session, region_name=region, service_name='{service_name}')"""
|
|
@@ -604,13 +624,6 @@ DESERIALIZE_RESPONSE_TEMPLATE = """
|
|
|
604
624
|
DESERIALIZE_RESPONSE_TO_BASIC_TYPE_TEMPLATE = """
|
|
605
625
|
return list(response.values())[0]"""
|
|
606
626
|
|
|
607
|
-
SERIALIZE_LIST_INPUT_TEMPLATE = """
|
|
608
|
-
operation_input_args = {{
|
|
609
|
-
{operation_input_args}
|
|
610
|
-
}}
|
|
611
|
-
operation_input_args = {{k: v for k, v in operation_input_args.items() if v is not None and not isinstance(v, Unassigned)}}
|
|
612
|
-
logger.debug(f"Input request: {{operation_input_args}}")"""
|
|
613
|
-
|
|
614
627
|
RETURN_ITERATOR_TEMPLATE = """
|
|
615
628
|
return ResourceIterator(
|
|
616
629
|
{resource_iterator_args}
|
|
@@ -622,7 +635,7 @@ DESERIALIZE_INPUT_AND_RESPONSE_TO_CLS_TEMPLATE = """
|
|
|
622
635
|
|
|
623
636
|
RESOURCE_BASE_CLASS_TEMPLATE = """
|
|
624
637
|
class Base(BaseModel):
|
|
625
|
-
model_config = ConfigDict(protected_namespaces=(), validate_assignment=True)
|
|
638
|
+
model_config = ConfigDict(protected_namespaces=(), validate_assignment=True, extra="forbid")
|
|
626
639
|
|
|
627
640
|
@classmethod
|
|
628
641
|
def get_sagemaker_client(cls, session = None, region_name = None, service_name = 'sagemaker'):
|
|
@@ -709,7 +722,7 @@ class Base(BaseModel):
|
|
|
709
722
|
|
|
710
723
|
SHAPE_BASE_CLASS_TEMPLATE = """
|
|
711
724
|
class {class_name}:
|
|
712
|
-
model_config = ConfigDict(protected_namespaces=(), validate_assignment=True)
|
|
725
|
+
model_config = ConfigDict(protected_namespaces=(), validate_assignment=True, extra="forbid")
|
|
713
726
|
"""
|
|
714
727
|
|
|
715
728
|
SHAPE_CLASS_TEMPLATE = '''
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sagemaker-core
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.3
|
|
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
|
|
@@ -75,7 +75,8 @@ Benefits
|
|
|
75
75
|
|
|
76
76
|
Docs and Examples
|
|
77
77
|
-----------------
|
|
78
|
+
Learn more about the sagemaker-core SDK and its features by visting the `What's New Announcement <https://aws.amazon.com/about-aws/whats-new/2024/09/sagemaker-core-object-oriented-sdk-amazon-sagemaker>`_.
|
|
78
79
|
|
|
79
|
-
For examples and walkthroughs, see the `SageMaker Core Examples <https://github.com/aws/amazon-sagemaker-examples/tree/default
|
|
80
|
+
For examples and walkthroughs, see the `SageMaker Core Examples <https://github.com/aws/amazon-sagemaker-examples/tree/default/%20%20%20%20%20%20%20%20%20sagemaker-core>`_.
|
|
80
81
|
|
|
81
82
|
For detailed documentation, including the API reference, see `Read the Docs <https://sagemaker-core.readthedocs.io>`_.
|
|
@@ -6,29 +6,29 @@ sagemaker_core/main/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
|
6
6
|
sagemaker_core/main/config_schema.py,sha256=IDvL1YuMOwVg4nb0D4ysU51tc1UjlQASyz1QZoncs7I,56907
|
|
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=
|
|
10
|
-
sagemaker_core/main/shapes.py,sha256=
|
|
9
|
+
sagemaker_core/main/resources.py,sha256=_zix3PucNO60z3XVLEKCfSm5zWLyNWJaaGk868-rz5w,1298170
|
|
10
|
+
sagemaker_core/main/shapes.py,sha256=NgrfvUwVDRIYHn1jB2NgDGQ631-S0cA22AlAE7Tw8FA,682244
|
|
11
11
|
sagemaker_core/main/user_agent.py,sha256=4sZybDXkzRoZnOnVDQ8p8zFTfiRJdsH7amDWInVQ4xU,2708
|
|
12
|
-
sagemaker_core/main/utils.py,sha256=
|
|
12
|
+
sagemaker_core/main/utils.py,sha256=I7WsC-DdbnAZg_PtqcLPywXlqjAwj7ZYbeHhv93Z1O4,18840
|
|
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
|
|
17
|
+
sagemaker_core/main/code_injection/shape_dag.py,sha256=-iWikIF2hoNnoVkJGfi_h3OTKqM4rygHIulaQjZrZ1g,646997
|
|
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
|
|
21
21
|
sagemaker_core/tools/codegen.py,sha256=mKWVi2pWnPxyIoWUEPYjEc9Gw7D9bCOrHqa00yzIZ1o,2005
|
|
22
|
-
sagemaker_core/tools/constants.py,sha256=
|
|
22
|
+
sagemaker_core/tools/constants.py,sha256=lJ-KqRtv0F4mtZBqUNCX5RbOhXmPUsIslLPVVFJunDA,3080
|
|
23
23
|
sagemaker_core/tools/data_extractor.py,sha256=NpP22uCaWgvn9uOHsFEkgtn3h2nOIKDvJTLihN01f1A,1368
|
|
24
24
|
sagemaker_core/tools/method.py,sha256=4Hmu4UWpiBgUTZljYdW1KIKDduDxf_nfhCyuWgLVMWI,717
|
|
25
|
-
sagemaker_core/tools/resources_codegen.py,sha256=
|
|
25
|
+
sagemaker_core/tools/resources_codegen.py,sha256=m7B2vrkfokLmzND9tCkty7EhVMk1FLevTd2LmJd_GKg,89974
|
|
26
26
|
sagemaker_core/tools/resources_extractor.py,sha256=B9Twlf2vb7AkZUKLnxSdQZ_rNLPz0ROk9kuq-6uB1As,14526
|
|
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
|
-
sagemaker_core/tools/templates.py,sha256=
|
|
30
|
-
sagemaker_core-1.0.
|
|
31
|
-
sagemaker_core-1.0.
|
|
32
|
-
sagemaker_core-1.0.
|
|
33
|
-
sagemaker_core-1.0.
|
|
34
|
-
sagemaker_core-1.0.
|
|
29
|
+
sagemaker_core/tools/templates.py,sha256=IvL9ykLvOXDNCMnIZn30o-6Cmx4fw-BIJz3nl9LD4dc,24614
|
|
30
|
+
sagemaker_core-1.0.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
31
|
+
sagemaker_core-1.0.3.dist-info/METADATA,sha256=t4gnhUg41sSyQ0NtNQ2HGhce5TfXXlLC7aGXsGO6Usw,4877
|
|
32
|
+
sagemaker_core-1.0.3.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
|
33
|
+
sagemaker_core-1.0.3.dist-info/top_level.txt,sha256=R3GAZZ1zC5JxqdE_0x2Lu_WYi2Xfke7VsiP3L5zngfA,15
|
|
34
|
+
sagemaker_core-1.0.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|