Struct aws_sdk_cloudfront::types::InvalidationBatch
source · #[non_exhaustive]pub struct InvalidationBatch {
pub paths: Option<Paths>,
pub caller_reference: String,
}
Expand description
An invalidation batch.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.paths: Option<Paths>
A complex type that contains information about the objects that you want to invalidate. For more information, see Specifying the Objects to Invalidate in the Amazon CloudFront Developer Guide.
caller_reference: String
A value that you specify to uniquely identify an invalidation request. CloudFront uses the value to prevent you from accidentally resubmitting an identical request. Whenever you create a new invalidation request, you must specify a new value for CallerReference
and change other values in the request as applicable. One way to ensure that the value of CallerReference
is unique is to use a timestamp
, for example, 20120301090000
.
If you make a second invalidation request with the same value for CallerReference
, and if the rest of the request is the same, CloudFront doesn't create a new invalidation request. Instead, CloudFront returns information about the invalidation request that you previously created with the same CallerReference
.
If CallerReference
is a value you already sent in a previous invalidation batch request but the content of any Path
is different from the original request, CloudFront returns an InvalidationBatchAlreadyExists
error.
Implementations§
source§impl InvalidationBatch
impl InvalidationBatch
sourcepub fn paths(&self) -> Option<&Paths>
pub fn paths(&self) -> Option<&Paths>
A complex type that contains information about the objects that you want to invalidate. For more information, see Specifying the Objects to Invalidate in the Amazon CloudFront Developer Guide.
sourcepub fn caller_reference(&self) -> &str
pub fn caller_reference(&self) -> &str
A value that you specify to uniquely identify an invalidation request. CloudFront uses the value to prevent you from accidentally resubmitting an identical request. Whenever you create a new invalidation request, you must specify a new value for CallerReference
and change other values in the request as applicable. One way to ensure that the value of CallerReference
is unique is to use a timestamp
, for example, 20120301090000
.
If you make a second invalidation request with the same value for CallerReference
, and if the rest of the request is the same, CloudFront doesn't create a new invalidation request. Instead, CloudFront returns information about the invalidation request that you previously created with the same CallerReference
.
If CallerReference
is a value you already sent in a previous invalidation batch request but the content of any Path
is different from the original request, CloudFront returns an InvalidationBatchAlreadyExists
error.
source§impl InvalidationBatch
impl InvalidationBatch
sourcepub fn builder() -> InvalidationBatchBuilder
pub fn builder() -> InvalidationBatchBuilder
Creates a new builder-style object to manufacture InvalidationBatch
.
Trait Implementations§
source§impl Clone for InvalidationBatch
impl Clone for InvalidationBatch
source§fn clone(&self) -> InvalidationBatch
fn clone(&self) -> InvalidationBatch
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InvalidationBatch
impl Debug for InvalidationBatch
source§impl PartialEq for InvalidationBatch
impl PartialEq for InvalidationBatch
source§fn eq(&self, other: &InvalidationBatch) -> bool
fn eq(&self, other: &InvalidationBatch) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InvalidationBatch
Auto Trait Implementations§
impl Freeze for InvalidationBatch
impl RefUnwindSafe for InvalidationBatch
impl Send for InvalidationBatch
impl Sync for InvalidationBatch
impl Unpin for InvalidationBatch
impl UnwindSafe for InvalidationBatch
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more