Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data FunctionMetadata = FunctionMetadata' {}
- newFunctionMetadata :: Text -> UTCTime -> FunctionMetadata
- functionMetadata_stage :: Lens' FunctionMetadata (Maybe FunctionStage)
- functionMetadata_createdTime :: Lens' FunctionMetadata (Maybe UTCTime)
- functionMetadata_functionARN :: Lens' FunctionMetadata Text
- functionMetadata_lastModifiedTime :: Lens' FunctionMetadata UTCTime
Documentation
data FunctionMetadata Source #
Contains metadata about a CloudFront function.
See: newFunctionMetadata
smart constructor.
FunctionMetadata' | |
|
Instances
:: Text | |
-> UTCTime | |
-> FunctionMetadata |
Create a value of FunctionMetadata
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:stage:FunctionMetadata'
, functionMetadata_stage
- 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.
$sel:createdTime:FunctionMetadata'
, functionMetadata_createdTime
- The date and time when the function was created.
$sel:functionARN:FunctionMetadata'
, functionMetadata_functionARN
- The Amazon Resource Name (ARN) of the function. The ARN uniquely
identifies the function.
$sel:lastModifiedTime:FunctionMetadata'
, functionMetadata_lastModifiedTime
- The date and time when the function was most recently updated.
functionMetadata_stage :: Lens' FunctionMetadata (Maybe FunctionStage) Source #
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.
functionMetadata_createdTime :: Lens' FunctionMetadata (Maybe UTCTime) Source #
The date and time when the function was created.
functionMetadata_functionARN :: Lens' FunctionMetadata Text Source #
The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.
functionMetadata_lastModifiedTime :: Lens' FunctionMetadata UTCTime Source #
The date and time when the function was most recently updated.