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 |
Publishes a CloudFront function by copying the function code from the
DEVELOPMENT
stage to LIVE
. This automatically updates all cache
behaviors that are using this function to use the newly published copy
in the LIVE
stage.
When a function is published to the LIVE
stage, you can attach the
function to a distribution’s cache behavior, using the function’s Amazon
Resource Name (ARN).
To publish a function, you must provide the function’s name and version
(ETag
value). To get these values, you can use ListFunctions
and
DescribeFunction
.
Synopsis
- data PublishFunction = PublishFunction' {}
- newPublishFunction :: Text -> Text -> PublishFunction
- publishFunction_name :: Lens' PublishFunction Text
- publishFunction_ifMatch :: Lens' PublishFunction Text
- data PublishFunctionResponse = PublishFunctionResponse' {}
- newPublishFunctionResponse :: Int -> PublishFunctionResponse
- publishFunctionResponse_functionSummary :: Lens' PublishFunctionResponse (Maybe FunctionSummary)
- publishFunctionResponse_httpStatus :: Lens' PublishFunctionResponse Int
Creating a Request
data PublishFunction Source #
See: newPublishFunction
smart constructor.
Instances
Create a value of PublishFunction
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:name:PublishFunction'
, publishFunction_name
- The name of the function that you are publishing.
$sel:ifMatch:PublishFunction'
, publishFunction_ifMatch
- The current version (ETag
value) of the function that you are
publishing, which you can get using DescribeFunction
.
Request Lenses
publishFunction_name :: Lens' PublishFunction Text Source #
The name of the function that you are publishing.
publishFunction_ifMatch :: Lens' PublishFunction Text Source #
The current version (ETag
value) of the function that you are
publishing, which you can get using DescribeFunction
.
Destructuring the Response
data PublishFunctionResponse Source #
See: newPublishFunctionResponse
smart constructor.
PublishFunctionResponse' | |
|
Instances
newPublishFunctionResponse Source #
Create a value of PublishFunctionResponse
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:functionSummary:PublishFunctionResponse'
, publishFunctionResponse_functionSummary
- Contains configuration information and metadata about a CloudFront
function.
$sel:httpStatus:PublishFunctionResponse'
, publishFunctionResponse_httpStatus
- The response's http status code.
Response Lenses
publishFunctionResponse_functionSummary :: Lens' PublishFunctionResponse (Maybe FunctionSummary) Source #
Contains configuration information and metadata about a CloudFront function.
publishFunctionResponse_httpStatus :: Lens' PublishFunctionResponse Int Source #
The response's http status code.