Interface ProcessorConfig

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ProcessorConfig.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-11T23:26:41.917Z") @Stability(Stable) public interface ProcessorConfig extends software.amazon.jsii.JsiiSerializable
Specifies the configuration for the processor Map state.

Example:

 Map map = Map.Builder.create(this, "Map State")
         .maxConcurrency(1)
         .itemsPath(JsonPath.stringAt("$.inputForMap"))
         .itemSelector(Map.of(
                 "item", JsonPath.stringAt("$.Map.Item.Value")))
         .resultPath("$.mapOutput")
         .build();
 map.itemProcessor(new Pass(this, "Pass State"), ProcessorConfig.builder()
         .mode(ProcessorMode.DISTRIBUTED)
         .executionType(ProcessorType.STANDARD)
         .build());
 
  • Method Details

    • getExecutionType

      @Stability(Stable) @Nullable default ProcessorType getExecutionType()
      Specifies the execution type for the Map workflow.

      If you use the Map class, you must provide this field if you specified DISTRIBUTED for the mode sub-field.

      If you use the DistributedMap class, this property is ignored. Use the mapExecutionType in the DistributedMap class instead.

      Default: - no execution type

    • getMode

      @Stability(Stable) @Nullable default ProcessorMode getMode()
      Specifies the execution mode for the Map workflow.

      Default: - ProcessorMode.INLINE if using the `Map` class, ProcessorMode.DISTRIBUTED if using the `DistributedMap` class

    • builder

      @Stability(Stable) static ProcessorConfig.Builder builder()
      Returns:
      a ProcessorConfig.Builder of ProcessorConfig