Note: You are viewing the documentation for an older major version of the AWS CLI (version 1).
AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.
[ 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.