Amazon CloudFront
API Reference (API Version 2012-07-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

Invalidation Complex Type

Description

The Invalidation complex type describes the information about an invalidation request. For more information about object invalidation, go to Object Invalidation in the Amazon CloudFront Developer Guide.

This complex type is a response element in POST Invalidation and in GET Invalidation.

Syntax

<Invalidation xmlns="http://cloudfront.amazonaws.com/doc/2012-07-01/">
   <Id>id that CloudFront assigned to the invalidation</Id>
   <Status>InProgress | Completed</Status>
   <CreateTime>date and time of request</CreateTime>
   <InvalidationBatch>
      <Paths>
         <Quantity>number of objects to invalidate</Quantity>
         <Items>
            <Path>/path to object to invalidate</Path>
         </Items>
      </Paths>
      <CallerReference>unique identifier for this invalidation batch</CallerReference>
   </InvalidationBatch>
</Invalidation>

Elements

The following table describes the child elements in the Invalidation datatype.

NameDescription 

Id

The identifier for the invalidation request, for example, IDFDVBD632BHDS5.

Type: String

Default: None

Parent: Invalidation

 

Status

The status of the invalidation request. When the invalidation batch is finished, the status is Completed.

Type: String

Valid Values: InProgress | Completed

Default: None

Parent: Invalidation

 

CreateTime

The date and time the invalidation request was made.

Type: String with date in the format YYYY-MM-DDThh:mm:ssZ, as specified in the ISO 8601 standard, for example, 2009-11-19T19:37:58Z

Default: None

Parent: Invalidation

 

InvalidationBatch

The current invalidation information for the batch request.

Type: InvalidationBatch Complex Type

Default: None

Parent: Invalidation

 

Example

The following example shows an invalidation batch request response. The request invalidated two image objects and a Flash movie object.

HTTP/1.0 201 Created
Content-Type: text/xml
Location: https://cloudfront.amazonaws.com/2012-07-01/distribution/EDFDVBD6EXAMPLE/invalidation/IDFDVBD632BHDS5

<Invalidation xmlns="http://cloudfront.amazonaws.com/doc/2012-07-01/">
   <Id>IDFDVBD632BHDS5</Id>
   <Status>InProgress</Status>
   <CreateTime>2009-11-19T19:37:58Z</CreateTime>   
   <InvalidationBatch>
      <Paths>
         <Quantity>3</Quantity>
         <Items>
            <Path>/image1.jpg</Path>
            <Path>/image2.jpg</Path>
            <Path>/videos/movie.flv</Path>
         </Items>
      </Paths>
      <CallerReference>20120301090001</CallerReference>
   </InvalidationBatch>
</Invalidation>