Files
floci/docs
Kenshin Okinaka debf9fb0dc feat(firehose): validate and persist ProcessingConfiguration (#3375)
* feat(firehose): validate and persist ProcessingConfiguration

A stream configured with a record transformation was accepted with a 200,
the member dropped by ignoreUnknown, and nothing echoed back. It is now
modelled, validated and stored, so a caller sees what it configured. The
transformation itself is not applied yet: records are still delivered
untransformed, and create and update say so in a warning.

The behavior follows what real AWS does, probed in us-west-2:

- A Lambda processor requires a LambdaArn, which must be a well-formed
  function ARN, and BufferSizeInMBs and BufferIntervalInSeconds are
  all-or-nothing.
- Processor types and parameter names are checked against AWS's enums,
  reproducing the order those sets are printed in and the 1-based member
  paths of the constraint messages.
- UpdateDestination replaces the whole block rather than merging it
  member-wise, the opposite of DataFormatConversionConfiguration: an update
  carrying only {"Enabled": false} leaves no processors behind, and an
  update is validated against its own content.
- A stored Lambda processor gains NumberOfRetries 3 and the stream's
  RoleArn, echoed in AWS's own parameter order.

Two checks AWS does not make are deliberately absent: NumberOfRetries is
not range-checked, accepted as 0 or 9 despite the documented 1 to 8, and the
function a LambdaArn names is not required to exist, unlike the Glue table a
conversion schema names.

* docs(firehose): record what AWS does with a null processor list member

Probed: real AWS answers InternalFailure for "Processors": [null] and for
"Parameters": [null], a fault of its own rather than a validation error.
Reproducing that helps nobody, so the entry stays ignored, which leaves the
configuration a caller would have had by omitting it, and the deviation is
written down instead. A test pins the choice so it reads as a decision.

The review also asked for a maximum of 3 on the processor list. Probing found
no such bound: three, four and five processors all pass validation and reach
the role check, so nothing is enforced here.
2026-09-10 23:25:18 -04:00
..
2026-03-15 17:43:56 -05:00