Check whether the input contains an AWS S3 URI.
Simple pattern match on the s3:// prefix; does not verify that the URI exists.
s3://
x (object) – Value to check.
True if x looks like an S3 URI.
True
x
bool
Examples
>>> is_aws_s3_uri("s3://my-bucket/key") True >>> is_aws_s3_uri("https://example.com/") False