class CloudFront extends CFImplicits with S3Implicits
- Source
- CloudFront.scala
- Alphabetic
- By Inheritance
- CloudFront
- S3Implicits
- CFImplicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new CloudFront()
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
_bucketNamesWithDistributions: Memoizer0[List[String]]
- Attributes
- protected
-
val
_bucketsWithDistributions: Memoizer[S3, List[Bucket]]
- Attributes
- protected
-
val
_distributions: Memoizer0[List[DistributionSummary]]
- Attributes
- protected
-
val
_distributionsFor: Memoizer2[Bucket, S3, List[DistributionSummary]]
- returns
List of CloudFront distributions for the specified bucket
- Attributes
- protected
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
bucketNamesWithDistributions: List[String]
- returns
List of bucket names that have CloudFront distributions for this AWS account
- def bucketsWithDistributions(implicit s3: S3): List[Bucket]
- val cacheIsDirty: AtomicBoolean
- implicit val cf: CloudFront
- implicit val cfClient: AmazonCloudFront
- def clearCaches(): Unit
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @throws( ... )
- val distributions: List[DistributionSummary]
- def distributionsFor(bucket: Bucket)(implicit s3: S3): List[DistributionSummary]
-
def
enableAllDistributions(bucket: Bucket, newStatus: Boolean = true)(implicit s3: S3): List[UpdateDistributionResult]
Enable/disable all distributions for the given bucketName
Enable/disable all distributions for the given bucketName
- returns
list of UpdateDistributionResult for distributions that were enabled
-
def
enableLastDistribution(bucket: Bucket, newStatus: Boolean = true)(implicit s3: S3): Option[UpdateDistributionResult]
Enable/disable the most recently created distribution for the given bucketName
Enable/disable the most recently created distribution for the given bucketName
- returns
Some(UpdateDistributionResult) if distributions was enabled, else None
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def findDistributionById(id: String): Try[Distribution]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate()
-
def
invalidate(bucket: Bucket, assetPath: String)(implicit s3: S3): Int
Invalidate asset in all bucket distributions where it is present.
Invalidate asset in all bucket distributions where it is present.
- assetPath
The path of the objects to invalidate, relative to the distribution and must begin with a slash (/). If the path is a directory, all assets within in are invalidated
- returns
number of asset invalidations
-
def
invalidateMany(bucket: Bucket, assetPaths: List[String])(implicit s3: S3): Int
Invalidate asset in all bucket distributions where it is present.
Invalidate asset in all bucket distributions where it is present.
- assetPaths
The path of the objects to invalidate, relative to the distribution and must begin with a slash (/). If the path is a directory, all assets within in are invalidated
- returns
number of asset invalidations
- See also
http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/cloudfront/model/InvalidationBatch.html#InvalidationBatch(com.amazonaws.services.cloudfront.model.Paths,%20java.lang.String)
-
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
removeDistribution(bucket: Bucket)(implicit s3: S3): Boolean
Remove the most recently created distribution for the given bucketName.
Remove the most recently created distribution for the given bucketName. Can take 15 minutes to an hour to return.
- def removeOrigin(distSummary: DistributionSummary, distConfigResult: GetDistributionConfigResult, origin: Origin): Try[Boolean]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def tryConfig(id: String): Try[DistributionConfig]
-
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( ... )