CloudFrontAliases.

CreateInvalidation(ICakeContext, string, IList<string>, string, CloudFrontSettings) Method

Summary

Invalidates objects from a CloudFront distribution.

Syntax

public static Task<string> CreateInvalidation(this ICakeContext context, string distributionId, IList<string> items, string reference, CloudFrontSettings settings)

Attributes

Type Description
AsyncStateMachineAttribute
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The cake context.
distributionId string The distribution to invalidate objects from.
items IList<string> 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.

Return Value

Type Description
Task<string>