I am invoking a lambda function using CfnResource class:
new CfnResource(this, \'MskEndpointDiscoveryInvoke\', { type: \'Custom::MskEndpointDiscovery\',