what does `Bucket.fromBucketArn` do? it seems like...
# help
s
what does
Bucket.fromBucketArn
do? it seems like it creates a new bucket, because it requires a resource ID. but based on the name, I’d assume it just points to another bucket. I basically want to point to an existing bucket and not create anything extra
again, the documentation here is rather poor.
f
It creates an instance of the
s3.Bucket
Class from an existing S3 bucket.
This doesn’t creates a new Bucket. The instance just holds some internal information of the s3 bucket name, arn, etc.
s
Ok, that's the impression I got. Thanks!