This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.AWS.CloudFront.
Summary
Invalidates objects from a CloudFront distribution.
- Assembly
- Cake
.AWS .CloudFront .dll - Namespace
- Cake
.AWS .CloudFront - Containing Type
- ICloudFrontManager
Syntax
Task<string> CreateInvalidation(string distributionId, IList<string> items, string reference, CloudFrontSettings settings, CancellationToken cancellationToken = null)
Parameters
| Name | Type | Description |
|---|---|---|
| distributionId | string | The distribution to invalidate objects from. |
| items | IList |
The path of the objects to invalidate. |
| reference | string | A unique name that ensures the request can't be replayed. |
| settings | CloudFrontSettings | The CloudFrontSettings required to connect to Amazon CloudFront. |
| cancellationToken | CancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Return Value
| Type | Description |
|---|---|
| Task |
