validate#

exception s3pathlib.validate.S3BucketValidationError[source]#
exception s3pathlib.validate.S3KeyValidationError[source]#
s3pathlib.validate.validate_s3_bucket(bucket: str) None[source]#

Raise exception if validation not passed.

Ref:

s3pathlib.validate.validate_s3_key(key: str) None[source]#

Raise exception if validation not passed.

Ref:

s3pathlib.validate.validate_s3_uri(uri: str) None[source]#

Raise exception if validation not passed.

S3 URI is just s3://{bucket}/{key}

s3pathlib.validate.validate_s3_arn(arn: str) None[source]#

Raise exception if validation not passed.

S3 ARN is just:

  • for bucket: arn:aws:s3:::{bucket}

  • for object: arn:aws:s3:::{bucket}/{key}

  • for directory: arn:aws:s3:::{bucket}/{prefix}/