diff --git a/packages/@aws-cdk/aws-lambda/lib/event-source-mapping.ts b/packages/@aws-cdk/aws-lambda/lib/event-source-mapping.ts index 951df979a48b5..a3a970add1b6f 100644 --- a/packages/@aws-cdk/aws-lambda/lib/event-source-mapping.ts +++ b/packages/@aws-cdk/aws-lambda/lib/event-source-mapping.ts @@ -271,11 +271,7 @@ export class EventSourceMapping extends cdk.Resource implements IEventSourceMapp let selfManagedEventSource; if (props.kafkaBootstrapServers) { - selfManagedEventSource = { - endpoints: { - kafkaBootstrapServers: props.kafkaBootstrapServers, - }, - }; + selfManagedEventSource = { endpoints: { kafkaBootstrapServers: props.kafkaBootstrapServers } }; } const cfnEventSourceMapping = new CfnEventSourceMapping(this, 'Resource', {