CloudFrontAliases.

CreateInvalidation(ICakeContext, string, string, string, CloudFrontSettings) Method

Summary

Invalidates objects from a CloudFront distribution.

Syntax

public static Task<string> CreateInvalidation(this ICakeContext context, string distributionId, string item, 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.
item string The path of the object 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>