Skip to content

/AWS1/IF_LMD=>PUTFUNCTIONSCALINGCONFIG()

About PutFunctionScalingConfig

Sets the scaling configuration for a Lambda Managed Instances function. The scaling configuration defines the minimum and maximum number of execution environments that can be provisioned for the function, allowing you to control scaling behavior and resource allocation.

Method Signature

METHODS /AWS1/IF_LMD~PUTFUNCTIONSCALINGCONFIG
  IMPORTING
    !IV_FUNCTIONNAME TYPE /AWS1/LMDUNQUALIFIEDFUNCNAME OPTIONAL
    !IV_QUALIFIER TYPE /AWS1/LMDPUBEDFUNCQUALIFIER OPTIONAL
    !IO_FUNCTIONSCALINGCONFIG TYPE REF TO /AWS1/CL_LMDFUNCSCALINGCONFIG OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lmdputfuncscacfgrsp
  RAISING
    /AWS1/CX_LMDINVPARAMVALUEEX
    /AWS1/CX_LMDRESOURCECONFLICTEX
    /AWS1/CX_LMDRESOURCENOTFOUNDEX
    /AWS1/CX_LMDSERVICEEXCEPTION
    /AWS1/CX_LMDTOOMANYREQUESTSEX
    /AWS1/CX_LMDCLIENTEXC
    /AWS1/CX_LMDSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_functionname TYPE /AWS1/LMDUNQUALIFIEDFUNCNAME /AWS1/LMDUNQUALIFIEDFUNCNAME

The name or ARN of the Lambda function.

iv_qualifier TYPE /AWS1/LMDPUBEDFUNCQUALIFIER /AWS1/LMDPUBEDFUNCQUALIFIER

Specify a version or alias to set the scaling configuration for a published version of the function.

Optional arguments:

io_functionscalingconfig TYPE REF TO /AWS1/CL_LMDFUNCSCALINGCONFIG /AWS1/CL_LMDFUNCSCALINGCONFIG

The scaling configuration to apply to the function, including minimum and maximum execution environment limits.

RETURNING

oo_output TYPE REF TO /aws1/cl_lmdputfuncscacfgrsp /AWS1/CL_LMDPUTFUNCSCACFGRSP

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->putfunctionscalingconfig(
  io_functionscalingconfig = new /aws1/cl_lmdfuncscalingconfig(
    iv_maxexecutionenvironments = 123
    iv_minexecutionenvironments = 123
  )
  iv_functionname = |string|
  iv_qualifier = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_state = lo_result->get_functionstate( ).
ENDIF.