{"library":"pepperize-cdk-organizations","title":"CDK Organizations","description":"Manage AWS organizations, organizational units (OU), accounts and service control policies (SCP) using AWS CDK. Current version: 0.7.987. Maintained as part of the pepperize CDK constructs, with releases tied to AWS CDK updates.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install pepperize-cdk-organizations"],"cli":null},"imports":["from pepperize_cdk_organizations import Organization","from pepperize_cdk_organizations import OrganizationalUnit"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from aws_cdk import App, Stack\nfrom pepperize_cdk_organizations import Organization\nfrom pepperize_cdk_organizations.scp import ServiceControlPolicy\n\napp = App()\nstack = Stack(app, 'MyStack')\norg = Organization(stack, 'MyOrg')\npolicy = ServiceControlPolicy(stack, 'DenyEC2',\n    content={\n        'Version': '2012-10-17',\n        'Statement': [\n            {\n                'Effect': 'Deny',\n                'Action': 'ec2:*',\n                'Resource': '*'\n            }\n        ]\n    },\n    description='Deny all EC2 actions'\n)\norg.policy_attachments.add(policy)\napp.synth()","lang":"python","description":"Creates an AWS Organization with a Service Control Policy attached.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}