Struct aws_sdk_cloudfront::types::FunctionMetadata
source · #[non_exhaustive]pub struct FunctionMetadata {
pub function_arn: String,
pub stage: Option<FunctionStage>,
pub created_time: Option<DateTime>,
pub last_modified_time: DateTime,
}
Expand description
Contains metadata about a CloudFront function.
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.function_arn: String
The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.
stage: Option<FunctionStage>
The stage that the function is in, either DEVELOPMENT
or LIVE
.
When a function is in the DEVELOPMENT
stage, you can test the function with TestFunction
, and update it with UpdateFunction
.
When a function is in the LIVE
stage, you can attach the function to a distribution's cache behavior, using the function's ARN.
created_time: Option<DateTime>
The date and time when the function was created.
last_modified_time: DateTime
The date and time when the function was most recently updated.
Implementations§
source§impl FunctionMetadata
impl FunctionMetadata
sourcepub fn function_arn(&self) -> &str
pub fn function_arn(&self) -> &str
The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.
sourcepub fn stage(&self) -> Option<&FunctionStage>
pub fn stage(&self) -> Option<&FunctionStage>
The stage that the function is in, either DEVELOPMENT
or LIVE
.
When a function is in the DEVELOPMENT
stage, you can test the function with TestFunction
, and update it with UpdateFunction
.
When a function is in the LIVE
stage, you can attach the function to a distribution's cache behavior, using the function's ARN.
sourcepub fn created_time(&self) -> Option<&DateTime>
pub fn created_time(&self) -> Option<&DateTime>
The date and time when the function was created.
sourcepub fn last_modified_time(&self) -> &DateTime
pub fn last_modified_time(&self) -> &DateTime
The date and time when the function was most recently updated.
source§impl FunctionMetadata
impl FunctionMetadata
sourcepub fn builder() -> FunctionMetadataBuilder
pub fn builder() -> FunctionMetadataBuilder
Creates a new builder-style object to manufacture FunctionMetadata
.
Trait Implementations§
source§impl Clone for FunctionMetadata
impl Clone for FunctionMetadata
source§fn clone(&self) -> FunctionMetadata
fn clone(&self) -> FunctionMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FunctionMetadata
impl Debug for FunctionMetadata
source§impl PartialEq for FunctionMetadata
impl PartialEq for FunctionMetadata
source§fn eq(&self, other: &FunctionMetadata) -> bool
fn eq(&self, other: &FunctionMetadata) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FunctionMetadata
Auto Trait Implementations§
impl Freeze for FunctionMetadata
impl RefUnwindSafe for FunctionMetadata
impl Send for FunctionMetadata
impl Sync for FunctionMetadata
impl Unpin for FunctionMetadata
impl UnwindSafe for FunctionMetadata
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