Skip to content

Commit f4711f8

Browse files
committed
change: update raises section of retrieve docstrings
1 parent 09c97f4 commit f4711f8

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

src/sagemaker/image_uris.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ def retrieve(
9393
str: the ECR URI for the corresponding SageMaker Docker image.
9494
9595
Raises:
96+
NotImplementedError: If the scope is not supported.
9697
ValueError: If the combination of arguments specified is not supported.
98+
VulnerableJumpStartModelError: If any of the dependencies required by the script have
99+
known security vulnerabilities.
100+
DeprecatedJumpStartModelError: If the version of the model is deprecated.
97101
"""
98102
if is_jumpstart_model_input(model_id, model_version):
99103

src/sagemaker/model_uris.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ def retrieve(
5252
str: the model artifact S3 URI for the corresponding model.
5353
5454
Raises:
55+
NotImplementedError: If the scope is not supported.
5556
ValueError: If the combination of arguments specified is not supported.
57+
VulnerableJumpStartModelError: If any of the dependencies required by the script have
58+
known security vulnerabilities.
59+
DeprecatedJumpStartModelError: If the version of the model is deprecated.
5660
"""
5761
if not jumpstart_utils.is_jumpstart_model_input(model_id, model_version):
5862
raise ValueError("Must specify `model_id` and `model_version` when retrieving script URIs.")

src/sagemaker/script_uris.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ def retrieve(
5252
str: the model script URI for the corresponding model.
5353
5454
Raises:
55+
NotImplementedError: If the scope is not supported.
5556
ValueError: If the combination of arguments specified is not supported.
57+
VulnerableJumpStartModelError: If any of the dependencies required by the script have
58+
known security vulnerabilities.
59+
DeprecatedJumpStartModelError: If the version of the model is deprecated.
5660
"""
5761
if not jumpstart_utils.is_jumpstart_model_input(model_id, model_version):
5862
raise ValueError("Must specify `model_id` and `model_version` when retrieving script URIs.")

0 commit comments

Comments
 (0)