#[non_exhaustive]pub struct InvalidationBatchBuilder { /* private fields */ }
Expand description
A builder for InvalidationBatch
.
Implementations§
source§impl InvalidationBatchBuilder
impl InvalidationBatchBuilder
sourcepub fn paths(self, input: Paths) -> Self
pub fn paths(self, input: Paths) -> Self
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.
This field is required.sourcepub fn set_paths(self, input: Option<Paths>) -> Self
pub fn set_paths(self, input: Option<Paths>) -> Self
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 get_paths(&self) -> &Option<Paths>
pub fn get_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, input: impl Into<String>) -> Self
pub fn caller_reference(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_caller_reference(self, input: Option<String>) -> Self
pub fn set_caller_reference(self, input: Option<String>) -> Self
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.
sourcepub fn get_caller_reference(&self) -> &Option<String>
pub fn get_caller_reference(&self) -> &Option<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.
sourcepub fn build(self) -> Result<InvalidationBatch, BuildError>
pub fn build(self) -> Result<InvalidationBatch, BuildError>
Consumes the builder and constructs a InvalidationBatch
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for InvalidationBatchBuilder
impl Clone for InvalidationBatchBuilder
source§fn clone(&self) -> InvalidationBatchBuilder
fn clone(&self) -> InvalidationBatchBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InvalidationBatchBuilder
impl Debug for InvalidationBatchBuilder
source§impl Default for InvalidationBatchBuilder
impl Default for InvalidationBatchBuilder
source§fn default() -> InvalidationBatchBuilder
fn default() -> InvalidationBatchBuilder
source§impl PartialEq for InvalidationBatchBuilder
impl PartialEq for InvalidationBatchBuilder
source§fn eq(&self, other: &InvalidationBatchBuilder) -> bool
fn eq(&self, other: &InvalidationBatchBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InvalidationBatchBuilder
Auto Trait Implementations§
impl Freeze for InvalidationBatchBuilder
impl RefUnwindSafe for InvalidationBatchBuilder
impl Send for InvalidationBatchBuilder
impl Sync for InvalidationBatchBuilder
impl Unpin for InvalidationBatchBuilder
impl UnwindSafe for InvalidationBatchBuilder
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