Skip to content

v2.1.0

Choose a tag to compare

@william-kerr william-kerr released this 20 Aug 21:02

Shorten load props statements

// Old look
const roleProps: crpm.Writeable<iam.CfnRoleProps> = crpm.load(
  `${__dirname}/../res/security-identity-compliance/iam/role-manage/props.yaml`
);

// New look
const roleProps = crpm.load<iam.CfnRoleProps>(
  `${__dirname}/../res/security-identity-compliance/iam/role-manage/props.yaml`
);