[ aws . cloudfront ]
Gets the code of a CloudFront function. To get configuration information and metadata about a function, use DescribeFunction
.
To get a function’s code, you must provide the function’s name and stage. To get these values, you can use ListFunctions
.
See also: AWS API Documentation
See ‘aws help’ for descriptions of global parameters.
get-function
--name <value>
[--stage <value>]
<outfile>
--name
(string)
The name of the function whose code you are getting.
--stage
(string)
The function’s stage, either
DEVELOPMENT
orLIVE
.Possible values:
DEVELOPMENT
LIVE
outfile
(string)
Filename where the content will be saved
See ‘aws help’ for descriptions of global parameters.
FunctionCode -> (blob)
The function code of a CloudFront function.
ETag -> (string)
The version identifier for the current version of the CloudFront function.
ContentType -> (string)
The content type (media type) of the response.