Documentation ¶
Index ¶
- func DeleteDefaultVPCs(region string, role string, deleteFlag bool) error
- func EnableGuardDutyAdministratorAccount(region string, administratorAccountRole string, rootRole string, ...) error
- func EnableSecurityHubAdministratorAccount(region string, administratorAccountRole string, rootRole string) error
- func GetAccountID(sess *session.Session, role string) string
- func GetCreds(sess *session.Session, role string) *credentials.Credentials
- func GetEnabledRegions(region string, role string) []string
- func GetSession() *session.Session
- func ListMemberAccountIDs(role string) []string
- type AccountWithEmail
- type Vpc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDefaultVPCs ¶
DeleteDefaultVPCs deletes all of the default VPCs in all regions of an account
func EnableGuardDutyAdministratorAccount ¶
func EnableGuardDutyAdministratorAccount(region string, administratorAccountRole string, rootRole string, autoEnableS3Protection bool) error
EnableGuardDutyAdministratorAccount enables the GuardDuty Administrator account within the AWS Organization
func EnableSecurityHubAdministratorAccount ¶
func EnableSecurityHubAdministratorAccount(region string, administratorAccountRole string, rootRole string) error
EnableSecurityHubAdministratorAccount enables the Security Hub Administrator account within the AWS Organization
func GetAccountID ¶
GetAccountID returns the AWS Account ID of the session
func GetCreds ¶
func GetCreds(sess *session.Session, role string) *credentials.Credentials
GetCreds return credentials that can be used on a session
func GetEnabledRegions ¶
GetEnabledRegions provides a list of AWS Regions that are enabled
func ListMemberAccountIDs ¶
ListMemberAccountIDs provides a list of AWS Accounts that are members of the AWS Organization
Types ¶
type AccountWithEmail ¶
AccountWithEmail contains AccountID and Email
func ListMemberAccountIDsWithEmails ¶
func ListMemberAccountIDsWithEmails(role string) []AccountWithEmail
ListMemberAccountIDsWithEmails provides a list of AWS Accounts that are members of the AWS Organization along with their email addresses