object UploadPostV2 extends S3Implicits with CFImplicits
The implicit AmazonIdentityManagementClient
instance determines the AIM user based on the AWS access key ID in the
implicit AWSCredentials
instance in scope.
- Source
- UploadPostV2.scala
- Alphabetic
- By Inheritance
- UploadPostV2
- CFImplicits
- S3Implicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
implicit
class
RichDistributionSummary
extends AnyRef
- Definition Classes
- CFImplicits
-
implicit
class
RichBucket
extends AnyRef
- Definition Classes
- S3Implicits
-
implicit
class
RichBucketIAM
extends AnyRef
- Definition Classes
- S3Implicits
Value Members
-
object
RichDistribution
- Definition Classes
- CFImplicits
-
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
- val Logger: Logger
-
def
apply(file: File, bucket: Bucket, key: String, acl: AclEnum, expiryDuration: Duration = Duration.standardHours(1))(implicit s3: S3, cf: CloudFront): Try[Boolean]
- file
File to upload
- bucket
Bucket to deliver the upload to; must have CORS set for POST and the bucket policy must grant the user referenced in the implicit
AmazonIdentityManagementClient
instance the privilege to upload- acl
Access Control List for the uploaded item
- expiryDuration
specifies the maximum
Duration
the upload has to complete before AWS terminates it with an error
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @throws( ... )
-
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()
- def invalidateDistributions(bucket: Bucket, key: String)(implicit s3: S3, cf: CloudFront): Try[Boolean]
-
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
params(file: File, bucket: Bucket, key: String, acl: AclEnum, expiryDuration: Duration, awsCredentials: AWSCredentials): Map[String, String]
- Attributes
- protected[com.micronautics.aws]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
uploadPost(file: File, uploadUrl: URL, params: Map[String, String]): Try[Boolean]
There are two versions of upload via POST to S3; this method uses [v2](http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingHTTPPOST.html), not [v4](http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-authentication-HTTPPOST.html)
There are two versions of upload via POST to S3; this method uses [v2](http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingHTTPPOST.html), not [v4](http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-authentication-HTTPPOST.html)
- Attributes
- protected[com.micronautics.aws]
-
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( ... )