code: func (iamRes *IAMResourceBuilder) ToPrivilege() sparta.IAMRolePrivilege {
  	return sparta.IAMRolePrivilege{
  		Actions:  iamRes.builder.apiCalls,
  		Resource: gocf.Join("", iamRes.resourceParts...),
  	}
  }
docs: // ToPrivilege returns a legacy sparta.IAMRolePrivilege type for this
  // entry