object BucketPolicy
Convenience methods which created a bucket with the given bucketName, enables web site and CORS, and sets the bucket policy so the owner can upload. You may want to write similar code that generates a policy that follows AWS best practices instead.
- Source
- BucketPolicy.scala
- Alphabetic
- By Inheritance
- BucketPolicy
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def allowUserEverythingStatement(bucket: Bucket)(implicit iamClient: AmazonIdentityManagement): Statement
-
def
arnUser(implicit iamClient: AmazonIdentityManagement): Try[String]
The implicit
AmazonIdentityManagementClient
instance determines the AIM user based on the AWS access key ID in the implicitAWSCredentials
instance in scope.The implicit
AmazonIdentityManagementClient
instance determines the AIM user based on the AWS access key ID in the implicitAWSCredentials
instance in scope.- returns
typical value: Success("arn:aws:iam::031372724784:root")
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @throws( ... )
- def createBucket(bucketName: String)(implicit s3: S3, iamClient: AmazonIdentityManagement): Bucket
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate()
-
def
principalUser(implicit iamClient: AmazonIdentityManagement): Try[Principal]
- returns
Try[Principal] for
arnUser
. typical principalUser.getId value: arn:aws:iam::031372724784:root
-
def
setPolicy(bucket: Bucket, statements: List[Statement])(implicit s3: S3): Bucket
This method is idempotent Side effect: sets policy for given AWS S3 upload bucket
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )