in packages/@cdk-cloudformation/tf-google-storagebucket/src/index.ts [284:292]
export function toJson_LifecycleRuleDefinition(obj: LifecycleRuleDefinition | undefined): Record<string, any> | undefined {
if (obj === undefined) { return undefined; }
const result = {
'Action': obj.action?.map(y => toJson_ActionDefinition(y)),
'Condition': obj.condition?.map(y => toJson_ConditionDefinition(y)),
};
// filter undefined values
return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
}