Get S3 bucket for a c3 type


#1

How do I get the S3 bucket for a c3 type stored in S3?


#2

MyType.getEndPoint(“MyType”) will return the bucket URL


#3

The right api to use going forward is

MyType.rawDataEndPoint();


#4

I try

BillingAccount.rawDataEndPoint()

but does not exist


#5

You can’t see it because your type is not stored as is in S3, it has to extend the FileData type.
For instance:

@db(partitionKey ="...")
type BillingAccount mixes FileData< BillingAccount > {
  
}