<@U01MV4U2EV9> <@U01JVDKASAC> is there any way to ...
# help
k
@thdxr @Frank is there any way to provision
reservedConcurrentExecutions
or configure `retryAttempts`with an SST-Table construct? The CDK allows both rC , retry (Alias example) but only during Function creation.
f
Hey @Klaus, do u mean configuring the
reservedConcurrentExecutions
and
retryAtteps
for the Table stream function?
ie.
Copy code
const table = new Table(stack, "Table", {
  ...,
  stream: true,
  consumers: {
    myConsumer: {
      function: {
        handler: "src/consumer1.main",
        currentVersionOptions: {
          provisionedConcurrentExecutions: 5,
          retryAttempts: 1,
        }
      }
    }
  },
});

table.getFunction("myConsumer").currentVersion;
Note the
.currentVersion
line at the end. It’s a weird thing CDK does that a version only gets created when u call the getter for
.currentVersion
.
Let me know if this is what u were looking to do.
k
@Frank yes, I meant the Function properties, which are more universal than just applying in relation to Dynamo DB table (sorry for the little confusion here). The need for accessing
.currentVersion
is an odd CDK aspect for sure.