func GetAccountAlias(svc *iam.Client, stsSvc *sts.Client) map[string]string {
	alias := make(map[string]string)
	alias[GetAccountID(stsSvc)] = GetAccountID(stsSvc)

	input := &iam.ListAccountAliasesInput{}
	result, err := svc.ListAccountAliases(context.TODO(), input)
	if err != nil {
		log.Fatal(err.Error())
	}
	if len(result.AccountAliases) > 0 {
		alias[GetAccountID(stsSvc)] = result.AccountAliases[0]
	}
	return alias
}
// GetAccountAlias returns the account alias in a map of [accountid]accountalias
// If no alias is present, it will return the account ID instead
GetAccountAlias returns the account alias in a map of [accountid]accountalias
If no alias is present, it will return the account ID instead
// GetAccountAlias returns the account alias in a map of [ accountid ] accountalias // If no alias is present it will return the account ID instead
func GetAccountAlias(svc *iam.Client, stsSvc *sts.Client) map[string]string {
	alias := make(map[string]string)
	alias[GetAccountID(stsSvc)] = GetAccountID(stsSvc)
	input := &iam.ListAccountAliasesInput{}
	result, err := svc.ListAccountAliases(context.TODO(), input)
	if err != nil {
		log.Fatal(err.Error())
	}
	if len(result.AccountAliases) > 0 {
		alias[GetAccountID(stsSvc)] = result.AccountAliases[0]
	}
	return alias
}
func GetAccountAlias ( svc * iam . Client , stsSvc * sts . Client ) map [ string ] string { alias := make ( map [ string ] string ) alias [ GetAccountID ( stsSvc ) ] = GetAccountID ( stsSvc ) input := & iam . ListAccountAliasesInput { } result , err := svc . ListAccountAliases ( context . TODO ( ) , input ) if err != nil { log . Fatal ( err . Error ( ) ) } if len ( result . AccountAliases ) > 0 { alias [ GetAccountID ( stsSvc ) ] = result . AccountAliases [ 0 ] } return alias }
GetAccountAlias returns the account alias in a map of [accountid]accountalias
If no alias is present, it will return the account ID instead
GetAccountAlias returns the account alias in a map of [ accountid ] accountalias If no alias is present it will return the account ID instead