func (policy *IAMPolicyDocument) GetRoleNames() []string {
	result := []string{}
	for _, role := range policy.Roles {
		result = append(result, role.Name)
	}
	return result
}
// GetRoleNames returns the names of the roles the policy is attached to
GetRoleNames returns the names of the roles the policy is attached to
// GetRoleNames returns the names of the roles the policy is attached to
func (policy *IAMPolicyDocument) GetRoleNames() []string {
	result := []string{}
	for _, role := range policy.Roles {
		result = append(result, role.Name)
	}
	return result
}
func ( policy * IAMPolicyDocument ) GetRoleNames ( ) [ ] string { result := [ ] string { } for _ , role := range policy . Roles { result = append ( result , role . Name ) } return result }
GetRoleNames returns the names of the roles the policy is attached to
GetRoleNames returns the names of the roles the policy is attached to