8000 Deprecate aws_stack.generate_presigned_url (#9120) · codeperl/localstack@3d381e9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3d381e9

Browse files
Deprecate aws_stack.generate_presigned_url (localstack#9120)
1 parent 35e4d87 commit 3d381e9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

localstack/utils/aws/aws_stack.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,11 @@ def get_s3_hostname():
418418

419419

420420
def generate_presigned_url(*args, **kwargs):
421+
warnings.warn(
422+
"`aws_stack.generate_presigned_url` is obsolete. Use the Boto client `generate_presigned_url` method",
423+
DeprecationWarning,
424+
)
425+
421426
endpoint_url = kwargs.pop("endpoint_url", None)
422427
s3_client = connect_to_service(
423428
"s3",

0 commit comments

Comments
 (0)
0