| 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 |
Amazonka.CloudFront.DescribeFunction
Description
Gets configuration information and metadata about a CloudFront function,
but not the function’s code. To get a function’s code, use
GetFunction.
To get configuration information and metadata about a function, you must
provide the function’s name and stage. To get these values, you can use
ListFunctions.
Synopsis
- data DescribeFunction = DescribeFunction' {
- stage :: Maybe FunctionStage
- name :: Text
- newDescribeFunction :: Text -> DescribeFunction
- describeFunction_stage :: Lens' DescribeFunction (Maybe FunctionStage)
- describeFunction_name :: Lens' DescribeFunction Text
- data DescribeFunctionResponse = DescribeFunctionResponse' {}
- newDescribeFunctionResponse :: Int -> DescribeFunctionResponse
- describeFunctionResponse_eTag :: Lens' DescribeFunctionResponse (Maybe Text)
- describeFunctionResponse_functionSummary :: Lens' DescribeFunctionResponse (Maybe FunctionSummary)
- describeFunctionResponse_httpStatus :: Lens' DescribeFunctionResponse Int
Creating a Request
data DescribeFunction Source #
See: newDescribeFunction smart constructor.
Constructors
| DescribeFunction' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DescribeFunction |
Create a value of DescribeFunction 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:DescribeFunction', describeFunction_stage - The function’s stage, either DEVELOPMENT or LIVE.
$sel:name:DescribeFunction', describeFunction_name - The name of the function that you are getting information about.
Request Lenses
describeFunction_stage :: Lens' DescribeFunction (Maybe FunctionStage) Source #
The function’s stage, either DEVELOPMENT or LIVE.
describeFunction_name :: Lens' DescribeFunction Text Source #
The name of the function that you are getting information about.
Destructuring the Response
data DescribeFunctionResponse Source #
See: newDescribeFunctionResponse smart constructor.
Constructors
| DescribeFunctionResponse' | |
Fields
| |
Instances
newDescribeFunctionResponse Source #
Create a value of DescribeFunctionResponse 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:eTag:DescribeFunctionResponse', describeFunctionResponse_eTag - The version identifier for the current version of the CloudFront
function.
$sel:functionSummary:DescribeFunctionResponse', describeFunctionResponse_functionSummary - Contains configuration information and metadata about a CloudFront
function.
$sel:httpStatus:DescribeFunctionResponse', describeFunctionResponse_httpStatus - The response's http status code.
Response Lenses
describeFunctionResponse_eTag :: Lens' DescribeFunctionResponse (Maybe Text) Source #
The version identifier for the current version of the CloudFront function.
describeFunctionResponse_functionSummary :: Lens' DescribeFunctionResponse (Maybe FunctionSummary) Source #
Contains configuration information and metadata about a CloudFront function.
describeFunctionResponse_httpStatus :: Lens' DescribeFunctionResponse Int Source #
The response's http status code.