bucket abstract method

Bucket bucket(
  1. String bucketName, {
  2. PredefinedAcl? defaultPredefinedObjectAcl,
  3. Acl? defaultObjectAcl,
})

Access bucket object operations.

Instantiates a Bucket object referring to the bucket named bucketName.

When an object is created using the resulting Bucket an ACL will always be set. If the object creation does not pass any explicit ACL information a default ACL will be used.

If the arguments defaultPredefinedObjectAcl or defaultObjectAcl are passed they define the default ACL. If both are passed the entries from defaultObjectAcl with be followed by the expansion of defaultPredefinedObjectAcl when an object is created.

Otherwise the default object ACL attached to the bucket will be used.

Returns a Bucket instance.

Implementation

Bucket bucket(String bucketName,
    {PredefinedAcl? defaultPredefinedObjectAcl, Acl? defaultObjectAcl});