Skip to content

/AWS1/CL_FNT=>GETFUNCTION()

About GetFunction

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.

Method Signature

IMPORTING

Required arguments:

IV_NAME TYPE /AWS1/FNTSTRING /AWS1/FNTSTRING

The name of the function whose code you are getting.

Optional arguments:

IV_STAGE TYPE /AWS1/FNTFUNCTIONSTAGE /AWS1/FNTFUNCTIONSTAGE

The function's stage, either DEVELOPMENT or LIVE.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_FNTGETFUNCTIONRESULT /AWS1/CL_FNTGETFUNCTIONRESULT