code: func (iampb *IAMPrincipalBuilder) ToPrivilege() sparta.IAMRolePrivilege {
  	privilege := sparta.IAMRolePrivilege{
  		Actions:   iampb.builder.apiCalls,
  		Principal: iampb.principal,
  	}
  	if iampb.builder.condition != nil {
  		privilege.Condition = iampb.builder.condition
  	}
  	return privilege
  }
docs: // ToPrivilege returns a legacy sparta.IAMRolePrivilege type for this
  // IAMPrincipalBuilder entry