// buildActionResponse loops through the advisories associated with an action
// to build a response
buildActionResponse loops through the advisories associated with an action
to build a response
// buildActionResponse loops through the advisories associated with an action // to build a response
func buildActionResponse(action recommendations.AWSAction) ActionResponse {
	var detailsArr []recommendations.RecommendationDetails
	for _, rec := range action.Recommendations {
		details := rec.Details()
		detailsArr = append(detailsArr, details)
	}
	return ActionResponse{
		ID:                 action.ID,
		PolicyID:           action.PolicyID,
		Event:              action.Event,
		Status:             action.Status,
		Resources:          action.Resources,
		Time:               action.Time,
		Recommendations:    detailsArr,
		HasRecommendations: action.HasRecommendations,
	}
}
func buildActionResponse ( action recommendations . AWSAction ) ActionResponse { var detailsArr [ ] recommendations . RecommendationDetails for _ , rec := range action . Recommendations { details := rec . Details ( ) detailsArr = append ( detailsArr , details ) } return ActionResponse { ID : action . ID , PolicyID : action . PolicyID , Event : action . Event , Status : action . Status , Resources : action . Resources , Time : action . Time , Recommendations : detailsArr , HasRecommendations : action . HasRecommendations , } }
buildActionResponse loops through the advisories associated with an action
to build a response
buildActionResponse loops through the advisories associated with an action to build a response