Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws-samples/aws-control-tower-org-setup-sample
/ functions
Functions
58 in github.com/aws-samples/aws-control-tower-org-setup-sample
⨍
Functions
58
◇
Types & classes
16
↳
Endpoints
1
↓ 3 callers
Method
assume_role
Assume the AWSControlTowerExecution role in an account
src/org_setup/resources/sts.py:37
↓ 3 callers
Method
enable_organization_admin_account
Delegate Macie administration to an account Executes in: management account in all regions
src/org_setup/resources/macie.py:56
↓ 3 callers
Method
update_organization_configuration
Update the organization configuration to auto-enroll new accounts in Macie Executes in: delegated administrator account in all regio
src/org_setup/resources/macie.py:77
↓ 2 callers
Function
disable_security_hub
( account_id: str, region: str, credentials: Dict[str, str] = None, session: boto3.Session = None )
bin/disable_security_hub.py:72
↓ 2 callers
Method
enable_macie
Enable Macie Executes in: management account in all regions
src/org_setup/resources/macie.py:40
↓ 2 callers
Method
list_accounts
List all of the accounts in an organization
src/org_setup/resources/organizations.py:72
↓ 2 callers
Method
list_roots
List all the roots in an organization
src/org_setup/resources/organizations.py:103
↓ 2 callers
Function
setup_organization
Set up the organization in multiple regions
src/org_setup/lambda_handler.py:131
↓ 1 callers
Method
activate_organizations_access
Activate organization access for CloudFormation StackSets Executes in: management account in all regions
src/org_setup/resources/cloudformation.py:38
↓ 1 callers
Method
associate_admin_account
Delegate Firewall Manager administration to an account Executes in: management account in all regions
src/org_setup/resources/fms.py:38
↓ 1 callers
Function
assume_role
(session: boto3.Session, account_id: str)
bin/disable_security_hub.py:64
↓ 1 callers
Method
attach_ai_optout_policy
Attach the AI opt-out policy to the root
src/org_setup/resources/organizations.py:211
↓ 1 callers
Method
create_detector
Update the organization configuration to auto-enroll new accounts in GuardDuty Executes in: delegated administrator account in all r
src/org_setup/resources/guardduty.py:68
↓ 1 callers
Method
create_finding_aggregator
Create finding aggregator to aggregate findings in the primary region Executes in: delegated administrator account in primary region
src/org_setup/resources/securityhub.py:75
↓ 1 callers
Method
create_management_analyzer
Create an account IAM access analyzer for the management account Executes in: management account in all regions
src/org_setup/resources/accessanalyzer.py:38
↓ 1 callers
Method
create_members
Create members in Securityhub
src/org_setup/resources/securityhub.py:96
↓ 1 callers
Method
create_members
Create members in Macie
src/org_setup/resources/macie.py:87
↓ 1 callers
Method
create_members
Create members in GuardDuty
src/org_setup/resources/guardduty.py:226
↓ 1 callers
Method
create_org_analyzer
Create an organizational IAM access analyzer Executes in: delegated administrator account in all regions
src/org_setup/resources/accessanalyzer.py:56
↓ 1 callers
Method
describe_organization
Describe the organization the account belongs to
src/org_setup/resources/organizations.py:59
↓ 1 callers
Method
enable_all_features
Enable all features in an organization
src/org_setup/resources/organizations.py:120
↓ 1 callers
Method
enable_all_policy_types
Enables all policy types in an organization
src/org_setup/resources/organizations.py:151
↓ 1 callers
Method
enable_aws_organizations_access
Enable Service Catalog sharing with organization Executes in: management account in all regions
src/org_setup/resources/servicecatalog.py:38
↓ 1 callers
Method
enable_aws_service_access
Enable AWS service access in organization
src/org_setup/resources/organizations.py:135
↓ 1 callers
Method
enable_delegated_admin_account
Delegate Inspector administration to an account Executes in: management account in all regions
src/org_setup/resources/inspector.py:38
↓ 1 callers
Method
enable_sharing_with_aws_organization
Enable Resource Access Manager sharing with organization Executes in: management account in all regions
src/org_setup/resources/ram.py:38
↓ 1 callers
Method
get_account_id
Return the Account ID for an account
src/org_setup/resources/organizations.py:263
↓ 1 callers
Function
get_accounts
(session: boto3.Session)
bin/disable_security_hub.py:35
↓ 1 callers
Method
get_ai_optout_policy
Return the AI opt-out policy ID
src/org_setup/resources/organizations.py:181
↓ 1 callers
Method
get_all_regions
Return all regions that don't require opt-in
src/org_setup/resources/ec2.py:38
↓ 1 callers
Function
get_current_account
(session: boto3.Session)
bin/disable_security_hub.py:30
↓ 1 callers
Function
get_regions
(session: boto3.Session)
bin/disable_security_hub.py:47
↓ 1 callers
Method
list_policies
List all of the policies in an organization
src/org_setup/resources/organizations.py:91
↓ 1 callers
Function
main
()
bin/disable_security_hub.py:105
↓ 1 callers
Method
register_data_lake_delegated_administrator
Delegate Security Lake administration to an account Executes in: management account in all regions
src/org_setup/resources/securitylake.py:38
↓ 1 callers
Method
register_delegated_administrators
Register delegated administrators
src/org_setup/resources/organizations.py:237
↓ 1 callers
Function
setup_region
Configure services in a region
src/org_setup/lambda_handler.py:62
↓ 1 callers
Method
update_configuration
Update the organization configuration to auto-enroll new accounts and controls in SecurityHub Executes in: delegated administrator a
src/org_setup/resources/securityhub.py:63
Method
__init__
(self, session: boto3.Session)
src/org_setup/resources/sts.py:34
Method
__init__
(self, session: boto3.Session, region: str)
src/org_setup/resources/servicecatalog.py:34
Method
__init__
(self, session: boto3.Session)
src/org_setup/resources/organizations.py:46
Method
__init__
(self, session: boto3.Session, region: str)
src/org_setup/resources/fms.py:34
Method
__init__
(self, session: boto3.Session, region: str)
src/org_setup/resources/accessanalyzer.py:34
Method
__init__
(self, session: boto3.Session, region: str)
src/org_setup/resources/cloudformation.py:34
Method
__init__
(self, session: boto3.Session, region: str)
src/org_setup/resources/inspector.py:34
Method
__init__
(self, session: boto3.Session, region: str)
src/org_setup/resources/securityhub.py:36
Method
__init__
(self, session: boto3.Session, region: str)
src/org_setup/resources/securitylake.py:34
Method
__init__
(self, session: boto3.Session, region: str)
src/org_setup/resources/macie.py:36
Method
__init__
(self, session: boto3.Session, region: str)
src/org_setup/resources/ec2.py:35
Method
__init__
(self, session: boto3.Session, region: str)
src/org_setup/resources/detective.py:34
Method
__init__
(self, session: boto3.Session, region: str)
src/org_setup/resources/ram.py:34
Method
__init__
(self, session: boto3.Session, region: str)
src/org_setup/resources/guardduty.py:39
Function
create
(event: Dict[str, Any], context: LambdaContext)
src/org_setup/lambda_handler.py:192
Function
delete
(event: Dict[str, Any], context: LambdaContext)
src/org_setup/lambda_handler.py:198
Method
enable_organization_admin_account
Delegate SecurityHub administration to an account Executes in: management account in each region
src/org_setup/resources/securityhub.py:40
Method
enable_organization_admin_account
Delegate Detective administration to an account Executes in: management account in all regions
src/org_setup/resources/detective.py:38
Method
enable_organization_admin_account
Delegate GuardDuty administration to an account Executes in: management account in all regions
src/org_setup/resources/guardduty.py:45
Function
handler
(event: Dict[str, Any], context: LambdaContext)
src/org_setup/lambda_handler.py:204