MCPcopy Create free account

hub / github.com/aws-samples/aws-control-tower-org-setup-sample / functions

Functions58 in github.com/aws-samples/aws-control-tower-org-setup-sample

↓ 3 callersMethodassume_role
Assume the AWSControlTowerExecution role in an account
src/org_setup/resources/sts.py:37
↓ 3 callersMethodenable_organization_admin_account
Delegate Macie administration to an account Executes in: management account in all regions
src/org_setup/resources/macie.py:56
↓ 3 callersMethodupdate_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 callersFunctiondisable_security_hub
( account_id: str, region: str, credentials: Dict[str, str] = None, session: boto3.Session = None )
bin/disable_security_hub.py:72
↓ 2 callersMethodenable_macie
Enable Macie Executes in: management account in all regions
src/org_setup/resources/macie.py:40
↓ 2 callersMethodlist_accounts
List all of the accounts in an organization
src/org_setup/resources/organizations.py:72
↓ 2 callersMethodlist_roots
List all the roots in an organization
src/org_setup/resources/organizations.py:103
↓ 2 callersFunctionsetup_organization
Set up the organization in multiple regions
src/org_setup/lambda_handler.py:131
↓ 1 callersMethodactivate_organizations_access
Activate organization access for CloudFormation StackSets Executes in: management account in all regions
src/org_setup/resources/cloudformation.py:38
↓ 1 callersMethodassociate_admin_account
Delegate Firewall Manager administration to an account Executes in: management account in all regions
src/org_setup/resources/fms.py:38
↓ 1 callersFunctionassume_role
(session: boto3.Session, account_id: str)
bin/disable_security_hub.py:64
↓ 1 callersMethodattach_ai_optout_policy
Attach the AI opt-out policy to the root
src/org_setup/resources/organizations.py:211
↓ 1 callersMethodcreate_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 callersMethodcreate_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 callersMethodcreate_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 callersMethodcreate_members
Create members in Securityhub
src/org_setup/resources/securityhub.py:96
↓ 1 callersMethodcreate_members
Create members in Macie
src/org_setup/resources/macie.py:87
↓ 1 callersMethodcreate_members
Create members in GuardDuty
src/org_setup/resources/guardduty.py:226
↓ 1 callersMethodcreate_org_analyzer
Create an organizational IAM access analyzer Executes in: delegated administrator account in all regions
src/org_setup/resources/accessanalyzer.py:56
↓ 1 callersMethoddescribe_organization
Describe the organization the account belongs to
src/org_setup/resources/organizations.py:59
↓ 1 callersMethodenable_all_features
Enable all features in an organization
src/org_setup/resources/organizations.py:120
↓ 1 callersMethodenable_all_policy_types
Enables all policy types in an organization
src/org_setup/resources/organizations.py:151
↓ 1 callersMethodenable_aws_organizations_access
Enable Service Catalog sharing with organization Executes in: management account in all regions
src/org_setup/resources/servicecatalog.py:38
↓ 1 callersMethodenable_aws_service_access
Enable AWS service access in organization
src/org_setup/resources/organizations.py:135
↓ 1 callersMethodenable_delegated_admin_account
Delegate Inspector administration to an account Executes in: management account in all regions
src/org_setup/resources/inspector.py:38
↓ 1 callersMethodenable_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 callersMethodget_account_id
Return the Account ID for an account
src/org_setup/resources/organizations.py:263
↓ 1 callersFunctionget_accounts
(session: boto3.Session)
bin/disable_security_hub.py:35
↓ 1 callersMethodget_ai_optout_policy
Return the AI opt-out policy ID
src/org_setup/resources/organizations.py:181
↓ 1 callersMethodget_all_regions
Return all regions that don't require opt-in
src/org_setup/resources/ec2.py:38
↓ 1 callersFunctionget_current_account
(session: boto3.Session)
bin/disable_security_hub.py:30
↓ 1 callersFunctionget_regions
(session: boto3.Session)
bin/disable_security_hub.py:47
↓ 1 callersMethodlist_policies
List all of the policies in an organization
src/org_setup/resources/organizations.py:91
↓ 1 callersFunctionmain
()
bin/disable_security_hub.py:105
↓ 1 callersMethodregister_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 callersMethodregister_delegated_administrators
Register delegated administrators
src/org_setup/resources/organizations.py:237
↓ 1 callersFunctionsetup_region
Configure services in a region
src/org_setup/lambda_handler.py:62
↓ 1 callersMethodupdate_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
Functioncreate
(event: Dict[str, Any], context: LambdaContext)
src/org_setup/lambda_handler.py:192
Functiondelete
(event: Dict[str, Any], context: LambdaContext)
src/org_setup/lambda_handler.py:198
Methodenable_organization_admin_account
Delegate SecurityHub administration to an account Executes in: management account in each region
src/org_setup/resources/securityhub.py:40
Methodenable_organization_admin_account
Delegate Detective administration to an account Executes in: management account in all regions
src/org_setup/resources/detective.py:38
Methodenable_organization_admin_account
Delegate GuardDuty administration to an account Executes in: management account in all regions
src/org_setup/resources/guardduty.py:45
Functionhandler
(event: Dict[str, Any], context: LambdaContext)
src/org_setup/lambda_handler.py:204