def test_outpost_bucket_arn_with_slash_raises_exception(self): with self.assertRaisesRegex( ValueError, 'Use s3control commands instead'): block_unsupported_resources( 'arn:aws:s3-outposts:us-west-2:123456789012:' 'outpost/op-0a12345678abcdefg/bucket/bucket-foo' )
def test_object_lambda_arn_with_slash_raises_exception(self): with self.assertRaisesRegex( ValueError, 'Use s3api commands instead'): block_unsupported_resources( 'arn:aws:s3-object-lambda:us-west-2:123456789012:' 'accesspoint/my-accesspoint' )