Migrating an existing IAM policy document into an AWS CDK app usually means deciding how to represent it in code. IAM Policy to CDK Converter pastes your policy JSON and produces a TypeScript snippet using iam.PolicyDocument.fromJson(...) — the simplest, most robust pattern for embedding an already-resolved static policy, since JSON syntax is directly valid as a TypeScript object literal and needs no re-derivation into a sequence of new iam.PolicyStatement({...}) builder calls.
The output wraps the parsed document in a small ManagedPolicy construct as a complete, runnable example, with the construct id, variable name, and managedPolicyName clearly labeled as placeholders you should rename to fit your actual CDK app before deploying. Only TypeScript is generated; if you need Python, Java, or C#, treat the printed JSON as the source of truth and port the call to your language's CDK equivalent by hand.
Because this tool only converts a static, already-resolved JSON policy, it has no way to know which values in your policy should become dynamic CDK tokens (e.g. a bucket ARN available only at synth time) — that kind of reference needs to be added by hand after conversion.