--- id: cdk-iam-floyd version: "0.507.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # cdk-iam-floyd — AWS IAM policy statement generator with fluent interface for AWS CDK License: permissive · Maintenance: active · Downloads: 98.2K/mo ## What it is and what it does cdk-iam-floyd is a Python wrapper around AWS IAM policy statement generation, designed to integrate directly into AWS CDK constructs. It provides a fluent, type-safe interface to build IAM policies by chaining method calls rather than hand-writing JSON—for example, calling `.allow().describe_instances()` on an EC2 service object generates the corresponding policy statement. The package maintains coverage of 353 AWS services with their associated actions, resource types, and condition keys, all generated from AWS documentation. The package depends on aws-cdk-lib, constructs, jsii, publication, and typeguard to bridge Python and CDK's JavaScript runtime and provide type safety. It is marked as Beta and has not reached 1.0.0, meaning the API may change; the maintainer recommends pinning to an exact version. The project is actively maintained with recent commits and is used by a significant portion of the PyPI ecosystem. Use it for: - Build least-privilege IAM policies in CDK stacks using method chaining instead of hand-written JSON. - Generate policy statements for multiple AWS services with autocomplete and type hints in Python IDEs. - Ensure policy syntax correctness by leveraging the fluent interface to catch errors at development time. - Manage condition keys and resource types programmatically for complex multi-service policies. - Integrate IAM policy generation into infrastructure-as-code pipelines without context switching to JSON. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Generates AWS IAM policy statements with a fluent interface, integrating into AWS CDK to simplify policy construction for 353 services, 14236 actions, 1504 resource types, and 1493 condition keys. Yes, if you use AWS CDK and want to reduce IAM policy boilerplate. The package has low install friction, active maintenance, and permissive licensing. Pin to version 0.507.0 or later and verify CDK compatibility (>= 2.30.0); accept that the API is still Beta and may change before 1.0.0. No known vulnerabilities. ## Install pip install cdk-iam-floyd uv add cdk-iam-floyd poetry add cdk-iam-floyd ## Installing cdk-iam-floyd Before you install: Low install friction with a pure-Python wheel and five runtime dependencies. Actively maintained with recent commits; marked Beta but in use across the top 15000 PyPI packages. License in practice: Apache-2.0 permissive license; dependencies bundled under MIT (regex-parser, common-substrings) and other licenses—review dependency licenses if redistribution is planned. Quickstart: pip install cdk-iam-floyd from cdk_iam_floyd import iam statement = iam.Ec2().allow().describe_instances().build() Requires AWS CDK v2.0.0 or later; version 0.507.0 requires CDK >= 2.30.0 per the compatibility matrix. Verify before relying: - Whether the package's Beta status (Development Status :: 4) impacts production readiness for your use case. - Exact CDK version compatibility for version 0.507.0 beyond the stated >= 2.30.0 threshold. ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 98.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags AWS IAM policy generator, CDK IAM policy builder, fluent IAM statement, AWS policy as code, CDK policy construction, aws-cdk, iam-policy, infrastructure-as-code [View on SkillFed](https://skillfed.io/packages/cdk-iam-floyd) · [View on PyPI](https://pypi.org/project/cdk-iam-floyd/)