Struct aws_sdk_cloudfront::model::function_metadata::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for FunctionMetadata
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn function_arn(self, input: impl Into<String>) -> Self
pub fn function_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.
sourcepub fn set_function_arn(self, input: Option<String>) -> Self
pub fn set_function_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.
sourcepub fn stage(self, input: FunctionStage) -> Self
pub fn stage(self, input: FunctionStage) -> Self
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 set_stage(self, input: Option<FunctionStage>) -> Self
pub fn set_stage(self, input: Option<FunctionStage>) -> Self
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, input: DateTime) -> Self
pub fn created_time(self, input: DateTime) -> Self
The date and time when the function was created.
sourcepub fn set_created_time(self, input: Option<DateTime>) -> Self
pub fn set_created_time(self, input: Option<DateTime>) -> Self
The date and time when the function was created.
sourcepub fn last_modified_time(self, input: DateTime) -> Self
pub fn last_modified_time(self, input: DateTime) -> Self
The date and time when the function was most recently updated.
sourcepub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
The date and time when the function was most recently updated.
sourcepub fn build(self) -> FunctionMetadata
pub fn build(self) -> FunctionMetadata
Consumes the builder and constructs a FunctionMetadata
.