{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-compute-optimizer/refs/heads/main/json-structure/compute-optimizer-lambda-function-recommendation-structure.json", "name": "LambdaFunctionRecommendation", "description": "Describes an Lambda function recommendation.", "type": "object", "properties": { "functionArn": { "allOf": [ { "$ref": "#/components/schemas/FunctionArn" }, { "description": "The Amazon Resource Name (ARN) of the current function." } ] }, "functionVersion": { "allOf": [ { "$ref": "#/components/schemas/FunctionVersion" }, { "description": "The version number of the current function." } ] }, "accountId": { "allOf": [ { "$ref": "#/components/schemas/AccountId" }, { "description": "The Amazon Web Services account ID of the function." } ] }, "currentMemorySize": { "allOf": [ { "$ref": "#/components/schemas/MemorySize" }, { "description": "The amount of memory, in MB, that's allocated to the current function." } ] }, "numberOfInvocations": { "allOf": [ { "$ref": "#/components/schemas/NumberOfInvocations" }, { "description": "The number of times your function code was applied during the look-back period." } ] }, "utilizationMetrics": { "allOf": [ { "$ref": "#/components/schemas/LambdaFunctionUtilizationMetrics" }, { "description": "An array of objects that describe the utilization metrics of the function." } ] }, "lookbackPeriodInDays": { "allOf": [ { "$ref": "#/components/schemas/LookBackPeriodInDays" }, { "description": "The number of days for which utilization metrics were analyzed for the function." } ] }, "lastRefreshTimestamp": { "allOf": [ { "$ref": "#/components/schemas/LastRefreshTimestamp" }, { "description": "The timestamp of when the function recommendation was last generated." } ] }, "finding": { "allOf": [ { "$ref": "#/components/schemas/LambdaFunctionRecommendationFinding" }, { "description": "

The finding classification of the function.

Findings for functions include:

" } ] }, "findingReasonCodes": { "allOf": [ { "$ref": "#/components/schemas/LambdaFunctionRecommendationFindingReasonCodes" }, { "description": "

The reason for the finding classification of the function.

Functions that have a finding classification of Optimized don't have a finding reason code.

Finding reason codes for functions include:

" } ] }, "memorySizeRecommendationOptions": { "allOf": [ { "$ref": "#/components/schemas/LambdaFunctionMemoryRecommendationOptions" }, { "description": "An array of objects that describe the memory configuration recommendation options for the function." } ] }, "currentPerformanceRisk": { "allOf": [ { "$ref": "#/components/schemas/CurrentPerformanceRisk" }, { "description": "The risk of the current Lambda function not meeting the performance needs of its workloads. The higher the risk, the more likely the current Lambda function requires more memory." } ] }, "tags": { "allOf": [ { "$ref": "#/components/schemas/Tags" }, { "description": " A list of tags assigned to your Lambda function recommendations. " } ] } } }