CmdID / aws / aws cloudfront
aws cloudfront get-function
Gets the code of a CloudFront function. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--nameThe name of the function whose code you are getting.--stageThe function's stage, either DEVELOPMENT or LIVE.