Amazon-CloudFront-Thin
view release on metacpan or search on metacpan
lib/Amazon/CloudFront/Thin.pm view on Meta::CPAN
=head2 create_invalidation( @paths )
=head2 create_invalidation( \@paths )
B<Receives>: list of strings (or arrayref of strings), each specifying
a different path to invalidate.
B<Returns>: an L<HTTP::Response> object for the request. Use the C<content()>
method on the returned object to read the contents:
my $res = $cloudfront->create_invalidation( '/path/to/some/object.png' );
if ($res->is_success) {
my $content = $res->content;
}
This method creates a new invalidation batch request on Amazon CloudFront.
Please note that B<paths are case sensitive> and that
B<the leading '/' is optional>, meaning C<"foo/BAR"> and C<"FOO/bar">
are completely different, but C<"foo/bar"> and C<"/foo/bar"> (note the '/')
point to the same object.
( run in 2.026 seconds using v1.01-cache-2.11-cpan-df04353d9ac )