We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf13065 commit 9750dc5Copy full SHA for 9750dc5
src/sagemaker/jumpstart/accessors.py
@@ -41,17 +41,17 @@ def get_sagemaker_version() -> str:
41
class JumpStartS3Accessor(object):
42
"""Static class for storing and retrieving auxilliary s3 artifacts."""
43
44
- @functools.lru_cache()
45
@staticmethod
+ @functools.lru_cache()
46
def _get_default_s3_client(region: str = JUMPSTART_DEFAULT_REGION_NAME) -> boto3.client:
47
"""Returns default s3 client associated with the region.
48
49
Result is cached so multiple clients in memory are not created.
50
"""
51
return boto3.client("s3", region_name=region)
52
53
54
55
def get_object_cached(
56
bucket: str,
57
key: str,
0 commit comments