You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**lambdaARN** (required)<br/>type: _string_<br/> | Unique identifier of the Lambda function you want to optimize. |
62
64
|**num** (required)<br/>type: _integer_| The # of invocations for each power configuration (minimum 5, recommended: between 10 and 100). |
63
-
|**powerValues**<br/>type: _string or list of integers_| The list of power values to be tested; if not provided, the default values configured at deploy-time are used; you can provide any power values between 128MB and 10,240MB. ⚠️ New AWS accounts have reduced concurrency and memory quotas (3008MB max). |
65
+
|**powerValues**<br/>type: _string or list of integers_| The list of power values to be tested; if not provided, the default values configured at deploy-time are used; you can provide any power values between 128MB and 10,240MB. ⚠️ New AWS accounts have reduced concurrency and memory quotas (3008MB max). |
64
66
|**payload**<br/>type: _string, object, or list_| The static payload that will be used for every invocation (object or string); when using a list, a weighted payload is expected in the shape of `[{"payload": {...}, "weight": X }, {"payload": {...}, "weight": Y }, {"payload": {...}, "weight": Z }]`, where the weights `X`, `Y`, and `Z` are treated as relative weights (not percentages); more details in the [Weighted Payloads section](README-ADVANCED.md#user-content-weighted-payloads). |
65
67
|**payloadS3**<br/>type: _string_| An Amazon S3 object reference for large payloads (>256KB), formatted as `s3://bucket/key`; it requires read-only IAM permissions, see `payloadS3Bucket` and `payloadS3Key` below and find more details in the [S3 payloads section](README-ADVANCED.md#user-content-s3-payloads). |
66
-
|**parallelInvocation**<br/>type: _boolean_<br/>default: `false`| If true, all the invocations will run in parallel. ⚠️ Note: depending on the value of `num`, you might experience throttling. |
68
+
|**parallelInvocation**<br/>type: _boolean_<br/>default: `false`| If true, all the invocations will run in parallel. ⚠️ Note: depending on the value of `num`, you might experience throttling. |
67
69
|**strategy**<br/>type: _string_<br/>default: `"cost"`| It can be `"cost"` or `"speed"` or `"balanced"`; if you use `"cost"` the state machine will suggest the cheapest option (disregarding its performance), while if you use `"speed"` the state machine will suggest the fastest option (disregarding its cost). When using `"balanced"` the state machine will choose a compromise between `"cost"` and `"speed"` according to the parameter `"balancedWeight"`. |
68
70
|**balancedWeight**<br/>type: _number_<br/>default: `0.5`| Parameter that represents the trade-off between cost and speed. Value is between 0 and 1, where 0.0 is equivalent to `"speed"` strategy, 1.0 is equivalent to `"cost"` strategy. |
69
71
|**autoOptimize**<br/>type: _boolean_<br/>default: `false`| If true, the state machine will apply the optimal configuration at the end of its execution. |
@@ -75,4 +77,5 @@ Each execution of the state machine will require an input where you can define t
75
77
|**sleepBetweenRunsMs**<br/>type: _integer_| If provided, the time in milliseconds that the tuner will sleep/wait after invoking your function, but before carrying out the Post-Processing step, should that be provided. This could be used if you have aggressive downstream rate limits you need to respect. By default this will be set to 0 and the function won't sleep between invocations. This has no effect if running the invocations in parallel. |
76
78
|**disablePayloadLogs**<br/>type: _boolean_<br/>default: `false`| If true, suppresses `payload` from error messages and logs. If `preProcessorARN` is provided, this also suppresses the output payload of the pre-processor. |
77
79
|**includeOutputResults**<br/>type: _boolean_<br/>default: `false`| If true, the average cost and average duration for every power value configuration will be included in the state machine output. |
78
-
| **onlyColdStarts**<br/>type: _boolean_<br/>default: `false` | If true, the tool will force all invocations to be cold starts. The initialization phase will be considerably slower as `num` versions/aliases need to be created for each power value.
80
+
|**onlyColdStarts**<br/>type: _boolean_<br/>default: `false`| If true, the tool will force all invocations to be cold starts. The initialization phase will be considerably slower as `num` versions/aliases need to be created for each power value. |
81
+
|**allowedExceptions"<br/>type: _list_<br/>default: `[]`| Set Errors that will be handlded be the executor rather than causing it to error out. ||
0 commit comments