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

Function block_unsupported_resources

awscli/customizations/s3/utils.py:202–216  ·  view source on GitHub ↗
(s3_path)

Source from the content-addressed store, hash-verified

200
201
202def block_unsupported_resources(s3_path):
203 # AWS CLI s3 commands don't support object lambdas only direct API calls
204 # are available for such resources
205 if _S3_OBJECT_LAMBDA_TO_BUCKET_KEY_REGEX.match(s3_path):
206 raise ParamValidationError(
207 's3 commands do not support S3 Object Lambda resources. '
208 'Use s3api commands instead.'
209 )
210 # AWS S3 API and AWS CLI s3 commands don't support Outpost bucket ARNs
211 # only s3control API supports them so far
212 if _S3_OUTPOST_BUCKET_ARN_TO_BUCKET_KEY_REGEX.match(s3_path):
213 raise ParamValidationError(
214 's3 commands do not support Outpost Bucket ARNs. '
215 'Use s3control commands instead.'
216 )
217
218
219def find_bucket_key(s3_path):

Calls 2

matchMethod · 0.80