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 ==
.