AWS SDK for .NET Documentation
PostInvalidation Method (request)
Amazon ► Amazon.CloudFront_2012_03_15 ► AmazonCloudFrontClient ► PostInvalidation(PostInvalidationRequest)
Did this page help you? Yes No Tell us about it...
The PostInvalidation operation invalidates objects specified in the PostInvalidationRequest which will cause Cloudfront to go back to the origin to get a new copy.
CopyC#

    PostInvalidationRequest request = new PostInvalidationRequest();
    request.DistributionId = distributionId;
    request.InvalidationBatch.CallerReference = callerReference;
    request.InvalidationBatch.WithPaths("/image1.jpg", "/image2.jpg");
    PostInvalidationResponse response = cfcClient.PostInvalidation(request);

Declaration Syntax

C#

    public PostInvalidationResponse PostInvalidation(
    	PostInvalidationRequest request
    )

Parameters

request (PostInvalidationRequest)
  The PostInvalidationRequest that defines the parameters of the operation.

Return Value
Returns a PostInvalidationResponse from CloudFront.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException |
WebException |
AmazonCloudFrontException |

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)