MCPcopy Create free account
hub / github.com/aws/aws-cli / has_underlying_s3_path

Method has_underlying_s3_path

awscli/customizations/s3/utils.py:776–784  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

774
775 @classmethod
776 def has_underlying_s3_path(self, path):
777 bucket, _ = split_s3_bucket_key(path)
778 return bool(
779 self._S3_ACCESSPOINT_ARN_TO_ACCOUNT_NAME_REGEX.match(bucket)
780 or self._S3_OUTPOST_ACCESSPOINT_ARN_TO_ACCOUNT_REGEX.match(bucket)
781 or self._S3_MRAP_ARN_TO_ACCOUNT_ALIAS_REGEX.match(bucket)
782 or bucket.endswith('-s3alias')
783 or bucket.endswith('--op-s3')
784 )
785
786 @classmethod
787 def from_session(cls, session, region, verify_ssl):

Calls 2

split_s3_bucket_keyFunction · 0.85
matchMethod · 0.80

Tested by 1